|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJet.Parser.StatParser
an interface to Dan Bikel's implementation of Collins' parser
Constructor Summary | |
StatParser()
|
Method Summary | |
static Annotation[] |
children(Annotation node)
returns an array containing the children of 'node', or null if the node has no children. |
static void |
clearInputAnnotations(Document doc)
for ACE: erase all the characters within ANNOTATION ... |
static java.util.Set |
descendants(Annotation node)
returns a Set containing the parse tree node and all of its descendants (its children, the children of its children, etc.). |
static void |
initialize(java.lang.String dataPath,
java.util.Properties config)
initialize the parser (load grammar and data files). |
static void |
initialize(java.lang.String propertiesFile,
java.lang.String grammarFile)
initialize the parser. |
static boolean |
isInitialized()
return true if the parser has already been initialized. |
static void |
main(java.lang.String[] args)
|
static ParseTreeNode |
parse(Document doc,
Span span)
parse the sentence in 'span' of Document 'doc'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatParser()
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static void initialize(java.lang.String dataPath, java.util.Properties config)
public static void initialize(java.lang.String propertiesFile, java.lang.String grammarFile)
public static boolean isInitialized()
public static ParseTreeNode parse(Document doc, Span span)
public static Annotation[] children(Annotation node)
node
- an Annotation representing a parse tree node
(an Annotation of type 'constit').public static java.util.Set descendants(Annotation node)
node
- an Annotation representing a parse tree node
(an Annotation of type 'constit').public static void clearInputAnnotations(Document doc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |