edu.cmu.minorthird.text
Class Document
java.lang.Object
edu.cmu.minorthird.text.Document
- All Implemented Interfaces:
- java.io.Serializable
public class Document
- extends java.lang.Object
- implements java.io.Serializable
This class holds a single text 'document'.
It holds the real text, plus all the tokens.
This is the only direct pointer to the documentText.
- Author:
- ksteppe
- See Also:
- Serialized Form
Constructor Summary |
Document(java.lang.String documentId,
java.lang.String documentText)
|
Document(java.lang.String documentId,
java.lang.String documentText,
int charOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
charOffset
public int charOffset
Document
public Document(java.lang.String documentId,
java.lang.String documentText)
Document
public Document(java.lang.String documentId,
java.lang.String documentText,
int charOffset)
getText
public java.lang.String getText()
setTokens
public void setTokens(TextToken[] tokenArray)
getId
public java.lang.String getId()
getTokens
public TextToken[] getTokens()