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
Describe the bug
用户调用enableProbability(boolean enable)后,不管传入的值是true还是false,都不会影响到configProbabilityEnabled的值,从而导致 if (configProbabilityEnabled) MathUtility.normalizeExp(predictionScores); 永远执行。
Describe the current behavior
enableProbability方法失效。
Expected behavior
enableProbability方法生效。
System information
Windows 0
Java 1.8
HanLP 1.7.5
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
用户调用enableProbability(boolean enable)后,不管传入的值是true还是false,都不会影响到configProbabilityEnabled的值,从而导致 if (configProbabilityEnabled) MathUtility.normalizeExp(predictionScores); 永远执行。
建议将
修改为
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Describe the current behavior
enableProbability方法失效。
Expected behavior
enableProbability方法生效。
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: