Skip to content

Commit

Permalink
Update _spacy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
koaning committed Feb 26, 2023
1 parent 9cd3f8a commit 7476081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embetter/text/_spacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class spaCyEncoder(EmbetterBase):

def __init__(self, nlp: Union[str, Language], agg: str = "base"):
if isinstance(nlp, str):
self.nlp = spacy.load(nlp, deactivate=["ner", "tagger", "parser"])
self.nlp = spacy.load(nlp, disable=["ner", "tagger", "parser"])
elif isinstance(nlp, Language):
self.nlp = nlp
else:
Expand Down

0 comments on commit 7476081

Please sign in to comment.