cosmel.repo.word module

class cosmel.repo.word.WordSet(lex_file)[source]

Bases: collections.abc.Collection

The set of words.

  • Item: the word (str).
Parameters:lex_file (str) – the path to the lexicon file.
class cosmel.repo.word.HeadSet(repo_root)[source]

Bases: cosmel.repo.word.WordSet

The set of head words.

  • Item: the head word (str).
Parameters:repo_root (str) – the path to the folder containing data files.
class cosmel.repo.word.InfixSet(repo_root)[source]

Bases: cosmel.repo.word.WordSet

The set of infix words.

  • Item: the infix word (str).
Parameters:repo_root (str) – the path to the folder containing data files.