hassan4830 commited on
Commit
df13849
·
1 Parent(s): f8976c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
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 use this model directly with a pipeline for masked language modeling:
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 features of a given text in PyTorch:
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