macedonizer commited on
Commit
9b3af62
·
1 Parent(s): 514fe0f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -14,11 +14,11 @@ You can use the raw model for masked language modeling, but it's mostly intended
14
  Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification, or question answering. For tasks such as text generation, you should look at models like GPT2.
15
 
16
  How to use
17
- You can use this model directly with a pipeline for masked language modeling:
18
 
19
- >>> from transformers import pipeline \
20
- >>> unmasker = pipeline('fill-mask', model='macedonizer/mk-roberta-base') \
21
- >>> unmasker("Скопје е <mask> град на Македонија.") \
22
  \
23
  [{'sequence': 'Скопје е главен град на Македонија.', \
24
  'score': 0.5900368094444275, \
 
14
  Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification, or question answering. For tasks such as text generation, you should look at models like GPT2.
15
 
16
  How to use
17
+ You can use this model directly with a pipeline for masked language modeling: \
18
 
19
+ from transformers import pipeline \
20
+ unmasker = pipeline('fill-mask', model='macedonizer/mk-roberta-base') \
21
+ unmasker("Скопје е <mask> град на Македонија.") \
22
  \
23
  [{'sequence': 'Скопје е главен град на Македонија.', \
24
  'score': 0.5900368094444275, \