mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 16:12:29 +00:00
Made ANEW paths absolute
This commit is contained in:
parent
18486aa3e0
commit
1ef9dac86a
@ -121,7 +121,7 @@ class EmotionTextPlugin(SentimentPlugin):
|
|||||||
dictionary={}
|
dictionary={}
|
||||||
lang = params.get("language", "auto")
|
lang = params.get("language", "auto")
|
||||||
if lang == 'es':
|
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')
|
reader = csv.reader(tabfile, delimiter='\t')
|
||||||
for row in reader:
|
for row in reader:
|
||||||
dictionary[row[2]]={}
|
dictionary[row[2]]={}
|
||||||
@ -129,7 +129,7 @@ class EmotionTextPlugin(SentimentPlugin):
|
|||||||
dictionary[row[2]]['A']=row[5]
|
dictionary[row[2]]['A']=row[5]
|
||||||
dictionary[row[2]]['D']=row[7]
|
dictionary[row[2]]['D']=row[7]
|
||||||
else:
|
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')
|
reader = csv.reader(tabfile, delimiter='\t')
|
||||||
for row in reader:
|
for row in reader:
|
||||||
dictionary[row[0]]={}
|
dictionary[row[0]]={}
|
||||||
|
Loading…
Reference in New Issue
Block a user