Closed GladB closed 6 years ago
Indeed, that little exemple fails as we have two word separators at the end:
$ echo "n o ;eword" | wordseg-syll cspanish_onsets.txt cspanish_vowels.txt
n o ;esyll;eword;eword
I'm working on it but this is not obvious. Do you have other toy examples like that?
For the second part of the issue, you can already specify the output syllable separator using the usual -s
argument:
echo "n o ;eword" | wordseg-syll -s "SYLL" cspanish_onsets.txt cspanish_vowels.txt
n o SYLL;eword;eword
I fixed the ;eword;eword
problem.
Spaces are supported as syllable separators:
$ echo "n;o;word" | wordseg-syll -p ";" -s " " -w "word" cspanish_onsets.txt cspanish_vowels.txt
n;o; word
There is a problem when stating different phone and word separators (with the parameters -p ' ' -w ';eword' for example), the only case working for me is when there is no phone separator in the file and spaces as word separator (in which case I use "-p '_' -w ' ' "); moreover, it would be useful to be able to specify what the syllable separator should be in the output (it is ";esyll" for now).