Code for compiling an ATT graphviz ("dot") representation of
an FST into a Python FST rep.
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
initialize_reader(self)
This function zeroes out all the records kept during the reading of a
fst file so that the same compiler can be used on a new file safely. |
source code
|
|
dictionary of dictionary of dictionaries
|
read_file(self,
file)
Open dot file file and return raw_dic , a
dictionary representation of the FST represented there. |
source code
|
|
|
|
None
|
classify_node(self,
node_name,
att_dic,
node_dic)
Determine whether node_name is a start state and whether it is a
final state. |
source code
|
|
|
classify_link(self,
src_node_name,
tgt_node_name,
att_dic,
node_dic)
Turn the label in a dot file string rep into a series of transitions
in the Python FST we are building. |
source code
|
|
|
|
|
|
dictionary
|
process_atts(self,
att_string)
Turn a string rep of node or transition attributes from a dot file
into a dictionary with keys = to attributes. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|