append_lexical_predictions

append_lexical_predictions(prefix: str, target_prefixes: str | Iterable[str], *, relation: str | None | NamableReference = None, identifiers_are_names: bool = False, path: Path, method: Literal['ner', 'grounding', 'embedding'] | None = None, cutoff: float | None = None, batch_size: int | None = None, custom_filter_function: Callable[[SemanticMapping], bool] | None = None, progress: bool = True, filter_mutual_mappings: bool = False, curated_paths: list[Path] | None = None, mapping_tool: str | MappingTool | None = None, force: bool = False, force_process: bool = False, cache: bool = True, converter: Converter | None = None, all_by_all: bool = False) None[source]

Add lexical matching-based predictions to the Biomappings predictions.tsv file.

Parameters:
  • prefix – The source prefix

  • target_prefixes – The target prefix or prefixes

  • relation – The relationship. Defaults to skos:exactMatch.

  • identifiers_are_names – The source prefix’s identifiers should be considered as names

  • path – A custom path to predictions TSV file

  • method – The lexical predication method to use

  • cutoff – an optional minimum prediction confidence cutoff

  • batch_size – The batch size for embeddings

  • custom_filter_function – A custom function that decides if semantic mappings should be kept, applied after all other logic.

  • progress – Should progress be shown?

  • filter_mutual_mappings – Should mappings between entities in the given namespaces be filtered out?

  • mapping_tool – The name of the mapping tool

  • curated_paths – The paths to curated documents that are used to remove zombie mappings (i.e., predictions that were already curated)