Kernel: Python 3
context.cotrie(data="", format="default", filename="")
Generate a "cotrie" automaton from a finite series, given as a file of (weighted) words.
Arguments:
data: a string containing the list of words
format:
"default": same as "monomials"
"monomials": each line contains a weighted word in the monomials syntax:
<2>foo
"words": each line contains a single word:
foo
. In this case<2>foo
is read as a five-letter word.
Postconditions:
Result.is_codeterministic()
See also:
Examples
Words (finite language)
In [1]:
In [2]:
Overwriting words
In [3]:
Weighted words (finite series)
In [4]:
Tuples of words
In [5]: