mirror of
https://github.com/google/sentencepiece.git
synced 2024-10-26 11:38:45 +03:00
Update README.md
This commit is contained in:
parent
2f4da31b56
commit
351600c297
@ -111,7 +111,7 @@ To enable subword regularization, you would like to integrate SentencePiece libr
|
||||
>>> import sentencepiece as spm
|
||||
>>> s = spm.SentencePieceProcessor(model_file='spm.model')
|
||||
>>> for n in range(5):
|
||||
... s.encode('New York', out_type=str, enable_sampling=True, alpha=0.1, nbest=-1)
|
||||
... s.encode('New York', out_type=str, enable_sampling=True, alpha=0.1, nbest_size=-1)
|
||||
...
|
||||
['▁', 'N', 'e', 'w', '▁York']
|
||||
['▁', 'New', '▁York']
|
||||
|
Loading…
Reference in New Issue
Block a user