# songyouwei/ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations.  基于方面的情感分析，使用PyTorch实现。

Repository: https://github.com/songyouwei/ABSA-PyTorch
Canonical: https://ross.abutalabs.com/products/absa-pytorch
Language: Python
License: MIT
License Family: permissive
Topics: sentiment-analysis, aspect-based-sentiment-analysis, bert, attention, natural-language-processing, nlp, sentiment-classification
Archived: true
Last push: 2023-06-12T21:30:16+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3038, "days_push": 1178, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2114, forks 518 (observed 2026-08-28T04:06:15.784791+00:00)

## What it is
PyTorch implementations of aspect-based sentiment analysis (ABSA) models, including attention-based and BERT-based approaches for aspect-term sentiment classification. It provides training and inference scripts over standard ABSA datasets like SemEval restaurant and laptop reviews.

## Use cases
- classify sentiment toward specific aspect terms in reviews
- train BERT-based aspect sentiment classifiers
- reproduce ABSA research models like BERT-SPC and BERT-ADA
- run sentiment analysis on restaurant and laptop review datasets
- experiment with attention mechanisms for aspect-level sentiment

## When to choose
- you need reference PyTorch implementations of classic ABSA models
- you want BERT-based aspect-target sentiment classification with training scripts
- you are doing NLP research or coursework on aspect-based sentiment analysis

## When to avoid
- you need a production-ready ABSA pipeline with flexible training and aspect term extraction (use PyABSA instead)
- you need general sentence-level sentiment analysis rather than aspect-based
- you need maintained support for recent Python or transformers versions

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, machine-learning, deep-learning
- domain: machine-learning, deep-learning
- platform: python
- tags: aspect-based-sentiment-analysis, sentiment-analysis, pytorch, bert, attention, research-code, natural-language-processing

## Member repositories
- songyouwei/ABSA-PyTorch (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:15.784791+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:53:29.379186+00:00, confidence not recorded.
  - readme: https://github.com/songyouwei/ABSA-PyTorch (fetched 2026-08-28T04:06:15.784791+00:00, sha 26c717a53dc5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
