We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
10.12 机器翻译一节初始化Vocab中加入'<unk>',即: vocab = torchtext.vocab.Vocab(collections.Counter(all_tokens), specials=['<unk>', PAD, BOS, EOS]) 这样结果的词序索引与原书相同,最后预测不在词典里的词时也不会报错.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
10.12 机器翻译一节初始化Vocab中加入'<unk>',即:
vocab = torchtext.vocab.Vocab(collections.Counter(all_tokens), specials=['<unk>', PAD, BOS, EOS])
这样结果的词序索引与原书相同,最后预测不在词典里的词时也不会报错.
The text was updated successfully, but these errors were encountered: