|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectup.StupidParser
public class StupidParser
A fallback implementation of the
Parser
interface.
Constructor Summary | |
---|---|
StupidParser(Grammar grammar)
Constructs a new parser based on the specified grammar. |
Method Summary | |
---|---|
Tree |
getBestParse(java.util.List<java.lang.String> tags)
Returns a dummy parse tree for the specified tag sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StupidParser(Grammar grammar)
grammar
- the grammar to be used by the parserMethod Detail |
---|
public Tree getBestParse(java.util.List<java.lang.String> tags)
getBestParse
in interface Parser
tags
- a sequence of part-of-speech tags
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |