From: Nate E TeBlunthuis Date: Tue, 10 Nov 2020 21:38:11 +0000 (-0800) Subject: Bugfix (typo) X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/commitdiff_plain/4c8bd14992b3c763cd5203ef9c8bf37cc76102b7?ds=sidebyside;hp=--cc Bugfix (typo) --- 4c8bd14992b3c763cd5203ef9c8bf37cc76102b7 diff --git a/term_cosine_similarity.py b/term_cosine_similarity.py index c487c5b..44af4e6 100644 --- a/term_cosine_similarity.py +++ b/term_cosine_similarity.py @@ -47,7 +47,7 @@ https://stanford.edu/~rezab/papers/dimsum.pdf. If similarity_threshold=0 we get if exclude_phrases == True: tfidf = tfidf.filter(~f.col(term).contains("_")) - sim_dist, tfidf = cosine_similarities(tfidf, 'term', min_df, include_subreddits, similarity_threshold) + sim_dist, tfidf = cosine_similarities(tfidf, 'term', min_df, included_subreddits, similarity_threshold) p = Path(outfile)