sklearn-porter icon indicating copy to clipboard operation
sklearn-porter copied to clipboard

Port CountVectorizer

Open nicolalandro opened this issue 6 years ago • 3 comments

For text mining it's important to fit also a CountVectorizer (or a TFIDFTransformer), so should be possible to export it in the targhet lenguage

nicolalandro avatar Jul 06 '18 18:07 nicolalandro

Currently, is there any alternative way?

Opdoop avatar Apr 02 '19 14:04 Opdoop

@Opdoop the way is to extract the dictionary from CountVectorizer (get_feature_names()) and reimplement the logic manually. You can do the same thing on TFIDF.

nicolalandro avatar Apr 14 '19 06:04 nicolalandro

Hello @nicolalandro ,

can you provide some snippets? Withit I will have a better start.

Kind regards, Darius

nok avatar May 16 '22 21:05 nok