edu.stanford.nlp.parser.lexparser
Class Test.Constraint
java.lang.Object
edu.stanford.nlp.parser.lexparser.Test.Constraint
- Enclosing class:
- Test
public static class Test.Constraint
- extends Object
A Constraint represents a restriction on possible parse trees to
consider. It says that a parse cannot be postulated that would
contradict having a constituent from position start to end, and that
any constituent postulated with this span must match the regular
expression given by state. Note, however, that it does not strictly
guarantee that such a constituent exists in a returned parse.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
public int start
end
public int end
state
public Pattern state
Test.Constraint
public Test.Constraint()
Stanford NLP Group