edu.stanford.nlp.objectbank
Class ObjectBank.PathToFileFunction
java.lang.Object
edu.stanford.nlp.objectbank.ObjectBank.PathToFileFunction
- All Implemented Interfaces:
- Function<String,File>
- Enclosing class:
- ObjectBank<E>
public static class ObjectBank.PathToFileFunction
- extends Object
- implements Function<String,File>
This is handy for having getLineIterator return a collection of files for feeding into another ObjectBank.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectBank.PathToFileFunction
public ObjectBank.PathToFileFunction()
apply
public File apply(String str)
- Description copied from interface:
Function
- Converts a T1 to a different T2. For example, a Parser
will convert a Sentence to a Tree. A Tagger will convert a Sentence
to a TaggedSentence.
- Specified by:
apply
in interface Function<String,File>
- Parameters:
str
- The function's argument
- Returns:
- The function's evaluated value
Stanford NLP Group