diff options
author | Hao Chen | 2019-05-09 00:07:32 -0500 |
---|---|---|
committer | Hao Chen | 2019-05-09 00:07:32 -0500 |
commit | 888e95f82ec96129257ff9064e9860a275fb7b15 (patch) | |
tree | 607903cb4711517101c86e9119a8419b14a4c7d9 /ratspub.py | |
parent | 502008d20887f69557e223129e2f520d51272c2a (diff) | |
download | genecup-888e95f82ec96129257ff9064e9860a275fb7b15.tar.gz |
clean up
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", |