1 '''
2 Created on 10/04/2013
3
4 @author: David Vilares Calvo
5 '''
6
7 from miopia.adapter.Feature import FeatureType
8 from miopia.adapter.SintacticAdapter import SintacticAdapter
9 from miopia.util.exceptions.FeatureTypeConfigurationException import FeatureTypeConfigurationException
10 from miopia.analyzer.counter.DependencyTypeCounter import DependencyTypeCounter
11
12
14 '''
15 A WEKA adapter for L{DependencyCounter}
16 '''
17
18
19 - def __init__(self,path_weka, dependency_type_counter, weight_factor):
20 """
21 @param path_weka: The path to the WEKA.jar
22 @param abstracted_lexicons_counter: An instance of L{DependencyTypeCounter}
23 @param weight_factor: A value {BINARY_WEIGHTING_FACTOR, TOTAL_WEIGHTING_FACTOR}
24 """
25
26 if not isinstance(dependency_type_counter, DependencyTypeCounter):
27 raise ValueError
28
29 super(DependencyTypeAdapter,self).__init__(path_weka,dependency_type_counter,
30 weight_factor)
31
32
33
39