Send To Annotate Params

class labelbox.schema.send_to_annotate_params.SendToAnnotateFromCatalogParams(*, source_model_run_id: str | None = None, source_project_id: str | None = None, predictions_ontology_mapping: Dict[str, str] | None = {}, annotations_ontology_mapping: Dict[str, str] | None = {}, exclude_data_rows_in_project: bool | None = False, override_existing_annotations_rule: ConflictResolutionStrategy | None = ConflictResolutionStrategy.KeepExisting, batch_priority: int | None = 5)[source]

Bases: BaseModel

Extra parameters for sending data rows to a project through catalog. At least one of source_model_run_id or source_project_id must be provided.

Parameters:
  • source_model_run_id – Optional[str] - The model run to use for predictions. Defaults to None.

  • predictions_ontology_mapping – Optional[Dict[str, str]] - A mapping of feature schema ids to feature schema ids. Defaults to an empty dictionary.

  • source_project_id – Optional[str] - The project to use for predictions. Defaults to None.

  • annotations_ontology_mapping – Optional[Dict[str, str]] - A mapping of feature schema ids to feature schema ids. Defaults to an empty dictionary.

  • exclude_data_rows_in_project – Optional[bool] - Exclude data rows that are already in the project. Defaults to False.

  • override_existing_annotations_rule – Optional[ConflictResolutionStrategy] - The strategy defining how to handle conflicts in classifications between the data rows that already exist in the project and incoming predictions from the source model run or annotations from the source project. Defaults to ConflictResolutionStrategy.KEEP_EXISTING.

  • batch_priority – Optional[int] - The priority of the batch. Defaults to 5.

class labelbox.schema.send_to_annotate_params.SendToAnnotateFromModelParams(*args, **kwargs)[source]

Bases: dict

Extra parameters for sending data rows to a project through a model run.

Parameters:
  • predictions_ontology_mapping – Dict[str, str] - A mapping of feature schema ids to feature schema ids. Defaults to an empty dictionary.

  • exclude_data_rows_in_project – Optional[bool] - Exclude data rows that are already in the project. Defaults to False.

  • override_existing_annotations_rule – Optional[ConflictResolutionStrategy] - The strategy defining how to handle conflicts in classifications between the data rows that already exist in the project and incoming predictions from the source model run. Defaults to ConflictResolutionStrategy.KEEP_EXISTING.

  • batch_priority – Optional[int] - The priority of the batch. Defaults to 5.