macedonizer commited on
Commit
8e5c8bd
1 Parent(s): 9ff7799

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -1,5 +1,5 @@
1
  # MK-RoBERTa base model
2
- Pretrained model on Macedonia language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is case-sensitive: it makes a difference between скопје and Скопје.
3
 
4
  # Model description
5
  RoBERTa is a transformers model pre-trained on a large corpus of мацед data in a self-supervised fashion. This means it was pre-trained on the raw texts only, with no humans labeling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
@@ -13,12 +13,12 @@ You can use the raw model for masked language modeling, but it's mostly intended
13
 
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, \
 
1
  # MK-RoBERTa base model
2
+ Pretrained model on Macedonian language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is case-sensitive: it makes a difference between скопје and Скопје.
3
 
4
  # Model description
5
  RoBERTa is a transformers model pre-trained on a large corpus of мацед data in a self-supervised fashion. This means it was pre-trained on the raw texts only, with no humans labeling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
 
13
 
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, \