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

Decoded string still have words that are not in lexicon with KenLMScorer #10

Closed
ybzhou opened this issue Jul 13, 2017 · 3 comments
Closed

Comments

@ybzhou
Copy link

ybzhou commented Jul 13, 2017

When using LM based scorer, I still see words that are not in the lexicon appearing. Is it correct behavior? What beam search strategy is used, is it the same as described in https://arxiv.org/pdf/1408.2873.pdf ?

Thanks.

@ryanleary
Copy link
Collaborator

There is a low, but non-zero, probability assigned to words not in the lexicon. See https://github.com/ryanleary/pytorch-ctc/blob/master/pytorch_ctc/src/ctc_beam_scorer_klm.h#L95

@ybzhou
Copy link
Author

ybzhou commented Jul 14, 2017

I see, thanks for the reply. After changing it to a really small value it worked.

@ryanleary
Copy link
Collaborator

I'll expose this in a future version as a configuration parameter in Python. See #11.

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

No branches or pull requests

2 participants