Instructions to use NOVA-vision-language/polite_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NOVA-vision-language/polite_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="NOVA-vision-language/polite_bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("NOVA-vision-language/polite_bert") model = AutoModelForSequenceClassification.from_pretrained("NOVA-vision-language/polite_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,11 +8,11 @@ library_name: transformers
|
|
| 8 |
widget:
|
| 9 |
- text: "I am good. Just got back from vacation"
|
| 10 |
example_title: "Example 1"
|
| 11 |
-
- text: "I am doing good,
|
| 12 |
example_title: "Example 2"
|
| 13 |
-
- text: "I am doing good,
|
| 14 |
example_title: "Example 3"
|
| 15 |
-
- text: "I am doing good, but why do you care? I just got back from vacation."
|
| 16 |
example_title: "Example 4"
|
| 17 |
---
|
| 18 |
|
|
@@ -22,4 +22,4 @@ Simple Model trained to classify 4 levels of politeness:
|
|
| 22 |
- Somewhat Polite
|
| 23 |
- Polite
|
| 24 |
|
| 25 |
-
|
|
|
|
| 8 |
widget:
|
| 9 |
- text: "I am good. Just got back from vacation"
|
| 10 |
example_title: "Example 1"
|
| 11 |
+
- text: "I am doing good, appreciate you asking. I just got back from vacation."
|
| 12 |
example_title: "Example 2"
|
| 13 |
+
- text: "I am doing good, thank you for asking. I just got back from vacation, and loved it."
|
| 14 |
example_title: "Example 3"
|
| 15 |
+
- text: "I am doing good, but why do fucking you care? I just got back from vacation."
|
| 16 |
example_title: "Example 4"
|
| 17 |
---
|
| 18 |
|
|
|
|
| 22 |
- Somewhat Polite
|
| 23 |
- Polite
|
| 24 |
|
| 25 |
+
Made by Diogo M. Silva. PhD Student at NOVA FCT and Affiliated PhD Student at CMU
|