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

Supporting subword-nmt BPE tokenization #415

Closed
xwli-chelsea opened this issue Oct 8, 2020 · 1 comment
Closed

Supporting subword-nmt BPE tokenization #415

xwli-chelsea opened this issue Oct 8, 2020 · 1 comment

Comments

@xwli-chelsea
Copy link

Hi,

The BPE tokenization from subword-nmt (https://github.com/rsennrich/subword-nmt) is also a widely used tokenization algorithm. Are there plans to also support it in tf.text?

Thanks!

@thuang513
Copy link
Member

BPE is supported in SentencePiece[1], you can use SentencePiece models in tf.text's SentencePiece tokenizer op [2].

[1] https://github.com/google/sentencepiece
[2] https://github.com/tensorflow/text/blob/master/docs/api_docs/python/text/SentencepieceTokenizer.md

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