在Discovery QueryOptions returnFields中如何计算location.begin和location.end?

时间:2019-04-29 07:44:52

标签: java watson-discovery

Discovery API如何计算“ location.begin”(请参见下面的代码)? 字段以以下格式(JSON)返回:

        "location": {
          "end": 2407.0,
          "begin": 2393.0
        },

“开始”结果似乎与原始PDF文档或文本中的任何起点都不相关。如何计算?

“。0”是什么意思?

QueryOptions options = new QueryOptions.Builder(environmentId, "<environmentId>")
    .query("sale")
    .filter("enriched_html_elements.contract_types.text:sale")
    .returnFields("enriched_html_elements.contract_types.text, enriched_html_elements.contract_types.location.end, enriched_html_elements.contract_types.location.begin")
.build();

预先感谢您的任何建议。

0 个答案:

没有答案