1 '''
2 @author: David Vilares Calvo
3 '''
4
5 from miopia.classifier.ClassificationStrategy import ClassificationStrategy
6 from miopia.classifier.PolarityType import PolarityType
7
9 '''
10 This strategy allows to classify texts such as Positive, Negative
11 Neutral (the text merges positive and negative ideas) or None (without any sentiment)
12 '''
13
14
16 '''
17 Constructor
18 @param threshold: A float. It establish a numerical threshold to distinguish between classes
19 '''
20 super(QuaternaryStrategy,self).__init__(threshold)
21
22
23 - def _type(self, sentiment_info):
36