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.
list of iterator of Tree
|
|
list of list of Tree
|
|
list of Tree
|
|
list of ProbDistI of Tree
|
|
|
|
iterator of Tree
|
iter_parse(self,
sent)
Returns:
An iterator that generates parse trees that represent possible
structures for the given sentence. |
source code
|
|
list of Tree
|
nbest_parse(self,
sent,
n=None)
Returns:
A list of parse trees that represent possible structures for the
given sentence. |
source code
|
|
Tree
|
parse(self,
sent)
Returns:
A parse tree that represents the structure of the given sentence, or
None if no parse tree is found. |
source code
|
|
ProbDistI of Tree
|
prob_parse(self,
sent)
Returns:
A probability distribution over the possible parse trees for the
given sentence. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
|
|
|
|
|
|
|
|
|
|