Skip to content
Snippets Groups Projects

Use a random transcription of an element when more than one found

Merged Manon Blanco requested to merge random-transcription into main
2 files
+ 2
14
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -49,15 +49,6 @@ class NoTranscriptionError(ElementProcessingError):
return f"No transcriptions found on element ({self.element_id}) with this config. Skipping."
class MultipleTranscriptionsError(ElementProcessingError):
"""
Raised when there are more than one transcription on an element
"""
def __str__(self) -> str:
return f"More than one transcription found on element ({self.element_id}) with this config."
class UnknownLabelError(ProcessingError):
"""
Raised when the specified label is not known
Loading