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 件 担当者 1 名 @holtskinner が担当を希望しています GitHub で見る
主要言語
Python
スター
5.4k
フォーク
1.8k
平均マージ
3日 4時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。