| 145 | return _Parser.find_tags(self, tokens, **kwargs) |
| 146 | |
| 147 | class Sentiment(_Sentiment): |
| 148 | |
| 149 | def load(self): |
| 150 | _Sentiment.load(self) |
| 151 | for w, pos in self.items(): |
| 152 | if "JJ" in pos: |
| 153 | # Map "verschrikkelijk" to adverbial "verschrikkelijke" (+1% accuracy) |
| 154 | self.setdefault(attributive(w), {"JJ": pos["JJ"], None: pos["JJ"]}) |
| 155 | |
| 156 | lexicon = Lexicon( |
| 157 | path = os.path.join(MODULE, "nl-lexicon.txt"), |
no outgoing calls
no test coverage detected
searching dependent graphs…