To create CKYParser instance p1 with grammar g1: p1 = CKYParser(g1) To
find edge(mother_cat,start,end) (after parsing!):
|
|
|
|
|
|
|
|
| add_to_chart(self,
end,
start,
mother_cat,
dtrs) |
source code
|
|
|
|
|
|
|
| update_dtr_records(self,
len,
start,
cat,
dtrs) |
source code
|
|
|
|
|
|
|
find_spanning_edge(self)
Abstract method: Shd be defined to return a spanning edge from which
dtr edges can be recursively retrieved from self.dtr_dict |
source code
|
|
|
|
|
|
|
display_chart(self)
Abstract method: Shd be defined with parser-specific print methods to
print each edge in the chart. |
source code
|
|
|
|
|
|
|
| draw_nltk_parse_trees_for_edge(self,
end,
start,
mother_cat) |
source code
|
|
|
|
| _trace_print_binary_rule_(self,
mother_cat,
dtr_pair) |
source code
|
|
|
|
| _trace_print_unary_rule_(self,
mother_cat,
dtr) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from small_parser.SmallParser:
__init__,
draw_list_parses,
draw_nltk_parses,
find_list_parses,
find_nltk_parses,
find_parses,
get_list_parse_trees,
get_nltk_parse_trees,
parse_exists,
parse_input,
print_nltk_parses,
reset_input,
tex_output_parses,
tokenize
|