Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Nov 12, 2021
1 parent 3f30daa commit 862ae46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
- Blank phonemes between tokens and words (can be different phonemes with --blank-word)
- Disable phoneme learning in with --no-learn
- Fail on missing phoneme with --fail-on-missing
- BOS/EOS symbols are only added automatically with --auto-bos-eos
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ Now every other phoneme/token in the output is blank (`#` = 0).

It's common to include pad, bos (beginning of sentence), and eos (end of sentence) symbols. These typically occupy the first few phoneme ids, especially the pad symbol which is almost always 0.

You can have bos/eos added automatically:
You can have bos/eos added automatically with `--auto-bos-eos`:

```sh
echo 'a b c' | \
phonemes2ids --pad '_' --bos '^' --eos '$' \
phonemes2ids --auto-bos-eos \
--pad '_' --bos '^' --eos '$' \
--write-phonemes phonemes.txt
1 3 4 5 2
```
Expand Down

0 comments on commit 862ae46

Please sign in to comment.