Add auto-reload, evaluation endpoint, show docs
This commit is contained in:
parent
eb7ddf1496
commit
22696c7f6f
34 changed files with 389 additions and 100 deletions
|
|
@ -1,8 +0,0 @@
|
|||
import re
|
||||
|
||||
from great_ai.utilities.lemmatize_text import lemmatize_text
|
||||
|
||||
|
||||
def preprocess(text: str) -> str:
|
||||
lemmas = [re.sub(r"\d[\d.,]*", "NUM", lemma) for lemma in lemmatize_text(text)]
|
||||
return " ".join(lemmas)
|
||||
Loading…
Add table
Add a link
Reference in a new issue