mapama247 commited on
Commit
1327b39
·
1 Parent(s): 54fee6e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -55,14 +55,16 @@ widget:
55
 
56
  ## Intended uses and limitations
57
 
58
- [TODO: Mention the tasks it can perform]
59
-
60
 
61
  ## How to use
62
 
63
  ```python
 
64
  from transformers import pipeline
65
- [TODO: Add minimal code here]
 
 
66
  ```
67
 
68
  ## Limitations and bias
 
55
 
56
  ## Intended uses and limitations
57
 
58
+ This model is ready-to-use only for masked language modeling (MLM) to perform the Fill-Mask task. However, it is intended to be fine-tuned on non-generative downstream tasks such as Question Answering, Text Classification, or Named Entity Recognition.
 
59
 
60
  ## How to use
61
 
62
  ```python
63
+ from pprint import pprint
64
  from transformers import pipeline
65
+ pipe = pipeline("fill-mask", model="aina/DistilBERTa")
66
+ text = "El <mask> és el meu dia preferit de la setmana."
67
+ pprint(pipe(text))
68
  ```
69
 
70
  ## Limitations and bias