Home > other >  The contents of the TXT file for processing in python
The contents of the TXT file for processing in python

Time:01-02


This is the "train". TXT file a screenshot

"train" document on the inside of the sentence and the corresponding emotions out
Then put the sentence processing, split into a word
Then do a dictionary {key=mood: value=https://bbs.csdn.net/topics/word list}
Then go to draw the sentiment score of each word, we have three properties for each word, and scored positive, neutral score, negative score, because some words may be appeared in three kinds of mood sentence,

Blue word part is the requirement that
So I want to do, on the premise of no module, write the code?
I hope you can help me to answer it! Thank you very much!
  • Related