bluejoyq

add machine server

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