You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Python version:
Java version: 8.0
HanLP version: 1.7.8
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
I've completed this form and searched the web for solutions.
The text was updated successfully, but these errors were encountered:
Describe the bug
连续加载两次模型时,第二次没有加载而是直接使用第一次加载的模型
Code to reproduce the issue
详情可以参考:https://github.com/zhuyuanxiang/Hanlp-Books-Examples/blob/main/src/main/java/ch03/sec03/DemoNgramSegment.java
Describe the current behavior
--------------->my_cws_model<---------------
「商品」的词频:2
「商品@和」的频次:1
[商品, 和, 服务]
[货币, 和, 服务]
--------------->msr_ngram<---------------
「商品」的词频:2
「商品@和」的频次:1
[商品, 和, 服务]
[货币, 和, 服务]
Expected behavior
--------------->my_cws_model<---------------
「商品」的词频:2
「商品@和」的频次:1
[商品, 和, 服务]
[货币, 和, 服务]
--------------->msr_ngram<---------------
「商品」的词频:1
「商品@和」的频次:0
[商品, 和, 服务]
[货币, 和, 服务]
System information
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
The text was updated successfully, but these errors were encountered: