mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Fix formatting (hopefully also restarts build properly)
This commit is contained in:
parent
f2547f02d6
commit
ae5b4d0e84
|
@ -15,6 +15,7 @@ from .about import __version__
|
||||||
from .errors import Errors, Warnings, deprecation_warning
|
from .errors import Errors, Warnings, deprecation_warning
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
|
|
||||||
if sys.maxunicode == 65535:
|
if sys.maxunicode == 65535:
|
||||||
raise SystemError(Errors.E130)
|
raise SystemError(Errors.E130)
|
||||||
|
|
||||||
|
|
|
@ -367,10 +367,10 @@ class Errors(object):
|
||||||
"Instead, create a new Span object and specify the `label` keyword argument, "
|
"Instead, create a new Span object and specify the `label` keyword argument, "
|
||||||
"for example:\nfrom spacy.tokens import Span\n"
|
"for example:\nfrom spacy.tokens import Span\n"
|
||||||
"span = Span(doc, start={start}, end={end}, label='{label}')")
|
"span = Span(doc, start={start}, end={end}, label='{label}')")
|
||||||
E130 = ("You are running a narrow unicode build, "
|
E130 = ("You are running a narrow unicode build, which is incompatible "
|
||||||
"which is incompatible with spacy >= 2.1.0, reinstall Python and "
|
"with spacy >= 2.1.0. To fix this, reinstall Python and use a wide "
|
||||||
"use a wide unicode build instead. You can also rebuild Python "
|
"unicode build instead. You can also rebuild Python and set the "
|
||||||
"and set the --enable-unicode=ucs4 flag.")
|
"--enable-unicode=ucs4 flag.")
|
||||||
|
|
||||||
|
|
||||||
@add_codes
|
@add_codes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user