Skip to main content
POST
Fill mask predictions

Body

application/json

Request to fill masked tokens in text.

inputs
required

Text or list of texts containing masked tokens to be filled. Required.

targets

Optional list of candidate target strings to constrain the mask filling.

top_k
integer
default:5

Number of top predictions to return per masked position.

Response

200 - application/json

Filled sequences with scores

sequence
string
score
number
token
integer
token_str
string