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

Class UnGrammaticalAdapter

source code

       object --+        
                |        
  Adapter.Adapter --+    
                    |    
RawAdapter.RawAdapter --+
                        |
                       UnGrammaticalAdapter

A WEKA adapter for UnGrammaticalCounter

Instance Methods [hide private]
 
__init__(self, path_weka, ungrammatical_counter, weight_factor)
Constructor
source code
 
_get_feature_type(self)
The type of the feature
source code

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

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

Class Variables [hide private]

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, ungrammatical_counter, weight_factor)
(Constructor)

source code 

Constructor

Parameters:
  • path_weka - The path to the WEKA.jar
  • abstracted_lexicons_counter - An instance of UnGrammaticalCounter
  • weight_factor - A value {BINARY_WEIGHTING_FACTOR, TOTAL_WEIGHTING_FACTOR}
Overrides: object.__init__

_get_feature_type(self)

source code 

The type of the feature

Overrides: RawAdapter.RawAdapter._get_feature_type