Just found that in the twenty_newsgroups example, the downsampled word list is never used after calculation:
|
clean = corpus.subsample_frequent(pruned) |
I fixed this by moving the downsampling to an earlier place and changing all the later "pruned" to "clean", but some preprocessing results like vocab.pkl, corpus.pkl, and vectors are still not influenced by the downsampling and the further solution (if needed) seems not straightforward.
Just found that in the twenty_newsgroups example, the downsampled word list is never used after calculation:
lda2vec/examples/twenty_newsgroups/data/preprocess.py
Line 46 in b7f4642
I fixed this by moving the downsampling to an earlier place and changing all the later "pruned" to "clean", but some preprocessing results like
vocab.pkl,corpus.pkl, andvectorsare still not influenced by the downsampling and the further solution (if needed) seems not straightforward.