Class FSAInfo
java.lang.Object
morfologik.fsa.builders.FSAInfo
Compute additional information about an FSA: number of arcs, nodes, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classComputes the exact number of final states.private static classComputes the exact number of states and nodes by recursively traversing the FSA. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intNumber of arcs in the automaton, excluding an arcs from the zero node (initial) and an arc from the start node to the root node.final intTotal number of arcs, counting arcs that physically overlap due to merging.final intNumber of final states (number of input sequences stored in the automaton).final intNumber of nodes in the automaton.final intArcs size (in serialized form). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nodeCount
public final int nodeCountNumber of nodes in the automaton. -
arcsCount
public final int arcsCountNumber of arcs in the automaton, excluding an arcs from the zero node (initial) and an arc from the start node to the root node. -
arcsCountTotal
public final int arcsCountTotalTotal number of arcs, counting arcs that physically overlap due to merging. -
finalStatesCount
public final int finalStatesCountNumber of final states (number of input sequences stored in the automaton). -
size
public final int sizeArcs size (in serialized form).
-
-
Constructor Details
-
FSAInfo
-
FSAInfo
public FSAInfo(int nodeCount, int arcsCount, int arcsCountTotal, int finalStatesCount)
-
-
Method Details
-
toString
-