PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
11.94k stars 2.91k forks source link

AttributeError: module 'paddlenlp.transformers' has no attribute 'ErnieGramTokenizer' #627

Closed caigao closed 1 year ago

caigao commented 3 years ago

运行: import paddlenlp tokenizer = paddlenlp.transformers.ErnieGramTokenizer.from_pretrained('ernie-gram-zh')

报错: ---------------------------------------------------------------------------AttributeError Traceback (most recent call last) in 2 # 后续样本转换函数基于 tokenizer 对文本进行切分 3 ----> 4 tokenizer = paddlenlp.transformers.ErnieGramTokenizer.from_pretrained('ernie-gram-zh') AttributeError: module 'paddlenlp.transformers' has no attribute 'ErnieGramTokenizer'

ZeyuChen commented 3 years ago

请升级至最新版本2.0.3 pip install --upgrade paddlenlp

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。