pycognaize.document.tag.tag.LineTag

class LineTag(top, page, tag_type, confidence=None)[source]

Bases: Tag

Represents a tag that does not have height, and width is always 100%, hence a line

Parameters:
  • top (Union[int, float])

  • page (Page)

  • tag_type (str)

  • confidence (Confidence)

Methods

construct_from_raw

set_class_confidence

to_dict

Return a dictionary representing the tag object

Attributes

confidence

page

top

type

abstract to_dict()[source]

Return a dictionary representing the tag object

Return type:

dict