Update README.md
Browse files
README.md
CHANGED
@@ -59,7 +59,7 @@ Filling masks using pipeline :
|
|
59 |
from transformers import pipeline
|
60 |
|
61 |
model_fill_mask = pipeline(“fill-mask”, model=”cmarkea/distilcamembert-base”, tokenizer=”cmarkea/distilcamembert-base”)
|
62 |
-
|
63 |
#results
|
64 |
#[{'sequence': '<s> Le camembert est délicieux :)</s>', 'score': 0.3878222405910492, 'token': 7200},
|
65 |
# {'sequence': '<s> Le camembert est excellent :)</s>', 'score': 0.06469205021858215, 'token': 2183},
|
|
|
59 |
from transformers import pipeline
|
60 |
|
61 |
model_fill_mask = pipeline(“fill-mask”, model=”cmarkea/distilcamembert-base”, tokenizer=”cmarkea/distilcamembert-base”)
|
62 |
+
results = model_fill_mask(“Le camembert est <mask> :)”)
|
63 |
#results
|
64 |
#[{'sequence': '<s> Le camembert est délicieux :)</s>', 'score': 0.3878222405910492, 'token': 7200},
|
65 |
# {'sequence': '<s> Le camembert est excellent :)</s>', 'score': 0.06469205021858215, 'token': 2183},
|