GEM-benchmark / NL-Augmenter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`summarization_transformation` has unresolved reference to spaCy

Saad-Mahamood opened this issue · comments

When running this transformation there are several unresolved references to the spacy_nlp variable. In particular on line:

  • Line 21: self.nlp = spacy_nlp if spacy_nlp else spacy.load("en_core_web_sm", disable=['ner','textcat'])

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