Skip to content

Commit

Permalink
🧹 Make from_text_segment()'s textequiv_level keyword-only
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegerber committed Mar 27, 2024
1 parent 932bfaf commit be7c1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dinglehopper/extracted_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 235,7 @@ def segment_id_for_pos(self, pos):
return self._segment_id_for_pos[pos]

@classmethod
def from_text_segment(cls, text_segment, nsmap, textequiv_level="region"):
def from_text_segment(cls, text_segment, nsmap, *, textequiv_level="region"):
"""Build an ExtractedText from a PAGE content text element"""

localname_for_textequiv_level = {"region": "TextRegion", "line": "TextLine"}
Expand Down

0 comments on commit be7c1dd

Please sign in to comment.