The OKBQA Hackathon 2014 has produced a set of prototype implementations for each of the modules envisioned in the architecture. Each module is accessible through RESTful services that are available for a limited time on the demonstration server. Repositoryhttp://repository.okbqa.org(old) http://121.254.173.77:30000 (old) http://110.45.246.131:30000 Question Formulation Template Generation
Korean Dependency Parser: Input String(Question) -> output String(Stanford Form) http://143.248.135.187:10117/controller/service/etri_parser Disambiguation (English)
{ Disambiguation(Korean)http://121.254.173.77:12345/request AGDISTIS for korean: URL: http://121.254.173.77:33211/AGDISTIS Example call: curl --data-urlencode "text='<entity>덕혜옹주</entity>는 <entity>조선</entity>의 제26대 <entity>왕</entity>이자 <entity>대한제국</entity>의 초대 <entity> 황제</entity> <entity>고종</entity>과 <entity>귀인 양씨</entity>의 <entity>황녀</entity>이다.'" -d type=agdistis http://121.254.173.77:33211/AGDISTIS Query GenerationSparqlator (GraphFinder)URL: http://121.254.173.77:38401/queries Example call: curl -H "content-type:application/json" -d @test.json http://121.254.173.77:38401/queries Answer Generation URL: http://121.254.173.77:10009/test Example input JSON : {"sentence":"Which rivers flow through Gunsan?", "lang":"en"} Rendering More info: IO Specification.Test Service
The test service understands both POST and GET requests. The query parameters for GET requests are the URL of the controller (parameter name: url) and optionally the language in which the tests are to be carried out (parameter name: language, default = en). A corresponding call would be
for a controller located at http://test.org/controller.The POST version understands JSON objects of the form {"url":"http:\/\/test.org\/controller", "language":"korean"}.
Test Service (for OKBQA 2015)Distributional Semantics Services (English is online and Korean is on its way)URL: http://121.254.173.77:56789/controller
Example call: curl -H "Content-Type: application/json" -X POST -d @input.json http://121.254.173.77:56789/controller
Input JSON: {"string":"question", "language":"en"/"ko"}You can experiment with five distributional models: ESA, LSA, RI, Word2Vec and Glove. The services can be invoked as below. For returning the semantic relatedness measure of two terms (e.g. `power' and `electric'): http://vmdgsit04.deri.ie/relatedness/esa/en?term=power&targetSet=electric As a response you will get the semantic relatedness measure:{"electric":0.051038838852184375} We can also calculate the semantic relatedness value of one term (e.g. `power') and a list of terms () :http://vmdgsit04.deri.ie/relatedness/esa/en?term=power&targetSet=electric;cable;station;car;table In this case we will receive as an answer the ranked list of semantic relatedness values: {"electric":0.051038838852184375,"station":0.019850553560107974, The parameters of the URL are the distributional semantic model (esa, lsa, ri, w2v, You can also get the distributional vector of a word (e.g. love), which consists of the http://vmdgsit04.deri.ie/vector/esa/en?term=love which will return the answer: {"27002780":0.15384358167648315,"7874937":0.18914856016635895, Named Entity RecognitionPath FinderFull-Text IndexExample call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 지방법원의 수는 총 18개이다." http://143.248.135.187:22334/controller/service/entitylinking_okbqaoutput: S postposition [tab] O postposition [tab] S ner [tab] O ner [tab] Property [tab] score Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=태어나" http://143.248.135.187:22334/controller/service/predlinking1_okbqaoutput: Property [tab] score Example call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=태어나" http://143.248.135.187:22334/controller/service/predlinking2_okbqaExample call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 대통령은 누구인가? " http://143.248.135.187:22334/controller/service/templete_okbqaExample call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국의 대통령은 누구인가?" http://143.248.135.187:22334/controller/service/query_okbqaExample call: curl -X POST -H "Content-Type:application/x-www-form-urlencoded" -d "sentence=대한민국" http://143.248.135.187:22334/controller/service/similar_words_okbqa |
Development >