"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "627e813734750a6441e7879f7ee2c191f486d38b"
Unverified Commit f5e2ed0f authored by Guillem García Subies's avatar Guillem García Subies Committed by GitHub
Browse files

Update tokenization_openai.py

parent 562b9983
......@@ -91,7 +91,7 @@ class OpenAIGPTTokenizer(PreTrainedTokenizer):
import ftfy
from spacy.lang.en import English
_nlp = English()
self.nlp = nlp.Defaults.create_tokenizer(_nlp)
self.nlp = _nlp.Defaults.create_tokenizer(_nlp)
self.fix_text = ftfy.fix_text
except ImportError:
logger.warning("ftfy or spacy is not installed using BERT BasicTokenizer instead of SpaCy & ftfy.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment