File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,15 @@ Classify text instantly with pre-trained models—no coding required:
3636
3737``` bash
3838# Detect spam
39- classifier classify " You won a free iPhone! " -r sms-spam-filter
39+ classifier -r sms-spam-filter " You won a free iPhone"
4040# => spam
4141
4242# Analyze sentiment
43- classifier classify " This movie was absolutely amazing! " -r imdb-sentiment
43+ classifier -r imdb-sentiment " This movie was absolutely amazing"
4444# => positive
4545
4646# Detect emotions
47- classifier classify " I'm so happy today! " -r emotion-detection
47+ classifier -r emotion-detection " I am so happy today"
4848# => joy
4949
5050# List all available models
@@ -59,7 +59,7 @@ classifier train positive reviews/good/*.txt
5959classifier train negative reviews/bad/* .txt
6060
6161# Classify new text
62- classifier classify " Great product, highly recommend"
62+ classifier " Great product, highly recommend"
6363# => positive
6464```
6565
You can’t perform that action at this time.
0 commit comments