diff options
| author | Hao Chen | 2019-05-17 19:08:21 -0500 |
|---|---|---|
| committer | Hao Chen | 2019-05-17 19:08:21 -0500 |
| commit | a6376a94e137eea0e0d326d6524fe9c2177b1b34 (patch) | |
| tree | d4e9f3ed40f9a24925e943a7c9b961680f30ebd5 /ratspub.py | |
| parent | 7ca139dfe40b70db4f553d09b7010712c33207fe (diff) | |
| download | genecup-a6376a94e137eea0e0d326d6524fe9c2177b1b34.tar.gz | |
sep the keywords out
Diffstat (limited to 'ratspub.py')
| -rwxr-xr-x | ratspub.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ratspub.py b/ratspub.py index 64e750a..0cc5d8a 100755 --- a/ratspub.py +++ b/ratspub.py @@ -2,11 +2,10 @@ from nltk.tokenize import sent_tokenize import os import re -import ratspub_keywords +from ratspub_keywords import * global function_d, brain_d, drug_d, addiction_d, brain_query_term, pubmed_path -pubmed_path="/media/hao/2d554499-6c5b-462d-85f3-5c49b25f4ac8/PubMed/Archive" ## turn dictionary (synonyms) to regular expression def undic(dic): @@ -79,3 +78,11 @@ n1=generate_nodes(addiction_d, 'addiction') n2=generate_nodes(drug_d, 'drug') n3=generate_nodes(brain_d, 'brain') default_nodes=n0+n1+n2+n3 + + +host= os.popen('hostname').read().strip() +if host=="x1": + pubmed_path="/run/media/hao/PubMed/Archive/" +elif host=="hchen3": + pubmed_path="/media/hao/2d554499-6c5b-462d-85f3-5c49b25f4ac8/PubMed/Archive" + |
