public abstract class CategorizedCorpusBase extends Object implements CategorizedCorpus
Modifier and Type | Field and Description |
---|---|
protected Map<String,Corpus> |
categoryCorpusMap |
Constructor and Description |
---|
CategorizedCorpusBase() |
Modifier and Type | Method and Description |
---|---|
void |
addCorpus(String category,
Corpus corpus) |
void |
addCorpus(String category,
Tag.Tagset tagset,
String language,
String name,
String description,
org.apache.uima.collection.CollectionReaderDescription reader) |
Set<String> |
getCategories() |
Iterable<Sentence> |
getSentences() |
Iterable<Sentence> |
getSentences(int maxItems) |
Iterable<Sentence> |
getSentences(String category) |
Iterable<TaggedToken> |
getTaggedTokens() |
Iterable<TaggedToken> |
getTaggedTokens(int maxItems) |
Iterable<TaggedToken> |
getTaggedTokens(String category) |
Iterable<Tag> |
getTags() |
Iterable<Tag> |
getTags(int maxItems) |
Iterable<Tag> |
getTags(String category) |
Tag.Tagset |
getTagset() |
Iterable<Text> |
getTexts() |
Iterable<Text> |
getTexts(String category) |
Iterable<String> |
getTokens() |
Iterable<String> |
getTokens(int maxItems) |
Iterable<String> |
getTokens(String category) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLanguage
getDescription, getLanguage, getName
public void addCorpus(String category, Tag.Tagset tagset, String language, String name, String description, org.apache.uima.collection.CollectionReaderDescription reader) throws CorpusException
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 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<Sentence> getSentences() throws CorpusException
getSentences
in interface Corpus
CorpusException
public Iterable<Sentence> getSentences(int maxItems) throws CorpusException
getSentences
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(String category) throws CorpusException
getTokens
in interface CategorizedCorpus
CorpusException
public Iterable<TaggedToken> getTaggedTokens(String category) throws CorpusException
getTaggedTokens
in interface CategorizedCorpus
CorpusException
public Iterable<Sentence> getSentences(String category) throws CorpusException
getSentences
in interface CategorizedCorpus
CorpusException
public Iterable<Tag> getTags(String category) throws CorpusException
getTags
in interface CategorizedCorpus
CorpusException
public Iterable<Text> getTexts(String category) throws CorpusException
getTexts
in interface CategorizedCorpus
CorpusException
public Set<String> getCategories()
getCategories
in interface CategorizedCorpus
public Tag.Tagset getTagset() throws CorpusException
getTagset
in interface Corpus
CorpusException
Copyright © 2011-2014. All Rights Reserved.