|
|||||||||
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.learn.experiments.SubTextBase
public class SubTextBase
A read-only TextBase which is a subset of another TextBase.
Nested Class Summary | |
---|---|
static class |
SubTextBase.UnknownDocumentException
|
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.text.AbstractTextBase |
---|
tokenizer |
Constructor Summary | |
---|---|
SubTextBase(TextBase base,
java.util.Iterator<Span> documentSpanIterator)
|
Method Summary | |
---|---|
boolean |
contains(Span span)
True if a span is contained by this TextBase |
Span |
documentSpan(java.lang.String documentId)
Looks up the document Span for the given documentId. |
java.util.Iterator<Span> |
documentSpanIterator()
Returns an iterator over the documents in this TextBase. |
Document |
getDocument(java.lang.String documentId)
Returns the Document with the given ID |
Tokenizer |
getTokenizer()
Returns the Tokenizer used on the documents in this text base. |
int |
size()
Returns the number of documents contained in this TextBase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubTextBase(TextBase base, java.util.Iterator<Span> documentSpanIterator) throws SubTextBase.UnknownDocumentException
SubTextBase.UnknownDocumentException
Method Detail |
---|
public boolean contains(Span span)
public Tokenizer getTokenizer()
TextBase
Tokenizer
used on the documents in this text base.
getTokenizer
in interface TextBase
getTokenizer
in class AbstractTextBase
public Document getDocument(java.lang.String documentId)
TextBase
Document
with the given ID
getDocument
in interface TextBase
getDocument
in class AbstractTextBase
public int size()
TextBase
size
in interface TextBase
size
in class AbstractTextBase
public java.util.Iterator<Span> documentSpanIterator()
TextBase
documentSpanIterator
in interface TextBase
documentSpanIterator
in class AbstractTextBase
public 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 |