ICP7 - sandy777deep/PYTHON_WITH_DEEPLEARNING GitHub Wiki
MEESALA SANDEEP
Class ID:30 , Group ID=11
1. Change the classifier in the given code toa. SVM and see how accuracy changesb. change the tfidfvectorizer to use bigram and see how the accuracy changes TfidfVectorizer(ngram_range=(1,2))c. Setargument stop_words='english'and see how accuracy changes
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP7/task1.py
Code:
Output:
Extract the following web URL text using BeautifulSouphttps://en.wikipedia.org/wiki/Google3. Save it in input.txt
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP7/Task2.py
Code:Tokenization AND input.txt file
https://github.com/sandy777deep/PYTHON_WITH_DEEPLEARNING/blob/master/Python_ICP7/input.txt
Output: