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
12.09k stars 2.93k forks source link

paddlenlp中的erniegram中的tokenizer调用出错 #1706

Closed Bais-art closed 2 years ago

Bais-art commented 2 years ago

tokenizer = paddlenlp.transformers.ErnieGramTokenizer.from_pretrained('ernie-gram-zh')

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

wj-Mcat commented 2 years ago

Please update your version of paddlenlp to get latest features. I test your code in my env, it works for me. Here are my related packages.

paddlenlp                     2.2.4
paddlepaddle                  2.2.0

I hope it can help you fix your issue. Please feel free to comment more details.

Bais-art commented 2 years ago

thank you