mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Use empty tag map in vocab if none supplied
This commit is contained in:
parent
4f8e38271d
commit
f6ec5bf1b0
|
@ -38,6 +38,8 @@ cdef class Vocab:
|
|||
'''A map container for a language's LexemeC structs.
|
||||
'''
|
||||
def __init__(self, get_lex_attr=None, tag_map=None, vectors=None):
|
||||
if tag_map is None:
|
||||
tag_map = {}
|
||||
self.mem = Pool()
|
||||
self._by_hash = PreshMap()
|
||||
self._by_orth = PreshMap()
|
||||
|
|
Loading…
Reference in New Issue
Block a user