hassan4830 commited on
Commit
292d863
·
1 Parent(s): 9eb3324

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
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
- >>> from transformers import pipeline
39
- >>> unmasker = pipeline('fill-mask', model='distilbert-base-uncased')
40
- >>> unmasker("Hello I'm a [MASK] model.")
 
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,