{"cells":[{"cell_type":"markdown","id":"c454c018-02b7-4c3d-a21f-411748963a3f","metadata":{"id":"c454c018-02b7-4c3d-a21f-411748963a3f"},"source":["# Workshop: Sentiment Analysis"]},{"cell_type":"markdown","id":"2eda2e01-dfc4-42a6-9b6a-5cdf39fbce78","metadata":{"id":"2eda2e01-dfc4-42a6-9b6a-5cdf39fbce78"},"source":["
\n"," | Text | \n","
---|---|
0 | \n","This is the first document. | \n","
1 | \n","This document is the second document. | \n","
2 | \n","And this is the third one. | \n","
3 | \n","Is this the first document? | \n","
\n"," | text | \n","label | \n","
---|---|---|
0 | \n","One of the other reviewers has mentioned that ... | \n","positive | \n","
1 | \n","A wonderful little production. <br /><br />The... | \n","positive | \n","
2 | \n","I thought this was a wonderful way to spend ti... | \n","positive | \n","
Pipeline(steps=[('tfidf', TfidfVectorizer()), ('nb', MultinomialNB())])In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
Pipeline(steps=[('tfidf', TfidfVectorizer()), ('nb', MultinomialNB())])
TfidfVectorizer()
MultinomialNB()