metadata
license: mit
The [**camembert-base**](https://huggingface.co/camembert-base] model) converted as ONNX format to be used with Transformers.js
<script type="module">
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.6.2';
const unmasker = await pipeline('fill-mask', 'benjaminchazelle/camembert-base-onnx', { quantized: false })
console.log(await unmasker('La capitale de la France est<mask>'))
/*
[
{
"score": 0.45410260558128357,
"token": 186,
"token_str": "▁...",
"sequence": "La capitale de la France est..."
},
{
"score": 0.06095331534743309,
"token": 300,
"token_str": "▁Paris",
"sequence": "La capitale de la France est Paris"
},
{
"score": 0.04425867274403572,
"token": 16,
"token_str": "▁le",
"sequence": "La capitale de la France est le"
},
{
"score": 0.035498425364494324,
"token": 807,
"token_str": "▁[...]",
"sequence": "La capitale de la France est [...]"
},
{
"score": 0.03408252075314522,
"token": 13,
"token_str": "▁la",
"sequence": "La capitale de la France est la"
}
]
*/
</script>