clips / pattern

Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
https://github.com/clips/pattern/wiki
BSD 3-Clause "New" or "Revised" License
8.75k stars 1.58k forks source link

is it possible to get a list of influential features (words) after using one of the Pattern classifiers? #156

Open randomgambit opened 8 years ago

randomgambit commented 8 years ago

Hello everyone,

I am looking at the tutorial http://www.clips.ua.ac.be/pages/pattern-vector#classification and I dont see any function that returns the list of (say top 100) features that can help predict a given class.

Is that possible with pattern? I may have a classifier that performs well (good) but I would also like to understand what are the key features to predict a given class.

Many thanks for your help!!

randomgambit commented 8 years ago

in other words, is there the equivalent of show_informative_features?

randomgambit commented 8 years ago

nobody? :(