|
چکیده
|
Sentiment analysis on Twitter is difficult because tweets are short, informal, and context‑dependent. To tackle these challenges, we propose a hybrid model that combines contextual language modeling with graph‑based structural learning. Each tweet is first split into sentences and smaller semantic chunks to capture multiple levels of structure. The text is then encoded with a pretrained RoBERTa model, producing contextual embeddings that represent the meaning of each token. Using these embeddings, we build two complementary graphs. The first is a sentence‑level graph, where each node represents a sentence. A Graph Attention Network (GATv2) is applied to learn how strongly each sentence contributes to the overall sentiment. The second is a chunk‑level graph that models local relationships between neighboring text segments. A graph isomorphism network (GIN) aggregates these local features and captures distributed sentiment cues. Finally, the global representation from RoBERTa, the sentence‑level features from GAT, and the chunk‑level features from GIN are combined through an adaptive fusion layer and passed to a classifier. Experiments on the Twitter US Airline and Sentiment140 benchmark datasets demonstrate the effectiveness of the proposed par-ser-free multi-view framework. The proposed model consistently outperforms strong baseline methods, while comprehensive experiments confirm the complementary contributions of the sentence-level graph, chunk-level graph, and adaptive fusion module. The source code for reproducing our results can be found at (https://github.com/hashemparvin/Sentiment-Analysis.git).
|