Update README.md
Browse files
README.md
CHANGED
@@ -32,6 +32,16 @@ Inspired from https://victorzhou.com/blog/better-profanity-detection-with-scikit
|
|
32 |
|
33 |
The model was trained with the dataset from that project.
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
Source code and data: https://github.com/tarekziade/pardonmyai
|
36 |
|
37 |
|
|
|
32 |
|
33 |
The model was trained with the dataset from that project.
|
34 |
|
35 |
+
Usage example:
|
36 |
+
|
37 |
+
```
|
38 |
+
from transformers import pipeline
|
39 |
+
|
40 |
+
classifier = pipeline("sentiment-analysis", model="tarekziade/pardonmyai")
|
41 |
+
|
42 |
+
print(classifier("These are beautiful flowers"))
|
43 |
+
```
|
44 |
+
|
45 |
Source code and data: https://github.com/tarekziade/pardonmyai
|
46 |
|
47 |
|