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 fix: beam_threshold is in log_10 and needs to be transformed befo… #16

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

Conversation

tdomhan
Copy link

@tdomhan tdomhan commented May 10, 2016

…re it's passed the the ttable.

beam_threshold is the a threshold in log space (indicated by it's default value of -4.0). It used to be directly passed like this to ExportToFile, which then internally got multiplied with max_p (a probability NOT in log space) to get the threshold. This threshold was then used to be compare to log probabilities. This led to everything being pruned if max_p < 0.3 (e.g. if max_p=0.2 then threshold=0.2*-4=-0.8 which leads to log(max_p) < threshold). Anyway, I changed this to directly pass a probability to ExportToFile, so that probabilities are compare to probabilities.

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