Comments (4)
試試
https://github.com/bluelovers/node-segment
from node-segment.
好的,谢谢
from node-segment.
测试用例:
// 载入模块
var Segment = require('segment');
// 创建实例
var segment = new Segment();
// 使用默认的识别模块及字典,载入字典文件需要1秒,仅初始化时执行一次即可
segment.useDefault();
// 开始分词
console.log(segment.doSegment('一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十一二三四五六七八九十'));
然后就内存泄漏了
from node-segment.
from node-segment.
Related Issues (20)
- 如何获取TF? HOT 1
- 如何忽略一些无意义的词 HOT 2
- 能提供javascript版本的分词吗? HOT 3
- 这句话解析不了 HOT 7
- 关于同义词,我写的好像没问题啊 HOT 1
- es6中出现数组遍历的错误 HOT 2
- 某些文本,node进程莫名退出。 HOT 1
- 是否有错别字纠正功能呢?感觉还挺有必要的 HOT 1
- 字典中能否用通配符,比如日期,不想写无数个某年某月某日 HOT 4
- 如何找到联想词汇
- Cannot find module "URLTokenizer" HOT 3
- Action required: Greenkeeper could not be activated 🚨
- An in-range update of should is breaking the build 🚨 HOT 4
- An in-range update of mocha is breaking the build 🚨 HOT 24
- 特定的省市分不出来 HOT 1
- Version 10 of node.js has been released
- 同义词替换无法保留原始内容结构,空格、换行丢失 HOT 1
- 请勿用此模块来对较长且无任何标点符号的文本进行分词,否则会导致分词时间成倍增加 HOT 3
- nodejieba.node is not a valid Win32 application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-segment.