Skip to content

Error Finding #3

Open
Open
@Rakib-Hasan031

Description

@Rakib-Hasan031

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions