bluejoyq

add machine server

...@@ -102,7 +102,7 @@ const DOCVECAPI = (searchResults, keywordText, index) => { ...@@ -102,7 +102,7 @@ const DOCVECAPI = (searchResults, keywordText, index) => {
102 return new Promise((resolve, reject) => { 102 return new Promise((resolve, reject) => {
103 apiReqOption = { 103 apiReqOption = {
104 method: "POST", 104 method: "POST",
105 - uri: "http://127.0.0.1:5000/analyze", 105 + uri: "http://15.164.215.24:5000/analyze",
106 body: { 106 body: {
107 sentence1: searchResults[index].passage, 107 sentence1: searchResults[index].passage,
108 sentence2: keywordText 108 sentence2: keywordText
......
...@@ -34,7 +34,7 @@ def parsetoken(sentence): ...@@ -34,7 +34,7 @@ def parsetoken(sentence):
34 model["/".join(tag)] 34 model["/".join(tag)]
35 lst.append("/".join(tag)) 35 lst.append("/".join(tag))
36 except: 36 except:
37 - null 37 + print(1)
38 # resdata = dict(zip(range(1, len(lst) + 1), lst)) 38 # resdata = dict(zip(range(1, len(lst) + 1), lst))
39 return lst 39 return lst
40 40
......