Commit
·
292d863
1
Parent(s):
9eb3324
Update README.md
Browse files
README.md
CHANGED
@@ -35,9 +35,10 @@ generation you should look at model like GPT2.
|
|
35 |
You can use this model directly with a pipeline for masked language modeling:
|
36 |
|
37 |
```python
|
38 |
-
|
39 |
-
>>>
|
40 |
-
>>>
|
|
|
41 |
|
42 |
[{'sequence': "[CLS] hello i'm a role model. [SEP]",
|
43 |
'score': 0.05292855575680733,
|
|
|
35 |
You can use this model directly with a pipeline for masked language modeling:
|
36 |
|
37 |
```python
|
38 |
+
|
39 |
+
>>> from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
40 |
+
>>> tokenizer = AutoTokenizer.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
41 |
+
>>> model = AutoModelForSequenceClassification.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
42 |
|
43 |
[{'sequence': "[CLS] hello i'm a role model. [SEP]",
|
44 |
'score': 0.05292855575680733,
|