You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentiment Analysis using Large Language Model (LLM)
Fine-Tuning the Large Language Model
Data Augmentation using Back-Translation technique
Data Balancing (working with imbalanced Dataset)
Random Oversampling
Weighted Loss
File Descriptions
sentiment-analysis-llm/
├── amazon reviews sentiment analysis.ipynb # the notebook with data augmentation, data balancing, sentiment analysis and fine-tuning using (HuggingFace)
├── README.md # readme file
├── requirements.txt # all necessary libraries
├── Emoticon.py # dictionary with emojis as a symbol with the text description
Results
The main findings of the code can be found at the post:
"Sentiment Analysis of Customer Product Reviews using Large Language Model (LLM)" available here.
Licensing, Authors, Acknowledgements
Must give credit to Kaggle for providing the data.
Copyright (C) 2024 February
TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, THE CODE COMPONENTS ARE PROVIDED BY THE AUTHORS, COPYRIGHT HOLDERS, CONTRIBUTORS, LICENSORS, “AS IS”.
DISCLAIMED ARE ANY REPRESENTATIONS OR WARRANTIES OF ANY KIND, WHETHER ORAL OR WRITTEN, WHETHER EXPRESS, IMPLIED, OR ARISING BY STATUTE, CUSTOM, COURSE OF DEALING, OR TRADE USAGE, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
IN NO EVENT WILL THE COPYRIGHT OWNER, CONTRIBUTORS, LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION). HOWEVER, CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE CODE COMPONENTS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
About
How to use Large Language Model for Sentiment Analysis