opennlp.grok.parse
Class CKY
java.lang.Object
|
+--opennlp.grok.parse.ParserAdapter
|
+--opennlp.grok.parse.CKY
- All Implemented Interfaces:
- ParamListener, opennlp.common.parse.Parser
- Direct Known Subclasses:
- MaxIncrCKY
- public class CKY
- extends ParserAdapter
CKY is a chart parser that is used, in this case, with the CCG
grammar formalism.
- Version:
- $Revision: 1.16 $, $Date: 2002/09/20 19:25:20 $
- Author:
- Gann Bierner
Constructor Summary |
CKY(opennlp.common.parse.Lexicon l,
opennlp.common.parse.RuleGroup r)
|
CKY(java.lang.String lex,
java.lang.String rule)
class constructor: sets lexicon and rules |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CKY
public CKY(java.lang.String lex,
java.lang.String rule)
throws java.io.FileNotFoundException,
java.io.IOException,
opennlp.common.parse.LexException
- class constructor: sets lexicon and rules
- Parameters:
lex
- The URL where lexicon is located.rule
- The URL where the rules are located.
- Throws:
java.io.FileNotFoundException
- If cannot find file
java.io.IOException
- If cannot find file
CatParseException
- Cannot parse semantics
in rule of lex file
opennlp.common.parse.LexException
CKY
public CKY(opennlp.common.parse.Lexicon l,
opennlp.common.parse.RuleGroup r)
createResult
public void createResult(Chart table,
int size)
throws opennlp.common.parse.ParseException
opennlp.common.parse.ParseException
parse
public void parse(Chart table,
int size)
throws opennlp.common.parse.ParseException
opennlp.common.parse.ParseException
getChart
protected Chart getChart(int size,
opennlp.common.parse.RuleGroup r)
getInitializedTable
public Chart getInitializedTable(java.util.List entries)
parse
public void parse(java.lang.String s)
throws opennlp.common.parse.ParseException
opennlp.common.parse.ParseException
parse
public void parse(opennlp.common.xml.NLPDocument d)
throws opennlp.common.parse.ParseException
opennlp.common.parse.ParseException
parse
public void parse(opennlp.common.synsem.Sign[] inits)
throws opennlp.common.parse.ParseException
opennlp.common.parse.ParseException
getResult
public java.util.ArrayList getResult()
- Specified by:
getResult
in interface opennlp.common.parse.Parser
- Specified by:
getResult
in class ParserAdapter
Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.