Sunday, 10 August 2014

Why machine learning?

Machine learning is again a program which is going to take a decision based on the logic developed. Then why machine learning. we can do this with regular programming approach.

Why machine learning is required? Which application may require it?

for this above two questions I have got convincing answer from following website.

http://machinelearningmastery.com/machine-learning-matters/

Machine Learning approach is automatic, fast, accurate and scalable.


Wednesday, 2 July 2014

Explanation for Extending Stemming using NLTK

Notebook
In [2]:
from sklearn.feature_extraction.text import CountVectorizer
cv = CountVectorizer()
analyzer = cv.build_analyzer()

import nltk.stem
english_stemmer = nltk.stem.SnowballStemmer('english')

doc = "A cook cooks delicious meals"
print([english_stemmer.stem(w) for w in analyzer(doc)])
[u'cook', u'cook', u'delici', u'meal']

In []: