Skip to content

Commit 5d4fc1f

Browse files
Richard Truong-ChauRichard Truong-Chau
authored andcommitted
Add kwargs to filter_dictionary
1 parent a758b2a commit 5d4fc1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_describe/text/text_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,6 @@ def filter_dictionary(
383383
corpus: Bag of Words (BoW) representation of documents (token_id, token_count).
384384
"""
385385
dictionary = _compat["gensim"].corpora.Dictionary(text_docs) # type: ignore
386-
dictionary.filter_extremes(no_below=no_below, no_above=no_above)
386+
dictionary.filter_extremes(no_below=no_below, no_above=no_above, **kwargs)
387387
corpus = [dictionary.doc2bow(doc) for doc in text_docs]
388388
return dictionary, corpus

0 commit comments

Comments
 (0)