Commit
·
02b42c6
1
Parent(s):
fec77c5
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,6 +4,15 @@ license: cc-by-nc-3.0
|
|
| 4 |
|
| 5 |
PragS2: Pragmatic Masked Language Modeling with Emoji_any dataset followed by Hashtag-Based Surrogate Fine-Tuning
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
More details are in our paper:
|
| 8 |
```
|
| 9 |
@inproceedings{zhang-abdul-mageed-2022-improving,
|
|
|
|
| 4 |
|
| 5 |
PragS2: Pragmatic Masked Language Modeling with Emoji_any dataset followed by Hashtag-Based Surrogate Fine-Tuning
|
| 6 |
|
| 7 |
+
You can load these model and use for downstream fine-tuning. For example:
|
| 8 |
+
```python
|
| 9 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 10 |
+
|
| 11 |
+
tokenizer = AutoTokenizer.from_pretrained('UBC-NLP/prags1', use_fast = True)
|
| 12 |
+
model = AutoModelForSequenceClassification.from_pretrained('UBC-NLP/prags1',num_labels=lable_size)
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
|
| 16 |
More details are in our paper:
|
| 17 |
```
|
| 18 |
@inproceedings{zhang-abdul-mageed-2022-improving,
|