|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasen.core.linguistics.LexicalTreeAnalyzer
Employes a lexical tree approach to word recognition.
Based on a sample corpus, the analyser builds a tree of characters such that each characters in a word is a node in the tree.
When a word with a similar character sequence is found, the path to the next character is strengthened
Constructor Summary | |
LexicalTreeAnalyzer()
|
Method Summary | |
double |
computeWordValue(String word)
Computes the probability that the given sequence of characters is an English word. |
void |
initialize()
Creates and initialized the analyzer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LexicalTreeAnalyzer()
Method Detail |
public void initialize() throws IOException
IOException
public double computeWordValue(String word)
This works on the premise that most English words exhibit a similar set of character sequence patterns in both their prefix, body and suffix.
The value of the word is determined by analysis if the characters in the word against the values in both the forward and backward lexical trees.
word
- The word to be tested
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |