Logo Lanfrica

mvzaanen/sesotho_syllabifier

Domain:

natural language processing

Record type:

software
Creator:
mvz
Host:
# Sesotho syllabifier Within this project, syllabification systems for Sesotho are developed. At the moment, two systems are available: 1. Rule-based system: This system can be found in the `rule` directory. 2. TeX-based system: This system can be found in the `tex` directory. The syllabification systems take as input Sesotho words and provides a syllabified version of the words as output. Quoting Wikipedia Wikipedia syllable > A syllable is a unit of organization for a sequence of speech sounds. It is typically made up of a syllable nucleus with optional initial and final margins. Syllables are often considered the phonological "building blocks" of words. ## Getting started ### Interfaces The interface of the syllabification systems is essentially the same for both systems with only one difference. Both systems can be started by running the Python script `syllabifier.py` (in either the `rule` or `tex` directories). This script reads Sesotho words from an input file and provides the syllabified version of these words in the output file. The `syllabifier.py` script expects at least two arguments: `-i` or ``--input`` that requires a filename of a text file containing the Sesotho words and `-o` or `--output` that requires a filename in which the syllabified version of the input Sesotho words are stored. Additional arguments are `-h` or `--help` which provides the usage of the Python scripts, and `-d` or `--debug` which turns on debug information when running the script. The TeX-based system requires an additional argument `-p` or `--patterns` which requires a patterns file. This file can be created using TeX's hyphenation system. The required scripts for these are provided in the package as well, however, the `patgen` system. The `patgen` system can be found at CTAN and is distributed with programs coming from the TeX project. The easiest way of creating the patterns file is through the `do_all.sh` bash script. This script takes one argument, which …