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

Source Code for Module miopia.adapter.RawAdapter

 1  ''' 
 2  Created on 13/05/2014 
 3   
 4  @author: david.vilares 
 5  ''' 
 6  from miopia.adapter.Adapter import Adapter 
 7  from miopia.adapter.Feature import FeatureType 
 8  from miopia.analyzer.counter.RawCounter import RawCounter 
 9   
10 -class RawAdapter(Adapter):
11 ''' 12 An abstract class for WEKA adapters for L{RawCounter} 13 ''' 14 15
16 - def __init__(self, path_weka, raw_counter,weight_factor):
17 ''' 18 Constructor 19 ''' 20 super(RawAdapter,self).__init__(path_weka, raw_counter,weight_factor) 21 22 if not isinstance(raw_counter,RawCounter): 23 raise ValueError
24
25 - def _get_feature_type(self):
26 """ 27 The type of the feature 28 """ 29 return FeatureType.GRAM
30