Package Exports
- segment-dict
- segment-dict/lib/loader/line
- segment-dict/lib/loader/segment
- segment-dict/lib/loader/segment/synonym
- segment-dict/package.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (segment-dict) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
segment-dict
dict
Breaking Changes
請注意 從 2.0.0 版之後 開始 更改了 synonym 字典的格式
- 原版為一對一 => 錯字,正字
- 這裡為一對多 並且順序與原版相反 => 正字,錯字,...以,分隔更多字
demo
import { requireLoader, requireLoaderModule, getDictPath } from 'segment-dict';
requireLoader('jieba')('../dict/nodejieba/user.dict.utf8')
.then(function (dict)
{
console.log(dict);
})
;
requireLoaderModule('segment').load(getDictPath('segment', 'dict.txt'))
.then(function (dict)
{
console.log(dict);
})
;
links
zh
- segmentit
- node-opencc
- OpenCC
- hanzi
- jieba-js
- nodescws
- node-analyzer
- nanalyzer
- THULAC:一个高效的中文词法分析工具包
- HanLP
- node-hanlp
java
jp
trie
other
- moji 半角全角変換ライブラリ