Commit
·
df13849
1
Parent(s):
f8976c9
Update README.md
Browse files
README.md
CHANGED
@@ -22,17 +22,16 @@ It is based on Facebook’s RoBERTa model released in 2019. It is a large multi-
|
|
22 |
|
23 |
### How to use
|
24 |
|
25 |
-
You can
|
26 |
|
27 |
```python
|
28 |
-
|
29 |
>>> from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
30 |
>>> tokenizer = AutoTokenizer.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
31 |
>>> model = AutoModelForSequenceClassification.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
32 |
|
33 |
```
|
34 |
|
35 |
-
Here is how to use this model to get the
|
36 |
|
37 |
```python
|
38 |
>>> from transformers import TextClassificationPipeline
|
|
|
22 |
|
23 |
### How to use
|
24 |
|
25 |
+
You can import this model directly from the transformers library:
|
26 |
|
27 |
```python
|
|
|
28 |
>>> from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
29 |
>>> tokenizer = AutoTokenizer.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
30 |
>>> model = AutoModelForSequenceClassification.from_pretrained("hassan4830/xlm-roberta-base-finetuned-urdu")
|
31 |
|
32 |
```
|
33 |
|
34 |
+
Here is how to use this model to get the label of a given text:
|
35 |
|
36 |
```python
|
37 |
>>> from transformers import TextClassificationPipeline
|