svjack commited on
Commit
aeee3b1
1 Parent(s): 4dd7741

Update wiki_kb_qa_migrate.py

Browse files
Files changed (1) hide show
  1. wiki_kb_qa_migrate.py +9 -0
wiki_kb_qa_migrate.py CHANGED
@@ -1,5 +1,14 @@
1
  #### qa_env
2
  #from conf import *
 
 
 
 
 
 
 
 
 
3
  from qa import *
4
  from translate_by_api import *
5
  from extract_by_api import *
1
  #### qa_env
2
  #from conf import *
3
+
4
+ import os
5
+ d = dict(SYNONYMS_WORD2VEC_BIN_URL_ZH_CN = \
6
+ "https://github.com/chatopera/Synonyms/releases/download/3.15.0/words.vector.gz")
7
+
8
+ for k, v in d.items():
9
+ os.environ[k] = v
10
+
11
+
12
  from qa import *
13
  from translate_by_api import *
14
  from extract_by_api import *