Command-line sylliΒΆ

Sylli can be used from the command line. If you’re running an installed version on *nix, the command line sylli will be installed as sylli-command.

$ sylli-command -s 'la kasa'

Otherwise, just run as usual:

$ python sylli.py -s 'la kasa'

Full command documentation is available using the –help option:

$ sylli-command --help
Usage: sylli [OPTION]... [FILE|string]...
Divides a file, a string or a directory into syllable.

  -d, --directory            syllabify the content of a directory.
  -r, --recursive            syllabify directory recursively.
  -f, --file                 syllabify the content of a file.
  -s, --string               syllabify a string.
  -c, --config               force the use of an alternative sonority file.
                          It should always be used as the first argument.
  -z, --demo                 show a list of syllabifications examples.
  -h, --help                 display this help and exit.
  -v, --version              output version information and exit.

Exit status is 0 if OK, 1 if minor problem, 2 if serious trouble.
Time markers in timit files are automatically stripped off.

Example: sylli -s "la kapra"

Report bugs to <jacoponi@gmail.com>.

Previous topic

Manage Sonorities

Next topic

Sylli as a Python Module

This Page