Re: Term frequency using scikit-learn's CountVectorizer

2016-10-16 Thread MRAB
On 2016-10-17 02:04, Abdul Abdul wrote: I have the following code snippet where I'm trying to list the term frequencies, where first_text and second_text are .tex documents: from sklearn.feature_extraction.text import CountVectorizer training_documents = (first_text, second_text) vectorizer = C

Term frequency using scikit-learn's CountVectorizer

2016-10-16 Thread Abdul Abdul
Hello, I have the following code snippet where I'm trying to list the term frequencies, where first_textand second_text are .tex documents: from sklearn.feature_extraction.text import CountVectorizer training_documents = (first_text, second_text) vectorizer = CountVectorizer() vectorizer.fit_tran

Term frequency using scikit-learn's CountVectorizer

2016-10-16 Thread Abdul Abdul
I have the following code snippet where I'm trying to list the term frequencies, where first_text and second_text are .tex documents: from sklearn.feature_extraction.text import CountVectorizer training_documents = (first_text, second_text) vectorizer = CountVectorizer() vectorizer.fit_transfor