Update README.md
Browse files
README.md
CHANGED
@@ -29,6 +29,20 @@ It achieves the following results on the evaluation set:
|
|
29 |
|
30 |
More information needed
|
31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
## Intended uses & limitations
|
33 |
|
34 |
More information needed
|
|
|
29 |
|
30 |
More information needed
|
31 |
|
32 |
+
## Usage
|
33 |
+
To use the model use the following script. Kindly set the ***device*** based on availability of the GPU.
|
34 |
+
|
35 |
+
```
|
36 |
+
from transformers import (pipeline)
|
37 |
+
|
38 |
+
analyzer = pipeline(
|
39 |
+
"sentiment-analysis", model="FFZG-cleopatra/M2SA-text-only"
|
40 |
+
)
|
41 |
+
|
42 |
+
input_text = "I feel amazing today."
|
43 |
+
print(analyzer(input_text)[0]["label"])
|
44 |
+
|
45 |
+
```
|
46 |
## Intended uses & limitations
|
47 |
|
48 |
More information needed
|