2013/9/16 Akhil Shah <akhil...@gmail.com>: > Hi, > I've noticed that I get an error using CountVectorizer (or any class that > uses fit_transform) in python 2.6.1 with an unspecified vocabulary, as the > underlying defaultdict method cannot take 'None'. Is there a fix or do I > just need a more recent install of python?
I have no problem with 2.6.7: $ python2.6 -c "import sys; print(sys.version)" 2.6.7 (r267:88850, Oct 11 2012, 20:15:00) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] $ python2.6 -c "from collections import defaultdict; print(defaultdict(None))" defaultdict(None, {}) -- Olivier ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general