|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectDFA
FST
| Constructor Summary | |
FST(int n,
Alphabet a)
creates an FST with n states and alphabet a |
|
| Method Summary | |
java.lang.String[] |
lcp()
Returns the vector of longest common prefixes of an FST. |
java.lang.String |
lcp(java.lang.String s,
java.lang.String t)
Returns the longest common prefix of the strings s and t. |
static void |
main(java.lang.String[] args)
|
void |
normalize()
Normalizes the FST, pushing the output to the left. |
void |
refine(java.lang.String[] m)
Realizes the iteration m=Um+v with operations in the semiring (lcp,.,0,\e) where
m is a vector of strings, U
the matrix of outputs and v the vector
of terminal outputs. |
java.lang.String |
toString()
|
| Methods inherited from class DFA |
minimize, next |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FST(int n,
Alphabet a)
n states and alphabet a
| Method Detail |
public java.lang.String toString()
toString in class DFA
public java.lang.String lcp(java.lang.String s,
java.lang.String t)
s and t.
s - a stringt - a string
s and t.public void refine(java.lang.String[] m)
(lcp,.,0,\e) where
m is a vector of strings, U
the matrix of outputs and v the vector
of terminal outputs.
m - an array of strings or 0 (=null)
public java.lang.String[] lcp()
lcp[p] is the longest common prefix of the
strings star(p,w)
public void normalize()
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||