nltk.parse.FeatureChartParser
¶
-
class
nltk.parse.
FeatureChartParser
(grammar, strategy=[<nltk.parse.chart.LeafInitRule object at 0x2b21a94eb5d0>, <nltk.parse.featurechart.FeatureEmptyPredictRule object at 0x2b21a94eb610>, <nltk.parse.featurechart.FeatureBottomUpPredictCombineRule object at 0x2b21a94eb650>, <nltk.parse.featurechart.FeatureSingleEdgeFundamentalRule object at 0x2b21a94eb690>], trace_chart_width=20, chart_class=<class 'nltk.parse.featurechart.FeatureChart'>, **parser_args)[source]¶
Methods¶
__init__ (grammar[, strategy, ...]) |
|||
chart_parse (tokens[, trace]) |
Return the final parse Chart from which all possible parse trees can be extracted. |
||
grammar () |
|||
parse (tokens[, tree_class]) |
|||
parse_all (sent, *args, **kwargs) |
|
||
parse_one (sent, *args, **kwargs) |
|
||
parse_sents (sents, *args, **kwargs) |
Apply self.parse() to each element of sents . |