Package parser_course :: Package small_parsers :: Module small_grammar :: Class Grammar
[hide private]
[frames] | no frames]

Class Grammar

source code

object --+
         |
        Grammar
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, start_cat='s')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
display(self) source code
 
compute_nonterminals(self) source code
 
compute_preterminals(self) source code
 
get_parts_of_speech(self, word)
word is a string.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start_cat='s')
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

get_parts_of_speech(self, word)

source code 

word is a string. Return a list of parts of speech for this word