Skip to content

Commit

Permalink
Add some descriptions for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhsu2000 committed May 3, 2024
1 parent 068a79d commit e1eb11f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

class Segment(BaseModel):
word: str
pos: str
pos: str = Field(description='Part of speech')


class NamedEntity(BaseModel):
word: str
type: str
start: int
end: int
type: str = Field(description='Entity type')
start: int = Field(description='Start position')
end: int = Field(description='End position')


class Sentence(BaseModel):
Expand Down

0 comments on commit e1eb11f

Please sign in to comment.