Difference: PyniniPathsDoc (3 vs. 4)

Revision 42018-10-08 - KyleGorman

Line: 1 to 1
 

Path iteration

This describes classes for iterating over paths in an FST.

Line: 6 to 6
 

fst::PathIterator

This template class provides a basic iterator over paths. It is constructed from

Changed:
<
<
a const Fst & and an optional argument that specifies whether or not the
>
>
a const Fst & and an optional argument that specifies whether or not the
 FST should be checked for acyclicity during construction.

The ILabels() and OLabels() methods return vectors of input and output

Line: 55 to 55
 the SYMBOL token type, simply provide a pynini.SymbolTable argument.

This class provides the normal iterator methods (next(), done(), reset(),

Changed:
<
<
and error()).
>
>
and error()), the accessor methods (ilabels(), istring(), olabels(), ostring, weight()), and speciality iterators (istrings(), ostrings(), and weights(); items() returns triples of input string, output string, and weight).
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback