BASE_URL: http://didi-gz5.jiaoyou365.com ###### 提交语义关系的选择记录 URL: BASE_URL:19082/condition/choise/record METHOD: POST Parameter | Type | Description | :----------- | :------: | ------------: | | Authorization | token | 用户token | RequestBody: ``` { "queryText":"张三喜欢打篮球", "conditionName":"do_what_vv", "semanticRelationName":"ruleb0dob0whatb0vv", "tripleSos":[ {"s":"喜欢", "o":"打"} ] } ``` ResponseBody: ``` { "code": 1, "msg": "成功", "data": null } ``` ###### 搜索语义关系(此接口只是返回数据的格式做了变更) URL: BASE_URL:19082/condition/search?queryText=张三喜欢打篮球 METHOD: GET Headers: Parameter | Type | Description | :----------- | :------: | ------------: | | Authorization | token | 用户token | ResponseBody: ``` { "code": 1, "msg": "成功", "data": { "submitChoiceConditionRecord": true, // 新加字段,true表示在用户选择之后(:19082/condition/choise/record配合这个接口使用),将用户操作数据提交给后台 "conditions": [ // 语义关系列表 { "id": 743, "name": "do_what_vn", "nickName": "陈述之动宾", "semanticRelationName": "ruleb0dob0whatb0vn", "head": "...", "tail": "?", "keywords": "...", "score": 0.98119825, "conditionParses": [ { "playerSay": "张三喜欢打篮球", "determiner": "打", "keyword": "篮球" } ] }, { "id": 857, "name": "do_what_nv", "nickName": "陈述之主谓", "semanticRelationName": "ruleb0dob0whatb0nv", "head": "...", "tail": "?", "keywords": "...", "score": 0.8653726, "conditionParses": [ { "playerSay": "张三喜欢打篮球", "determiner": "张三", "keyword": "打" }, { "playerSay": "张三喜欢打篮球", "determiner": "张三", "keyword": "喜欢" } ] } ] } } ```