public class FilteringTreebank extends Treebank
DEFAULT_TREE_FILE_SUFFIX
Constructor and Description |
---|
FilteringTreebank(Treebank treebank,
java.util.function.Predicate<Tree> filter) |
Modifier and Type | Method and Description |
---|---|
void |
apply(TreeVisitor tv)
Applies the TreeVisitor, but only to the trees that pass the
filter.
|
void |
clear()
Empty a
Treebank . |
Iterator<Tree> |
iterator() |
void |
loadPath(File path,
FileFilter filt)
Load trees from given path specification.
|
decimate, encoding, loadPath, loadPath, loadPath, loadPath, loadPath, remove, size, textualSummary, textualSummary, toString, transform, treeReaderFactory
add, addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public FilteringTreebank(Treebank treebank, java.util.function.Predicate<Tree> filter)
public void clear()
Treebank
.clear
in interface Collection<Tree>
clear
in class Treebank
public void loadPath(File path, FileFilter filt)
public void apply(TreeVisitor tv)