Loading...

verticapy.machine_learning.vertica.feature_extraction.text.TfidfVectorizer.fit

TfidfVectorizer.fit(input_relation: Annotated[str | vDataFrame, ''], index: str, x: str, return_report: bool = False) None

Applies basic pre-processing. Creates table with fitted vocabulary and idf values.

Parameters

input_relation: SQLRelation

Training relation.

index: str

Column name of the document id.

x: str

Column name which contains the text.