|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.textkit4j.matching.NGrams
public class NGrams
(Plagarized from Wikipedia) An n-gram is a sub-sequence of n items from a given sequence. n-grams are used in various areas of statistical natural language processing and genetic sequence analysis. The NGrams class is a map/table of counts keyed by n-gram sequences of characters or words. The idea is this can be a handy model for classification/clustering/grouping applications.
| Method Summary | |
|---|---|
java.lang.Double |
similiarity(NGrams other)
Calculates the similarity of this NGrams with the other NGrams as the cosine of the angle between the two NGrams vector representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Double similiarity(NGrams other)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||