.Sentiment

gd.validators.Sentiment

class glyphdeck.validators.Sentiment(
*,
sentiment_score: float,
)

Bases: BaseValidatorModel

Validation model for representing sentiment scores.

_field_count

The number of fields in the model.

Type:

int

sentiment_score

The overall sentiment score.

Type:

float

model_fields: ClassVar[Dict[str, FieldInfo]] = {'sentiment_score': FieldInfo(annotation=float, required=True, description='A 2 decimal value that represents the overall sentiment of the input. Ranges from -1.00 (max negative sentiment) to 1.00 (max positive sentiment), with 0.00 indicating neutral sentiment. It must be between -1.00 and 1.00')}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

sentiment_score: float