|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.parser.dvparser.FilterConfusingRules
public class FilterConfusingRules
This filter rejects Trees which have unary or binary productions
which the given parser does not contain.
One situation where this happens often is when grammar compaction
is turned on; this can often result in a Tree where there is no
BinaryRule which could explicitely create a particular node, but
the Tree is still valid. However, for various applications of the
DVParser, this kind of Tree is useless. A good way to eliminate
most of this kind of tree is to make sure the parser is trained
with -compactGrammar 0.
| Constructor Summary | |
|---|---|
FilterConfusingRules(LexicalizedParser parser)
|
|
| 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 FilterConfusingRules(LexicalizedParser parser)
| 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 | ||||||||