Click4Ai

219.

Medium

### Text Classification Pipeline

Create a text classification pipeline that can classify text into one of two categories: positive or negative.

**Example:** Classify the text 'I love this product!' as positive.

**Constraints:** The input text will be a string with a maximum length of 1000 characters.

Test Cases

Test Case 1
Input: [['I love this product!'], ['I hate this product!']]
Expected: [MultinomialNB(), CountVectorizer()]
Test Case 2
Input: [['This is a great movie!'], ['This is a terrible movie!']]
Expected: [MultinomialNB(), CountVectorizer()]
+ 3 hidden test cases