16 lines
242 B
Python
16 lines
242 B
Python
from dataclasses import dataclass, field
|
|
|
|
@dataclass(slots=True)
|
|
class PredictionResult:
|
|
|
|
label: str
|
|
|
|
score: float
|
|
|
|
approved: bool
|
|
|
|
raw_scores: list[float]
|
|
|
|
reason: str = ""
|
|
|
|
detected_words: list[str] = field(default_factory=list) |