通过标题

时间:2016-11-18 17:34:22

标签: json web-services api search

我正在尝试使用Microsoft Academic Search API按标题查找文章。事实上,我有一系列测试题目,例如“轮椅导航增强的情绪检测”,文章I know appears precisely once,它没有出现在API结果中。

以下是网址调用:

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": []
}

2 个答案:

答案 0 :(得分:0)

尝试在' Ti'末尾添加三个点。就是这样,

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

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

答案 1 :(得分:0)

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

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

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