Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a labeled dataset(Arabic Tweets) and labeled Lexicon, I want to detect the emotion by machine learning algorithms.

I did the preprocessing step and other functions. just I want to apply these steps:

compute the TF scheme in order to obtain how frequently an expression (term, word) occurs in a document.

To incorporate the affective lexical features we check the presence of lexicon terms in the sentence and we obtain a vector that represents each emotional category (anger, fear, sadness, and joy).

Finally, to carry out the classification, the concatenation of the TF sentence representation and the word-based features are used as input to the different algorithms (SVM, LR, MLP, MultinomialNB).

how can I do these steps because I am a beginner in Sentiment analysis and python?

What I have tried:

how to incorporate the affective lexical features and check the presence of lexicon terms in the sentence and obtain a vector that represent each emotional category (anger, fear, sadness and joy).
Posted
Updated 28-Jan-21 4:01am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900