Package featuregenerator :: Module hjerson :: Class BinaryHjerson
[hide private]
[frames] | no frames]

Class BinaryHjerson

source code

                                   object --+            
                                            |            
            featuregenerator.FeatureGenerator --+        
                                                |        
languagefeaturegenerator.LanguageFeatureGenerator --+    
                                                    |    
                                              Hjerson --+
                                                        |
                                                       BinaryHjerson

Instance Methods [hide private]
 
analyze(self, hline, basehline, addhline, refs, baserefs, addrefs)
This functions hosts the core sentence-level functionality of Hjerson, as written originally by Maja Popovic.
source code

Inherited from Hjerson: __init__, calculate_total_scores, get_features_strings, get_features_tgt

Inherited from Hjerson (private): _tag

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__

Instance Variables [hide private]

Inherited from languagefeaturegenerator.LanguageFeatureGenerator: lang

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

analyze(self, hline, basehline, addhline, refs, baserefs, addrefs)

source code 

This functions hosts the core sentence-level functionality of Hjerson, as written originally by Maja Popovic. It operates after all sentence-level strings have been retrieved and passed as parameters

Parameters:
  • hline
Overrides: Hjerson.analyze
(inherited documentation)