neuralmonkey.evaluators.f1_bio module

class neuralmonkey.evaluators.f1_bio.F1Evaluator(name: str = 'F1 measure') → None

Bases: object

F1 evaluator for BIO tagging, e.g. NP chunking.

The entities are annotated as beginning of the entity (B), continuation of the entity (I), the rest is outside the entity (O).

__init__(name: str = 'F1 measure') → None

Initialize self. See help(type(self)) for accurate signature.

static chunk2set() → Set[str]
static f1_score(reference: List[str]) → float