Filters potential child elements to identify only those fully contained within this element.
This method iterates through a list of potential child elements, checking if their
start and end indices fall completely within the start and end indices of this element.
Elements that are only partially contained or entirely outside this element's range are excluded.
Parameter
Name
Description
potential_children
List[_BasePageElement]
Required. A list of wrapped page elements (e.g., words, lines, paragraphs) that could potentially be children of this element.
Returns
Type
Description
List[_BasePageElement]
A new list containing only the wrapped page elements that are fully contained within this element, maintaining their original order.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class _BasePageElement (0.14.2a0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.2-a0 (latest)](/python/docs/reference/documentai-toolbox/latest/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.14.1-a0](/python/docs/reference/documentai-toolbox/0.14.1-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.13.5-a0](/python/docs/reference/documentai-toolbox/0.13.5-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.12.2-a0](/python/docs/reference/documentai-toolbox/0.12.2-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.11.2-a0](/python/docs/reference/documentai-toolbox/0.11.2-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.10.3-a0](/python/docs/reference/documentai-toolbox/0.10.3-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.9.1-a0](/python/docs/reference/documentai-toolbox/0.9.1-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.8.0-a0](/python/docs/reference/documentai-toolbox/0.8.0-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.7.0-a0](/python/docs/reference/documentai-toolbox/0.7.0-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.6.0-a0](/python/docs/reference/documentai-toolbox/0.6.0-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.5.0-a0](/python/docs/reference/documentai-toolbox/0.5.0-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.4.1-a0](/python/docs/reference/documentai-toolbox/0.4.1-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.3.0-a0](/python/docs/reference/documentai-toolbox/0.3.0-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.2.1-a0](/python/docs/reference/documentai-toolbox/0.2.1-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement)\n- [0.1.1-a0](/python/docs/reference/documentai-toolbox/0.1.1-a0/google.cloud.documentai_toolbox.wrappers.page._BasePageElement) \n\n _BasePageElement(\n documentai_object: typing.Union[\n google.cloud.documentai_v1.types.document.Document.Page.Paragraph,\n google.cloud.documentai_v1.types.document.Document.Page,\n google.cloud.documentai_v1.types.document.Document.Page.Token,\n google.cloud.documentai_v1.types.document.Document.Page.Block,\n google.cloud.documentai_v1.types.document.Document.Page.Symbol,\n ],\n _page: google.cloud.documentai_toolbox.wrappers.page.Page,\n )\n\nBase class for representing a wrapped Document AI Page element (Symbol, Token, Line, Paragraph, Block).\n\nProperties\n----------\n\n### _text_segment\n\nPage element text segment.\n\n### hocr_bounding_box\n\nhOCR bounding box of the page element.\n\n### text\n\nText of the page element.\n\nMethods\n-------\n\n### _get_children_of_element\n\n _get_children_of_element(\n potential_children: typing.List[\n google.cloud.documentai_toolbox.wrappers.page._BasePageElement\n ],\n ) -\u003e typing.List[google.cloud.documentai_toolbox.wrappers.page._BasePageElement]\n\nFilters potential child elements to identify only those fully contained within this element.\n\nThis method iterates through a list of potential child elements, checking if their\nstart and end indices fall completely within the start and end indices of this element.\nElements that are only partially contained or entirely outside this element's range are excluded."]]