按学题搜索Microsoft Academic API

问题描述 投票:3回答:3

我正在尝试使用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": []
}
json web-services api search
3个回答
0
投票

尝试在'Ti'末尾添加三个点,即

Ti='Emotion detection for wheelchair navigation enhancement'...

有关格式化的更多信息,请访问https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/queryexpressionsyntax


0
投票

我复制了你的搜索,并使查询字符串小写为我做了伎俩,所以这工作:

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

我在文档中找不到任何解释此行为的引用,如果您这样做,请随时发表评论。


0
投票

使用Ti参数,您应将所有文本放在小写中并删除所有特殊字符。

您应该使用E.DN参数(扩展元数据属性),它是“显示纸张的名称”以获得纸张的全名(带有大写和特殊字符)。

https://docs.microsoft.com/en-us/azure/cognitive-services/academic-knowledge/paperentityattributes#extended-metadata-attributes

© www.soinside.com 2019 - 2024. All rights reserved.