|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.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()
TextBaseTokenizer used on the documents in this text base.
getTokenizer in interface TextBasegetTokenizer in class AbstractTextBasepublic Document getDocument(java.lang.String documentId)
TextBaseDocument with the given ID
getDocument in interface TextBasegetDocument in class AbstractTextBasepublic int size()
TextBase
size in interface TextBasesize in class AbstractTextBasepublic java.util.Iterator<Span> documentSpanIterator()
TextBase
documentSpanIterator in interface TextBasedocumentSpanIterator in class AbstractTextBasepublic Span documentSpan(java.lang.String documentId)
TextBase
documentSpan in interface TextBasedocumentSpan in class AbstractTextBase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||