Package featuregenerator :: Package meteor :: Module meteor :: Class CrossMeteorGenerator
[hide private]
[frames] | no frames]

Class CrossMeteorGenerator

source code

                                   object --+            
                                            |            
            featuregenerator.FeatureGenerator --+        
                                                |        
languagefeaturegenerator.LanguageFeatureGenerator --+    
                                                    |    
                                      MeteorGenerator --+
                                                        |
                                                       CrossMeteorGenerator

Overwrites the feature generation function, by allowing the provided target sentence (i.e. translation) to be scored against the translations provided by the other systems embedded in this Parallel Sentence.

Instance Methods [hide private]
 
get_features_tgt(self, translation, parallelsentence)
Function that falls back to the general simple sentence feature generation, only if the language is supported by the feature generator It receives a target simple sentence and returns a list of target features.
source code

Inherited from MeteorGenerator: __init__, full_score_sentences, score, score_sentence, score_sentences

Inherited from languagefeaturegenerator.LanguageFeatureGenerator: add_features_batch, add_features_batch_xml, add_features_dataset, get_features_simplesentence, get_features_src, get_features_string

Inherited from featuregenerator.FeatureGenerator: add_features_parallelsentence, add_features_simplesentence, add_features_src, add_features_tgt, get_annotation_name, get_features_parallelsentence, process_dataset

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

Class Variables [hide private]

Inherited from MeteorGenerator: __name__

Instance Variables [hide private]

Inherited from MeteorGenerator: gateway, lang

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_features_tgt(self, translation, parallelsentence)

source code 

Function that falls back to the general simple sentence feature generation, only if the language is supported by the feature generator It receives a target simple sentence and returns a list of target features.

Overrides: featuregenerator.FeatureGenerator.get_features_tgt
(inherited documentation)