| Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parser.Parser --+
|
DirectedCkyParser
DirectedCkyParser is a special version of the CKY parser that tries to produce a parse according to a pre-built derivation tree.
Why? Canonical trees are stored implicitly in the Jazz corpus. We can build the explicit structure of the trees, in accordance with the implicit manual annotations, but this will not contain any signs on internal nodes. The structure does not produce a parse in itself or even verify that the sequence can be parsed with that structure.
The purpose of the DirectedCkyParser is to take a description of this annotated structure and actually perform the parse, packing the chart with only those signs that the derivation structure produces.
The parser should be used with a tagger that assigns only those signs that were annotated. Use the PretaggedTagger to do this.
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
PARSER_OPTIONS = Parser.PARSER_OPTIONS+ [ModuleOption('derivat
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Run the parser on the input, using the specified tagger. Runs the CKY parsing algorithm to do chart parsing. For details of chart parsing, see Chart class.
|
|
|||
PARSER_OPTIONS
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:57 2012 | http://epydoc.sourceforge.net |