pycognaize.document.tag.html_tag.HTMLTag
- class HTMLTag(raw_value, raw_ocr_value, is_table, html_id, field_id, tag_id, row_index, col_index, xpath, is_td=True)[source]
Bases:
HTMLTagABC- Parameters:
raw_value (
str)raw_ocr_value (
str)is_table (
bool)html_id (
Union[str,List[str]])field_id (
Optional[str])tag_id (
Optional[str])row_index (
int)col_index (
int)xpath (
str)is_td (
bool)
Methods
Build HTMLTag from pycognaize raw data :type html:
HTML:param html: HTML :type raw:dict:param raw: pycognaize field's tag info :rtype:HTMLTag:return:set_class_confidenceConverts tag to dict
Attributes
col_indexfield_idhtml_idis_tableis_tdraw_ocr_valuereturns adjusted value
row_indextag_idxpath- classmethod construct_from_raw(raw, html)[source]
Build HTMLTag from pycognaize raw data :type html:
HTML:param html: HTML :type raw:dict:param raw: pycognaize field’s tag info :rtype:HTMLTag:return:
- property raw_value
returns adjusted value