GEM-benchmark / NL-Augmenter

NL-Augmenter 🦎 → 🐍 A Collaborative Repository of Natural Language Transformations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`disability_transformation` Unresolved references to SpaCy

Saad-Mahamood opened this issue · comments

When running the disability_transformation there are several unresolved references to the spacy_nlp variable. In particular on lines:

  • Line 55: doc = nlp(text)
  • Line 147: spacy_nlp if spacy_nlp else spacy.load("en_core_web_sm")

Please use from initialize import spacy_nlp to get a handle on the global spacy instance.