Update README.md
This commit is contained in:
Родитель
8ff70f28bd
Коммит
c08f9c1d1d
|
@ -75,7 +75,7 @@ For Linux (x64) environment, you can install Python binary package of SentencePi
|
|||
% pip install sentencepiece
|
||||
```
|
||||
|
||||
For more detail, [Python module](python/README.md)
|
||||
For more detail, see [Python module](python/README.md)
|
||||
|
||||
|
||||
## Required packages (C++)
|
||||
|
@ -142,7 +142,7 @@ Use `--extra_options` flag to insert the BOS/EOS markers or reverse the input se
|
|||
% spm_encode --extra_options=reverse:bos:eos (reverse input and add <s> and </s>)
|
||||
```
|
||||
|
||||
SentencePiece supports nbest segmentation and segmentation sampling with `--output_format=(id|sample)_(piece|id)` flags.
|
||||
SentencePiece supports nbest segmentation and segmentation sampling with `--output_format=(nbest|sample)_(piece|id)` flags.
|
||||
```
|
||||
% spm_encode --model=<model_file> --output_format=sample_piece --nbest_size=-1 --alpha=0.5 < input > output
|
||||
% spm_encode --model=<model_file> --output_format=nbest_id --nbest_size=10 < input > output
|
||||
|
|
Загрузка…
Ссылка в новой задаче