【问题标题】:Increasing the number of explanation tags returned by concept insights conceptual search results增加概念洞察概念搜索结果返回的解释标签数量
【发布时间】:2016-04-15 17:53:57
【问题描述】:

我正在对上传到 Conceptual Insights 的文档语料库使用概念搜索。我在每个相关文档的解释标签中得到的结果具有非常高的相关性分数(高于 0.998)。但是,默认情况下,我只返回一小部分概念作为每个文档的解释标签(在我的情况下始终是 6 个概念)。

我的解释标签中一个概念的最低相关性分数是 0.9983。考虑到解释标签中最不相关的概念的相关性如此之高,我觉得可能有更多的概念可能与我的概念搜索相关但被 API 抑制,同时返回 json 结果。

解释标签中返回的相关概念集是否有任何内在的截止或限制?是否可以通过查询参数修改此阈值以获取更多相关性分数略低的概念?

【问题讨论】:

  • 任何编码工作?

标签: concept-insights


【解决方案1】:

您可以通过将&explanation_tags=<int> 参数添加到/conceptual_search 查询来更改查询和每个返回文档之间用作解释的概念的数量。例如,如果我们从文档中获取示例:

curl -u 用户名:密码 -G -d "ids=[\"/graphs/wikipedia/en-20120601/concepts/Artificial_intelligence\"]" "https://gateway.watsonplatform.net/concept-insights/api/v2/corpora/public/ibmresearcher/conceptual_search" | jq .results[].explanation_tags[].concept.id | wc -l

我们得到 60。如果我们添加 explanation_tags=10 作为参数:

curl -u 用户名:密码 -G -d "explanation_tags=10" -d "ids=[\"/graphs/wikipedia/en-20120601/concepts/Artificial_intelligence\"]" "https://gateway.watsonplatform.net/concept-insights/api/v2/corpora/public/ibmresearcher/conceptual_search" | jq .results[].explanation_tags[].concept.id | wc -l

我们得到 100

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-07
    • 2016-04-21
    • 1970-01-01
    • 2019-08-01
    相关资源
    最近更新 更多