try:
self.parser = spacy.load(model, disable=pipeline_opts)
except OSError:
print("Spacy English model not found".format(model))
print("to download an English model using Spacy, please run:")
print(" python -m spacy download en_core_web_sm")
print("")
print("Spacy license: MIT")
After Change
url = "https://spacy.io/models/en//en_core_web_sm"
print("License: Creative Commons v3-BY-SA "
"https://creativecommons.org/licenses/by-sa/3.0/")
response = input("To download the model from {}, "
+ "please type YES: ".format(url))
if response.lower().strip() == "yes":
print("The terms and conditions of the data set license apply. Intel does not "
"grant any rights to the data files or database")
print("Downloading Spacy model...")