nok / sklearn-porter

Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.28k stars 170 forks source link

Port CountVectorizer #38

Open nicolalandro opened 6 years ago

nicolalandro commented 6 years ago

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

Opdoop commented 5 years ago

Currently, is there any alternative way?

nicolalandro commented 5 years ago

@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.

nok commented 2 years ago

Hello @nicolalandro ,

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

Kind regards, Darius