Segment shortestSegment = new NShortSegment().enableCustomDictionary(true).enableCustomDictionaryForcing(true).enablePlaceRecognize(true).enableOrganizationRecognize(true);
List<Term> termList = shortestSegment.seg(text);
```
hanlp提高自定义词典优先级
最新推荐文章于 2023-01-03 18:14:44 发布