great-ai/examples/scibert/views/evaluated_sentence/evaluated_sentence.py

11 lines
180 B
Python

from typing import List
from pydantic import BaseModel
from .match import Match
class EvaluatedSentence(BaseModel):
score: float
text: str
explanation: List[Match]