Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emotion recognition in text #586

Merged
merged 26 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
adb8547
word cloud.png
SRUJANA2199 Feb 17, 2024
6698297
Delete Images/word cloud.png
SRUJANA2199 Feb 17, 2024
97b0519
word cloud.png
SRUJANA2199 Feb 17, 2024
113a816
Add files via upload
SRUJANA2199 Feb 17, 2024
e39eb3b
Delete Emotion recognition in text/Images/word cloud.png
SRUJANA2199 Feb 17, 2024
852ebe8
Delete Emotion recognition in text/length distribution.png
SRUJANA2199 Feb 17, 2024
21142ed
images.txt
SRUJANA2199 Feb 17, 2024
c01a1e4
Add files via upload
SRUJANA2199 Feb 17, 2024
d52c952
Emotion-Recognition-in-text.ipynb
SRUJANA2199 Feb 17, 2024
b0a3840
Emotion recognition in text/Model/Emotion-Recognition-in-text.ipynb t…
SRUJANA2199 Feb 17, 2024
fb7a52e
Add files via upload
SRUJANA2199 Feb 17, 2024
c62190c
Images.txt
SRUJANA2199 Feb 17, 2024
6c08acb
Emotion-Recognition-in-text.ipynb
SRUJANA2199 Feb 17, 2024
204a177
Add files via upload
SRUJANA2199 Feb 17, 2024
cf8c3a4
Delete Emotion recognition in text/Images.txt
SRUJANA2199 Feb 17, 2024
3c1b2fc
readme.md
SRUJANA2199 Feb 17, 2024
5aba12c
requirements.txt
SRUJANA2199 Feb 17, 2024
1f361a3
readme.md
SRUJANA2199 Feb 17, 2024
c2c5c54
Delete Emotion recognition in text/Images/images.txt
SRUJANA2199 Feb 17, 2024
9e36828
Update and rename readme.md to README.md
SRUJANA2199 Feb 18, 2024
4588c71
Update and rename readme.md to README.md
SRUJANA2199 Feb 18, 2024
dde41af
Emotion Recognition in Text
SRUJANA2199 Feb 18, 2024
efe3ee2
Updated
SRUJANA2199 Feb 18, 2024
d6537e7
Delete Model/Emotion recognition in text.ipynb
SRUJANA2199 Feb 18, 2024
3dc3a98
Delete Model/Emotion-Recognition-in-text.ipynb
SRUJANA2199 Feb 18, 2024
6d2fa7c
Delete Emotion Recognition in Text
SRUJANA2199 Feb 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions Emotion Recognition In Text/Dataset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
EMOTION RECOGNITION IN TEXT

GOAL

To develop a model that can analyze text data and classify the emotions expressed (e.g., happiness, sadness, anger).


DATASET

https://www.kaggle.com/datasets/pashupatigupta/emotion-detection-from-text

DESCRIPTION

To analyze the dataset of emotion detction from text and build,train the model on the basis of different features and variables.

Visualization and EDA of different attributes:





![sentiment distribution](https://github.com/abhisheks008/ML-Crate/assets/136368774/563e9d32-6c49-40a3-803a-419931a84f3a)













WHAT I HAD DONE

1.Load the dataset which contains about 40000 entires.

2.Checked for missing values and cleaned the data accordingly.

3.Analyzed the data, found insights and visualized them accordingly.

4.Plotting distribution graphs to find corelations.

5.Found detailed insights of different columns with target variable using plotting libraries.

6.Trained the datasets by different models and saves their accuracies into a dataframe.


MODELS USED


Random forest classifier as it shows high accuracy,versatility and scalability.

Gradient booster which is a strong algorithm for classification and regression problems

XGBClassifier help to improve machine-learning model's accuracy.


LIBRARIES NEEDED

Numpy

Pandas

Word cloud

Matplotlib

Seaborn

Scikit-Learn

Scipy

Xgboost

Tensorflow

Keras


VISUALIZATION

INCLUSION OF IMAGES OF THE VISUALIZATION IS MUST (RESULT OF EDA).

ACCURACIES

Random forest classifier Score = 1.0

Gradient booster Score = 1.0

XGBClassifier Score = 0.25


CONCLUSION

Random forest classifier and Gradient booste rmodels show promising performance .

XGBClassifier shows less accuracy


YOUR NAME

SRUJANA


Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
772 changes: 772 additions & 0 deletions Emotion Recognition In Text/Model/Emotion-Recognition-in-text.ipynb

Large diffs are not rendered by default.

108 changes: 108 additions & 0 deletions Emotion Recognition In Text/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
EMOTION RECOGNITION IN TEXT

GOAL

To develop a model that can analyze text data and classify the emotions expressed (e.g., happiness, sadness, anger).


DATASET

https://www.kaggle.com/datasets/pashupatigupta/emotion-detection-from-text

DESCRIPTION

To analyze the dataset of emotion detction from text and build,train the model on the basis of different features and variables.

Visualization and EDA of different attributes:





![sentiment distribution](https://github.com/abhisheks008/ML-Crate/assets/136368774/563e9d32-6c49-40a3-803a-419931a84f3a)













WHAT I HAD DONE

1.Load the dataset which contains about 40000 entires.

2.Checked for missing values and cleaned the data accordingly.

3.Analyzed the data, found insights and visualized them accordingly.

4.Plotting distribution graphs to find corelations.

5.Found detailed insights of different columns with target variable using plotting libraries.

6.Trained the datasets by different models and saves their accuracies into a dataframe.


MODELS USED


Random forest classifier as it shows high accuracy,versatility and scalability.

Gradient booster which is a strong algorithm for classification and regression problems

XGBClassifier help to improve machine-learning model's accuracy.


LIBRARIES NEEDED

Numpy

Pandas

Word cloud

Matplotlib

Seaborn

Scikit-Learn

Scipy

Xgboost

Tensorflow

Keras


VISUALIZATION

INCLUSION OF IMAGES OF THE VISUALIZATION IS MUST (RESULT OF EDA).

ACCURACIES

Random forest classifier Score = 1.0

Gradient booster Score = 1.0

XGBClassifier Score = 0.25


CONCLUSION

Random forest classifier and Gradient booste rmodels show promising performance .

XGBClassifier shows less accuracy


YOUR NAME

SRUJANA


9 changes: 9 additions & 0 deletions Emotion Recognition In Text/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
numpy==1.19.2
pandas==1.4.3
matplotlib==3.7.1
scikit-learn~=1.0.2
scipy==1.5.0
seaborn==0.10.1
xgboost~=1.5.2
tensorflow==2.4.1
keras==2.4.0