Skip to contents

Exactly one mask must be present; mask_index is 0-BASED.

Usage

morie_kamath_ch3_dante_cloze(
  prompt = "Dante was born in [MASK]",
  mask = "[MASK]"
)

Arguments

prompt

Cloze prompt.

mask

Mask token.

Value

List with mask_index (0-based), tokens, estimate.

Examples

morie_kamath_ch3_dante_cloze()
#> $prompt
#> [1] "Dante was born in [MASK]"
#> 
#> $mask
#> [1] "[MASK]"
#> 
#> $mask_index
#> [1] 4
#> 
#> $tokens
#> [1] "Dante"  "was"    "born"   "in"     "[MASK]"
#> 
#> $estimate
#> [1] 4
#> 
#> $n
#> [1] 5
#> 
#> $method
#> [1] "cloze knowledge probe (Kamath Eq 3.4)"
#>