antoinelouis
commited on
Commit
·
d7e1dc2
1
Parent(s):
64fa129
Update README.md
Browse files
README.md
CHANGED
@@ -13,9 +13,9 @@ This model is a pruned version of the pre-trained [CamemBERT](https://huggingfac
|
|
13 |
|
14 |
## Usage
|
15 |
|
16 |
-
You can use the raw model for
|
17 |
|
18 |
-
You can use this model directly with a pipeline for masked language modeling:
|
19 |
|
20 |
```python
|
21 |
from transformers import pipeline
|
@@ -24,7 +24,7 @@ unmasker = pipeline('fill-mask', model='antoinelouis/camembert-L2')
|
|
24 |
unmasker("Bonjour, je suis un [MASK] modèle.")
|
25 |
```
|
26 |
|
27 |
-
You can also use this model to
|
28 |
|
29 |
```python
|
30 |
from transformers import AutoTokenizer, AutoModel
|
|
|
13 |
|
14 |
## Usage
|
15 |
|
16 |
+
You can use the raw model for masked language modeling (MLM), but it's mostly intended to be fine-tuned on a downstream task, especially one that uses the whole sentence to make decisions such as text classification, extractive question answering, or semantic search. For tasks such as text generation, you should look at autoregressive models like [BelGPT-2](https://huggingface.co/antoinelouis/belgpt2).
|
17 |
|
18 |
+
You can use this model directly with a pipeline for [masked language modeling](https://huggingface.co/tasks/fill-mask):
|
19 |
|
20 |
```python
|
21 |
from transformers import pipeline
|
|
|
24 |
unmasker("Bonjour, je suis un [MASK] modèle.")
|
25 |
```
|
26 |
|
27 |
+
You can also use this model to [extract the features](https://huggingface.co/tasks/feature-extraction) of a given text:
|
28 |
|
29 |
```python
|
30 |
from transformers import AutoTokenizer, AutoModel
|