Gabriel commited on
Commit
deef83a
1 Parent(s): 3b057c5

latest changes of media

Browse files
Files changed (6) hide show
  1. README.md +2 -1
  2. app.py +88 -22
  3. helper/text/text_howto.py +39 -11
  4. tabs/htr_tool.py +18 -1
  5. tabs/stepwise_htr_tool.py +1 -1
  6. test_api.ipynb +165 -274
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: purple
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
8
- models: []
 
9
  datasets: []
10
  ---
 
5
  colorTo: green
6
  sdk: docker
7
  pinned: false
8
+ models:
9
+ - Riksarkivet/HTR_pipeline_models
10
  datasets: []
11
  ---
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  from helper.gradio_config import css, js, theme
4
- from helper.text import TextAbout, TextApp, TextHowTo, TextRiksarkivet, TextRoadmap
5
  from tabs.htr_tool import htr_tool_tab
6
  from tabs.stepwise_htr_tool import stepwise_htr_tool_tab
7
 
@@ -14,6 +14,7 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
14
 
15
  with gr.Tab("Stepwise HTR Tool"):
16
  stepwise_htr_tool_tab.render()
 
17
  with gr.Tab("How to use"):
18
  with gr.Tabs():
19
  with gr.Tab("HTR Tool"):
@@ -23,7 +24,7 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
23
  with gr.Column():
24
  gr.Markdown(TextHowTo.both_htr_tool_video)
25
  gr.Video(
26
- value="https://github.com/Borg93/htr_gradio_file_placeholder/raw/main/eating_spaghetti.mp4",
27
  label="How to use HTR Tool",
28
  )
29
  gr.Markdown(TextHowTo.reach_out)
@@ -32,18 +33,7 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
32
  with gr.Row().style(equal_height=False):
33
  with gr.Column():
34
  gr.Markdown(TextHowTo.stepwise_htr_tool)
35
- with gr.Row():
36
- with gr.Accordion("The tabs for the Stepwise HTR Tool:", open=False):
37
- with gr.Tabs():
38
- with gr.Tab("1. Region Segmentation"):
39
- gr.Markdown(TextHowTo.stepwise_htr_tool_tab1)
40
- with gr.Tab("2. Line Segmentation"):
41
- gr.Markdown(TextHowTo.stepwise_htr_tool_tab2)
42
- with gr.Tab("3. Transcribe Text"):
43
- gr.Markdown(TextHowTo.stepwise_htr_tool_tab3)
44
- with gr.Tab("4. Explore Results"):
45
- gr.Markdown(TextHowTo.stepwise_htr_tool_tab4)
46
- gr.Markdown(TextHowTo.stepwise_htr_tool_end)
47
  with gr.Column():
48
  gr.Markdown(TextHowTo.both_htr_tool_video)
49
  gr.Video(
@@ -52,6 +42,82 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
52
  )
53
  gr.Markdown(TextHowTo.reach_out)
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  with gr.Tab("About"):
56
  with gr.Tabs():
57
  with gr.Tab("Project"):
@@ -90,14 +156,14 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
90
  with gr.Column():
91
  gr.Markdown(TextRoadmap.notebook)
92
 
93
- with gr.Tab("Riksarkivet"):
94
- with gr.Row():
95
- gr.Markdown(TextRiksarkivet.riksarkivet)
96
-
97
- # callback.setup([fast_track_input_region_image], "flagged_data_points")
98
- # flagging_button.click(lambda *args: callback.flag(args), [fast_track_input_region_image], None, preprocess=False)
99
- # flagging_button.click(lambda: (gr.update(value="Flagged")), outputs=flagging_button)
100
- # fast_track_input_region_image.change(lambda: (gr.update(value="Flag")), outputs=flagging_button)
101
 
102
  demo.load(None, None, None, _js=js)
103
 
 
1
  import gradio as gr
2
 
3
  from helper.gradio_config import css, js, theme
4
+ from helper.text import TextAbout, TextApp, TextHowTo, TextRoadmap
5
  from tabs.htr_tool import htr_tool_tab
6
  from tabs.stepwise_htr_tool import stepwise_htr_tool_tab
7
 
 
14
 
15
  with gr.Tab("Stepwise HTR Tool"):
16
  stepwise_htr_tool_tab.render()
17
+
18
  with gr.Tab("How to use"):
19
  with gr.Tabs():
20
  with gr.Tab("HTR Tool"):
 
24
  with gr.Column():
25
  gr.Markdown(TextHowTo.both_htr_tool_video)
26
  gr.Video(
27
+ value="https://github.com/Borg93/htr_gradio_file_placeholder/raw/main/htr_tool_media_cut.mp4",
28
  label="How to use HTR Tool",
29
  )
30
  gr.Markdown(TextHowTo.reach_out)
 
33
  with gr.Row().style(equal_height=False):
34
  with gr.Column():
35
  gr.Markdown(TextHowTo.stepwise_htr_tool)
36
+
 
 
 
 
 
 
 
 
 
 
 
37
  with gr.Column():
38
  gr.Markdown(TextHowTo.both_htr_tool_video)
39
  gr.Video(
 
42
  )
43
  gr.Markdown(TextHowTo.reach_out)
44
 
45
+ with gr.Row():
46
+ gr.Markdown(TextHowTo.stepwise_htr_tool_tab_intro)
47
+ with gr.Row():
48
+ with gr.Accordion("The tabs for the Stepwise HTR Tool:", open=True):
49
+ with gr.Tabs():
50
+ with gr.Tab("1. Region Segmentation"):
51
+ gr.Markdown(TextHowTo.stepwise_htr_tool_tab1)
52
+ with gr.Tab("2. Line Segmentation"):
53
+ gr.Markdown(TextHowTo.stepwise_htr_tool_tab2)
54
+ with gr.Tab("3. Transcribe Text"):
55
+ gr.Markdown(TextHowTo.stepwise_htr_tool_tab3)
56
+ with gr.Tab("4. Explore Results"):
57
+ gr.Markdown(TextHowTo.stepwise_htr_tool_tab4)
58
+ gr.Markdown(TextHowTo.stepwise_htr_tool_end)
59
+
60
+ with gr.Tab("API"):
61
+ with gr.Row():
62
+ with gr.Column():
63
+ gr.Markdown(
64
+ """
65
+ ## Usage of Client API
66
+
67
+ For those interested in testing out the demo, it's available to run as a Gradio Python client.
68
+ To facilitate this, there's a lightweight package called gradio_client that you can easily install via pip.
69
+ """
70
+ )
71
+
72
+ gr.Code(
73
+ value="""
74
+ from gradio_client import Client # pip install gradio_client
75
+
76
+ # Change url to your client (localhost: http://127.0.0.1:7860/)
77
+ client = Client("https://huggingface.co/spaces/Riksarkivet/htr_demo")
78
+ job = client.submit(
79
+ "https://your.image.url.or.pah.jpg",
80
+ api_name="/predict",
81
+ )
82
+
83
+ print(job.result())
84
+
85
+ """,
86
+ language="python",
87
+ interactive=False,
88
+ show_label=False,
89
+ )
90
+ gr.Markdown(
91
+ """
92
+ Below you can see the results, in XML, from the API call:
93
+ """
94
+ )
95
+ gr.Markdown(TextHowTo.figure_htr_api)
96
+
97
+ with gr.Column():
98
+ gr.Markdown(
99
+ """
100
+ ## Duplicating a Space for private use
101
+ It's worth noting that while using any public Space as an API is possible, there's a catch. Hugging Face might rate limit you if you send an excessive number of requests in a short period.
102
+ However, there's a workaround for those who need to make frequent API calls. By duplicating a public Space, you can create your own private Space.
103
+ This private version allows you to make unlimited requests without any restrictions. So, if you're planning on heavy usage duplicate space:
104
+
105
+ <br>
106
+ <p align="center">
107
+ <a href="https://huggingface.co/spaces/Riksarkivet/htr_demo?duplicate=true">
108
+ <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-xl-dark.svg" alt="Badge 1">
109
+ </a>
110
+ </p>
111
+ <br>
112
+
113
+ """
114
+ )
115
+ gr.Markdown(TextHowTo.figure_htr_hardware)
116
+
117
+ gr.Markdown(
118
+ "Note that if you have GPU hardware available, you can also run this application on Docker or clone it locally."
119
+ )
120
+
121
  with gr.Tab("About"):
122
  with gr.Tabs():
123
  with gr.Tab("Project"):
 
156
  with gr.Column():
157
  gr.Markdown(TextRoadmap.notebook)
158
 
159
+ gr.Markdown(
160
+ """
161
+ <p align="center">
162
+ <a href="https://huggingface.co/spaces/Riksarkivet/htr_demo/discussions">
163
+ <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-a-discussion-xl-dark.svg" alt="Badge 1">
164
+ </a>
165
+ </p>"""
166
+ )
167
 
168
  demo.load(None, None, None, _js=js)
169
 
helper/text/text_howto.py CHANGED
@@ -13,7 +13,18 @@ class TextHowTo:
13
  </figure>
14
  The HTR Tool will transform an image of handwritten text into structured, transcribed text within approximately 1-2 minutes (depending on your hardware).
15
  Note that the generated page XML file is strucutred in such manner that it allows for an easy integration with other software, such as Transkribus.
 
 
 
 
 
 
 
 
 
16
  <br>
 
 
17
  """
18
  reach_out = """ Feel free to reach out if you have any questions or need further assistance!
19
 
@@ -23,13 +34,15 @@ class TextHowTo:
23
  ## Stepwise HTR Tool
24
 
25
  The Stepwise HTR Tool is a powerful tool for performing Handwritten Text Recognition (HTR) tasks. The Stepwise version provides you with fine-grained control over each step of the HTR process, allowing for greater customization and troubleshooting capabilities.
26
- With the Stepwise HTR Tool, you can break down the HTR process into distinct steps: region segmentation, line segmentation, text transcription, and result exploration.
27
- This tool offers a range of configuration options to tailor the HTR process to your specific needs. You can adjust settings such as P-threshold and C-threshold to fine-tune the region and line segmentation, and choose from a selection of underlying machine learning models to drive each step of the process.
28
- The Stepwise HTR Tool also provides a dedicated Explore Results tab, allowing you to thoroughly analyze and interact with the transcriptions. You can sort and identify both bad and good predictions, helping you gain insights and make improvements to the HTR accuracy.
29
- Each step is interconnected, and the output of one step serves as the input for the next step, ensuring a seamless and efficient workflow.
30
  <br><br>
 
 
 
 
 
 
 
31
 
32
- Follow the instructions below provided in each tab to perform the respective step of the HTR process and ensure you work through the tabs sequentially:
33
  """
34
 
35
  stepwise_htr_tool_tab1 = """
@@ -84,14 +97,29 @@ To explore the HTR results, follow these steps:
84
  """
85
 
86
  stepwise_htr_tool_end = """
87
- As mentioned, please note that each tab in this workflow is dependent on the previous steps, where you progressively work through the process in a step-by-step manner.
88
- <br>
89
- """
90
 
91
  both_htr_tool_video = """
92
- ## &nbsp;
93
- Alternatively, you can watch the instructional video below, which provides a step-by-step walkthrough of the HTR Tool and some additional features.
94
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
 
97
  if __name__ == "__main__":
 
13
  </figure>
14
  The HTR Tool will transform an image of handwritten text into structured, transcribed text within approximately 1-2 minutes (depending on your hardware).
15
  Note that the generated page XML file is strucutred in such manner that it allows for an easy integration with other software, such as Transkribus.
16
+
17
+ <br><br>
18
+
19
+ You can use our own developed Image viewer for the xml output:
20
+ <p align="center">
21
+ <a href="https://huggingface.co/spaces/Riksarkivet/Viewer_demo">
22
+ <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-xl-dark.svg" alt="Badge 1">
23
+ </a>
24
+ </p>
25
  <br>
26
+
27
+
28
  """
29
  reach_out = """ Feel free to reach out if you have any questions or need further assistance!
30
 
 
34
  ## Stepwise HTR Tool
35
 
36
  The Stepwise HTR Tool is a powerful tool for performing Handwritten Text Recognition (HTR) tasks. The Stepwise version provides you with fine-grained control over each step of the HTR process, allowing for greater customization and troubleshooting capabilities.
 
 
 
 
37
  <br><br>
38
+ With the Stepwise HTR Tool, you can break down the HTR process into distinct steps: region segmentation, line segmentation, text transcription, and result exploration. This tool offers a range of configuration options to tailor the HTR process to your specific needs. You can adjust settings such as P-threshold and C-threshold to fine-tune the region and line segmentation, and choose from a selection of underlying machine learning models to drive each step of the process.
39
+ <br><br>
40
+ The Stepwise HTR Tool also provides a dedicated Explore Results tab, allowing you to thoroughly analyze and interact with the transcriptions. You can sort and identify both bad and good predictions, helping you gain insights and make improvements to the HTR accuracy. Each step is interconnected, and the output of one step serves as the input for the next step, ensuring a seamless and efficient workflow.
41
+
42
+ """
43
+ stepwise_htr_tool_tab_intro = """
44
+ Follow the instructions below provided in each tab to perform the respective step of the HTR process and ensure you work through the tabs sequentially:
45
 
 
46
  """
47
 
48
  stepwise_htr_tool_tab1 = """
 
97
  """
98
 
99
  stepwise_htr_tool_end = """
100
+ As mentioned, please note that each tab in this workflow is dependent on the previous steps, where you progressively work through the process in a step-by-step manner.
101
+ <br>
102
+ """
103
 
104
  both_htr_tool_video = """
105
+ ## &nbsp;
106
+ Alternatively, you can watch the instructional video below, which provides a step-by-step walkthrough of the HTR Tool and some additional features.
107
+ """
108
+
109
+ figure_htr_api = """
110
+ <figure>
111
+ <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/notebook_api.png" alt="HTR_tool" style="width:98%; display: block; margin-left: auto; margin-right:auto;" >
112
+ <figcaption style="text-align: center;"> <em> Figure - How to run API through a client in a notebook </em></figcaption>
113
+ </figure>
114
+ """
115
+
116
+ figure_htr_hardware = """
117
+
118
+ <figure>
119
+ <img src="https://raw.githubusercontent.com/Borg93/htr_gradio_file_placeholder/main/hardware_example.png" alt="HTR_tool" style="width:75%; display: block; margin-left: auto; margin-right:auto;" >
120
+ <figcaption style="text-align: center;"> <em> Figure - Choose a hardware that has atleast a GPU </em></figcaption>
121
+ </figure>
122
+ """
123
 
124
 
125
  if __name__ == "__main__":
tabs/htr_tool.py CHANGED
@@ -56,8 +56,20 @@ with gr.Blocks() as htr_tool_tab:
56
  examples=images_for_demo.examples_list,
57
  inputs=[fast_name_files_placeholder, fast_track_input_region_image],
58
  label="Example images",
59
- examples_per_page=3,
60
  )
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  with gr.Column(scale=4):
63
  fast_track_output_image = gr.Image(label="HTR results visualizer", type="numpy", tool="editor", height=650)
@@ -82,3 +94,8 @@ with gr.Blocks() as htr_tool_tab:
82
  outputs=[xml_rendered_placeholder_for_api],
83
  api_name="predict",
84
  )
 
 
 
 
 
 
56
  examples=images_for_demo.examples_list,
57
  inputs=[fast_name_files_placeholder, fast_track_input_region_image],
58
  label="Example images",
59
+ examples_per_page=5,
60
  )
61
+ with gr.Row():
62
+ gr.Markdown(
63
+ """
64
+ Image viewer for xml output:
65
+ <p align="center">
66
+ <a href="https://huggingface.co/spaces/Riksarkivet/Viewer_demo">
67
+ <img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-xl-dark.svg" alt="Badge 1">
68
+ </a>
69
+ </p>
70
+
71
+ """
72
+ )
73
 
74
  with gr.Column(scale=4):
75
  fast_track_output_image = gr.Image(label="HTR results visualizer", type="numpy", tool="editor", height=650)
 
94
  outputs=[xml_rendered_placeholder_for_api],
95
  api_name="predict",
96
  )
97
+
98
+ # callback.setup([fast_track_input_region_image], "flagged_data_points")
99
+ # flagging_button.click(lambda *args: callback.flag(args), [fast_track_input_region_image], None, preprocess=False)
100
+ # flagging_button.click(lambda: (gr.update(value="Flagged")), outputs=flagging_button)
101
+ # fast_track_input_region_image.change(lambda: (gr.update(value="Flag")), outputs=flagging_button)
tabs/stepwise_htr_tool.py CHANGED
@@ -68,7 +68,7 @@ with gr.Blocks() as stepwise_htr_tool_tab:
68
  examples=images_for_demo.examples_list,
69
  inputs=[name_files_placeholder, input_region_image],
70
  label="Example images",
71
- examples_per_page=2,
72
  )
73
 
74
  with gr.Column(scale=3):
 
68
  examples=images_for_demo.examples_list,
69
  inputs=[name_files_placeholder, input_region_image],
70
  label="Example images",
71
+ examples_per_page=5,
72
  )
73
 
74
  with gr.Column(scale=3):
test_api.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 4,
6
  "metadata": {},
7
  "outputs": [
8
  {
@@ -14,408 +14,299 @@
14
  "<PcGts xmlns=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15 http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15/pagecontent.xsd\">\n",
15
  " <Metadata>\n",
16
  " <Creator>Swedish National Archives</Creator>\n",
17
- " <Created>2023-07-12, 14:33:18</Created>\n",
18
  " </Metadata>\n",
19
- " <Page imageFilename=\"page_xml.xml\" imageWidth=\"2715\" imageHeight=\"2128\">\n",
20
  " <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
21
- " <Coords points=\"1337,303 275,325 260,1580 286,1900 1363,1887\"/>\n",
22
  " <TextLine id=\"line_region_0_0\" custom=\"readingOrder {index:0;}\">\n",
23
- " <Coords points=\"1349,331 1340,315 1290,310 1289,300 1202,300 1201,310 527,324 363,316 336,325 332,337 352,364 451,373 911,355 1112,368 1219,351 1338,350\"/>\n",
24
  " <TextEquiv>\n",
25
- " <Unicode>Rättegångs fullmakt en blanco för J. A. Rude¬</Unicode>\n",
26
  " </TextEquiv>\n",
27
- " <PredScore pred_score=\"0.9845\"/>\n",
28
  " </TextLine>\n",
29
- " <TextLine id=\"line_region_0_1\" custom=\"readingOrder {index:1;}\">\n",
30
- " <Coords points=\"1347,372 1325,364 1192,375 287,378 279,412 285,421 1235,413 1336,406\"/>\n",
 
 
 
31
  " <TextEquiv>\n",
32
- " <Unicode>berg eller den han i sitt ställe förordnar i mål vid</Unicode>\n",
33
  " </TextEquiv>\n",
34
- " <PredScore pred_score=\"0.9811\"/>\n",
35
  " </TextLine>\n",
36
- " <TextLine id=\"line_region_0_2\" custom=\"readingOrder {index:2;}\">\n",
37
- " <Coords points=\"1348,439 1334,429 1221,422 1006,435 470,437 287,428 278,452 283,473 300,478 911,473 1050,487 1144,469 1333,468 1346,461\"/>\n",
38
  " <TextEquiv>\n",
39
- " <Unicode>Litt härads rätt emot min man J. O. Nilsson en¬</Unicode>\n",
40
  " </TextEquiv>\n",
41
- " <PredScore pred_score=\"0.9802\"/>\n",
42
  " </TextLine>\n",
43
- " <TextLine id=\"line_region_0_3\" custom=\"readingOrder {index:3;}\">\n",
44
- " <Coords points=\"1337,492 1265,483 1094,494 866,487 285,497 272,509 271,536 283,551 422,537 790,532 886,553 953,537 1030,551 1107,529 1325,525 1337,513\"/>\n",
45
  " <TextEquiv>\n",
46
- " <Unicode>gående skilnad i äktenskapet; egande ombudet</Unicode>\n",
47
  " </TextEquiv>\n",
48
- " <PredScore pred_score=\"0.9975\"/>\n",
49
  " </TextLine>\n",
50
- " <TextLine id=\"line_region_0_4\" custom=\"readingOrder {index:4;}\">\n",
51
- " <Coords points=\"1350,559 1343,544 1321,539 1049,555 929,546 864,555 278,558 272,583 285,602 512,610 626,593 707,593 809,617 882,590 1092,587 1147,601 1218,591 1273,602 1342,586\"/>\n",
52
  " <TextEquiv>\n",
53
- " <Unicode>hvars lagliga åtgärder godkännas att uppsätta stäm¬</Unicode>\n",
54
  " </TextEquiv>\n",
55
- " <PredScore pred_score=\"0.9812\"/>\n",
56
  " </TextLine>\n",
57
- " <TextLine id=\"line_region_0_5\" custom=\"readingOrder {index:5;}\">\n",
58
- " <Coords points=\"1351,610 1332,597 1103,593 1009,607 763,615 647,594 593,607 284,616 273,650 285,663 337,671 484,649 1347,636\"/>\n",
59
  " <TextEquiv>\n",
60
- " <Unicode>ning och derå teckna mitt namn, försäkras Otter¬</Unicode>\n",
61
  " </TextEquiv>\n",
62
- " <PredScore pred_score=\"0.9835\"/>\n",
63
  " </TextLine>\n",
64
- " <TextLine id=\"line_region_0_6\" custom=\"readingOrder {index:6;}\">\n",
65
- " <Coords points=\"1350,669 1341,655 1303,650 282,675 269,696 285,714 1179,700 1252,715 1331,705 1349,694\"/>\n",
66
  " <TextEquiv>\n",
67
- " <Unicode>lund den 29 Augusti 1895 Anika Nilson Höf Ting</Unicode>\n",
68
  " </TextEquiv>\n",
69
- " <PredScore pred_score=\"0.9462\"/>\n",
70
  " </TextLine>\n",
71
- " <TextLine id=\"line_region_0_7\" custom=\"readingOrder {index:7;}\">\n",
72
- " <Coords points=\"1327,713 1082,715 1020,704 927,704 826,720 621,710 446,727 287,715 272,724 271,751 285,767 488,771 566,760 821,758 1031,771 1132,752 1313,757 1332,751\"/>\n",
73
  " <TextEquiv>\n",
74
- " <Unicode>Bevittnas af Lars Larsson Hof Tång ol Olsson Ny¬</Unicode>\n",
75
  " </TextEquiv>\n",
76
- " <PredScore pred_score=\"0.9753\"/>\n",
77
  " </TextLine>\n",
78
- " <TextLine id=\"line_region_0_8\" custom=\"readingOrder {index:8;}\">\n",
79
- " <Coords points=\"1341,787 1330,767 1075,762 972,777 680,776 603,764 488,781 286,777 277,809 285,822 768,823 1171,808 1231,828 1329,808\"/>\n",
80
  " <TextEquiv>\n",
81
- " <Unicode>hem.- vice Häradshöfdingen A. Rudeberg för¬</Unicode>\n",
82
  " </TextEquiv>\n",
83
- " <PredScore pred_score=\"0.9697\"/>\n",
84
  " </TextLine>\n",
85
- " <TextLine id=\"line_region_0_9\" custom=\"readingOrder {index:9;}\">\n",
86
- " <Coords points=\"1307,833 1290,821 1151,811 1009,831 865,813 747,836 285,839 274,850 274,873 285,882 798,868 1249,868 1297,861\"/>\n",
87
  " <TextEquiv>\n",
88
- " <Unicode>ordnas i mitt ställe. Husås den 24 Sept. 1895.</Unicode>\n",
89
  " </TextEquiv>\n",
90
- " <PredScore pred_score=\"0.9739\"/>\n",
91
  " </TextLine>\n",
92
- " <TextLine id=\"line_region_0_10\" custom=\"readingOrder {index:10;}\">\n",
93
- " <Coords points=\"1327,878 1148,882 1071,872 968,875 870,893 720,882 596,897 428,886 286,892 277,934 285,946 446,935 548,953 607,934 866,935 1307,923 1331,914\"/>\n",
94
  " <TextEquiv>\n",
95
- " <Unicode>J. A. Riideberg. Bevittnas: Fr. Svensson. O. M.</Unicode>\n",
96
  " </TextEquiv>\n",
97
- " <PredScore pred_score=\"0.9374\"/>\n",
98
  " </TextLine>\n",
99
- " <TextLine id=\"line_region_0_11\" custom=\"readingOrder {index:11;}\">\n",
100
- " <Coords points=\"275,969 280,994 294,1004 314,1011 327,1011 346,998 365,989 384,987 486,988 494,974 490,962 485,958 424,956 406,948 387,945 367,946 344,936 323,936 291,943 279,952\"/>\n",
101
  " <TextEquiv>\n",
102
- " <Unicode>Byström.</Unicode>\n",
103
  " </TextEquiv>\n",
104
- " <PredScore pred_score=\"0.8894\"/>\n",
105
  " </TextLine>\n",
106
- " <TextLine id=\"line_region_0_12\" custom=\"readingOrder {index:12;}\">\n",
107
- " <Coords points=\"356,1025 367,1048 606,1047 679,1058 728,1048 1110,1034 1189,1037 1271,1056 1308,1037 1310,1009 1303,999 905,1001 825,993 763,1005 495,1007 405,996 366,1002\"/>\n",
108
  " <TextEquiv>\n",
109
- " <Unicode>Sedan ofvanintagna fullmakt och anlökning</Unicode>\n",
110
  " </TextEquiv>\n",
111
- " <PredScore pred_score=\"0.989\"/>\n",
112
  " </TextLine>\n",
113
- " <TextLine id=\"line_region_0_13\" custom=\"readingOrder {index:13;}\">\n",
114
- " <Coords points=\"1350,1061 1345,1051 1312,1047 1214,1056 284,1060 270,1095 286,1110 462,1116 656,1104 808,1113 936,1098 1132,1105 1339,1088\"/>\n",
115
  " <TextEquiv>\n",
116
- " <Unicode>blifvit upplästa samt från stämningen uteck¬</Unicode>\n",
117
  " </TextEquiv>\n",
118
- " <PredScore pred_score=\"0.9912\"/>\n",
119
  " </TextLine>\n",
120
- " <TextLine id=\"line_region_0_14\" custom=\"readingOrder {index:14;}\">\n",
121
- " <Coords points=\"1354,1133 1348,1114 383,1122 286,1130 271,1155 282,1168 1348,1153\"/>\n",
122
  " <TextEquiv>\n",
123
- " <Unicode>nadt bevis inhemtats, att densamma den 15. Ma¬</Unicode>\n",
124
  " </TextEquiv>\n",
125
- " <PredScore pred_score=\"0.9466\"/>\n",
126
  " </TextLine>\n",
127
- " <TextLine id=\"line_region_0_15\" custom=\"readingOrder {index:15;}\">\n",
128
- " <Coords points=\"1347,1172 1320,1162 987,1176 286,1182 274,1191 272,1212 285,1225 979,1214 1069,1227 1136,1213 1333,1207 1347,1195\"/>\n",
129
  " <TextEquiv>\n",
130
- " <Unicode>nevarande månad svaranden delgifvits med¬</Unicode>\n",
131
  " </TextEquiv>\n",
132
- " <PredScore pred_score=\"0.9912\"/>\n",
133
  " </TextLine>\n",
134
- " <TextLine id=\"line_region_0_16\" custom=\"readingOrder {index:16;}\">\n",
135
- " <Coords points=\"1348,1227 1308,1221 1082,1232 284,1238 272,1251 271,1280 289,1292 404,1276 1350,1261\"/>\n",
136
  " <TextEquiv>\n",
137
- " <Unicode>gaf Svaranden käromålet och erkände, all han,</Unicode>\n",
138
  " </TextEquiv>\n",
139
- " <PredScore pred_score=\"0.979\"/>\n",
140
  " </TextLine>\n",
141
- " <TextLine id=\"line_region_0_17\" custom=\"readingOrder {index:17;}\">\n",
142
- " <Coords points=\"1341,1288 1331,1275 281,1295 269,1315 284,1334 704,1328 792,1335 949,1325 1132,1332 1328,1318\"/>\n",
143
  " <TextEquiv>\n",
144
- " <Unicode>som icke sedan år 1891 sammanträffat med</Unicode>\n",
145
  " </TextEquiv>\n",
146
- " <PredScore pred_score=\"0.9983\"/>\n",
147
  " </TextLine>\n",
148
- " <TextLine id=\"line_region_0_18\" custom=\"readingOrder {index:18;}\">\n",
149
- " <Coords points=\"1351,1350 1331,1336 1052,1333 587,1346 287,1340 274,1350 272,1376 285,1389 912,1383 1027,1396 1152,1378 1249,1391 1345,1372\"/>\n",
150
  " <TextEquiv>\n",
151
- " <Unicode>käranden, under de senaste fyra åren uppe¬</Unicode>\n",
152
  " </TextEquiv>\n",
153
- " <PredScore pred_score=\"0.9993\"/>\n",
154
  " </TextLine>\n",
155
- " <TextLine id=\"line_region_0_19\" custom=\"readingOrder {index:19;}\">\n",
156
- " <Coords points=\"1362,1407 1354,1392 1324,1387 1019,1400 312,1398 280,1403 273,1434 284,1448 394,1445 459,1455 533,1442 1142,1441 1350,1430\"/>\n",
 
 
 
157
  " <TextEquiv>\n",
158
- " <Unicode>hållit sig i Österåren och sammanlefvat i brottsa</Unicode>\n",
159
  " </TextEquiv>\n",
160
- " <PredScore pred_score=\"0.9665\"/>\n",
161
  " </TextLine>\n",
162
- " <TextLine id=\"line_region_0_20\" custom=\"readingOrder {index:20;}\">\n",
163
- " <Coords points=\"1357,1467 1353,1453 1337,1447 1231,1457 423,1453 291,1461 280,1496 287,1508 713,1501 811,1515 988,1497 1090,1512 1166,1497 1348,1493\"/>\n",
164
  " <TextEquiv>\n",
165
- " <Unicode>ligt förhållande med ogifta Arbetsqvinnan Mar¬</Unicode>\n",
166
  " </TextEquiv>\n",
167
- " <PredScore pred_score=\"0.9944\"/>\n",
168
  " </TextLine>\n",
169
- " <TextLine id=\"line_region_0_21\" custom=\"readingOrder {index:21;}\">\n",
170
- " <Coords points=\"550,1532 545,1519 540,1515 506,1510 465,1494 411,1517 381,1517 336,1526 285,1526 278,1536 276,1573 282,1581 287,1582 298,1573 327,1562 418,1552 542,1554 547,1551\"/>\n",
171
  " <TextEquiv>\n",
172
- " <Unicode>gareta Lidén</Unicode>\n",
173
  " </TextEquiv>\n",
174
- " <PredScore pred_score=\"0.9787\"/>\n",
175
  " </TextLine>\n",
176
- " <TextLine id=\"line_region_0_22\" custom=\"readingOrder {index:22;}\">\n",
177
- " <Coords points=\"1354,1596 1349,1563 1238,1557 1099,1568 1005,1562 518,1575 382,1562 360,1573 366,1613 544,1633 617,1612 971,1610 1029,1631 1121,1609 1311,1618 1348,1608\"/>\n",
178
  " <TextEquiv>\n",
179
- " <Unicode>Det upplystes att bemälta Margareta Lidén af¬</Unicode>\n",
180
  " </TextEquiv>\n",
181
- " <PredScore pred_score=\"0.981\"/>\n",
182
  " </TextLine>\n",
183
- " <TextLine id=\"line_region_0_23\" custom=\"readingOrder {index:23;}\">\n",
184
- " <Coords points=\"1358,1641 1346,1625 1285,1620 1054,1631 287,1634 281,1655 286,1676 1346,1666\"/>\n",
185
  " <TextEquiv>\n",
186
- " <Unicode>lidit den 6 Mars 1894 samt att hon icke haft barn</Unicode>\n",
187
  " </TextEquiv>\n",
188
- " <PredScore pred_score=\"0.9851\"/>\n",
189
  " </TextLine>\n",
190
- " <TextLine id=\"line_region_0_24\" custom=\"readingOrder {index:24;}\">\n",
191
- " <Coords points=\"632,1713 626,1695 574,1689 510,1698 376,1691 350,1696 286,1697 277,1705 274,1717 285,1731 618,1727 627,1723\"/>\n",
192
  " <TextEquiv>\n",
193
- " <Unicode>med svaranden.</Unicode>\n",
194
  " </TextEquiv>\n",
195
- " <PredScore pred_score=\"0.9948\"/>\n",
196
  " </TextLine>\n",
197
- " <TextLine id=\"line_region_0_25\" custom=\"readingOrder {index:25;}\">\n",
198
- " <Coords points=\"1350,1749 1341,1738 509,1748 388,1738 361,1745 355,1774 370,1789 1121,1788 1330,1780 1348,1774\"/>\n",
199
  " <TextEquiv>\n",
200
- " <Unicode>Kärandeombudet anhöll om vittnes förhör med</Unicode>\n",
201
  " </TextEquiv>\n",
202
- " <PredScore pred_score=\"0.9789\"/>\n",
203
  " </TextLine>\n",
204
- " <TextLine id=\"line_region_0_26\" custom=\"readingOrder {index:26;}\">\n",
205
- " <Coords points=\"1363,1812 1351,1798 1256,1791 945,1802 862,1788 754,1803 650,1792 534,1804 289,1797 285,1837 303,1845 1350,1835\"/>\n",
206
  " <TextEquiv>\n",
207
- " <Unicode>Bondelinen Salomon Salomansson och Sommu¬</Unicode>\n",
208
  " </TextEquiv>\n",
209
- " <PredScore pred_score=\"0.9686\"/>\n",
210
  " </TextLine>\n",
211
- " <TextLine id=\"line_region_0_27\" custom=\"readingOrder {index:27;}\">\n",
212
- " <Coords points=\"284,1871 293,1893 938,1895 939,1904 1019,1891 1353,1891 1365,1881 1363,1860 1350,1852 648,1857 564,1845 512,1856 299,1859\"/>\n",
213
  " <TextEquiv>\n",
214
- " <Unicode>skan Lovisa Christina Danrot, begge i Öiteråsen, hvil¬</Unicode>\n",
215
  " </TextEquiv>\n",
216
- " <PredScore pred_score=\"0.9569\"/>\n",
217
  " </TextLine>\n",
218
- " </TextRegion>\n",
219
- " <TextRegion id=\"region_2\" custom=\"readingOrder {index:1;}\">\n",
220
- " <Coords points=\"2616,64 2609,59 2603,58 2602,57 2596,57 2595,56 2593,56 2592,57 2578,57 2577,58 2564,59 2561,62 2559,66 2557,76 2556,77 2556,89 2560,100 2564,103 2576,103 2577,104 2598,104 2599,103 2608,102 2614,99 2618,95 2621,89 2621,77 2620,76 2620,73 2619,72 2618,67\"/>\n",
221
- " <TextLine id=\"line_region_2_0\" custom=\"readingOrder {index:0;}\">\n",
222
- " <Coords points=\"2621,57 2618,57 2617,58 2603,58 2602,59 2588,59 2587,60 2559,60 2556,58 2556,104 2619,104 2621,103\"/>\n",
223
  " <TextEquiv>\n",
224
- " <Unicode>63</Unicode>\n",
225
  " </TextEquiv>\n",
226
- " <PredScore pred_score=\"0.9917\"/>\n",
 
 
 
 
 
 
 
227
  " </TextLine>\n",
228
  " </TextRegion>\n",
229
- " <TextRegion id=\"region_3\" custom=\"readingOrder {index:2;}\">\n",
230
- " <Coords points=\"2653,290 1737,294 1592,314 1590,1659 1610,1868 2680,1858\"/>\n",
231
  " <TextLine id=\"line_region_3_0\" custom=\"readingOrder {index:0;}\">\n",
232
- " <Coords points=\"2650,311 2641,300 2591,296 2590,286 2588,296 1614,305 1604,337 1615,348 1913,355 2366,336 2449,356 2518,334 2640,330\"/>\n",
233
  " <TextEquiv>\n",
234
- " <Unicode>ka vid upprop företrädde och, då jäf emot dom</Unicode>\n",
235
  " </TextEquiv>\n",
236
- " <PredScore pred_score=\"0.9943\"/>\n",
237
  " </TextLine>\n",
238
  " <TextLine id=\"line_region_3_1\" custom=\"readingOrder {index:1;}\">\n",
239
- " <Coords points=\"2663,371 2650,355 2553,345 2278,361 1613,361 1600,371 1598,398 1612,409 1854,414 2000,402 2410,394 2553,407 2649,400\"/>\n",
240
  " <TextEquiv>\n",
241
- " <Unicode>hvarken anfördes eller kunde utletas, fingo ef¬</Unicode>\n",
242
  " </TextEquiv>\n",
243
- " <PredScore pred_score=\"0.9759\"/>\n",
244
  " </TextLine>\n",
245
  " <TextLine id=\"line_region_3_2\" custom=\"readingOrder {index:2;}\">\n",
246
- " <Coords points=\"2666,416 2650,405 2209,419 1614,421 1601,430 1599,458 1613,474 1657,477 1799,463 2159,463 2312,451 2591,456 2660,447\"/>\n",
247
  " <TextEquiv>\n",
248
- " <Unicode>lägga vittnes eden, hvarpå de, om edens vigt tre</Unicode>\n",
249
  " </TextEquiv>\n",
250
- " <PredScore pred_score=\"0.973\"/>\n",
251
  " </TextLine>\n",
252
  " <TextLine id=\"line_region_3_3\" custom=\"readingOrder {index:3;}\">\n",
253
- " <Coords points=\"2666,492 2659,473 2616,464 2150,468 2115,476 1990,470 1935,479 1616,483 1604,493 1604,514 1614,524 1873,520 1944,532 2017,524 2056,534 2131,513 2648,510\"/>\n",
254
  " <TextEquiv>\n",
255
- " <Unicode>indrade, hvar för sig hördel och lemmanstäm¬</Unicode>\n",
256
  " </TextEquiv>\n",
257
- " <PredScore pred_score=\"0.9831\"/>\n",
258
  " </TextLine>\n",
259
  " <TextLine id=\"line_region_3_4\" custom=\"readingOrder {index:4;}\">\n",
260
- " <Coords points=\"2662,548 2655,531 2036,537 1832,530 1625,540 1609,557 1616,577 2628,569 2655,565\"/>\n",
261
  " <TextEquiv>\n",
262
- " <Unicode>nande berättade, att svaranden och numera</Unicode>\n",
263
  " </TextEquiv>\n",
264
- " <PredScore pred_score=\"0.9944\"/>\n",
265
  " </TextLine>\n",
266
  " <TextLine id=\"line_region_3_5\" custom=\"readingOrder {index:5;}\">\n",
267
- " <Coords points=\"1606,617 1616,642 1807,630 1896,656 1950,632 2313,627 2412,644 2475,625 2650,621 2664,614 2666,594 2650,582 2551,578 2208,587 2113,569 1977,594 1616,598\"/>\n",
268
  " <TextEquiv>\n",
269
- " <Unicode>aflidna Margareta Lidén omkring 2 1/2 år in¬</Unicode>\n",
270
  " </TextEquiv>\n",
271
- " <PredScore pred_score=\"0.9783\"/>\n",
272
  " </TextLine>\n",
273
  " <TextLine id=\"line_region_3_6\" custom=\"readingOrder {index:6;}\">\n",
274
- " <Coords points=\"1599,680 1614,696 2334,685 2471,692 2657,680 2669,673 2669,650 2658,637 2090,648 2011,631 1884,656 1615,653 1602,661\"/>\n",
275
  " <TextEquiv>\n",
276
- " <Unicode>till Margareta Lidens död sammantefvat i Öster¬</Unicode>\n",
277
  " </TextEquiv>\n",
278
- " <PredScore pred_score=\"0.9706\"/>\n",
279
  " </TextLine>\n",
280
  " <TextLine id=\"line_region_3_7\" custom=\"readingOrder {index:7;}\">\n",
281
- " <Coords points=\"2669,707 2652,691 1889,707 1794,694 1737,706 1617,704 1604,737 1614,748 1754,748 1853,766 1920,748 2393,741 2477,756 2572,749 2630,757 2666,739\"/>\n",
282
  " <TextEquiv>\n",
283
- " <Unicode>åsen, haft gemensamt hushåll och begagnat ge¬</Unicode>\n",
284
  " </TextEquiv>\n",
285
- " <PredScore pred_score=\"0.9743\"/>\n",
286
  " </TextLine>\n",
287
  " <TextLine id=\"line_region_3_8\" custom=\"readingOrder {index:8;}\">\n",
288
- " <Coords points=\"1954,774 1949,768 1933,763 1879,761 1814,770 1740,763 1695,767 1613,764 1602,772 1602,793 1614,801 1800,797 1857,805 1884,812 1894,819 1914,820 1946,808 1953,793\"/>\n",
289
- " <TextEquiv>\n",
290
- " <Unicode>menlam läng.</Unicode>\n",
291
- " </TextEquiv>\n",
292
- " <PredScore pred_score=\"0.8747\"/>\n",
293
- " </TextLine>\n",
294
- " <TextLine id=\"line_region_3_9\" custom=\"readingOrder {index:9;}\">\n",
295
- " <Coords points=\"2659,828 2650,800 2563,810 2351,807 1918,823 1835,817 1771,801 1695,806 1684,834 1695,860 1994,857 2154,873 2247,851 2318,857 2388,847 2651,844\"/>\n",
296
- " <TextEquiv>\n",
297
- " <Unicode>Vittnes målen upprepades för vittnena och</Unicode>\n",
298
- " </TextEquiv>\n",
299
- " <PredScore pred_score=\"0.9865\"/>\n",
300
- " </TextLine>\n",
301
- " <TextLine id=\"line_region_3_10\" custom=\"readingOrder {index:10;}\">\n",
302
- " <Coords points=\"2650,881 2643,870 2581,862 2300,866 2213,876 1607,874 1598,910 1613,921 1717,920 1781,936 1905,909 2635,906 2647,901\"/>\n",
303
- " <TextEquiv>\n",
304
- " <Unicode>blefvo af dem vidkända; hvarefter vittnena</Unicode>\n",
305
- " </TextEquiv>\n",
306
- " <PredScore pred_score=\"0.9885\"/>\n",
307
- " </TextLine>\n",
308
- " <TextLine id=\"line_region_3_11\" custom=\"readingOrder {index:11;}\">\n",
309
- " <Coords points=\"2669,925 2654,914 1863,934 1710,925 1605,937 1587,974 1610,984 1688,979 1715,991 1731,979 1851,967 2005,966 2076,984 2169,965 2600,962 2666,953\"/>\n",
310
- " <TextEquiv>\n",
311
- " <Unicode>på begäran och enligt kärandeombudets med¬</Unicode>\n",
312
- " </TextEquiv>\n",
313
- " <PredScore pred_score=\"0.9892\"/>\n",
314
- " </TextLine>\n",
315
- " <TextLine id=\"line_region_3_12\" custom=\"readingOrder {index:12;}\">\n",
316
- " <Coords points=\"2668,985 2660,975 1673,987 1609,996 1602,1033 1618,1047 1699,1028 2222,1022 2343,1031 2667,1009\"/>\n",
317
- " <TextEquiv>\n",
318
- " <Unicode>gifvande tillerkändes ersättning för inställel¬</Unicode>\n",
319
- " </TextEquiv>\n",
320
- " <PredScore pred_score=\"0.9943\"/>\n",
321
- " </TextLine>\n",
322
- " <TextLine id=\"line_region_3_13\" custom=\"readingOrder {index:13;}\">\n",
323
- " <Coords points=\"1598,1079 1630,1087 2650,1070 2662,1046 2650,1034 2548,1022 2440,1034 2121,1042 2012,1023 1881,1046 1776,1021 1695,1045 1604,1051\"/>\n",
324
- " <TextEquiv>\n",
325
- " <Unicode>len, Salomon Salomonsson med tio kronor</Unicode>\n",
326
- " </TextEquiv>\n",
327
- " <PredScore pred_score=\"0.9877\"/>\n",
328
- " </TextLine>\n",
329
- " <TextLine id=\"line_region_3_14\" custom=\"readingOrder {index:14;}\">\n",
330
- " <Coords points=\"2669,1105 2660,1094 2608,1089 2242,1096 2169,1087 2042,1099 1921,1088 1842,1099 1753,1088 1616,1102 1605,1132 1617,1144 2664,1130\"/>\n",
331
- " <TextEquiv>\n",
332
- " <Unicode>och Lovisa Christina Danrat med sex kronor</Unicode>\n",
333
- " </TextEquiv>\n",
334
- " <PredScore pred_score=\"0.9788\"/>\n",
335
- " </TextLine>\n",
336
- " <TextLine id=\"line_region_3_15\" custom=\"readingOrder {index:15;}\">\n",
337
- " <Coords points=\"2674,1167 2667,1146 2642,1142 2555,1151 1610,1163 1603,1196 1614,1220 1653,1208 1989,1197 2050,1209 2169,1196 2579,1199 2666,1183\"/>\n",
338
- " <TextEquiv>\n",
339
- " <Unicode>tjugufyra öre, att af käranden till dem för¬</Unicode>\n",
340
- " </TextEquiv>\n",
341
- " <PredScore pred_score=\"0.9977\"/>\n",
342
- " </TextLine>\n",
343
- " <TextLine id=\"line_region_3_16\" custom=\"readingOrder {index:16;}\">\n",
344
- " <Coords points=\"2034,1230 2003,1214 1959,1211 1797,1218 1653,1212 1605,1225 1601,1229 1599,1250 1612,1256 1636,1252 1812,1252 1879,1264 1931,1249 2004,1248\"/>\n",
345
- " <TextEquiv>\n",
346
- " <Unicode>skatts vis utgifvas.</Unicode>\n",
347
- " </TextEquiv>\n",
348
- " <PredScore pred_score=\"0.9559\"/>\n",
349
- " </TextLine>\n",
350
- " <TextLine id=\"line_region_3_17\" custom=\"readingOrder {index:17;}\">\n",
351
- " <Coords points=\"1701,1278 1708,1305 2474,1301 2527,1287 2516,1264 2452,1257 2112,1267 2031,1262 1976,1271 1831,1273 1753,1255 1713,1261\"/>\n",
352
  " <TextEquiv>\n",
353
- " <Unicode>Svaranden erkände vittnes målen.</Unicode>\n",
354
- " </TextEquiv>\n",
355
- " <PredScore pred_score=\"0.9769\"/>\n",
356
- " </TextLine>\n",
357
- " <TextLine id=\"line_region_3_18\" custom=\"readingOrder {index:18;}\">\n",
358
- " <Coords points=\"2663,1327 2634,1312 2342,1311 2273,1320 1750,1330 1653,1320 1638,1327 1637,1348 1654,1362 1961,1360 2032,1381 2138,1363 2211,1379 2251,1363 2474,1368 2646,1353 2660,1346\"/>\n",
359
- " <TextEquiv>\n",
360
- " <Unicode>Kärandeombudet ingaf härpå följande prestbevis.</Unicode>\n",
361
- " </TextEquiv>\n",
362
- " <PredScore pred_score=\"0.9882\"/>\n",
363
- " </TextLine>\n",
364
- " <TextLine id=\"line_region_3_19\" custom=\"readingOrder {index:19;}\">\n",
365
- " <Coords points=\"1687,1406 1707,1421 1897,1419 1969,1437 2084,1421 2295,1417 2392,1432 2480,1414 2630,1423 2669,1412 2675,1386 2668,1367 2305,1377 2245,1366 2173,1383 2032,1385 1953,1366 1890,1377 1705,1376 1690,1384\"/>\n",
366
- " <TextEquiv>\n",
367
- " <Unicode>Att förre Fältjägaren Jonas Olof Nilsson från</Unicode>\n",
368
- " </TextEquiv>\n",
369
- " <PredScore pred_score=\"0.9778\"/>\n",
370
- " </TextLine>\n",
371
- " <TextLine id=\"line_region_3_20\" custom=\"readingOrder {index:20;}\">\n",
372
- " <Coords points=\"1606,1455 1616,1475 1713,1488 2267,1474 2353,1491 2391,1479 2648,1467 2656,1446 2647,1432 2472,1423 2413,1435 2172,1427 1950,1441 1746,1437 1653,1423 1616,1427\"/>\n",
373
- " <TextEquiv>\n",
374
- " <Unicode>Hof af nedanskrifna församling, född den 8.</Unicode>\n",
375
- " </TextEquiv>\n",
376
- " <PredScore pred_score=\"0.9931\"/>\n",
377
- " </TextLine>\n",
378
- " <TextLine id=\"line_region_3_21\" custom=\"readingOrder {index:21;}\">\n",
379
- " <Coords points=\"2677,1567 2668,1533 2592,1528 2639,1519 2646,1507 2631,1495 2306,1502 2234,1519 2195,1504 2171,1516 2063,1507 1964,1522 1635,1496 1626,1508 1638,1525 1804,1545 1656,1557 1639,1567 1668,1575 2229,1561 2391,1574 2487,1555 2567,1578\"/>\n",
380
- " <TextEquiv>\n",
381
- " <Unicode>December till skulld, och hans hustru Annika</Unicode>\n",
382
- " </TextEquiv>\n",
383
- " <PredScore pred_score=\"0.9083\"/>\n",
384
- " </TextLine>\n",
385
- " <TextLine id=\"line_region_3_22\" custom=\"readingOrder {index:22;}\">\n",
386
- " <Coords points=\"2667,1624 2658,1605 2593,1596 2179,1608 1618,1601 1605,1612 1603,1632 1615,1647 1971,1642 2059,1665 2164,1642 2556,1648 2642,1640\"/>\n",
387
- " <TextEquiv>\n",
388
- " <Unicode>hvarandra sammanvigda den 33 December 1883 /åttio¬</Unicode>\n",
389
- " </TextEquiv>\n",
390
- " <PredScore pred_score=\"0.9695\"/>\n",
391
- " </TextLine>\n",
392
- " <TextLine id=\"line_region_3_23\" custom=\"readingOrder {index:23;}\">\n",
393
- " <Coords points=\"2674,1666 2667,1657 2377,1652 2053,1664 1616,1658 1604,1687 1615,1702 1815,1702 1873,1713 1973,1701 2668,1694\"/>\n",
394
- " <TextEquiv>\n",
395
- " <Unicode>tre), och att ingendera förut varit frånskild, samt</Unicode>\n",
396
- " </TextEquiv>\n",
397
- " <PredScore pred_score=\"0.9713\"/>\n",
398
- " </TextLine>\n",
399
- " <TextLine id=\"line_region_3_24\" custom=\"readingOrder {index:24;}\">\n",
400
- " <Coords points=\"2678,1743 2674,1719 2659,1711 2335,1720 2137,1712 2040,1721 1615,1723 1609,1746 1621,1759 2151,1759 2227,1771 2324,1759 2570,1759 2667,1770\"/>\n",
401
- " <TextEquiv>\n",
402
- " <Unicode>att bemälde makar i äktenskap med hvarandra haf¬</Unicode>\n",
403
  " </TextEquiv>\n",
404
  " <PredScore pred_score=\"0.9877\"/>\n",
405
  " </TextLine>\n",
406
- " <TextLine id=\"line_region_3_25\" custom=\"readingOrder {index:25;}\">\n",
407
- " <Coords points=\"2671,1782 2634,1770 1615,1779 1611,1805 1635,1816 2426,1814 2670,1803\"/>\n",
408
- " <TextEquiv>\n",
409
- " <Unicode>va en dotter och en son, som båda lefva, det varder</Unicode>\n",
410
- " </TextEquiv>\n",
411
- " <PredScore pred_score=\"0.995\"/>\n",
412
- " </TextLine>\n",
413
- " <TextLine id=\"line_region_3_26\" custom=\"readingOrder {index:26;}\">\n",
414
- " <Coords points=\"2683,1843 2674,1825 1627,1828 1615,1851 1627,1862 1746,1864 1747,1873 1813,1873 1814,1864 1831,1863 1859,1864 1860,1873 1947,1873 1948,1864 2143,1873 2144,1864 2669,1862\"/>\n",
415
  " <TextEquiv>\n",
416
- " <Unicode>härmed på begäran intygadt för sökande af äktenskaps</Unicode>\n",
417
  " </TextEquiv>\n",
418
- " <PredScore pred_score=\"0.9819\"/>\n",
419
  " </TextLine>\n",
420
  " </TextRegion>\n",
421
  " </Page>\n",
@@ -429,7 +320,7 @@
429
  "\n",
430
  "client = Client(\"http://127.0.0.1:7860/\")\n",
431
  "job = client.submit(\n",
432
- " \"./helper/examples/images/image_0.jpg\", # str (filepath or URL to image)\n",
433
  " api_name=\"/predict\",\n",
434
  ")\n",
435
  "\n",
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 2,
6
  "metadata": {},
7
  "outputs": [
8
  {
 
14
  "<PcGts xmlns=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15 http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15/pagecontent.xsd\">\n",
15
  " <Metadata>\n",
16
  " <Creator>Swedish National Archives</Creator>\n",
17
+ " <Created>2023-08-21, 13:28:06</Created>\n",
18
  " </Metadata>\n",
19
+ " <Page imageFilename=\"page_xml.xml\" imageWidth=\"4885\" imageHeight=\"4066\">\n",
20
  " <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
21
+ " <Coords points=\"1477,265 1467,217 1440,201 1370,211 1248,203 1127,224 1067,224 1003,212 844,247 766,243 747,261 742,280 751,332 766,346 1258,341 1357,332 1439,341 1468,327\"/>\n",
22
  " <TextLine id=\"line_region_0_0\" custom=\"readingOrder {index:0;}\">\n",
23
+ " <Coords points=\"1458,248 1443,222 1449,200 1412,215 1366,200 1325,207 1302,200 1241,200 1235,206 1205,200 1187,210 1085,222 957,206 795,239 769,273 771,333 783,340 1445,333 1450,324\"/>\n",
24
  " <TextEquiv>\n",
25
+ " <Unicode>År 1865.</Unicode>\n",
26
  " </TextEquiv>\n",
27
+ " <PredScore pred_score=\"0.9482\"/>\n",
28
  " </TextLine>\n",
29
+ " </TextRegion>\n",
30
+ " <TextRegion id=\"region_1\" custom=\"readingOrder {index:1;}\">\n",
31
+ " <Coords points=\"2408,486 2193,463 2150,392 2032,363 1620,397 1440,366 92,384 88,539 224,582 218,650 313,648 307,584 343,582 333,708 211,761 176,952 287,1251 250,1430 269,1680 333,1642 358,1993 644,2056 928,2031 2103,2082 2180,2047 2218,1926 2407,1918\"/>\n",
32
+ " <TextLine id=\"line_region_1_0\" custom=\"readingOrder {index:0;}\">\n",
33
+ " <Coords points=\"2147,425 2118,393 1648,421 1442,395 1232,414 377,404 291,433 73,430 73,491 268,482 415,530 608,491 1565,490 1645,526 1734,501 1826,528 1921,496 2129,488\"/>\n",
34
  " <TextEquiv>\n",
35
+ " <Unicode>Augusti 21. från Wexiö ankommit, telegram lydande:</Unicode>\n",
36
  " </TextEquiv>\n",
37
+ " <PredScore pred_score=\"0.987\"/>\n",
38
  " </TextLine>\n",
39
+ " <TextLine id=\"line_region_1_1\" custom=\"readingOrder {index:1;}\">\n",
40
+ " <Coords points=\"2401,550 2382,515 2353,507 2116,528 1918,486 1818,493 1798,523 1394,490 1270,527 1018,529 914,527 828,492 732,507 612,487 531,501 512,560 527,588 1800,580 1972,626 2173,586 2233,586 2294,614 2380,604\"/>\n",
41
  " <TextEquiv>\n",
42
+ " <Unicode>&quot;Poliskammaren i Götheborg. Delägaren i Torps</Unicode>\n",
43
  " </TextEquiv>\n",
44
+ " <PredScore pred_score=\"0.9985\"/>\n",
45
  " </TextLine>\n",
46
+ " <TextLine id=\"line_region_1_2\" custom=\"readingOrder {index:2;}\">\n",
47
+ " <Coords points=\"2404,669 2382,630 2230,585 2086,623 1891,623 1739,595 1548,620 1380,600 671,608 444,625 428,672 437,702 972,683 1199,704 1408,685 2177,688 2298,707 2383,698\"/>\n",
48
  " <TextEquiv>\n",
49
+ " <Unicode>jernbruksbonden Johannes Nilsson från Skägga¬</Unicode>\n",
50
  " </TextEquiv>\n",
51
+ " <PredScore pred_score=\"0.9878\"/>\n",
52
  " </TextLine>\n",
53
+ " <TextLine id=\"line_region_1_3\" custom=\"readingOrder {index:3;}\">\n",
54
+ " <Coords points=\"409,757 1316,785 1916,775 2051,821 2144,783 2384,784 2404,760 2389,723 2267,690 1938,685 1678,713 1311,713 971,688 803,706 708,672 615,706 439,701\"/>\n",
55
  " <TextEquiv>\n",
56
+ " <Unicode>lösa har i tisdags jernväg afrest till Götheborg</Unicode>\n",
57
  " </TextEquiv>\n",
58
+ " <PredScore pred_score=\"0.9875\"/>\n",
59
  " </TextLine>\n",
60
+ " <TextLine id=\"line_region_1_4\" custom=\"readingOrder {index:4;}\">\n",
61
+ " <Coords points=\"471,836 496,869 2177,871 2316,899 2381,881 2400,850 2380,794 2277,780 2047,809 1919,781 1824,798 1585,779 1441,804 1185,775 802,799 671,777 498,803\"/>\n",
62
  " <TextEquiv>\n",
63
+ " <Unicode>ändamål att begifva sig till America Enligt</Unicode>\n",
64
  " </TextEquiv>\n",
65
+ " <PredScore pred_score=\"0.9967\"/>\n",
66
  " </TextLine>\n",
67
+ " <TextLine id=\"line_region_1_5\" custom=\"readingOrder {index:5;}\">\n",
68
+ " <Coords points=\"409,930 422,960 2190,965 2355,962 2377,938 2375,907 2353,894 2042,878 1909,900 1611,869 1433,901 1231,870 1058,891 953,865 881,886 731,876 424,906\"/>\n",
69
  " <TextEquiv>\n",
70
+ " <Unicode>anmälan har Nilsson medtagit omkring 10,000</Unicode>\n",
71
  " </TextEquiv>\n",
72
+ " <PredScore pred_score=\"0.9992\"/>\n",
73
  " </TextLine>\n",
74
+ " <TextLine id=\"line_region_1_6\" custom=\"readingOrder {index:6;}\">\n",
75
+ " <Coords points=\"398,1015 412,1084 568,1059 730,1088 854,1057 2383,1059 2406,1028 2386,991 2148,963 2046,984 1687,975 1501,998 1270,967 918,997 524,962 413,984\"/>\n",
76
  " <TextEquiv>\n",
77
+ " <Unicode>R.d, deraf en del tillhör jernbruket samt lemnat</Unicode>\n",
78
  " </TextEquiv>\n",
79
+ " <PredScore pred_score=\"0.9866\"/>\n",
80
  " </TextLine>\n",
81
+ " <TextLine id=\"line_region_1_7\" custom=\"readingOrder {index:7;}\">\n",
82
+ " <Coords points=\"2404,1110 2383,1071 2292,1089 2024,1086 1919,1054 1777,1082 1645,1060 1324,1087 958,1087 822,1063 731,1088 422,1091 402,1127 412,1152 522,1160 1768,1152 2056,1177 2379,1155\"/>\n",
83
  " <TextEquiv>\n",
84
+ " <Unicode>auppgjorda sina affärer i hemorten, uppgående</Unicode>\n",
85
  " </TextEquiv>\n",
86
+ " <PredScore pred_score=\"0.9766\"/>\n",
87
  " </TextLine>\n",
88
+ " <TextLine id=\"line_region_1_8\" custom=\"readingOrder {index:8;}\">\n",
89
+ " <Coords points=\"388,1229 408,1248 1025,1246 1152,1276 1379,1243 1742,1242 1850,1260 2383,1249 2404,1201 2378,1173 2258,1179 2150,1148 2060,1170 1908,1159 1765,1178 1509,1158 1352,1177 1180,1160 911,1177 643,1148 391,1174\"/>\n",
90
  " <TextEquiv>\n",
91
+ " <Unicode>till betydliga belopp. Nilsson år 5 fot 10 tum, har</Unicode>\n",
92
  " </TextEquiv>\n",
93
+ " <PredScore pred_score=\"0.9926\"/>\n",
94
  " </TextLine>\n",
95
+ " <TextLine id=\"line_region_1_9\" custom=\"readingOrder {index:9;}\">\n",
96
+ " <Coords points=\"400,1312 417,1338 2277,1342 2371,1317 2342,1265 1761,1251 1203,1274 883,1245 736,1263 649,1239 562,1266 413,1277\"/>\n",
97
  " <TextEquiv>\n",
98
+ " <Unicode>omidig vext, blå ögon, mörka hål, brunaktigt</Unicode>\n",
99
  " </TextEquiv>\n",
100
+ " <PredScore pred_score=\"0.9871\"/>\n",
101
  " </TextLine>\n",
102
+ " <TextLine id=\"line_region_1_10\" custom=\"readingOrder {index:10;}\">\n",
103
+ " <Coords points=\"401,1402 411,1435 1058,1431 1144,1451 1299,1430 1911,1429 2026,1474 2145,1430 2381,1441 2398,1406 2383,1365 2290,1335 2019,1351 1879,1337 1605,1361 1488,1333 1221,1358 966,1342 911,1319 716,1355 497,1341 413,1358\"/>\n",
104
  " <TextEquiv>\n",
105
+ " <Unicode>kind- och hakskägg. Under vistandet i Göteborg</Unicode>\n",
106
  " </TextEquiv>\n",
107
+ " <PredScore pred_score=\"0.9805\"/>\n",
108
  " </TextLine>\n",
109
+ " <TextLine id=\"line_region_1_11\" custom=\"readingOrder {index:11;}\">\n",
110
+ " <Coords points=\"398,1493 412,1530 2235,1525 2295,1555 2382,1530 2395,1500 2380,1455 2296,1433 2035,1465 1944,1440 1667,1453 1589,1431 1324,1446 1232,1430 1065,1455 861,1434 565,1450 471,1435 412,1451\"/>\n",
111
  " <TextEquiv>\n",
112
+ " <Unicode>har han troligen besökt handlanderne G. Berg¬</Unicode>\n",
113
  " </TextEquiv>\n",
114
+ " <PredScore pred_score=\"0.9983\"/>\n",
115
  " </TextLine>\n",
116
+ " <TextLine id=\"line_region_1_12\" custom=\"readingOrder {index:12;}\">\n",
117
+ " <Coords points=\"2409,1584 2384,1546 2298,1553 2235,1526 1778,1557 1647,1523 1466,1515 1287,1549 925,1516 644,1555 436,1560 411,1615 434,1638 613,1618 2182,1615 2293,1637 2390,1624\"/>\n",
118
  " <TextEquiv>\n",
119
+ " <Unicode>gren och Carlström. Poliskammaren torde efter</Unicode>\n",
120
  " </TextEquiv>\n",
121
+ " <PredScore pred_score=\"0.9951\"/>\n",
122
  " </TextLine>\n",
123
+ " <TextLine id=\"line_region_1_13\" custom=\"readingOrder {index:13;}\">\n",
124
+ " <Coords points=\"2405,1669 2383,1633 2293,1633 2242,1612 2070,1648 1834,1616 1616,1642 1496,1612 1361,1648 1207,1615 1038,1647 806,1619 684,1647 427,1651 405,1700 489,1715 1605,1705 1802,1747 1911,1718 2096,1705 2323,1721 2388,1706\"/>\n",
125
  " <TextEquiv>\n",
126
+ " <Unicode>spana Nilsson och, om han anträffas, anställa för</Unicode>\n",
127
  " </TextEquiv>\n",
128
+ " <PredScore pred_score=\"0.9902\"/>\n",
129
  " </TextLine>\n",
130
+ " <TextLine id=\"line_region_1_14\" custom=\"readingOrder {index:14;}\">\n",
131
+ " <Coords points=\"2397,1755 2380,1725 2232,1734 2120,1697 1976,1736 1814,1741 1711,1726 1583,1737 1384,1701 1219,1739 956,1700 521,1736 439,1703 407,1726 394,1770 409,1805 1471,1804 1576,1822 1619,1849 1680,1820 1765,1829 1880,1803 2380,1791\"/>\n",
132
  " <TextEquiv>\n",
133
+ " <Unicode>hör samt med honom lagligen förfara. Skulle han</Unicode>\n",
134
  " </TextEquiv>\n",
135
+ " <PredScore pred_score=\"0.9878\"/>\n",
136
  " </TextLine>\n",
137
+ " <TextLine id=\"line_region_1_15\" custom=\"readingOrder {index:15;}\">\n",
138
+ " <Coords points=\"2410,1869 2398,1818 2357,1799 2040,1829 1884,1802 1792,1826 1706,1811 1614,1832 1407,1790 1074,1830 827,1808 652,1826 556,1802 410,1832 395,1879 408,1900 2383,1894\"/>\n",
139
  " <TextEquiv>\n",
140
+ " <Unicode>redan rest, begäres besked när, hvarthän och med hvil¬</Unicode>\n",
141
  " </TextEquiv>\n",
142
+ " <PredScore pred_score=\"0.9951\"/>\n",
143
  " </TextLine>\n",
144
+ " <TextLine id=\"line_region_1_16\" custom=\"readingOrder {index:16;}\">\n",
145
+ " <Coords points=\"1626,1908 1610,1900 1438,1905 1335,1881 1233,1890 1128,1927 972,1885 829,1919 742,1897 653,1912 526,1899 400,1916 388,1972 409,2003 531,2038 613,2010 682,2034 734,2028 835,1989 1132,1978 1350,2000 1408,1986 1615,1978 1630,1967\"/>\n",
146
  " <TextEquiv>\n",
147
+ " <Unicode>ket fartyg. Widare med posten.</Unicode>\n",
148
  " </TextEquiv>\n",
149
+ " <PredScore pred_score=\"0.9889\"/>\n",
150
  " </TextLine>\n",
151
+ " <TextLine id=\"line_region_1_17\" custom=\"readingOrder {index:17;}\">\n",
152
+ " <Coords points=\"1481,2055 1499,2070 1669,2080 1875,2073 2057,2075 2086,2066 2099,2021 2087,1993 2067,2002 2030,2004 1972,1981 1943,1977 1879,1993 1847,1980 1788,1975 1700,1996 1674,1984 1658,1965 1641,1961 1614,1970 1498,1985 1484,2003\"/>\n",
153
  " <TextEquiv>\n",
154
+ " <Unicode>Länsstyrelsen.</Unicode>\n",
155
  " </TextEquiv>\n",
156
+ " <PredScore pred_score=\"0.998\"/>\n",
157
  " </TextLine>\n",
158
+ " </TextRegion>\n",
159
+ " <TextRegion id=\"region_2\" custom=\"readingOrder {index:2;}\">\n",
160
+ " <Coords points=\"76,2163 96,2282 346,2358 334,2560 252,2714 339,3020 382,3062 2351,3123 2423,3087 2406,2277 2354,2270 2294,2168\"/>\n",
161
+ " <TextLine id=\"line_region_2_0\" custom=\"readingOrder {index:0;}\">\n",
162
+ " <Coords points=\"74,2283 119,2280 142,2271 184,2263 293,2261 307,2253 326,2228 351,2226 353,2216 350,2211 328,2201 317,2186 305,2180 203,2161 195,2156 195,2144 126,2144 126,2156 120,2160 101,2163 89,2169 74,2169\"/>\n",
163
  " <TextEquiv>\n",
164
+ " <Unicode>Septemb.</Unicode>\n",
165
  " </TextEquiv>\n",
166
+ " <PredScore pred_score=\"0.9955\"/>\n",
167
  " </TextLine>\n",
168
+ " <TextLine id=\"line_region_2_1\" custom=\"readingOrder {index:1;}\">\n",
169
+ " <Coords points=\"279,2244 356,2250 413,2285 675,2260 1527,2268 1618,2299 1705,2277 1969,2299 2273,2274 2293,2212 2266,2179 1773,2192 1615,2172 1414,2190 1287,2170 1119,2191 718,2163 592,2187 384,2176 352,2231\"/>\n",
170
  " <TextEquiv>\n",
171
+ " <Unicode>1 från Wenersborg ankommit telegram så lydande:</Unicode>\n",
172
  " </TextEquiv>\n",
173
+ " <PredScore pred_score=\"0.9686\"/>\n",
174
  " </TextLine>\n",
175
+ " <TextLine id=\"line_region_2_2\" custom=\"readingOrder {index:2;}\">\n",
176
+ " <Coords points=\"507,2338 677,2350 725,2366 760,2392 862,2345 1002,2349 1094,2339 1531,2349 1541,2333 1530,2297 1419,2263 1202,2254 1086,2279 1056,2250 977,2282 879,2265 760,2290 598,2248 526,2257 502,2274\"/>\n",
177
  " <TextEquiv>\n",
178
+ " <Unicode>&quot;Polismästaren Götheborg</Unicode>\n",
179
  " </TextEquiv>\n",
180
+ " <PredScore pred_score=\"0.9993\"/>\n",
181
  " </TextLine>\n",
182
+ " <TextLine id=\"line_region_2_3\" custom=\"readingOrder {index:3;}\">\n",
183
+ " <Coords points=\"2385,2395 2353,2377 2228,2384 2116,2359 1776,2363 1707,2337 1596,2366 1469,2351 1261,2370 1145,2341 946,2367 853,2351 738,2377 512,2346 429,2366 418,2422 439,2440 1589,2446 1709,2485 1838,2449 2353,2462 2383,2450\"/>\n",
184
  " <TextEquiv>\n",
185
+ " <Unicode>Större inbrottstöld inatt hos Larsson &amp; Ström, Mel¬</Unicode>\n",
186
  " </TextEquiv>\n",
187
+ " <PredScore pred_score=\"0.993\"/>\n",
188
  " </TextLine>\n",
189
+ " <TextLine id=\"line_region_2_4\" custom=\"readingOrder {index:4;}\">\n",
190
+ " <Coords points=\"405,2490 417,2531 732,2548 999,2534 2380,2563 2402,2543 2386,2500 2325,2482 2173,2488 2119,2468 1925,2463 1728,2486 1658,2480 1610,2452 1200,2467 1087,2449 879,2469 725,2444 419,2459\"/>\n",
191
  " <TextEquiv>\n",
192
+ " <Unicode>brud. Tjufvarne tillgripit bland annat stort mörkbrun</Unicode>\n",
193
  " </TextEquiv>\n",
194
+ " <PredScore pred_score=\"0.9872\"/>\n",
195
  " </TextLine>\n",
196
+ " <TextLine id=\"line_region_2_5\" custom=\"readingOrder {index:5;}\">\n",
197
+ " <Coords points=\"393,2591 408,2621 540,2629 586,2657 707,2630 1941,2643 2148,2665 2348,2648 2371,2627 2354,2587 2283,2573 2008,2577 1913,2552 1352,2567 1156,2537 1028,2553 411,2548\"/>\n",
198
  " <TextEquiv>\n",
199
+ " <Unicode>häst, stor blås, åkkärra utan låda, diverse stycken</Unicode>\n",
200
  " </TextEquiv>\n",
201
+ " <PredScore pred_score=\"0.9844\"/>\n",
202
  " </TextLine>\n",
203
+ " <TextLine id=\"line_region_2_6\" custom=\"readingOrder {index:6;}\">\n",
204
+ " <Coords points=\"387,2679 409,2738 609,2723 1589,2741 1705,2781 1828,2741 1918,2742 2025,2779 2152,2740 2294,2783 2382,2759 2397,2722 2381,2683 2297,2667 1589,2668 1458,2645 1232,2657 1149,2636 667,2662 468,2645 408,2652\"/>\n",
205
  " <TextEquiv>\n",
206
+ " <Unicode>finare svarta kläderr, korderojer, doffel och svart drap,</Unicode>\n",
207
  " </TextEquiv>\n",
208
+ " <PredScore pred_score=\"0.9897\"/>\n",
209
  " </TextLine>\n",
210
+ " <TextLine id=\"line_region_2_7\" custom=\"readingOrder {index:7;}\">\n",
211
+ " <Coords points=\"382,2801 401,2827 1855,2830 2027,2848 2378,2841 2400,2810 2380,2781 2147,2752 1763,2769 1204,2742 745,2755 470,2740 395,2754\"/>\n",
212
  " <TextEquiv>\n",
213
+ " <Unicode>tryckt mörk sits, bomullsdukar, domestics, större, min¬</Unicode>\n",
214
  " </TextEquiv>\n",
215
+ " <PredScore pred_score=\"0.9908\"/>\n",
216
  " </TextLine>\n",
217
+ " <TextLine id=\"line_region_2_8\" custom=\"readingOrder {index:8;}\">\n",
218
+ " <Coords points=\"396,2889 412,2916 1286,2944 1819,2922 2323,2942 2384,2921 2377,2878 2030,2845 1404,2861 1218,2842 936,2848 737,2822 563,2851 412,2840\"/>\n",
219
  " <TextEquiv>\n",
220
+ " <Unicode>dre schalar, de fleste grå, ett parti häst och smörj¬</Unicode>\n",
221
  " </TextEquiv>\n",
222
+ " <PredScore pred_score=\"0.9893\"/>\n",
223
  " </TextLine>\n",
224
+ " <TextLine id=\"line_region_2_9\" custom=\"readingOrder {index:9;}\">\n",
225
+ " <Coords points=\"382,3012 410,3026 710,3024 842,3054 1134,3027 1710,3037 1798,3061 1943,3029 2378,3024 2394,2982 2152,2939 2015,2958 1854,2935 1694,2957 1540,2942 1114,2956 496,2930 385,2950\"/>\n",
 
 
 
226
  " <TextEquiv>\n",
227
+ " <Unicode>läder. Torde efterspanes Ersättning utlofvas. Beckman</Unicode>\n",
228
  " </TextEquiv>\n",
229
+ " <PredScore pred_score=\"0.981\"/>\n",
230
+ " </TextLine>\n",
231
+ " <TextLine id=\"line_region_2_10\" custom=\"readingOrder {index:10;}\">\n",
232
+ " <Coords points=\"1898,3097 1902,3109 1912,3118 2113,3107 2300,3106 2322,3102 2342,3088 2357,3042 2322,3038 2294,3047 2206,3053 2144,3043 2117,3028 2060,3038 2030,3028 2002,3030 1974,3043 1912,3061 1903,3073\"/>\n",
233
+ " <TextEquiv>\n",
234
+ " <Unicode>Rådman</Unicode>\n",
235
+ " </TextEquiv>\n",
236
+ " <PredScore pred_score=\"0.9986\"/>\n",
237
  " </TextLine>\n",
238
  " </TextRegion>\n",
239
+ " <TextRegion id=\"region_3\" custom=\"readingOrder {index:3;}\">\n",
240
+ " <Coords points=\"354,3149 355,3878 394,3955 455,3928 763,3930 939,3982 1444,3971 1716,3995 2353,3991 2400,3964 2410,3140 462,3118\"/>\n",
241
  " <TextLine id=\"line_region_3_0\" custom=\"readingOrder {index:0;}\">\n",
242
+ " <Coords points=\"401,3199 413,3261 633,3232 1433,3228 1531,3244 1581,3278 1664,3246 1918,3264 2216,3227 2231,3169 2206,3139 2111,3157 1966,3146 1789,3163 1591,3141 1400,3159 1262,3142 1093,3163 769,3128 647,3158 436,3142 410,3152\"/>\n",
243
  " <TextEquiv>\n",
244
+ " <Unicode>från Stockholm ankommit blegram lydande:</Unicode>\n",
245
  " </TextEquiv>\n",
246
+ " <PredScore pred_score=\"0.9856\"/>\n",
247
  " </TextLine>\n",
248
  " <TextLine id=\"line_region_3_1\" custom=\"readingOrder {index:1;}\">\n",
249
+ " <Coords points=\"417,3282 419,3324 436,3335 1217,3324 1442,3367 1511,3338 1528,3312 1518,3266 1423,3239 1218,3269 979,3275 907,3267 852,3247 790,3251 692,3238 617,3251 538,3229 454,3251\"/>\n",
250
  " <TextEquiv>\n",
251
+ " <Unicode>&quot;Till Poliskammaren i Gbrg.</Unicode>\n",
252
  " </TextEquiv>\n",
253
+ " <PredScore pred_score=\"0.9966\"/>\n",
254
  " </TextLine>\n",
255
  " <TextLine id=\"line_region_3_2\" custom=\"readingOrder {index:2;}\">\n",
256
+ " <Coords points=\"415,3404 439,3429 2359,3422 2391,3408 2385,3370 1376,3359 435,3365\"/>\n",
257
  " <TextEquiv>\n",
258
+ " <Unicode>Hustru Emma Regina Lovisa Box, född Lundgren, som i förr¬</Unicode>\n",
259
  " </TextEquiv>\n",
260
+ " <PredScore pred_score=\"0.9963\"/>\n",
261
  " </TextLine>\n",
262
  " <TextLine id=\"line_region_3_3\" custom=\"readingOrder {index:3;}\">\n",
263
+ " <Coords points=\"2363,3463 414,3470 405,3515 432,3530 2360,3515\"/>\n",
264
  " <TextEquiv>\n",
265
+ " <Unicode>gar förlupit sin vid Gustafsberg å Wermdön boende man efter</Unicode>\n",
266
  " </TextEquiv>\n",
267
+ " <PredScore pred_score=\"0.9888\"/>\n",
268
  " </TextLine>\n",
269
  " <TextLine id=\"line_region_3_4\" custom=\"readingOrder {index:4;}\">\n",
270
+ " <Coords points=\"393,3616 2187,3619 2330,3608 2345,3567 408,3564\"/>\n",
271
  " <TextEquiv>\n",
272
+ " <Unicode>bodrägt af minst 100 Rdr och tros medfölja en Engelsman</Unicode>\n",
273
  " </TextEquiv>\n",
274
+ " <PredScore pred_score=\"0.983\"/>\n",
275
  " </TextLine>\n",
276
  " <TextLine id=\"line_region_3_5\" custom=\"readingOrder {index:5;}\">\n",
277
+ " <Coords points=\"406,3688 432,3707 2382,3709 2393,3694 2382,3661 434,3658 410,3665\"/>\n",
278
  " <TextEquiv>\n",
279
+ " <Unicode>John Tolly, torde efterspanas, gripas och hitsändas, bön är ljus med</Unicode>\n",
280
  " </TextEquiv>\n",
281
+ " <PredScore pred_score=\"0.975\"/>\n",
282
  " </TextLine>\n",
283
  " <TextLine id=\"line_region_3_6\" custom=\"readingOrder {index:6;}\">\n",
284
+ " <Coords points=\"390,3745 410,3768 2367,3772 2357,3742 2151,3731 418,3727\"/>\n",
285
  " <TextEquiv>\n",
286
+ " <Unicode>buunt har, blå ögon, långlagdt ansigte, landlas i öfre kaken</Unicode>\n",
287
  " </TextEquiv>\n",
288
+ " <PredScore pred_score=\"0.9537\"/>\n",
289
  " </TextLine>\n",
290
  " <TextLine id=\"line_region_3_7\" custom=\"readingOrder {index:7;}\">\n",
291
+ " <Coords points=\"388,3814 409,3841 2395,3850 2382,3813 410,3796\"/>\n",
292
  " <TextEquiv>\n",
293
+ " <Unicode>Fattig korpulent, kan ej väl tala Svenska. Ett barn om 5 mi¬</Unicode>\n",
294
  " </TextEquiv>\n",
295
+ " <PredScore pred_score=\"0.9332\"/>\n",
296
  " </TextLine>\n",
297
  " <TextLine id=\"line_region_3_8\" custom=\"readingOrder {index:8;}\">\n",
298
+ " <Coords points=\"1952,3894 1939,3858 1919,3852 407,3858 384,3877 384,3902 407,3911 1919,3913\"/>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  " <TextEquiv>\n",
300
+ " <Unicode>nader tros medfölja. Stockholms Lundskansli¬</Unicode>\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  " </TextEquiv>\n",
302
  " <PredScore pred_score=\"0.9877\"/>\n",
303
  " </TextLine>\n",
304
+ " <TextLine id=\"line_region_3_9\" custom=\"readingOrder {index:9;}\">\n",
305
+ " <Coords points=\"2255,3952 2242,3931 2227,3927 1604,3935 1586,3950 1583,3979 1606,3988 2203,3983 2241,3977\"/>\n",
 
 
 
 
 
 
 
306
  " <TextEquiv>\n",
307
+ " <Unicode>Sten Drakenberg</Unicode>\n",
308
  " </TextEquiv>\n",
309
+ " <PredScore pred_score=\"0.9435\"/>\n",
310
  " </TextLine>\n",
311
  " </TextRegion>\n",
312
  " </Page>\n",
 
320
  "\n",
321
  "client = Client(\"http://127.0.0.1:7860/\")\n",
322
  "job = client.submit(\n",
323
+ " \"https://datasets-server.huggingface.co/assets/Riksarkivet/test_images_demo/--/default/train/2/image/image.jpg\", # str (filepath or URL to image)\n",
324
  " api_name=\"/predict\",\n",
325
  ")\n",
326
  "\n",