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

Inconsistent whitespace #17

Open
reynoldsnlp opened this issue Sep 19, 2019 · 0 comments
Open

Inconsistent whitespace #17

reynoldsnlp opened this issue Sep 19, 2019 · 0 comments

Comments

@reynoldsnlp
Copy link

I make an LM using this tutorial, but I could not parse the resulting arpa file with other tools because of inconsistent/nonstandard whitespace.

First, in the \data\ section, there were tabs before the frequency count, indicated by <TAB> below:

\data\
ngram 1=<TAB>7
ngram 2=<TAB>7

Second, the automatically generated <unk> token had a space instead of a tab, although every other token was separated from its frequency by a tab.

Third, the \2-grams: and \3-grams: lines were not preceded by an empty line.

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

1 participant