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
Expected behavior
A clear and concise description of what you expected to happen.
正确清空停用词。
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):macOS Big Sur 11.0.1 20B29 x86_64.
Python version:非python版本
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.
Describe the bug
A clear and concise description of what the bug is.
调用
CoreStopWordDictionary.reload()
后调用CoreStopWordDictionary.dictionary.clear()
会空指针。Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Describe the current behavior
A clear and concise description of what happened.
执行
CoreStopWordDictionary.dictionary.clear()
时equivalenceClassMDAGNodeHashMap
空指针异常。Expected behavior
A clear and concise description of what you expected to happen.
正确清空停用词。
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.
分析原因为
StopWordDictionary.reload()
时执行了MDAG.simplify()
,其中有equivalenceClassMDAGNodeHashMap = null;
MDAGSet.clear()
方法中equivalenceClassMDAGNodeHashMap.clear();
没有判空。相关:a57645c
The text was updated successfully, but these errors were encountered: