special_case: Specify models that require special treatment to ensure...

special_caseR Documentation

Specify models that require special treatment to ensure accuracy.

Description

Specify models that require special treatment to ensure accuracy.

Usage

special_case(
  uncased = "uncased|albert|electra|muhtasham",
  u2581 = "albert|xlm-roberta|xlnet",
  u2581.excl = "chinese",
  u0120 = "roberta|bart|deberta|bertweet-large|ModernBERT",
  u0120.excl = "chinese|xlm-|kornosk/"
)

Arguments

uncased

Regular expression pattern (matching model names) for uncased models.

u2581, u0120

Regular expression pattern (matching model names) for models that require a special prefix character when performing whole-word fill-mask pipeline.

WARNING: The developer is unable to check all models, so users need to check the models they use and modify these parameters if necessary.

  • u2581: add prefix ⁠\u2581⁠ (white space) for all mask words

  • u0120: add prefix ⁠\u0120⁠ (white space) for only non-starting mask words

u2581.excl, u0120.excl

Exclusions to negate u2581 and u0120 matching results.

Value

A list of regular expression patterns.

See Also

FMAT_run()

Examples

special_case()


FMAT documentation built on Jan. 12, 2026, 9:08 a.m.