1 '''
2 Created on 14/05/2014
3
4 @author: david.vilares
5 '''
6
7 from miopia.adapter.Adapter import Adapter
8 from miopia.analyzer.counter.SintacticCounter import SintacticCounter
9
10
12 '''
13 An abstract class for WEKA adapters for L{SintacticCounter}
14 '''
15
16
17 - def __init__(self, path_weka, sintactic_counter, weight_factor):
18 '''
19 @param path_weka: The path to the WEKA.jar
20 @param abstracted_lexicons_counter: An instance of L{AbstractedLexiconsCounter}
21 @param weight_factor: A value {BINARY_WEIGHTING_FACTOR, TOTAL_WEIGHTING_FACTOR}
22 '''
23 if not isinstance(sintactic_counter,SintacticCounter):
24 raise ValueError
25
26 super(SintacticAdapter,self).__init__(path_weka, sintactic_counter,weight_factor)
27
29 """
30 The type of the feature
31 """
32 raise NotImplementedError
33