# How To Improve This Sentiment Analysis Model

A.I Community, this is my first post on here I am currently reading, learning and designing models. At the moment I'm working on this sentiment analysis tool; from what I gather sentiment analysis can be tricky to fine-tune hence why I'm reaching out here to improve on my model. I am asking for tips and pointers the hows and how not I would appreciate detailed answers in the context of improvement etc. Currently, the model is bias towards positive sentiment and even negative text is yielding.6 positive when it should be obvious in the negative sentiment side. My CSV contains 65000 tweets pre-labeled there is an even number it seems of positive and negative tweets and is indeed correctly labeled.

    import pandas as pd
from sklearn.model_selection import train_test_split
from keras.preprocessing.text import Tokenizer
from keras.models import Sequential
import re

data = data[['Sentiment', 'SentimentText']]
data['SentimentText'] = data['SentimentText'].apply(lambda x: x.lower())
data['SentimentText'] = data['SentimentText'].apply((lambda x: re.sub('[^a-zA-z0-9\s]','',x)))
max_features = 2000
tokenizer = Tokenizer(num_words=max_features, split=' ')
tokenizer.fit_on_texts(data['SentimentText'].values)
X = tokenizer.texts_to_sequences(data['SentimentText'].values)

from keras.layers import Dense, Dropout, LSTM, Embedding
embed_dim = 50
lstm_out = 80
model = Sequential()