pycognaize.document.field.area_field.AreaField
- class AreaField(name, value='', tags=None, field_id=None, group_key=None, confidence=-1.0, group_name=None, classification_labels=None, mapping=None)[source]
Bases:
Field
Base class for all pycognaize area fields
- Parameters:
name (
str
)value (
str
)tags (
Optional
[List
[Union
[ExtractionTag
,HTMLTag
]]])field_id (
Optional
[str
])group_key (
str
)confidence (
Optional
[float
])group_name (
str
)classification_labels (
Optional
[ClassificationLabels
])mapping (
Optional
[List
[Dict
[str
,str
]]])
Methods
Create AreaField object from dictionary
Converts AreaField object to dictionary
Attributes
classes
classification_labels
confidence
field_id
group_key
group_name
mapping
name
raw_value
tags
value
- classmethod construct_from_raw(raw, pages, html=None, labels=None)[source]
Create AreaField object from dictionary
- Parameters:
raw (
dict
)pages (
Dict
[int
,Page
])html (
Optional
[HTML
])labels (
ClassificationLabels
)
- Return type:
- tag_class
alias of
ExtractionTag