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

no pair has frequency >= 2. Stopping #33

Closed
yapingzhao opened this issue Dec 20, 2017 · 2 comments
Closed

no pair has frequency >= 2. Stopping #33

yapingzhao opened this issue Dec 20, 2017 · 2 comments

Comments

@yapingzhao
Copy link

python -m learn_joint_bpe_and_vocab --input corpus.en corpus.ch -s 30000 -o bpe.codes --write-vocabulary bpe.vocab.en bpe.vocab.ch
After running the above command, the following hints appear:no pair has frequency >= 2. Stopping。
I don't understand what this message means. I hope to give it a answer, thank you.

@rsennrich
Copy link
Owner

learn_bpe terminates under two conditions:

  • you have reached the defined number of merge operations.
  • there is no pair of subword units that occurs more than once.
    if you try to learn BPE operations on a small corpus, you might encounter the second condition. Depending on your use case, this might be fine, but I would usually recommend to use a large corpus to learn BPE operations.

@yapingzhao
Copy link
Author

yapingzhao commented Jan 2, 2018

Ok, I see.Thanks for your answer.
Thanks again!

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