merge_manual_curations
- merge_manual_curations(mappings: Iterable[MappingTypeVar], *, converter: Converter, precision: int | None = None, confidence_model: Literal['binomial', 'mean'] | None = None) Iterable[MappingTypeVar][source]
Merge manually curated mappings.
- Parameters:
mappings – An iterable of semantic mappings
converter – A converter
precision – the precision to round newly calculated confidences
confidence_model –
Which confidence model to use when aggregating mapping confidences.
mean aggregation is \(\frac{1}{n} \sum_{i=1}^n c_i\)
binomial aggregation is \(1 - \prod_{i=1}^n (1 - c_i)\)
- Returns:
An iterable of semantic mappings, with manually curated mappings for the same mapping triple merged together based on
estimate_confidence()
Note
The confidence estimation algorithm properly handles negative predicate modifiers as well as reviewer information.
Warning
This function partially scrambles the order of mappings. All non-merged mappings come out in normal order, followed by merged mappings.