简介 #
本接口为美妆日化三元组算法
调用示例 #
curl -XPOST -H 'Content-Type: application/json' \
-H 'Authorization: your token here' \
-d'{"data": "阿道夫真好用"}' \
https://open.datastory.com.cn/api/thanos/triple/cosmetics
说明:
- data为需要分析的文本
- token请联系算法组同事提供
请求响应 #
{"results":{"TRIPLE_NEW":"[{\"extractorName\":\"美妆日化V2\",\"dimension\":\"品牌实力\",\"property\":\"品牌实力\",\"feature\":\"阿道夫\",\"sentiment\":\"真好用\",\"featureAndSentiment\":\"阿道夫真好用\",\"featureAndSentimentForCount\":\"阿道夫好用\",\"originalSentiment\":\"真好用\",\"polarity\":\"正面\",\"sourceSentence\":\"\",\"sourcePhrase\":\"\",\"featureTextPos\":0,\"sentimentTextPos\":0,\"objectTextPos\":0}]"}}
说明:
- extractorName:领域名称
- dimension:一级维度
- property:二级维度
- feature:特征词
- sentiment:情感词
- featureAndSentiment:特征词+情感词
- featureAndSentimentForCount:特征词+情感词,去除其中的程度副词部分
- originalSentiment:原始情感词
- polarity:情感极性