pycognaize.document.field.text_field

TextField objects represent a single labeled pycognaize field.
The latter can have no tags, a single tag or multiple tags.
>>> from pycognaize.document.field.text_field import TextField
>>> text_field = TextField(name='company name', value='gooloogooloo')
>>> text_field.name
'company name'
>>> text_field.value
'gooloogooloo'
>>> text_field.tags
[]

Classes

TextField

Base class for all pycognaize text fields