Add scibert example

This commit is contained in:
Andras Schmelczer 2022-07-13 12:57:49 +02:00
parent 03765e1aca
commit 489b9d19e2
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
13 changed files with 2340 additions and 4 deletions

View file

@ -0,0 +1,2 @@
from .evaluated_sentence import EvaluatedSentence
from .match import Match

View file

@ -0,0 +1,11 @@
from typing import List
from pydantic import BaseModel
from .match import Match
class EvaluatedSentence(BaseModel):
score: float
text: str
explanation: List[Match]

View file

@ -0,0 +1,6 @@
from pydantic import BaseModel
class Match(BaseModel):
phrase: str
score: float