How to use the nodejieba.insertWord function in nodejieba

To help you get started, we’ve selected a few nodejieba examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gitbook-plugins / gitbook-plugin-search-pro / main.js View on Github external
"init" : function(){

            config = this.options;

            pluginConfig = this.options.pluginsConfig['search-pro'];

            // 导入book.json里面插件配置中的自定义词典
            // nodejieba.insertWord("word1","word2",....);

            nodejieba.insertWord.apply(this,pluginConfig.defineWord);

        },

nodejieba

chinese word segmentation for node

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis