public class FilteringTreebank extends Treebank
DEFAULT_TREE_FILE_SUFFIX| Constructor and Description |
|---|
FilteringTreebank(Treebank treebank,
Filter<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, treeReaderFactoryadd, addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic void clear()
Treebank.clear in interface Collection<Tree>clear in class Treebankpublic void loadPath(File path, FileFilter filt)
public void apply(TreeVisitor tv)