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

Method value

pattern/text/search.py:350–359  ·  view source on GitHub ↗

Returns the value of the given term ("many" => "50-200")

(self, term, **kwargs)

Source from the content-addressed store, hash-verified

348 return unique(dfs(self._normalize(term), recursive, {}, **kwargs))
349
350 def value(self, term, **kwargs):
351 """ Returns the value of the given term ("many" => "50-200")
352 """
353 term = self._normalize(term)
354 if term in self._values:
355 return self._values[term]
356 for classifier in self.classifiers:
357 v = classifier.value(term, **kwargs)
358 if v is not None:
359 return v
360
361 def remove(self, term):
362 if dict.__contains__(self, term):

Callers 1

test_taxonomyMethod · 0.95

Calls 1

_normalizeMethod · 0.95

Tested by 1

test_taxonomyMethod · 0.76