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

Method __init__

pattern/text/__init__.py:407–418  ·  view source on GitHub ↗

A dictionary of named entities and their labels. For domain names and e-mail adresses, regular expressions are used.

(self, lexicon={}, path="", tag="NNP")

Source from the content-addressed store, hash-verified

405class Entities(lazydict, Rules):
406
407 def __init__(self, lexicon={}, path="", tag="NNP"):
408 """ A dictionary of named entities and their labels.
409 For domain names and e-mail adresses, regular expressions are used.
410 """
411 cmd = (
412 "pers", # Persons: George/NNP-PERS
413 "loc", # Locations: Washington/NNP-LOC
414 "org", # Organizations: Google/NNP-ORG
415 )
416 Rules.__init__(self, lexicon, cmd)
417 self._path = path
418 self.tag = tag
419
420 @property
421 def path(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected