Uses of Class
morfologik.fsa.FSA
-
Packages that use FSA Package Description morfologik.fsa morfologik.fsa.builders morfologik.speller morfologik.stemming -
-
Uses of FSA in morfologik.fsa
Subclasses of FSA in morfologik.fsa Modifier and Type Class Description classCFSACFSA (Compact Finite State Automaton) binary format implementation.classCFSA2CFSA (Compact Finite State Automaton) binary format implementation, version 2:CFSA2.BIT_TARGET_NEXTapplicable on all arcs, not necessarily the last one. v-coded goto field v-coded perfect hashing numbers, if any 31 most frequent labels integrated with flags byteclassFSA5FSA binary format implementation for version 5.Fields in morfologik.fsa declared as FSA Modifier and Type Field Description private FSAByteSequenceIterator. fsaThe FSA to which this iterator belongs.private FSAFSATraversal. fsaTarget automaton.Methods in morfologik.fsa with type parameters of type FSA Modifier and Type Method Description static <T extends FSA>
TFSA. read(java.io.InputStream stream, java.lang.Class<? extends T> clazz)A factory for reading a specific FSA subclass, including proper casting.Methods in morfologik.fsa that return FSA Modifier and Type Method Description static FSAFSA. read(java.io.InputStream stream)A factory for reading automata in any of the supported versions.Constructors in morfologik.fsa with parameters of type FSA Constructor Description ByteSequenceIterator(FSA fsa)Create an instance of the iterator iterating over all automaton sequences.ByteSequenceIterator(FSA fsa, int node)Create an instance of the iterator for a given node.FSATraversal(FSA fsa)Traversals of the given FSA. -
Uses of FSA in morfologik.fsa.builders
Subclasses of FSA in morfologik.fsa.builders Modifier and Type Class Description (package private) classConstantArcSizeFSAAn FSA with constant-size arc representation produced directly byFSABuilder.Fields in morfologik.fsa.builders declared as FSA Modifier and Type Field Description private FSAFSAInfo.FinalStateVisitor. fsaprivate FSAFSAInfo.NodeVisitor. fsaMethods in morfologik.fsa.builders that return FSA Modifier and Type Method Description static FSAFSABuilder. build(byte[][] input)Build a minimal, deterministic automaton from a sorted list of byte sequences.static FSAFSABuilder. build(java.lang.Iterable<byte[]> input)Build a minimal, deterministic automaton from an iterable list of byte sequences.FSAFSABuilder. complete()Methods in morfologik.fsa.builders with parameters of type FSA Modifier and Type Method Description static java.util.TreeMap<java.lang.Integer,java.lang.Integer>FSAUtils. calculateFanOuts(FSA fsa, int root)Calculate fan-out ratio (how many nodes have a given number of outgoing arcs).private com.carrotsearch.hppc.IntIntHashMapCFSA2Serializer. computeInlinkCount(FSA fsa)Compute in-link count for each state.private voidCFSA2Serializer. computeLabelsIndex(FSA fsa)Compute a set of labels to be integrated with the flags field.private booleanFSA5Serializer. emitArcs(FSA fsa, java.io.OutputStream os, int[] linearized, int gtl, int nodeDataLength)Update arc offsets assuming the given goto length.private intCFSA2Serializer. emitNodeArcs(FSA fsa, java.io.OutputStream os, int state, int nextState)Emit all arcs of a single node.private intCFSA2Serializer. emitNodes(FSA fsa, java.io.OutputStream os, com.carrotsearch.hppc.IntArrayList linearized)Update arc offsets assuming the given goto length.private com.carrotsearch.hppc.IntArrayListCFSA2Serializer. linearize(FSA fsa)Linearization of states.private int[]FSA5Serializer. linearize(FSA fsa)Linearization of states.private intCFSA2Serializer. linearizeAndCalculateOffsets(FSA fsa, com.carrotsearch.hppc.IntArrayList states, com.carrotsearch.hppc.IntArrayList linearized, com.carrotsearch.hppc.IntIntHashMap offsets)Linearize all states, puttingstatesin front of the automaton and calculating stable state offsets.private voidCFSA2Serializer. linearizeState(FSA fsa, com.carrotsearch.hppc.IntStack nodes, com.carrotsearch.hppc.IntArrayList linearized, java.util.BitSet visited, int node)Add a state to linearized list.static com.carrotsearch.hppc.IntIntHashMapFSAUtils. rightLanguageForAllStates(FSA fsa)Calculate the size of "right language" for each state in an FSA.<T extends java.io.OutputStream>
TCFSA2Serializer. serialize(FSA fsa, T os)<T extends java.io.OutputStream>
TFSA5Serializer. serialize(FSA fsa, T os)Serialize root statesto an output stream inFSA5format.<T extends java.io.OutputStream>
TFSASerializer. serialize(FSA fsa, T os)Serialize a finite state automaton to an output stream.static voidFSAUtils. toDot(java.io.Writer w, FSA fsa, int node)Saves the right-language reachable from a given FSA node, formatted as an input for the graphviz package (expressed in thedotlanguage), to the given writer.static java.lang.StringFSAUtils. toDot(FSA fsa, int node)Returns the right-language reachable from a given FSA node, formatted as an input for the graphviz package (expressed in thedotlanguage).private static voidFSAUtils. visitNode(java.io.Writer w, int d, FSA fsa, int s, java.util.BitSet visited)Constructors in morfologik.fsa.builders with parameters of type FSA Constructor Description FinalStateVisitor(FSA fsa)FSAInfo(FSA fsa)NodeVisitor(FSA fsa) -
Uses of FSA in morfologik.speller
Fields in morfologik.speller declared as FSA Modifier and Type Field Description private FSASpeller. fsaThe FSA we are using. -
Uses of FSA in morfologik.stemming
Fields in morfologik.stemming declared as FSA Modifier and Type Field Description FSADictionary. fsaFSAautomaton with the compiled dictionary data.private FSADictionaryLookup. fsaThe FSA we are using.Constructors in morfologik.stemming with parameters of type FSA Constructor Description Dictionary(FSA fsa, DictionaryMetadata metadata)It is strongly recommended to use static methods in this class for reading dictionaries.
-