mindformers.core.metric.EntityScore

class mindformers.core.metric.EntityScore[源代码]

Compute the f1, precision and recall score of each entity

clear()[源代码]

Initialization.

compute(origin, found, right)[源代码]

Compute f1, precision and recall.

eval()[源代码]

Compute final results.

get_entities_bios(seq)[源代码]

Get entities from sequence.

update(*inputs)[源代码]

Update results for every batch