Skip to content

Commit a22ac40

Browse files
committed
docs: simplify CLI examples in README
1 parent 14c5d85 commit a22ac40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5959
classifier 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

0 commit comments

Comments
 (0)