Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Finding #3

Open
Rakib-Hasan031 opened this issue Nov 7, 2018 · 0 comments
Open

Error Finding #3

Rakib-Hasan031 opened this issue Nov 7, 2018 · 0 comments

Comments

@Rakib-Hasan031
Copy link

image

code:
sample=["Iphone is not a bad phone"]
sample=tfidf.transform(sample).toarray()
#print(clf.predict(sample))
sentiment=(clf.predict(sample))
if 0.5<=sentiment<=1 :
print("This is a positive sentence",sentiment)
else:
print("This is a negetive sentence",sentiment)

Output:
This is a negetive sentence [0]

the sentence is a positive sentence but in the text classifier it removes not and count bad as a negetive word.How can i solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant