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 8e750ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>1.8.2</version>
<version>1.8.3</version>

<name>HanLP</name>
<url>http://www.hankcs.com/</url>
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 8e750ee

Please sign in to comment.