f"Couldn't save created transcription entity in local cache: {e}"
)
returntranscription_ent
deflist_transcription_entities(
self,
transcription:Transcription,
worker_version:bool=None,
):
"""
List existing entities on a transcription
This method does not support cache
:param transcription Transcription: The transcription to list entities on.
:param worker_version str or bool: Restrict to entities created by a worker version with this UUID. Set to False to look for manually created transcriptions.
"""
query_params={}
asserttranscriptionandisinstance(
transcription,Transcription
),"transcription shouldn't be null and should be a Transcription"
ifworker_versionisnotNone:
assertisinstance(
worker_version,(str,bool)
),"worker_version should be of type str or bool"
ifisinstance(worker_version,bool):
assert (
worker_versionisFalse
),"if of type bool, worker_version can only be set to False"