3️⃣Aspect-Based Sentiment Analysis
Aspect-Based Sentiment Analysis
Transformer Pipeline
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
model_name = "yangheng/deberta-v3-large-absa-v1.1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer
)Calssification
Last updated