Ibm watson 炼金术新闻摘录
我们正在为用户格式化和呈现炼金术数据新闻查询结果。我想我看到了其他这样做的演示(例如Watson News Explorer),它们显示了每篇文章的一小部分摘录。我没有看到炼金术数据新闻API返回的任何摘录。我们的查询中是否遗漏了什么?我们如何为用户显示新闻故事的摘录?您可以使用return=experized.url.text检索文本示例 请参见此处的完整参数列表 比如说Ibm watson 炼金术新闻摘录,ibm-watson,alchemyapi,Ibm Watson,Alchemyapi,我们正在为用户格式化和呈现炼金术数据新闻查询结果。我想我看到了其他这样做的演示(例如Watson News Explorer),它们显示了每篇文章的一小部分摘录。我没有看到炼金术数据新闻API返回的任何摘录。我们的查询中是否遗漏了什么?我们如何为用户显示新闻故事的摘录?您可以使用return=experized.url.text检索文本示例 请参见此处的完整参数列表 比如说 https://gateway-a.watsonplatform.net/calls/data/GetNews?apik
https://gateway-a.watsonplatform.net/calls/data/GetNews?apikey=****
&outputMode=json&start=now-1d&end=now&count=100
&q.enriched.url.enrichedTitle.relations.relation
=|action.verb.text=acquire,object.entities.entity.type=Company|
&return=enriched.url.text
会回来的
{
"status": "OK",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"totalTransactions": "148",
"result": {
"docs": [
{
"id": "NzI0MTkzMTM0N3wxNDY0OTYzMzY2",
"source": {
"enriched": {
"url": {
"text": "We've heard all year that fighting
the opioid crisis is the most important issue facing the New Hampshire
Legislature. Executive Councilor Colin Van Ostern is required by law to
file a report on his gubernatorial campaign's receipts and expenditures by
June 22. ..."
}
}
},
"timestamp": 1464963366
},(...)
另外,我正在为Bluemix使用Alchemy API您可以使用return=experized.url.text检索文本样本 请参见此处的完整参数列表 比如说
https://gateway-a.watsonplatform.net/calls/data/GetNews?apikey=****
&outputMode=json&start=now-1d&end=now&count=100
&q.enriched.url.enrichedTitle.relations.relation
=|action.verb.text=acquire,object.entities.entity.type=Company|
&return=enriched.url.text
会回来的
{
"status": "OK",
"usage": "By accessing AlchemyAPI or using information generated by AlchemyAPI, you are agreeing to be bound by the AlchemyAPI Terms of Use: http://www.alchemyapi.com/company/terms.html",
"totalTransactions": "148",
"result": {
"docs": [
{
"id": "NzI0MTkzMTM0N3wxNDY0OTYzMzY2",
"source": {
"enriched": {
"url": {
"text": "We've heard all year that fighting
the opioid crisis is the most important issue facing the New Hampshire
Legislature. Executive Councilor Colin Van Ostern is required by law to
file a report on his gubernatorial campaign's receipts and expenditures by
June 22. ..."
}
}
},
"timestamp": 1464963366
},(...)
另外,我正在为Bluemix使用Alchemy API