public class LabelAwareFileSentenceIterator extends FileSentenceIterator implements LabelAwareSentenceIterator
cache, currentFile, currLineIterator, file, fileIterator
preProcessor
Constructor and Description |
---|
LabelAwareFileSentenceIterator(java.io.File dir) |
LabelAwareFileSentenceIterator(SentencePreProcessor preProcessor,
java.io.File file)
Takes a single file or directory
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
currentLabel()
Returns the current label for nextSentence()
|
java.util.List<java.lang.String> |
currentLabels()
For multi label problems
|
hasNext, nextSentence, reset
finish, getPreProcessor, setPreProcessor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finish, getPreProcessor, hasNext, nextSentence, reset, setPreProcessor
public LabelAwareFileSentenceIterator(SentencePreProcessor preProcessor, java.io.File file)
preProcessor
- the sentence pre processorfile
- the file or folder to iterate overpublic LabelAwareFileSentenceIterator(java.io.File dir)
public java.lang.String currentLabel()
LabelAwareSentenceIterator
currentLabel
in interface LabelAwareSentenceIterator
public java.util.List<java.lang.String> currentLabels()
LabelAwareSentenceIterator
currentLabels
in interface LabelAwareSentenceIterator