Stance detection in tweets (in favor, neutral, or against topic) #11692
-
I am trying to use SpaCy to accomplish stance detection in tweets but a bit stuck for practical previous example work to adapt to my use case, where for a given tweet or sequence of tweets I can infer whether the author is in favor, neutral, or against a recognized named entity. The problem is subtly very different from sentiment analysis. e.g. "Ukrainian refugees are suffering" would score a negative sentiment for Ukrainian refugees which is the complete opposite of the favorable stance implied by the author of the tweet. "Pregnant women have rights" is neutral for sentiment analysis, but clearly a positive stance. (e.g. see https://huggingface.co/finiteautomata/bertweet-base-sentiment-analysis?text=Pregnant+women+have+rights. ) I am using NER Tweets tutorial for the NER part of the solution (https://github.com/explosion/projects/tree/576ba0089cdca320a9f56cde9f4220f12a1f6000/tutorials/ner_tweets) but how to infer stance (favor, neutral, or against) I found an article SemEval-2016 Task 6: Detecting Stance in Tweets (https://aclanthology.org/S16-1003.pdf) from the TweetEval repo, https://github.com/cardiffnlp/tweeteval which also let me to BERTweet (https://arxiv.org/abs/2005.10200) which scored 2nd best (but nothing scored great) on Stance Detection, but I couldn't figure out how to apply any of the outputs of that model. I am not an academic and just looking for a practical approach that uses SpaCy if possible. UPDATE: A professor colleague of mine referred me to this article: https://aclanthology.org/2021.eacl-main.227.pdf And also: https://rachithaiyappa.github.io/science/Zero-Shot-for-Stance-Detection/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is the solution I found: https://huggingface.co/spaces/rachith/ZeroShot_StanceDetection and outperforms the SemEval2016 benchmark without any special BERT training. |
Beta Was this translation helpful? Give feedback.
This is the solution I found: https://huggingface.co/spaces/rachith/ZeroShot_StanceDetection and outperforms the SemEval2016 benchmark without any special BERT training.