Hanlp

Latest version: v2.1.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 11

1.8.6

What's Changed
* 更新Portable版中的自定义词典 fix: https://github.com/hankcs/HanLP/issues/1936
* 清理 `Predefine`
* 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
* Portable版同步升级到v1.8.6

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.6</version>
</dependency>


**Full Changelog**: https://github.com/hankcs/HanLP/compare/v1.8.5...v1.8.6

:tada:感谢所有在issue中提出宝贵建议的用户!

1.8.5

What's Changed
* 修复mini二元文法在JRE初始化后第一次分词可能出现的不一致 fix: https://github.com/hankcs/HanLP/issues/1851#issuecomment-1767808746
* 修复ViterbiSegment分词器中加载自定义词典时未替换DoubleArrayTrie导致分词不符合预期的问题 by wxy929629 in https://github.com/hankcs/HanLP/pull/1835
* fix:修复CWSEvaluator比较切分语句时的计算错误 by webSue in https://github.com/hankcs/HanLP/pull/1853
* 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
* Portable版同步升级到v1.8.5

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.5</version>
</dependency>


New Contributors
* wxy929629 made their first contribution in https://github.com/hankcs/HanLP/pull/1835

**Full Changelog**: https://github.com/hankcs/HanLP/compare/v1.8.4...v1.8.5

1.8.4

* 将<>视作分隔符 fix https://bbs.hankcs.com/t/topic/4527
* Segment 添加是否进行 Normalize 的配置方法 close https://github.com/hankcs/HanLP/issues/1714
* 修复文本推荐的评分器分数计算时 scorer.boost 的 bug fix: https://github.com/hankcs/HanLP/issues/1718
* bugfix: 修复 bintrie 树全分词时 提前跳出循环 bug by carl10086 in https://github.com/hankcs/HanLP/pull/1775
* 自定义词典支持.tsv格式 fix: https://github.com/hankcs/HanLP/issues/1785
* 修复自定义词典路径传参 fix: https://github.com/hankcs/HanLP/issues/1799
* 为DoubleArrayTrie增加enableFastBuild by qiangwang in https://github.com/hankcs/HanLP/pull/1805
* 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
* Portable版同步升级到v1.8.4

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.4</version>
</dependency>


:tada:感谢所有在issue中提出宝贵建议的用户!

New Contributors
* carl10086 made their first contribution in https://github.com/hankcs/HanLP/pull/1775
* qiangwang made their first contribution in https://github.com/hankcs/HanLP/pull/1805

**Full Changelog**: https://github.com/hankcs/HanLP/compare/v1.8.3...v1.8.4

1.8.3

* 修复动态自定义词典与CustomDictionaryForcing的搭配问题 fix https://github.com/hankcs/HanLP/issues/1712
* 调整`莎=sha1,suo1` fix https://github.com/hankcs/HanLP/issues/1670
* 根据总词频动态决定未登录词的默认词频
* DoubleArrayTrie里的LongestSearcher的next支持null作为值 by tiandiweizun in https://github.com/hankcs/HanLP/pull/1674
* Update DoubleArrayTrie.java的注释 by TITC in https://github.com/hankcs/HanLP/pull/1699
* 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
* Portable版同步升级到v1.8.3

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.3</version>
</dependency>

**Full Changelog**: https://github.com/hankcs/HanLP/compare/v1.8.2...v1.8.3

New Contributors
* TITC made their first contribution in https://github.com/hankcs/HanLP/pull/1699

:tada:感谢所有在issue中提出宝贵建议的用户!

1.8.2

- 调整公式,维特比分词准确率从94.49提升至94.69 https://bbs.hankcs.com/t/topic/136/61?u=hankcs
- 改进 HMM 采样函数 https://bbs.hankcs.com/t/topic/136/64?u=hankcs
- 支持禁用自动刷新词典缓存(CustomDictionaryAutoRefreshCache=false)fix https://github.com/hankcs/HanLP/issues/1655
- 修复CoreDictionary的reload方法
- 修订bigram模型
- 修订简繁映射表
- lve4的韵母修正为ve fix https://github.com/hankcs/HanLP/issues/1644
- 修复 CustomDictionary.reload() fix https://github.com/hankcs/HanLP/issues/1635
- 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
- Portable版同步升级到v1.8.2

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.2</version>
</dependency>


:tada:感谢所有在issue中提出宝贵建议的用户!

1.8.1

- 修复 convertToPinyinList fix https://github.com/hankcs/HanLP/issues/1634
- 修复CharTable 归一化部分字符错误 fix https://github.com/hankcs/HanLP/issues/1615
- 数据包兼容[data-for-1.7.5.zip](https://file.hankcs.com/hanlp/data-for-1.7.5.zip)` md5=1d9e1be4378b2dbc635858d9c3517aaa`
- Portable版同步升级到v1.8.1

xml
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.1</version>
</dependency>


:tada:感谢所有在issue中提出宝贵建议的用户!

Page 2 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.