Commit Graph

195 Commits

Author SHA1 Message Date
Cindy Sridharan 0a7a1db8c7 removed list around sorted 2015-09-16 15:24:29 -07:00
Cindy Sridharan 4af0c49f27 vocabulary of type set now coerced to list to preserve iteration ordering after serialization 2015-09-16 15:24:28 -07:00
jnothman 250e509e86 ENH O(1) stop-word lookup when list provided
The docstring says stop_words can be a list, but it should be accessed as a set.
2015-08-08 22:55:13 +10:00
Joel Nothman 0b83c989bc DOC tweaks for feature_extraction.text 2015-07-28 13:28:58 +10:00
Andreas Mueller 0650d5502e DOC adding backlinks to docstrings 2015-06-03 00:24:04 -04:00
Lars Buitinck bb592f3865 DOC fix comment in tf-idf: log+1, not log(1+x)
[ci skip]
2015-05-23 16:12:20 +02:00
Andreas Mueller 6303af4ec2 DOC make defaults more explicit in text feature extraction. 2015-03-16 14:25:24 -04:00
Lars 38104ff4e8 Merge pull request #4193 from lesteve/deactivate-travis-default-venv
CI: test with NumPy 1.6.1, fix for its broken bincount
2015-02-03 16:25:36 +01:00
Raghav R V 21369dd6a1 TST Removal or modification of stop_words_ should not affect transform.
DOC Add a line to {Count, Tfidf}Vectorizer about removal of stop_words_
DOC Add documentation of stop_words_ attr in TfidfVectorizer
2015-02-02 02:20:04 +05:30
Loïc Estève cedf023e20 Move import statement 2015-02-01 18:20:30 +01:00
Loïc Estève 67dcd99d82 TST fix tests with numpy 1.6.1
np.bincount raises an Exception with empty input arrays for numpy versions < 1.6.2
Add utils.fixes.bincount to tackle this issue and use it instead of np.bincount
2015-02-01 15:49:49 +01:00
Raghav R V b3fbccca38 FIX various mismatch between docstring and signature params
DOC max_iterations -> max_iter. Make it consistent with kmeans

MAINT Replace the deprecated dx parameter with d in the docstrings

MAINT Deprecation warning for max_iterations parameter.
2015-01-16 11:54:57 -05:00
Raghav R V abd31d2cad MAINT Make uniform the error raised for not fitted condition 2015-01-12 00:33:40 +05:30
Lukas Michelbacher d67e9c4d8f Add newline before bullets
Without the extra line, the headline is rendered in bold.
2015-01-08 18:37:26 +00:00
Lukas Michelbacher de72e1db23 Add dependence to max_features to docstring
As requested in 4032#issuecomment-68478422.
2015-01-02 09:10:41 +00:00
Lars Buitinck a7a05120e2 MAINT: handle frombuffer with empty 1st arg in utils.fixes 2014-09-22 17:23:51 +02:00
danfrankj a57a306509 Correct documentation for TfidfVectorizer 2014-09-18 18:21:43 -07:00
Lars Buitinck 55cb591ef3 DOC vectorizers were referring to a private function in public docs 2014-08-18 14:33:14 +02:00
Vlad Niculae 8680a6bae1 Deprecate vectorizer fixed_vocabulary attribute 2014-08-13 10:54:44 +02:00
Vlad Niculae 143e5ffc37 FIX set vectorizer vocabulary outside of init 2014-08-13 10:54:44 +02:00
Joel Nothman b3bdb08964 DOC fix formatting of attributes etc. in docstrings 2014-07-28 19:04:59 +10:00
Lars Buitinck 56057c9630 MAINT remove deprecated code 2014-07-23 16:19:40 +02:00
Laurent Direr 5242c21009 #3356 - Added an exception raising when np.nan is passed into a HashingVectorizer. 2014-07-14 13:32:25 +02:00
Laurent Direr f01ae493ec #3356 - Added an exception raising when np.nan is passed into a HashingVectorizer. 2014-07-14 13:04:29 +02:00
Laurent Direr 9e54c8bc80 Corrected two typos in docstring. 2014-07-14 12:59:43 +02:00
Ryan Wang 1eaf8dbc40 DOC typos in feature_extraction.text
Fixes #3311.
2014-06-26 10:48:01 +02:00
Jelle Zijlstra fe6b9ea1a0 fix defaultdict call
In Python 2.7, the current version fails with:

$ python -c 'from collections import defaultdict; defaultdict(None)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: first argument must be callable
2014-06-03 19:34:41 -07:00
Lars Buitinck 85bdeba4d6 DOC: improve feature_extraction.text docstrings
Partial solution to #3210.
2014-05-28 00:10:58 +02:00
Yung Siang Liau 92add1daa1 FIX TfidfVectorizer exports idf_ attribute 2014-05-23 17:51:15 +08:00
Lars Buitinck fbe974be84 DOC: tfidf is actually tf*(idf+1) = tf + tf*idf 2014-03-30 15:41:41 +02:00
Lars Buitinck 39b859b95e FIX TfidfVectorizer to no longer ignore binary param
Also changed the docs to clarify that binary=True means
binary tf, not binary output.
2014-03-24 11:18:11 +01:00
Lars Buitinck b97fb3c5fc MAINT drop support for NumPy < 1.6.1 2014-03-02 20:13:57 +01:00
Paweł Mandera 122cb238ea Fix citation in TfidfTransformer
Corrected names order for tf-idf citation and corrected pages numbers.
See: http://nlp.stanford.edu/IR-book/pdf/irbookprint.pdf
2014-02-19 19:53:24 +01:00
Jaques Grobler 6ebcf4d020 COSMIT fix PEP8 errors 2014-02-02 00:30:28 +11:00
Baptiste Lagarde af1c98bd95 FIX: Typo 2014-01-22 01:16:11 +11:00
Joel Nothman 4ec4b2f625 ENH remove unnecessary CSR->CSC transform in text feature extractors 2014-01-20 22:12:46 +11:00
eltermann 2a692665fb Fixed documentation typo 2014-01-14 11:02:48 -02:00
Skipper Seabold 0bd0552bdf ENH: Raise explicitly on non-unique vocab. 2013-12-09 23:15:54 +01:00
Lars Buitinck dcb283474c DOC {min,max}_df look at document freq, not term freq 2013-12-07 18:11:41 +01:00
Lars Buitinck d02a15b655 ENH better error message when CountVectorizer prunes away all terms
Fixes #2596.
2013-12-07 14:50:14 +01:00
Brian Kearns da4f2c6357 FIX regression in CountVectorizer handling of float min_df/max_df
Fixes #2595.
2013-11-18 18:42:15 +01:00
Lars Buitinck 1d0a3fd87e DOC error in feature_extraction.text docstrings
Spotted by @madisonmay. Fixes #2486.
2013-10-02 19:13:21 +02:00
Rupesh Kumar Srivastava 94d66a0e38 FIX max_features in CountVectorizer
Fixes #2443: max_features would be selected based on document frequency
rather than term frequency.
2013-10-02 19:10:37 +02:00
David Cournapeau b9ca03657d BUG: remove remaining utf-8 characters in docstrings. 2013-09-02 14:06:28 +02:00
Lars Buitinck e8bad3d24a DOC ASCII only in docstrings
As discussed on the mailing list.
2013-08-28 18:22:57 +02:00
alemagnani c2cf21d8e7 FIX+TST non-consecutive or duplicate vocabulary indices
* added extra checks for custom vocab in CountVectorizer
* added test for custom vocab to check fauly vocabs

Fixes #2357.
2013-08-15 12:52:52 +02:00
Lars Buitinck a82b31547d MAINT remove deprecated parameters (the easy cases) 2013-08-08 10:00:22 +02:00
Nelle Varoquaux 0498af7d31 DOC better deprecation warning messages.
The charset parameter has been replaced by encoding and the charset_error by
decode_error.
2013-07-26 10:14:45 +02:00
Nelle Varoquaux 88fd230439 MAINT charset is deprecated in favor of encoding
closes #2107
2013-07-26 09:30:58 +02:00
Andreas Mueller e488704849 COSMIT pep8 2013-07-23 15:17:32 +02:00