edu.stanford.nlp.parser
Interface Parser
- All Known Subinterfaces:
- ViterbiParser
- All Known Implementing Classes:
- LexicalizedParser
- public interface Parser
The interface for parser objects. The only responsibility of a
parser is to return the parsability of input sentences. There is
no specification of a goal: this will be determined by the
implementing class. Specification of the grammar or model
parameters is meant to be done implementing classes' constructors.
Method Summary |
boolean |
parse(Sentence sentence)
Parses the given sentence. |
parse
public boolean parse(Sentence sentence)
- Parses the given sentence. For any words in the sentence which
implement HasTag, the tag will be beleived. The return value
will be false if the sentence is not parseable.
- Parameters:
sentence
- a Sentence
value
- Returns:
- true iff the sentence is recognized
Stanford NLP Group