Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Merge requests
!180
Something went wrong on our end
Use a random transcription of an element when more than one found
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use a random transcription of an element when more than one found
random-transcription
into
main
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Manon Blanco
requested to merge
random-transcription
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#112 (closed)
0
0
Merge request reports
Viewing commit
d52df58b
Show latest version
2 files
+
2
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
d52df58b
Use a random transcription of an element when more than one found
· d52df58b
Manon Blanco
authored
1 year ago
dan/datasets/extract/exceptions.py
+
0
−
9
Options
@@ -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