A dictionary of named entities and their labels. For domain names and e-mail adresses, regular expressions are used.
(self, lexicon={}, path="", tag="NNP")
| 405 | class 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): |