Difference: PyniniPathsDoc (2 vs. 3)

Revision 32018-06-29 - KyleGorman

Line: 1 to 1
 

Path iteration

This describes classes for iterating over paths in an FST.

Line: 24 to 24
 iteration (e.g., by knowing the FST is acyclic, or limiting the number of iterated paths).
Changed:
<
<

fst::StringPaths

>
>

fst::StringPathIterator

  This template class is a thin wrapper around fst::PathIterator which adds IString() and OString() methods returning input and output strings. These
Line: 32 to 32
 printing mode is controlled by the enum fst::StringTokenType (see here for more information).

At construction time, users specify printing modes and/or symbol tables for the

Changed:
<
<
input and output sides of the FST, whether or not epsilon labels should be ignored when printing the string, and whether or not the FST should be checked
>
>
input and output sides of the FST, and whether or not the FST should be checked
 for acyclity.

This iterator:

Line: 47 to 46
 iteration (e.g., by knowing the FST is acyclic, or limiting the number of iterated paths).
Changed:
<
<

pynini.StringPaths

>
>

pynini.StringPathIterator

 
Changed:
<
<
Pynini wraps fst::script::StringPathsClass with the Python class StringPaths. As in C++, this object can be constructed directly from an FST argument, or it can be constructed using the paths() method of an (acyclic)
>
>
Pynini wraps fst::script::StringPathIteratorClass with the Python class StringPathIterator. As in C++, this object can be constructed directly from an FST argument, or it can be constructed using the paths() method of an (acyclic)
 pynini.Fst instance.

Both construction methods take token types for both input- and output sides; for

 
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