Update black formatting
Browse files
README.md
CHANGED
|
@@ -97,7 +97,11 @@ You can use this model for text classification with the `transformers` library:
|
|
| 97 |
from transformers import pipeline
|
| 98 |
|
| 99 |
# Load the text classification pipeline
|
| 100 |
-
classifier = pipeline(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
# Example usage for an objective sentence
|
| 103 |
text1 = "The company reported a 10% increase in profits in the last quarter."
|
|
|
|
| 97 |
from transformers import pipeline
|
| 98 |
|
| 99 |
# Load the text classification pipeline
|
| 100 |
+
classifier = pipeline(
|
| 101 |
+
"text-classification",
|
| 102 |
+
model="MatteoFasulo/mdeberta-v3-base-subjectivity-english",
|
| 103 |
+
tokenizer="microsoft/mdeberta-v3-base",
|
| 104 |
+
)
|
| 105 |
|
| 106 |
# Example usage for an objective sentence
|
| 107 |
text1 = "The company reported a 10% increase in profits in the last quarter."
|