public abstract class CorpusBase extends Object implements CachableCorpus
Constructor and Description |
---|
CorpusBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.uima.collection.CollectionReaderDescription |
getReader() |
Iterable<Sentence> |
getSentences() |
Iterable<Sentence> |
getSentences(int maxItems) |
Iterable<TaggedToken> |
getTaggedTokens() |
Iterable<TaggedToken> |
getTaggedTokens(int maxItems) |
Iterable<Tag> |
getTags() |
Iterable<Tag> |
getTags(int maxItems) |
Iterable<Text> |
getTexts() |
Iterable<String> |
getTokens() |
Iterable<String> |
getTokens(int maxItems) |
void |
setUseCaching(boolean useCaching) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getLanguage, getName, getTagset
protected abstract org.apache.uima.collection.CollectionReaderDescription getReader()
public Iterable<Sentence> getSentences() throws CorpusException
getSentences
in interface Corpus
CorpusException
public Iterable<Sentence> getSentences(int maxItems) throws CorpusException
getSentences
in interface Corpus
CorpusException
public Iterable<TaggedToken> getTaggedTokens() throws CorpusException
getTaggedTokens
in interface Corpus
CorpusException
public Iterable<TaggedToken> getTaggedTokens(int maxItems) throws CorpusException
getTaggedTokens
in interface Corpus
CorpusException
public Iterable<Tag> getTags() throws CorpusException
getTags
in interface Corpus
CorpusException
public Iterable<Tag> getTags(int maxItems) throws CorpusException
getTags
in interface Corpus
CorpusException
public Iterable<Text> getTexts() throws CorpusException
getTexts
in interface Corpus
CorpusException
public Iterable<String> getTokens() throws CorpusException
getTokens
in interface Corpus
CorpusException
public Iterable<String> getTokens(int maxItems) throws CorpusException
getTokens
in interface Corpus
CorpusException
public void setUseCaching(boolean useCaching)
setUseCaching
in interface CachableCorpus
Copyright © 2011-2014. All Rights Reserved.