|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.filter.lingo.util.suffixarrays.wrapper.AbstractIntWrapper
org.carrot2.filter.lingo.common.AbstractSnippetsIntWrapper
public abstract class AbstractSnippetsIntWrapper
| Nested Class Summary | |
|---|---|
(package private) static class |
AbstractSnippetsIntWrapper.WordWrapper
|
| Field Summary | |
|---|---|
protected int |
distinctWordCount
Distint word count |
protected static String |
DOCUMENT_DELIMITER
Document delimiter char |
protected int |
documentCount
Input documents |
protected int[] |
documentIndices
Document indices corresponding to word indices are stored here to support wordIndex -> documentIndex mapping. |
protected String |
documentsData
All documents concatenated |
protected int[] |
stopWordCodes
Int codes of stop words |
protected int[] |
wordPositions
Starting positions of all words comprising the input documents are stored here to facilitate wordIndexRange -> realString mapping. |
| Fields inherited from class org.carrot2.filter.lingo.util.suffixarrays.wrapper.AbstractIntWrapper |
|---|
intData |
| Constructor Summary | |
|---|---|
AbstractSnippetsIntWrapper()
|
|
| Method Summary | |
|---|---|
abstract Object |
clone()
|
protected abstract void |
createIntData()
|
int |
getDistinctWordCount()
|
int |
getDocumentCount()
|
int[] |
getDocumentIndices()
|
int[] |
getStopWordCodes()
|
String |
getStringRepresentation(int from,
int to)
|
String |
getStringRepresentation(Substring substring)
Method getStringRepresentation. |
protected void |
setDocuments(String[] documents)
Method setDocuments. |
| Methods inherited from class org.carrot2.filter.lingo.util.suffixarrays.wrapper.AbstractIntWrapper |
|---|
asIntArray, length, reverse, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String DOCUMENT_DELIMITER
protected String documentsData
protected int documentCount
protected int distinctWordCount
protected int[] stopWordCodes
protected int[] wordPositions
protected int[] documentIndices
| Constructor Detail |
|---|
public AbstractSnippetsIntWrapper()
| Method Detail |
|---|
protected void setDocuments(String[] documents)
documents - protected abstract void createIntData()
public abstract Object clone()
clone in class ObjectObject.clone()public int[] getDocumentIndices()
public String getStringRepresentation(Substring substring)
IntWrapper
public String getStringRepresentation(int from,
int to)
public int[] getStopWordCodes()
public int getDocumentCount()
public int getDistinctWordCount()
|
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 | ||||||||