pycognaize.document.tag.section_tag.SectionTag
- class SectionTag(top, left, height, width, page, tag_type)[source]
Bases:
LineTagRepresents field’s coordinate data on document
Methods
Builds Tag object from pycognaize raw data
set_class_confidenceConverts extraction tag to dict
vertical_shiftShifts line vertically
Attributes
confidencepagetoptype- 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: