public class LabelAwareFileSentenceIterator extends FileSentenceIterator implements LabelAwareSentenceIterator
cache, currentFile, currLineIterator, file, fileIterator
preProcessor
Constructor and Description |
---|
LabelAwareFileSentenceIterator(File dir) |
LabelAwareFileSentenceIterator(SentencePreProcessor preProcessor,
File file)
Takes a single file or directory
|
Modifier and Type | Method and Description |
---|---|
String |
currentLabel()
Returns the current label for nextSentence()
|
List<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, File file)
preProcessor
- the sentence pre processorfile
- the file or folder to iterate overpublic LabelAwareFileSentenceIterator(File dir)
public String currentLabel()
LabelAwareSentenceIterator
currentLabel
in interface LabelAwareSentenceIterator
public List<String> currentLabels()
LabelAwareSentenceIterator
currentLabels
in interface LabelAwareSentenceIterator
Copyright © 2016. All Rights Reserved.