File size: 540 Bytes
0813f03
ebb742b
0813f03
ebb742b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")

pulled_model = AutoModelForSequenceClassification.from_pretrained(
    "NazmusAshrafi/stock_twitter_sentiment_Bert")

classifier = pipeline("sentiment-analysis",
                      model=pulled_model, tokenizer=tokenizer)


print(classifier("AAP Up Theory = Will go up in future, buy now"))

st.title("Topic Modeling and Sentiment Analysis of Stock Tweets")