1 '''
2 Created on 11/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.analyzer.counter.DependencyTripletsCounter import DependencyTripletsCounter
10 from miopia.util.exceptions.FeatureTypeConfigurationException import FeatureTypeConfigurationException
11
13 '''
14 A WEKA adapter for L{DependencyTripletsCounter}
15 '''
16
17 - def __init__(self,path_weka, dependency_triplets_counter,weight_factor):
18 '''
19 @param path_weka: The path to the WEKA.jar
20 @param abstracted_lexicons_counter: An instance of L{DependencyTripletsCounter}
21 @param weight_factor: A value {BINARY_WEIGHTING_FACTOR, TOTAL_WEIGHTING_FACTOR}
22 '''
23
24 if not isinstance(dependency_triplets_counter, DependencyTripletsCounter):
25 raise ValueError
26
27 super(DependencyTripletsAdapter,self).__init__(path_weka,dependency_triplets_counter,
28 weight_factor)
29
30
31
37