nltk.parse.MaltParser.parse_tagged_sents¶
-
MaltParser.
parse_tagged_sents
(sentences, verbose=False, top_relation_label=u'null')[source]¶ Use MaltParser to parse multiple POS tagged sentences. Takes multiple sentences where each sentence is a list of (word, tag) tuples. The sentences must have already been tokenized and tagged.
Parameters: sentences – Input sentences to parse Returns: iter(iter( DependencyGraph
)) the dependency graphrepresentation of each sentence