Creates a new TextFeature instance
TextFeature configuration options
Readonly
alternatesOptional
Readonly
encodingOptional
Readonly
langReadonly
mimeReadonly
tokensOptional
Readonly
tokenConvert to JSON string
Convert to plain object for JSON serialization
Static
fromCreates a Feature instance from a dictionary with nested object conversion
Specialized text feature with convenient string value handling. Automatically sets mimeType to 'text/plain' and provides a values convenience property.
Example