json-schema-text-classifier / examples /sentiment_analysis.json
davanstrien's picture
davanstrien HF Staff
Rewrite as clean HTML/JS app with dynamic label management
161b93c
raw
history blame contribute delete
293 Bytes
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"sentiment": {
"type": "string",
"enum": ["positive", "negative", "neutral"],
"description": "Classification into one of 3 categories"
}
},
"required": ["sentiment"]
}