Skip to content

Commit

Permalink
fix: typo on vectorizer function call
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBruzz committed Feb 17, 2025
1 parent 8f9a0ac commit 0967341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octis/preprocessing/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def filter_words(self, docs):
self.preprocessing_steps.append('filter words with document frequency lower than ' + str(self.min_df) +
' and higher than ' + str(self.max_df))
self.preprocessing_steps.append('filter words with less than ' + str(self.min_chars) + " character")
vectorizer = TfidfVectorizer(df_max_freq=self.max_df, df_min_freq=self.min_df, vocabulary=self.vocabulary,
vectorizer = TfidfVectorizer(max_df=self.max_df, min_df=self.min_df, vocabulary=self.vocabulary,
token_pattern=r"(?u)\b\w{" + str(self.min_chars) + ",}\b",
lowercase=self.lowercase, stop_words=self.stopwords)

Expand Down

0 comments on commit 0967341

Please sign in to comment.