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.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'annotations_ontology_mapping': FieldInfo(annotation=Union[Dict[str, str], NoneType], required=False, default={}), 'batch_priority': FieldInfo(annotation=Union[int, NoneType], required=False, default=5), 'exclude_data_rows_in_project': FieldInfo(annotation=Union[bool, NoneType], required=False, default=False), 'override_existing_annotations_rule': FieldInfo(annotation=Union[ConflictResolutionStrategy, NoneType], required=False, default=<ConflictResolutionStrategy.KeepExisting: 'KEEP_EXISTING'>), 'predictions_ontology_mapping': FieldInfo(annotation=Union[Dict[str, str], NoneType], required=False, default={}), 'source_model_run_id': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'source_project_id': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- class labelbox.schema.send_to_annotate_params.SendToAnnotateFromModelParams[source]
Bases:
TypedDict
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.