- Instagram:
https://www.instagram.com/username/?__a=1
- Twitter:
https://twitter.com/i/profiles/show/username/timeline/tweets
- Reddit:
https://www.reddit.com/.json
orhttps://www.reddit.com/r/subreddit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"aardvark", | |
"aardwolf", | |
"african buffalo", | |
"african elephant", | |
"african leopard", | |
"african wild dog", | |
"albatross", | |
"alligator", | |
"alpaca", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"alder", | |
"black alder", | |
"common alder", | |
"false alder", | |
"gray alder", | |
"speckled alder", | |
"striped alder", | |
"white alder", | |
"almond", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var q = document.createElement('a'); | |
q.href = document.querySelector('source').src; | |
q.download = document.title; | |
q.click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn import naive_bayes | |
data = pd.read_csv("imdb2k.csv") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X = data['text'] | |
y = data['label'] | |
vectorizer = CountVectorizer() | |
vectorizer.fit(X) | |
X = vectorizer.transform(X).toarray() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classifier = naive_bayes.MultinomialNB() | |
classifier.fit(X,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prediction = classifier.predict(vectorizer.transform([input('enter input: ')]).toarray()) | |
print('positive' if prediction[0] == 1 else 'negative') |