|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Parser
The interface for parser objects. The only responsibility of a parser is to return the parsability of input sentences. That is, parsers need only actually be recognizers/acceptors.
Specification of the grammar or model parameters is meant to be done by implementing classes' constructors. If there is no specification of a goal, then this will also be determined by the grammar or implementing class.
| Method Summary | |
|---|---|
boolean |
parse(Sentence sentence)
Parses the given sentence. |
boolean |
parse(Sentence sentence,
String goal)
Parses the given sentence. |
| Method Detail |
|---|
boolean parse(Sentence sentence)
S).
sentence - A Sentence to be parsed
UnsupportedOperationException - This will be thrown if for
any reason the parser can't complete parsing this sentence, for
example if the sentence is too long
boolean parse(Sentence sentence,
String goal)
sentence - A Sentence to be parsedgoal - The category to parse the sentence as (e.g., NP, S)
UnsupportedOperationException - This will be thrown if for
any reason the parser can't complete parsing this sentence, for
example if the sentence is too long
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||