Skip to content

Commit

Permalink
修复动态自定义词典与CustomDictionaryForcing的搭配问题 fix #1712
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Feb 21, 2022
1 parent 2f796df commit f28363f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ HanLP提供下列功能:
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.8.2</version>
<version>portable-1.8.3</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/hankcs/hanlp/seg/WordBasedSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ protected void generateWordNet(final WordNet wordNetStorage)
// 强制用户词典查询
if (config.forceCustomDictionary)
{
CustomDictionary.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit<CoreDictionary.Attribute>()
this.customDictionary.parseText(charArray, new AhoCorasickDoubleArrayTrie.IHit<CoreDictionary.Attribute>()
{
@Override
public void hit(int begin, int end, CoreDictionary.Attribute value)
Expand Down

0 comments on commit f28363f

Please # to comment.