|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.AbstractTextBase edu.cmu.minorthird.text.MutableTextBase
public abstract class MutableTextBase
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.text.AbstractTextBase |
---|
tokenizer |
Constructor Summary | |
---|---|
MutableTextBase(Tokenizer t)
|
Method Summary | |
---|---|
abstract Span |
documentSpan(java.lang.String documentId)
Looks up the document Span for the given documentId. |
abstract java.util.Iterator<Span> |
documentSpanIterator()
Returns an iterator over the documents in this TextBase. |
abstract Document |
getDocument(java.lang.String docID)
Returns the Document with the given ID |
abstract void |
loadDocument(java.lang.String documentId,
java.lang.String text)
Creates a new document for the document contained in documentString and referenced by documentId. |
abstract void |
loadDocument(java.lang.String documentId,
java.lang.String documentString,
int charOffset)
Creates a new document for the document contained in documentString and referenced by documentId. |
abstract void |
setDocumentGroupId(java.lang.String documentId,
java.lang.String documentGroupId)
Sets the group that a document belongs to |
abstract int |
size()
Returns the number of documents contained in this TextBase. |
Methods inherited from class edu.cmu.minorthird.text.AbstractTextBase |
---|
getTokenizer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MutableTextBase(Tokenizer t)
Method Detail |
---|
public abstract void loadDocument(java.lang.String documentId, java.lang.String text)
public abstract void loadDocument(java.lang.String documentId, java.lang.String documentString, int charOffset)
public abstract void setDocumentGroupId(java.lang.String documentId, java.lang.String documentGroupId)
public abstract int size()
TextBase
size
in interface TextBase
size
in class AbstractTextBase
public abstract Document getDocument(java.lang.String docID)
TextBase
Document
with the given ID
getDocument
in interface TextBase
getDocument
in class AbstractTextBase
public abstract java.util.Iterator<Span> documentSpanIterator()
TextBase
documentSpanIterator
in interface TextBase
documentSpanIterator
in class AbstractTextBase
public abstract Span documentSpan(java.lang.String documentId)
TextBase
documentSpan
in interface TextBase
documentSpan
in class AbstractTextBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |