googleapis / googleapis/google-cloud-python

`split_pdf` splits too much, since it does not take into account that different entities might have same type (but different confidence)

未关闭
#15,823 2 条评论 0 个 reaction 已指派 1 人 已被 @holtskinner 认领 在 GitHub 查看
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

Here is entities example returned from splitter:

```
[text_anchor {
text_segments {
end_index: 1424
}
}
type_: "form1"
confidence: 0.96
page_anchor {
page_refs {
}
page_refs {
page: 1
}
page_refs {
page: 2
}
}
, text_anchor {
text_segments {
start_index: 1424
end_index: 6935
}
}
type_: "form1"
confidence: 0.68
page_anchor {
page_refs {
page: 3
}
page_refs {
page: 4
}
}
]
```

In this case we see that all pages are actually of same type and we should not split. However document.Document.split_pdf would not detect that.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。