(self)
| 422 | return self._path |
| 423 | |
| 424 | def load(self): |
| 425 | # ["Alexander", "the", "Great", "PERS"] |
| 426 | # {"alexander": [["alexander", "the", "great", "pers"], ...]} |
| 427 | for x in _read(self.path): |
| 428 | x = [x.lower() for x in x.split()] |
| 429 | dict.setdefault(self, x[0], []).append(x) |
| 430 | |
| 431 | def apply(self, tokens): |
| 432 | """ Applies the named entity recognizer to the given list of tokens, |
nothing calls this directly
no test coverage detected