API
This api is supported by GET request, the url is like http://183.174.228.26:8283/search-post?X=XXX
Basic parameters
t = topn|similarity|vector|sentence
s = Law|News|Wikipedia|Query|Community|UserbasedQuery|URLbasedQuery|Cnnews|Weibo|NewsTitle
t=topn
get the topn similar words with input word 'w', n is defined by parameter 'c'
[q = word][c = number]
e.g. http://183.174.228.26:8283/search-post?t=topn&s=Weibo&q=hello&c=10
t=similarity
get the similarity between word w1 and word w2
[w1 = word1][w2 = word2]
e.g. http://183.174.228.26:8283/search-post?t=similarity&s=Weibo&w1=hello&w2=hi
t=vector
get the vector of word w
[w = word]
e.g. http://183.174.228.26:8283/search-post?t=vector&s=Weibo&w=hello
t=sentence
use the mean value of the words' vectors as the sentence vector, the sentence will be segemented by snlp service (http://183.174.228.29:8283/snlp/segment)
[sentence = sentence]
e.g. http://183.174.228.26:8283/search-post?t=sentence&s=Weibo&sentence=我爱中国人民大学