Text Classification
Transformers
PyTorch
English
BertABSAForSequenceClassification
aspect-term-sentiment-analysis
ATSA
custom_code
Instructions to use tezign/BERT-LSTM-based-ABSA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tezign/BERT-LSTM-based-ABSA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tezign/BERT-LSTM-based-ABSA", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("tezign/BERT-LSTM-based-ABSA", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
KeyError: 'BertABSAForSequenceClassification'
#1
by yangyang768 - opened
在使用该模型时出现了下面这种这种报错:
KeyError: 'BertABSAForSequenceClassification'
学艺不精,实在是不知道怎么解决了,请问可以帮忙看下问题出在哪里吗?万分感谢!
你好,感谢使用,在加载模型时,需要如下参数from_pretrained(MODEL, trust_remote_code=True)
trek90s changed discussion status to closed