aboutsummaryrefslogtreecommitdiff
path: root/ratspub.py
diff options
context:
space:
mode:
authorHao Chen2019-05-09 00:07:32 -0500
committerHao Chen2019-05-09 00:07:32 -0500
commit888e95f82ec96129257ff9064e9860a275fb7b15 (patch)
tree607903cb4711517101c86e9119a8419b14a4c7d9 /ratspub.py
parent502008d20887f69557e223129e2f520d51272c2a (diff)
downloadgenecup-888e95f82ec96129257ff9064e9860a275fb7b15.tar.gz
clean up
Diffstat (limited to 'ratspub.py')
-rwxr-xr-xratspub.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/ratspub.py b/ratspub.py
index cc52591..345146e 100755
--- a/ratspub.py
+++ b/ratspub.py
@@ -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",