我正在尝试使用Microsoft Academic Search API按标题查找文章。事实上,我有一系列的测试标题,例如,“用于轮椅导航增强的情绪检测”,这是一篇文章I know appears precisely once,它不会出现在API结果中。
下面是URL调用:
https://api.projectoxford.ai/academic/v1.0/evaluate?expr=Ti='Emotion detection for wheelchair navigation enhancement'&model=latest&count=1&offset=0&attributes=Ti,Y,AA.AfN,C.CN,J.JN,E下面是相关的HTTP请求:
GET https://api.projectoxford.ai/academic/v1.0/evaluate?expr=Ti='Emotion detection for wheelchair navigation enhancement'&model=latest&count=1&offset=0&attributes=Ti,Y,AA.AfN,C.CN,J.JN,E HTTP/1.1
Host: api.projectoxford.ai
Ocp-Apim-Subscription-Key: ••••••••••••••••••••••••••••••••下面是我得到的结果:
apim-request-id: 1e0501f9-6398-4bd1-8a3d-36bff155bdd2
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Date: Fri, 18 Nov 2016 16:58:15 GMT
X-Powered-By: ASP.NET
Content-Length: 90
Content-Type: application/json
{
"expr": "Ti='Emotion detection for wheelchair navigation enhancement'",
"entities": []
}发布于 2018-05-01 18:49:56
使用Ti参数时,您应该将所有文本放在、小写和中,删除所有特殊字符。
您应该使用E.DN参数(一个扩展的元数据属性),它是“论文的显示名称”,以包含论文的全名(大写和特殊字符)。
发布于 2017-05-06 00:03:39
试着在“Ti”的末尾加三个点,
Ti='Emotion detection for wheelchair navigation enhancement'...有关格式化的更多信息,请访问https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/queryexpressionsyntax
发布于 2017-05-08 23:18:44
我复制了您的搜索,并使查询字符串小写为我做了这个把戏,所以这是有效的:
https://westus.api.cognitive.microsoft.com/academic/v1.0/evaluate?expr=Ti='emotion detection for wheelchair navigation enhancement'&model=latest&count=10&offset=0&attributes=Id我在文档中找不到任何可以解释这种行为的参考资料,如果你有的话,请随时发表评论。
https://stackoverflow.com/questions/40682927
复制相似问题