Closed ashissamal closed 3 years ago
Hi, sorry for the confusion. Yeah you are right, we should have used XLMRobertaForSequenceClassification for sentiment analysis. But at the time, we simply build the sequence classification module on top of the XLMRobertaForTokenClassification module by adding a flag and an additional classifier. It's essentially the same as XLMRobertaForSequenceClassification. Please let me know if you have more questions!
Thank you for the clarification.
Thank you team for sharing the wonderful approach and repo. While experimenting the existing implementation for sentiment analysis meta learning for
en
andte
languages, I came across theSequenceTagger
object which inheritsXLMRobertaForTokenClassification
class. As per my understanding, it should beXLMRobertaForSequenceClassification
for text classifications like Sentiment, Intent. Where asXLMRobertaForTokenClassification
, would be apt for NER use cases.Please correct me if I am misunderstood.