kazu.annotation.acceptance_test¶
Functions
|
|
|
|
|
|
Checks to see if any match strings have different entity_class information. |
|
Checks to see if any entity string matches have inconsistent mapping information. |
|
Checks to see if any gold standard spans look a bit weird. |
|
|
|
|
Score a list of documents by Section. |
Classes
AggregatedAccuracyResult(tp: int = 0, fp: int = 0, fn: int = 0, fp_counter: collections.Counter = <factory>, fn_counter: collections.Counter = <factory>, fp_items_to_tasks: dict[typing.Any, set[str]] = <factory>, fn_items_to_tasks: dict[typing.Any, set[str]] = <factory>) |
|
Exceptions
- class kazu.annotation.acceptance_test.AggregatedAccuracyResult[source]¶
Bases:
object
AggregatedAccuracyResult(tp: int = 0, fp: int = 0, fn: int = 0, fp_counter: collections.Counter = <factory>, fn_counter: collections.Counter = <factory>, fp_items_to_tasks: dict[typing.Any, set[str]] = <factory>, fn_items_to_tasks: dict[typing.Any, set[str]] = <factory>)
- class kazu.annotation.acceptance_test.SectionScorer[source]¶
Bases:
object
- kazu.annotation.acceptance_test.aggregate_linking_results(class_and_scorers)[source]¶
- Parameters:
class_and_scorers (dict[str, list[SectionScorer]])
- Return type:
- kazu.annotation.acceptance_test.aggregate_ner_results(class_and_scorers)[source]¶
- Parameters:
class_and_scorers (dict[str, list[SectionScorer]])
- Return type:
- kazu.annotation.acceptance_test.check_annotation_consistency(cfg)[source]¶
- Parameters:
cfg (DictConfig)
- Return type:
None
- kazu.annotation.acceptance_test.check_ent_class_consistency(ent_to_task_lookup, ents, match_str, messages)[source]¶
Checks to see if any match strings have different entity_class information.
- kazu.annotation.acceptance_test.check_ent_mapping_consistency(ent_to_task_lookup, ents, match_str, messages)[source]¶
Checks to see if any entity string matches have inconsistent mapping information.
- kazu.annotation.acceptance_test.check_ent_match_abnormalities(ent_to_task_lookup, ents, match_str, messages)[source]¶
Checks to see if any gold standard spans look a bit weird.