mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix JSON in tokenizer
This commit is contained in:
parent
6eb73a095f
commit
8ce8803824
|
@ -43,7 +43,7 @@ cdef class Tokenizer:
|
|||
path = pathlib.Path(path)
|
||||
|
||||
if rules is None:
|
||||
with (path / 'tokenizer' / 'specials.json').open() as file_:
|
||||
with (path / 'tokenizer' / 'specials.json').open('r', encoding='utf8') as file_:
|
||||
rules = json.load(file_)
|
||||
if prefix_search in (None, True):
|
||||
with (path / 'tokenizer' / 'prefix.txt').open() as file_:
|
||||
|
|
Loading…
Reference in New Issue
Block a user