|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.LengthTreeFilter
public class LengthTreeFilter
Only accept trees that are short enough (less than or equal to length). It's not always about length, but in this case it is.
Constructor Summary | |
---|---|
LengthTreeFilter(int length)
|
Method Summary | |
---|---|
boolean |
accept(Tree tree)
Checks if the given object passes the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LengthTreeFilter(int length)
Method Detail |
---|
public boolean accept(Tree tree)
Filter
accept
in interface Filter<Tree>
tree
- an object to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |