1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-09-27 16:31:42 +00:00

Made ANEW paths absolute

This commit is contained in:
J. Fernando Sánchez 2017-05-10 17:21:36 +02:00
parent 18486aa3e0
commit 1ef9dac86a

View File

@ -121,7 +121,7 @@ class EmotionTextPlugin(SentimentPlugin):
dictionary={}
lang = params.get("language", "auto")
if lang == 'es':
with open(self._local_path+self.anew_path_es,'rb') as tabfile:
with open(self.anew_path_es,'rb') as tabfile:
reader = csv.reader(tabfile, delimiter='\t')
for row in reader:
dictionary[row[2]]={}
@ -129,7 +129,7 @@ class EmotionTextPlugin(SentimentPlugin):
dictionary[row[2]]['A']=row[5]
dictionary[row[2]]['D']=row[7]
else:
with open(self._local_path+self.anew_path_en,'rb') as tabfile:
with open(self.anew_path_en,'rb') as tabfile:
reader = csv.reader(tabfile, delimiter='\t')
for row in reader:
dictionary[row[0]]={}