sv-task / src /schemas /responses.py
lamossta's picture
schemas
50aa44f
raw
history blame contribute delete
273 Bytes
from typing import Literal
from pydantic import BaseModel
class EntityOutput(BaseModel):
entity_id: int
entity_text: str
classification: Literal["positive", "negative", "neutral"]
class SampleOutput(BaseModel):
id: int
entities: list[EntityOutput]