humlab-swedeb / swedeb-api

1 stars 0 forks source link

make-kwic-work-again #63

Closed roger-mahler closed 1 month ago

roger-mahler commented 1 month ago

Changes:

Breaking Change:


class KeywordInContextItem(BaseModel):
    left_word: str = Field(..., description="Left context of search hit")
    node_word: str = Field(None, description="The hits correpsonding to the search string")
    right_word: Optional[str] = Field(None, description="Right context of search hit")
    year: Optional[int] = Field(None, description="Year of speech")
    name: Optional[str] = Field(None, description="Name of speaker")
    party_abbrev: Optional[str] = Field(None, description="Party abbreviation")
    title: Optional[str] = Field(None, description="Title of speech (id)")
    gender: Optional[str] = Field(None, description="gender of speaker")
    person_id: Optional[str] = Field(None, description="Id of speaker")
    link: Optional[str] = Field(None, description="Link to speaker wiki")
    speech_name: Optional[str] = Field(None, description="Formatted speech id")  # RENAMED
    speech_link: Optional[str] = Field(None, description="Link to speech")
    gender_abbrev: str = Field(None, description="Gender of speaker")  # NEW
    document_name: str = Field(None, description="Unique id of speech")  # NEW
    chamber_abbrev: str = Field(None, description="Chamber of speech")  # NEW
    speech_id: str = Field(None, description="Unique id of speech")  # NEW
    wiki_id: str = Field(None, description="Wiki id of speaker")  # NEW
    document_id: int = Field(None, description="Document's system id")  # NEW
``