pycognaize.document.field.date_field.DateField
- class DateField(name, value='', tags=None, field_id=None, group_key=None, confidence=-1.0, group_name=None, mapping=None)[source]
Bases:
Field
Base class for all pycognaize date fields
- Parameters:
name (
str
)value (
str
)tags (
Optional
[List
[ExtractionTag
]])field_id (
Optional
[str
])group_key (
str
)confidence (
Optional
[float
])group_name (
str
)mapping (
Optional
[List
[Dict
[str
,str
]]])
Methods
Create DateField object from dictionary
Converts DateField 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 DateField object from dictionary
- tag_class
alias of
ExtractionTag