diff --git a/factgenie/models.py b/factgenie/models.py index e4dd73b..9bde9b4 100644 --- a/factgenie/models.py +++ b/factgenie/models.py @@ -53,12 +53,12 @@ def from_config(config, mode): class SpanAnnotation(BaseModel): + reason: str = Field(description="The reason for the annotation.") text: str = Field(description="The text which is annotated.") # Do not name it type since it is a reserved keyword in JSON schema annotation_type: int = Field( description="Index to the list of span annotation types defined for the annotation campaign." ) - reason: str = Field(description="The reason for the annotation.") class OutputAnnotations(BaseModel):