mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Remove old 'SP' condition in tag map
This commit is contained in:
parent
421c3837e8
commit
9e372913e0
|
@ -420,8 +420,6 @@ class NeuralTagger(BaseThincComponent):
|
|||
new_tag_map[tag] = orig_tag_map[tag]
|
||||
else:
|
||||
new_tag_map[tag] = {POS: X}
|
||||
if 'SP' not in new_tag_map:
|
||||
new_tag_map['SP'] = orig_tag_map.get('SP', {POS: X})
|
||||
cdef Vocab vocab = self.vocab
|
||||
if new_tag_map:
|
||||
vocab.morphology = Morphology(vocab.strings, new_tag_map,
|
||||
|
|
Loading…
Reference in New Issue
Block a user