Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ datasets:
|
|
6 |
- cardiffnlp/super_tweeteval
|
7 |
pipeline_tag: text-classification
|
8 |
widget:
|
9 |
-
- text: "
|
10 |
---
|
11 |
# cardiffnlp/twitter-roberta-base-tempo-wic-latest
|
12 |
|
@@ -22,13 +22,14 @@ The original Twitter-based RoBERTa model can be found [here](https://huggingface
|
|
22 |
## Example
|
23 |
```python
|
24 |
from transformers import pipeline
|
25 |
-
text_1 = "
|
26 |
-
text_2 = "
|
27 |
-
|
|
|
28 |
|
29 |
pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-tempo-wic-latest")
|
30 |
pipe(text_input)
|
31 |
-
>> [{'label': 'yes', 'score': 0.
|
32 |
```
|
33 |
|
34 |
## Citation Information
|
|
|
6 |
- cardiffnlp/super_tweeteval
|
7 |
pipeline_tag: text-classification
|
8 |
widget:
|
9 |
+
- text: "In this bullpen, you should be able to ask why and understand why we do the things we do.' @Trisha_Ford π #pitchstock2020 @user</s>Castro needs to be the last bullpen guy to pitch.</s>bullpen"
|
10 |
---
|
11 |
# cardiffnlp/twitter-roberta-base-tempo-wic-latest
|
12 |
|
|
|
22 |
## Example
|
23 |
```python
|
24 |
from transformers import pipeline
|
25 |
+
text_1 = "'In this bullpen, you should be able to ask why and understand why we do the things we do.' @Trisha_Ford π #pitchstock2020 @user"
|
26 |
+
text_2 = "Castro needs to be the last bullpen guy to pitch."
|
27 |
+
target = "bullpen"
|
28 |
+
text_input = f"{text_1}</s>{text_2}</s>{target}"
|
29 |
|
30 |
pipe = pipeline('text-classification', model="cardiffnlp/twitter-roberta-base-tempo-wic-latest")
|
31 |
pipe(text_input)
|
32 |
+
>> [{'label': 'yes', 'score': 0.9964596629142761}]
|
33 |
```
|
34 |
|
35 |
## Citation Information
|