File size: 183 Bytes
1f3b631
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from pydantic import BaseModel
from typing import List

class WordList(BaseModel):
    words: List[str]

class WordAnalysis(BaseModel):
    word: str
    n_neighbors: int = 20