I'd like to suggest adding parameter to dfm_trim() for removing features that are very common, e.g. similar to stopwords which were not excluded during dfm construction. This could work similar to Gensims filter_extreme function which accepts a parameter no_above and for =0.5 removes terms occuring in more than 50 % of all documents.
I'd like to suggest adding parameter to
dfm_trim()for removing features that are very common, e.g. similar to stopwords which were not excluded duringdfmconstruction. This could work similar to Gensims filter_extreme function which accepts a parameterno_aboveand for=0.5removes terms occuring in more than 50 % of all documents.