Package miopia :: Package adapter :: Module CompositeAdapter :: Class CompositeAdapter
[hide private]
[frames] | no frames]

Class CompositeAdapter

source code

     object --+    
              |    
Adapter.Adapter --+
                  |
                 CompositeAdapter

CompositeAdapter allows to combine different Adapter's to obtain a global ranking off all features

Instance Methods [hide private]
 
__init__(self, path_weka, counter)
Constructor
source code
 
add(self, adapter)
Add an Adapter to the composite adapter
source code
 
remove(self, adapter)
Remove and Adapter from the composite adapter
source code
 
get_children(self)
Obtain the children of a CompositeAdapter
source code
 
_get_feature_type(self) source code
 
_analyze_graph(self, dgs) source code
 
count_features(self, list_text_info)
@return A dictionary with the number of features considered by the adapter in an instance of a nltk.parse.dependencygraph.DependencyGraph
source code
 
get_weighting_value(self, str_ftc, value)
@param str_ftc.
source code

Inherited from Adapter.Adapter: arff_header_from_arff_file, classes_from_arff, get_counter, get_weighting_factor, to_arff

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

Class Variables [hide private]
  FEATURE_TYPE = 'COMPOSITE_FEATURE_TYPE'

Inherited from Adapter.Adapter: ALLOWED_JAVA_HEAP_XMX, BINARY_WEIGHTING_FACTOR, DELIMITER_FEATURE_TYPE_AND_LIST_FEATURES, TOTAL_WEIGHTING_FACTOR

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, path_weka, counter)
(Constructor)

source code 

Constructor

Parameters:
Overrides: object.__init__

count_features(self, list_text_info)

source code 

@return A dictionary with the number of features considered by the adapter in an instance of a nltk.parse.dependencygraph.DependencyGraph

Parameters:
  • list_text_info - A list of TextInfo @param A dictionary with the features detected
Overrides: Adapter.Adapter.count_features

get_weighting_value(self, str_ftc, value)

source code 

@param str_ftc. A string. The representation of an instance of FeatureTypeConfiguration

Parameters:
  • value - An integer. @return A weighted value according to the weighting factor employed by the current adapter
Overrides: Adapter.Adapter.get_weighting_value
(inherited documentation)