Segment shortestSegment = new NShortSegment().enableCustomDictionary(true).enableCustomDictionaryForcing(true).enablePlaceRecognize(true).enableOrganizationRecognize(true);
List<Term> termList = shortestSegment.seg(text);
```
hanlp提高自定义词典优先级
最新推荐文章于 2025-11-17 13:35:33 发布
本文介绍了一种使用自定义词典的短文本分词方法,通过启用组织和地名识别功能,提高了分词的准确性和效率。
5354

被折叠的 条评论
为什么被折叠?



