Package ml :: Package var :: Module ranker :: Class Ranker
[hide private]
[frames] | no frames]

Class Ranker

source code

                                        object --+    
                                                 |    
featuregenerator.featuregenerator.FeatureGenerator --+
                                                     |
                                                    Ranker

classdocs

Instance Methods [hide private]
 
__init__(self, classifier, desired_attributes, meta_attributes)
Constructor
source code
 
add_features_parallelsentence(self, parallelsentence, apply_diff=True)
Augments the provided ParallelSentence with features of the current feature generator.
source code

Inherited from featuregenerator.featuregenerator.FeatureGenerator: add_features_batch, add_features_dataset, add_features_simplesentence, add_features_src, add_features_tgt, get_annotation_name, get_features_parallelsentence, get_features_simplesentence, 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, classifier, desired_attributes, meta_attributes)
(Constructor)

source code 

Constructor

Overrides: object.__init__

add_features_parallelsentence(self, parallelsentence, apply_diff=True)

source code 

Augments the provided ParallelSentence with features of the current feature generator. 
    It fires feature generation functions over the included simplesentences it is composed of.
@param parallelsentence: The ParalleSentence whose contents will be augmented
@type parallelsentence: sentence.parallelsentence.ParalleSentence
@rtype: sentence.parallelsentence.ParalleSentence
@return: The given ParalleSentence augmented with features generated from the current featuregenerator 

Overrides: featuregenerator.featuregenerator.FeatureGenerator.add_features_parallelsentence
(inherited documentation)