org.apache.uima.examples.tagger.trainAndTest
Class BrownReader
java.lang.Object
org.apache.uima.examples.tagger.trainAndTest.BrownReader
- All Implemented Interfaces:
- CorpusReader
public class BrownReader
- extends Object
- implements CorpusReader
Reader for Brown Corpus from NLTK Distribution (nltk.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrownReader
public BrownReader()
read_corpus
public List<Token> read_corpus(String directory,
MappingInterface mapping)
- Reads Brown Corpus from NLTK Distribution Format. Iterates over all files in the directory,
which are in a sentence per line format, and returns all tokens in the collection in a List of
Token
s}
- Specified by:
read_corpus
in interface CorpusReader
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.