Model performance depends on the dataset used for fine-tuning. If training data is domain-specific, generalization to other domains may be limited.
Users should validate outputs on their own domain-specific data and consider further fine-tuning if needed.
1from transformers import pipeline
2
3nlp = pipeline(
4 "token-classification",
5 model="sajida-dev/fine-tune-deberta-v3-base-end2end-absa-model"
6)
7
8text = "The battery life is amazing but the screen is dull."
9results = nlp(text)
10print(results)
Then, you can perform inference like this. The model will automatically find the aspects in the text and classify their sentiment.
1{
2 "text": "The user interface is brilliant, but the documentation is a total mess.",
3 "aspect": ["user interface", "documentation"],
4 "position": [[4, 19], [41, 54]],
5 "sentiment": ["Positive", "Negative"],
6 "probability": [[1e-05, 0.0001, 0.9998], [0.9998, 0.0001, 1e-05]],
7 "confidence": [0.9997, 0.9997]
8}
1 @misc{sajida2025absa,
2 author = {Sajida-dev},
3 title = {Fine-tuned DeBERTa-v3 Base End-to-End ABSA Model},
4 year = {2025},
5 publisher = {Hugging Face},
6 howpublished = {https://huggingface.co/sajida-dev/fine-tune-deberta-v3-base-end2end-absa-model}
7 }