This paper presents a comparative study on sentiment analysis applied to legal texts, specifically legal opinions, and judgments. This paper uses embeddings such as T5, XLM Roberta and BERT, Roberta, and Legal BERT to convert the textual data into pre-trained language model word representation, to make it easier for ML algorithms to determine the sentiment (positive, negative, or neutral) of legal documents. The dataset was converted into embeddings, and various models, including KNN, ANN, SVM, random forest, XG boost, logistic regression, and decision tree, were employed for sentiment analysis. Each model was subjected to hyperparameter tuning using Grid Search CV, resulting in the highest accuracy of 66.66% with SVM on T5 embeddings. This research provides valuable insights into the emotional degrees within legal texts, demonstrating the effectiveness of our sentiment analysis approach.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Explaining Sentiments in Indian Legal Judgments with LIME and SHAP

  • T. Hemanth Babu,
  • V. Gopi Kiran,
  • Suhas S. Bhat,
  • Priyanka Prabhakar,
  • Peeta Basa Pati

摘要

This paper presents a comparative study on sentiment analysis applied to legal texts, specifically legal opinions, and judgments. This paper uses embeddings such as T5, XLM Roberta and BERT, Roberta, and Legal BERT to convert the textual data into pre-trained language model word representation, to make it easier for ML algorithms to determine the sentiment (positive, negative, or neutral) of legal documents. The dataset was converted into embeddings, and various models, including KNN, ANN, SVM, random forest, XG boost, logistic regression, and decision tree, were employed for sentiment analysis. Each model was subjected to hyperparameter tuning using Grid Search CV, resulting in the highest accuracy of 66.66% with SVM on T5 embeddings. This research provides valuable insights into the emotional degrees within legal texts, demonstrating the effectiveness of our sentiment analysis approach.