get_scorer_dict#
- get_scorer_dict(suffix: bool = False, mode: Optional[str] = None, scheme: Optional[Type[Token]] = None) Dict[str, Callable[[List[str], List[str]], float]] [source]#
Return a dict of scorers for token classification.
- Parameters
- mode: str, [None (default), `strict`].
if
None
, the score is compatible with conlleval.pl. Otherwise, the score is calculated strictly.- scheme: Token, [IOB2, IOE2, IOBES]
- suffix: bool, False by default.
- Returns
- A dict of scorers.