MCPcopy Index your code
hub / github.com/clips/pattern / Sentiment

Class Sentiment

pattern/text/nl/__init__.py:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 return _Parser.find_tags(self, tokens, **kwargs)
146
147class 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
156lexicon = Lexicon(
157 path = os.path.join(MODULE, "nl-lexicon.txt"),

Callers 3

__init__.pyFile · 0.90
__init__.pyFile · 0.90
__init__.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…