mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Load POS tagger in load() function if path exists
This commit is contained in:
parent
677e111ee7
commit
f00afe12c4
|
@ -44,6 +44,7 @@ cdef class Language:
|
|||
def load(self):
|
||||
self.lexicon.load(path.join(util.DATA_DIR, self.name, 'lexemes'))
|
||||
self.lexicon.strings.load(path.join(util.DATA_DIR, self.name, 'strings'))
|
||||
if path.exists(path.join(util.DATA_DIR, self.name, 'pos')):
|
||||
self.pos_tagger = Tagger(path.join(util.DATA_DIR, self.name, 'pos'))
|
||||
|
||||
cpdef Tokens tokens_from_list(self, list strings):
|
||||
|
|
Loading…
Reference in New Issue
Block a user