pycognaize.document.tag.section_tag.SectionTag
- class SectionTag(top, left, height, width, page, tag_type)[source]
Bases:
LineTag
Represents field’s coordinate data on document
Methods
Builds Tag object from pycognaize raw data
set_class_confidence
Converts extraction tag to dict
vertical_shift
Shifts line vertically
Attributes
confidence
page
top
type
- classmethod construct_from_raw(raw, pages, tag_type)[source]
Builds Tag object from pycognaize raw data
- Parameters:
raw (
dict
) – pycognaize field’s tag infopages (
Dict
[int
,Page
]) – Page to which the tag belongstag_type (
str
) – Page to which the tag belongs
- Return type:
- Returns: