Skip to content

Commit

Permalink
常规维护,小版本+1,发布v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Nov 16, 2017
1 parent 84bb82f commit 98b407d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Solr、Lucene插件:https://github.com/hankcs/hanlp-solr-plugin
<dependency>
<groupId>com.hankcs</groupId>
<artifactId>hanlp</artifactId>
<version>portable-1.5.0</version>
<version>portable-1.5.1</version>
</dependency>
```

Expand Down Expand Up @@ -651,7 +651,7 @@ public class DemoWord2Vec
"世界锦标赛胜出",
"中国足球失败",
};

System.out.println(docVectorModel.similarity(documents[0], documents[1]));
System.out.println(docVectorModel.similarity(documents[0], documents[4]));

Expand All @@ -660,10 +660,10 @@ public class DemoWord2Vec
docVectorModel.addDocument(i, documents[i]);
}

printNearestDocment("体育", documents, docVectorModel);
printNearestDocment("农业", documents, docVectorModel);
printNearestDocment("我要看比赛", documents, docVectorModel);
printNearestDocment("要不做饭吧", documents, docVectorModel);
printNearestDocument("体育", documents, docVectorModel);
printNearestDocument("农业", documents, docVectorModel);
printNearestDocument("我要看比赛", documents, docVectorModel);
printNearestDocument("要不做饭吧", documents, docVectorModel);
}
}
```
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.5.0</version>
<version>1.5.1</version>

<name>HanLP</name>
<url>http://www.hankcs.com/</url>
Expand Down

0 comments on commit 98b407d

Please sign in to comment.