reconer.validation

reconer.validation provides a set of utility functions to fix and validate annotations to ensure consistency and no overlapping entities are set. These functions are useful to run before any of the functionality in reconer.insights or reconer.stats.


API

reconer.validation.json_to_examples(data)

Convert List of Dicts to List of typed Examples

Parameters


data: (List[Dict[str, Any]]), required.

Input List of Dicts to convert

Returns


(List[Example]):

List of typed Examples
reconer.validation.fix_annotations_format(data)

Fix annotations format for a consistent dataset

Parameters


data: (List[Dict[str, Any]]), required.

List of Examples

Returns


(List[Dict[str, Any]]):

List of Examples with corrected formatting
reconer.validation.filter_overlaps(data)

Filter overlapping entity spans by picking the longest one.

Parameters


data: (List[Dict[str, Any]]), required.

List of Examples

Returns


(List[Dict[str, Any]]):

List of Examples with fixed overlaps