Commit 95785624 authored by Dhananjaya Jayashanka's avatar Dhananjaya Jayashanka

change the emotions.txt

parent 64070af3
......@@ -27,7 +27,7 @@ for word in final_words:
lemma_words.append(word)
emotion_list = []
with open('emotions.txt', 'r') as file:
with open('Emotion/emotions.txt', 'r') as file:
for line in file:
clear_line = line.replace("\n", '').replace(",", '').replace("'", '').strip()
word, emotion = clear_line.split(':')
......
......@@ -34,7 +34,7 @@ for word in tokenized_words:
emotion_list = []
with open('emotions.txt', 'r') as file:
with open('Emotion/emotions.txt', 'r') as file:
for line in file:
clear_line = line.replace("\n", '').replace(",", '').replace("'", '').strip()
word, emotion = clear_line.split(':')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment