|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.text.preprocessing.PreprocessingContext.AllPhrases
public class PreprocessingContext.AllPhrases
Information about all frequently appearing sequences of words found in the input
PreprocessingContext.documents. Each entry in each array corresponds to one
sequence.
All arrays in this class have the same length and values across different arrays correspond to each other for the same index.
| Field Summary | |
|---|---|
int[] |
tf
Term frequency of the phrase. |
int[][] |
tfByDocument
Term frequency of the phrase for each document. |
int[][] |
wordIndices
Pointers to PreprocessingContext.AllWords for each word in the phrase sequence. |
| Constructor Summary | |
|---|---|
PreprocessingContext.AllPhrases()
|
|
| Method Summary | |
|---|---|
CharSequence |
getPhrase(int index)
Returns space-separated words that constitute this phrase. |
int |
size()
Returns length of all arrays in this PreprocessingContext.AllPhrases. |
String |
toString()
For debugging purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int[][] wordIndices
PreprocessingContext.AllWords for each word in the phrase sequence.
This array is produced by PhraseExtractor.
public int[] tf
This array is produced by PhraseExtractor.
public int[][] tfByDocument
PreprocessingContext.AllWords.tfByDocument: consecutive pairs of:
document index, frequency.
This array is produced by PhraseExtractor.
| Constructor Detail |
|---|
public PreprocessingContext.AllPhrases()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic CharSequence getPhrase(int index)
public int size()
PreprocessingContext.AllPhrases.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||