import jovian
#Sentimental analysis using python
from textblob import TextBlob
import nltk
from newspaper import Article
url='https://towardsdatascience.com/understanding-cv-how-ai-sees-our-world-a977b90bf612'
article=Article(url)
#doing some nlp
article.download()
article.parse()
nltk.download('punkt')
[nltk_data] Downloading package punkt to
[nltk_data] C:\Users\poorna\AppData\Roaming\nltk_data...
[nltk_data] Package punkt is already up-to-date!
True
article.nlp()
#get the summary
text=article.summary
print(text)
Yann LeCun, famous for his work on the convolutional neural networks, applied back-propagation to the convolutional neural networks in 1989.
Alex Krizhevsky, along with his AlexNet, won the ImageNet competition on September 30, demonstrated the superior performance of approaches based on convolutional neural networks.
Advancing to Deep Learning: Convolutional Neural Networks & Residual Neural Networks“No one tells a child how to see, especially in the early years.
Convolutional LayerConvolutional Layer (3x3)Convolutional Layer usually appears as the first layer of a Convolutional Neural Network.
Neural Networks Makes Judgements Based on Textures, Image from Original PaperThe neural networks are also vulnerable to high-frequency disturbances.
obj=TextBlob(text)
sentiment=obj.sentiment.polarity
print(sentiment)
0.13055555555555556
if sentiment==0:
print('The text is neutal')
elif sentiment>0:
print("The text is positive")
else:
print("The text is negative")
The text is positive
jovian.commit()
[jovian] Saving notebook..