|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.ie.stemming.analysis.LeastFrequentSequenceAnalysis
public class LeastFrequentSequenceAnalysis
This class provides methods to extract subsequences or skipsequences from texts or words. Here subsequences are consecutive sequences of characters with a certain length, e.g. the word "information" provides the subsequences of length 5 "infor", "nform", "forma" and so on. Skipsequences are subsequences with one character omitted, e.g. the word "information" provides the skipsequences "i.for", "in.or" and so on. Neither the first nor the last character of a subsequence are omitted in a skipsequence.
Constructor Summary | |
---|---|
LeastFrequentSequenceAnalysis()
|
Method Summary | |
---|---|
java.lang.String[] |
computeSkipSequences(java.lang.String word,
int length)
Computes and returns skipsequences of certain length from the given word. |
java.lang.String[] |
computeSubSequences(java.lang.String word,
int length)
Computes and returns subsequences of certain length from the given word. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LeastFrequentSequenceAnalysis()
Method Detail |
---|
public java.lang.String[] computeSubSequences(java.lang.String word, int length)
e.g. computeSubSequences("information", 5) returns
{"infor", "nform", "forma", "ormat", "rmati", "matio", "ation"}
word
- The word to compute subsequences fromlength
- Desired length of the returned subsequences
public java.lang.String[] computeSkipSequences(java.lang.String word, int length)
e.g. computeSkipSequences("information", 5) returns
{"i.for", "in.or", "inf.r", "n.orm", "nf.rm", ...}
word
- The word to compute skipsequences fromlength
- Desired length of the returned skipsequences
public static void main(java.lang.String[] args) throws java.net.URISyntaxException, java.io.IOException
args
-
java.io.IOException
java.net.URISyntaxException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |