Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复方差精度BUG #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hujunxianligong
Copy link

在您Github中MMSeg4j项目的Chunk.java中,计算方差的时候会因为精度的丢失,导致相同的方差算出不同的结果,导致方差相同的候选被过滤。
例如下面的例子,虽然它们实际方差相同,但由于精度丢失,导致下面正确的结果被过滤:

  • 今天天气_很不_错 (4.666666666666666)
  • 今天天气_很_不错 (4.666666666666667)

我在commit中为方差只保留了7位小数来避免该问题的出现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant