Package featuregenerator :: Package parser :: Package berkeley :: Module cfgrules :: Class CfgRulesExtractor
[hide private]
[frames] | no frames]

Class CfgRulesExtractor

source code

                       object --+    
                                |    
featuregenerator.FeatureGenerator --+
                                    |
                                   CfgRulesExtractor

Handle the extraction of features out of CFG rules

Instance Methods [hide private]
 
__init__(self, params)
Constructor
source code
 
get_features_simplesentence(self, simplesentence, parallelsentence)
Count the CFG rules appearing in the parse
source code

Inherited from featuregenerator.FeatureGenerator: add_features_batch, add_features_dataset, add_features_parallelsentence, add_features_simplesentence, add_features_src, add_features_tgt, get_annotation_name, get_features_parallelsentence, get_features_src, get_features_string, get_features_tgt, process_dataset

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, params)
(Constructor)

source code 

Constructor

Overrides: object.__init__

get_features_simplesentence(self, simplesentence, parallelsentence)

source code 

Count the CFG rules appearing in the parse

Overrides: featuregenerator.FeatureGenerator.get_features_simplesentence