Example #1
0
 def load(self, path=None):
     _Sentiment.load(self, path)
     # Map "verschrikkelijk" to adverbial "verschrikkelijke" (+1%)
     if not path:
         for w, pos in dict.items(self):
             if "JJ" in pos:
                 p, s, i = pos["JJ"]
                 self.annotate(attributive(w), "JJ", p, s, i)
Example #2
0
 def load(self):
     _Sentiment.load(self)
     for w, pos in self.items():
         if "JJ" in pos:
             # Map "verschrikkelijk" to adverbial "verschrikkelijke" (+1% accuracy)
             self.setdefault(attributive(w), {
                 "JJ": pos["JJ"],
                 None: pos["JJ"]
             })
Example #3
0
 def load(self):
     _Sentiment.load(self)
     for w, pos in self.items():
         if "JJ" in pos:
             # Map "verschrikkelijk" to adverbial "verschrikkelijke" (+1% accuracy)
             self.setdefault(attributive(w), {"JJ": pos["JJ"], None: pos["JJ"]})