nltk.sem.parse_sents()
¶
-
nltk.sem.
parse_sents
(inputs, grammar, trace=0)[source]¶ Convert input sentences into syntactic trees.
Parameters: - inputs (list(str)) – sentences to be parsed
- grammar (nltk.grammar.FeatureGrammar) –
FeatureGrammar
or name of feature-based grammar
Return type: list(nltk.tree.Tree) or dict(list(str)): list(Tree)
Returns: a mapping from input sentences to a list of ``Tree``s