nltk.parse.api module¶
- class nltk.parse.api.ParserI[source]¶
Bases:
object
A processing class for deriving trees that represent possible structures for a sequence of tokens. These tree structures are known as “parses”. Typically, parsers are used to derive syntax trees for sentences. But parsers can also be used to derive other kinds of tree structure, such as morphological trees and discourse structures.
- Subclasses must define:
at least one of:
parse()
,parse_sents()
.
- Subclasses may define:
grammar()