diff options
Diffstat (limited to 'ratspub.py')
-rwxr-xr-x | ratspub.py | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -2,10 +2,6 @@ from nltk.tokenize import sent_tokenize import os import re -import codecs -import sys - -#gene=sys.argv[1] ## turn dictionary (synonyms) to regular expression def undic(dic): @@ -94,8 +90,6 @@ def generate_edges(data): json0+="{ data: { id: \'" + edgeID + "\', source: \'" + source + "\', target: '" + target + "\', sentCnt: '" + str(edgeCnts[edgeID]) + "', url:'/sentences?edgeID=" + edgeID + "' } },\n" return(json0) - - addiction_d = {"reward":"reward|hedonic|incentive|intracranial self stimulation|ICSS|reinforcement|conditioned place preference|CPP|self administration|self administered|drug reinforced|operant|instrumental response", "aversion":"aversion|aversive|CTA|withdrawal|conditioned taste aversion", "relapse":"relapse|reinstatement|craving|drug seeking|seeking", |