kz-transformers commited on
Commit
1c6f9e7
1 Parent(s): b61e28b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -19
README.md CHANGED
@@ -19,25 +19,9 @@ You can use this model directly with a pipeline for masked language modeling:
19
 
20
  ```python
21
  >>> from transformers import pipeline
22
- >>> unmasker = pipeline('fill-mask', model='kz-transformers/kaz-roberta-conversational')
23
- >>> unmasker("Hello I'm a <mask> model.")
24
-
25
-
26
-
27
- Here is how to use this model to get the features of a given text in PyTorch:
28
-
29
- ```python
30
- from transformers import AutoTokenizer, AutoModelForMaskedLM
31
-
32
- tokenizer = AutoTokenizer.from_pretrained("kz-transformers/kaz-roberta-conversational")
33
- model = AutoModelForMaskedLM.from_pretrained("kz-transformers/kaz-roberta-conversational")
34
-
35
- # prepare input
36
- text = "Replace me by any text you'd like."
37
- encoded_input = tokenizer(text, return_tensors='pt')
38
-
39
- # forward pass
40
- output = model(**encoded_input)
41
  ```
42
 
 
43
  ### BibTeX entry and citation info
 
19
 
20
  ```python
21
  >>> from transformers import pipeline
22
+ >>> pipe = pipeline('fill-mask', model='kz-transformers/kaz-roberta-conversational')
23
+ >>> pipe("Абай Құнанбайұлының көзқарастары терең білінген еңбегі — <mask> сөздері.")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ```
25
 
26
+
27
  ### BibTeX entry and citation info