Spaces:
Running
on
T4
Running
on
T4
latest changes of media
Browse files- README.md +2 -1
- app.py +88 -22
- helper/text/text_howto.py +39 -11
- tabs/htr_tool.py +18 -1
- tabs/stepwise_htr_tool.py +1 -1
- 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,
|
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/
|
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 |
-
|
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 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
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 |
-
|
88 |
-
|
89 |
-
|
90 |
|
91 |
both_htr_tool_video = """
|
92 |
-
|
93 |
-
|
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 |
+
##
|
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=
|
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=
|
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":
|
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-
|
18 |
" </Metadata>\n",
|
19 |
-
" <Page imageFilename=\"page_xml.xml\" imageWidth=\"
|
20 |
" <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
|
21 |
-
" <Coords points=\"
|
22 |
" <TextLine id=\"line_region_0_0\" custom=\"readingOrder {index:0;}\">\n",
|
23 |
-
" <Coords points=\"
|
24 |
" <TextEquiv>\n",
|
25 |
-
" <Unicode
|
26 |
" </TextEquiv>\n",
|
27 |
-
" <PredScore pred_score=\"0.
|
28 |
" </TextLine>\n",
|
29 |
-
"
|
30 |
-
"
|
|
|
|
|
|
|
31 |
" <TextEquiv>\n",
|
32 |
-
" <Unicode>
|
33 |
" </TextEquiv>\n",
|
34 |
-
" <PredScore pred_score=\"0.
|
35 |
" </TextLine>\n",
|
36 |
-
" <TextLine id=\"
|
37 |
-
" <Coords points=\"
|
38 |
" <TextEquiv>\n",
|
39 |
-
" <Unicode
|
40 |
" </TextEquiv>\n",
|
41 |
-
" <PredScore pred_score=\"0.
|
42 |
" </TextLine>\n",
|
43 |
-
" <TextLine id=\"
|
44 |
-
" <Coords points=\"
|
45 |
" <TextEquiv>\n",
|
46 |
-
" <Unicode>
|
47 |
" </TextEquiv>\n",
|
48 |
-
" <PredScore pred_score=\"0.
|
49 |
" </TextLine>\n",
|
50 |
-
" <TextLine id=\"
|
51 |
-
" <Coords points=\"
|
52 |
" <TextEquiv>\n",
|
53 |
-
" <Unicode>
|
54 |
" </TextEquiv>\n",
|
55 |
-
" <PredScore pred_score=\"0.
|
56 |
" </TextLine>\n",
|
57 |
-
" <TextLine id=\"
|
58 |
-
" <Coords points=\"
|
59 |
" <TextEquiv>\n",
|
60 |
-
" <Unicode
|
61 |
" </TextEquiv>\n",
|
62 |
-
" <PredScore pred_score=\"0.
|
63 |
" </TextLine>\n",
|
64 |
-
" <TextLine id=\"
|
65 |
-
" <Coords points=\"
|
66 |
" <TextEquiv>\n",
|
67 |
-
" <Unicode>
|
68 |
" </TextEquiv>\n",
|
69 |
-
" <PredScore pred_score=\"0.
|
70 |
" </TextLine>\n",
|
71 |
-
" <TextLine id=\"
|
72 |
-
" <Coords points=\"
|
73 |
" <TextEquiv>\n",
|
74 |
-
" <Unicode>
|
75 |
" </TextEquiv>\n",
|
76 |
-
" <PredScore pred_score=\"0.
|
77 |
" </TextLine>\n",
|
78 |
-
" <TextLine id=\"
|
79 |
-
" <Coords points=\"
|
80 |
" <TextEquiv>\n",
|
81 |
-
" <Unicode>
|
82 |
" </TextEquiv>\n",
|
83 |
-
" <PredScore pred_score=\"0.
|
84 |
" </TextLine>\n",
|
85 |
-
" <TextLine id=\"
|
86 |
-
" <Coords points=\"
|
87 |
" <TextEquiv>\n",
|
88 |
-
" <Unicode>
|
89 |
" </TextEquiv>\n",
|
90 |
-
" <PredScore pred_score=\"0.
|
91 |
" </TextLine>\n",
|
92 |
-
" <TextLine id=\"
|
93 |
-
" <Coords points=\"
|
94 |
" <TextEquiv>\n",
|
95 |
-
" <Unicode>
|
96 |
" </TextEquiv>\n",
|
97 |
-
" <PredScore pred_score=\"0.
|
98 |
" </TextLine>\n",
|
99 |
-
" <TextLine id=\"
|
100 |
-
" <Coords points=\"
|
101 |
" <TextEquiv>\n",
|
102 |
-
" <Unicode>
|
103 |
" </TextEquiv>\n",
|
104 |
-
" <PredScore pred_score=\"0.
|
105 |
" </TextLine>\n",
|
106 |
-
" <TextLine id=\"
|
107 |
-
" <Coords points=\"
|
108 |
" <TextEquiv>\n",
|
109 |
-
" <Unicode>
|
110 |
" </TextEquiv>\n",
|
111 |
-
" <PredScore pred_score=\"0.
|
112 |
" </TextLine>\n",
|
113 |
-
" <TextLine id=\"
|
114 |
-
" <Coords points=\"
|
115 |
" <TextEquiv>\n",
|
116 |
-
" <Unicode>
|
117 |
" </TextEquiv>\n",
|
118 |
-
" <PredScore pred_score=\"0.
|
119 |
" </TextLine>\n",
|
120 |
-
" <TextLine id=\"
|
121 |
-
" <Coords points=\"
|
122 |
" <TextEquiv>\n",
|
123 |
-
" <Unicode>
|
124 |
" </TextEquiv>\n",
|
125 |
-
" <PredScore pred_score=\"0.
|
126 |
" </TextLine>\n",
|
127 |
-
" <TextLine id=\"
|
128 |
-
" <Coords points=\"
|
129 |
" <TextEquiv>\n",
|
130 |
-
" <Unicode>
|
131 |
" </TextEquiv>\n",
|
132 |
-
" <PredScore pred_score=\"0.
|
133 |
" </TextLine>\n",
|
134 |
-
" <TextLine id=\"
|
135 |
-
" <Coords points=\"
|
136 |
" <TextEquiv>\n",
|
137 |
-
" <Unicode>
|
138 |
" </TextEquiv>\n",
|
139 |
-
" <PredScore pred_score=\"0.
|
140 |
" </TextLine>\n",
|
141 |
-
" <TextLine id=\"
|
142 |
-
" <Coords points=\"
|
143 |
" <TextEquiv>\n",
|
144 |
-
" <Unicode>
|
145 |
" </TextEquiv>\n",
|
146 |
-
" <PredScore pred_score=\"0.
|
147 |
" </TextLine>\n",
|
148 |
-
" <TextLine id=\"
|
149 |
-
" <Coords points=\"
|
150 |
" <TextEquiv>\n",
|
151 |
-
" <Unicode>
|
152 |
" </TextEquiv>\n",
|
153 |
-
" <PredScore pred_score=\"0.
|
154 |
" </TextLine>\n",
|
155 |
-
"
|
156 |
-
"
|
|
|
|
|
|
|
157 |
" <TextEquiv>\n",
|
158 |
-
" <Unicode>
|
159 |
" </TextEquiv>\n",
|
160 |
-
" <PredScore pred_score=\"0.
|
161 |
" </TextLine>\n",
|
162 |
-
" <TextLine id=\"
|
163 |
-
" <Coords points=\"
|
164 |
" <TextEquiv>\n",
|
165 |
-
" <Unicode>
|
166 |
" </TextEquiv>\n",
|
167 |
-
" <PredScore pred_score=\"0.
|
168 |
" </TextLine>\n",
|
169 |
-
" <TextLine id=\"
|
170 |
-
" <Coords points=\"
|
171 |
" <TextEquiv>\n",
|
172 |
-
" <Unicode
|
173 |
" </TextEquiv>\n",
|
174 |
-
" <PredScore pred_score=\"0.
|
175 |
" </TextLine>\n",
|
176 |
-
" <TextLine id=\"
|
177 |
-
" <Coords points=\"
|
178 |
" <TextEquiv>\n",
|
179 |
-
" <Unicode>
|
180 |
" </TextEquiv>\n",
|
181 |
-
" <PredScore pred_score=\"0.
|
182 |
" </TextLine>\n",
|
183 |
-
" <TextLine id=\"
|
184 |
-
" <Coords points=\"
|
185 |
" <TextEquiv>\n",
|
186 |
-
" <Unicode>
|
187 |
" </TextEquiv>\n",
|
188 |
-
" <PredScore pred_score=\"0.
|
189 |
" </TextLine>\n",
|
190 |
-
" <TextLine id=\"
|
191 |
-
" <Coords points=\"
|
192 |
" <TextEquiv>\n",
|
193 |
-
" <Unicode>
|
194 |
" </TextEquiv>\n",
|
195 |
-
" <PredScore pred_score=\"0.
|
196 |
" </TextLine>\n",
|
197 |
-
" <TextLine id=\"
|
198 |
-
" <Coords points=\"
|
199 |
" <TextEquiv>\n",
|
200 |
-
" <Unicode>
|
201 |
" </TextEquiv>\n",
|
202 |
-
" <PredScore pred_score=\"0.
|
203 |
" </TextLine>\n",
|
204 |
-
" <TextLine id=\"
|
205 |
-
" <Coords points=\"
|
206 |
" <TextEquiv>\n",
|
207 |
-
" <Unicode>
|
208 |
" </TextEquiv>\n",
|
209 |
-
" <PredScore pred_score=\"0.
|
210 |
" </TextLine>\n",
|
211 |
-
" <TextLine id=\"
|
212 |
-
" <Coords points=\"
|
213 |
" <TextEquiv>\n",
|
214 |
-
" <Unicode>
|
215 |
" </TextEquiv>\n",
|
216 |
-
" <PredScore pred_score=\"0.
|
217 |
" </TextLine>\n",
|
218 |
-
"
|
219 |
-
"
|
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>
|
225 |
" </TextEquiv>\n",
|
226 |
-
" <PredScore pred_score=\"0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
" </TextLine>\n",
|
228 |
" </TextRegion>\n",
|
229 |
-
" <TextRegion id=\"region_3\" custom=\"readingOrder {index:
|
230 |
-
" <Coords points=\"
|
231 |
" <TextLine id=\"line_region_3_0\" custom=\"readingOrder {index:0;}\">\n",
|
232 |
-
" <Coords points=\"
|
233 |
" <TextEquiv>\n",
|
234 |
-
" <Unicode>
|
235 |
" </TextEquiv>\n",
|
236 |
-
" <PredScore pred_score=\"0.
|
237 |
" </TextLine>\n",
|
238 |
" <TextLine id=\"line_region_3_1\" custom=\"readingOrder {index:1;}\">\n",
|
239 |
-
" <Coords points=\"
|
240 |
" <TextEquiv>\n",
|
241 |
-
" <Unicode
|
242 |
" </TextEquiv>\n",
|
243 |
-
" <PredScore pred_score=\"0.
|
244 |
" </TextLine>\n",
|
245 |
" <TextLine id=\"line_region_3_2\" custom=\"readingOrder {index:2;}\">\n",
|
246 |
-
" <Coords points=\"
|
247 |
" <TextEquiv>\n",
|
248 |
-
" <Unicode>
|
249 |
" </TextEquiv>\n",
|
250 |
-
" <PredScore pred_score=\"0.
|
251 |
" </TextLine>\n",
|
252 |
" <TextLine id=\"line_region_3_3\" custom=\"readingOrder {index:3;}\">\n",
|
253 |
-
" <Coords points=\"
|
254 |
" <TextEquiv>\n",
|
255 |
-
" <Unicode>
|
256 |
" </TextEquiv>\n",
|
257 |
-
" <PredScore pred_score=\"0.
|
258 |
" </TextLine>\n",
|
259 |
" <TextLine id=\"line_region_3_4\" custom=\"readingOrder {index:4;}\">\n",
|
260 |
-
" <Coords points=\"
|
261 |
" <TextEquiv>\n",
|
262 |
-
" <Unicode>
|
263 |
" </TextEquiv>\n",
|
264 |
-
" <PredScore pred_score=\"0.
|
265 |
" </TextLine>\n",
|
266 |
" <TextLine id=\"line_region_3_5\" custom=\"readingOrder {index:5;}\">\n",
|
267 |
-
" <Coords points=\"
|
268 |
" <TextEquiv>\n",
|
269 |
-
" <Unicode>
|
270 |
" </TextEquiv>\n",
|
271 |
-
" <PredScore pred_score=\"0.
|
272 |
" </TextLine>\n",
|
273 |
" <TextLine id=\"line_region_3_6\" custom=\"readingOrder {index:6;}\">\n",
|
274 |
-
" <Coords points=\"
|
275 |
" <TextEquiv>\n",
|
276 |
-
" <Unicode>
|
277 |
" </TextEquiv>\n",
|
278 |
-
" <PredScore pred_score=\"0.
|
279 |
" </TextLine>\n",
|
280 |
" <TextLine id=\"line_region_3_7\" custom=\"readingOrder {index:7;}\">\n",
|
281 |
-
" <Coords points=\"
|
282 |
" <TextEquiv>\n",
|
283 |
-
" <Unicode
|
284 |
" </TextEquiv>\n",
|
285 |
-
" <PredScore pred_score=\"0.
|
286 |
" </TextLine>\n",
|
287 |
" <TextLine id=\"line_region_3_8\" custom=\"readingOrder {index:8;}\">\n",
|
288 |
-
" <Coords points=\"
|
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>
|
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=\"
|
407 |
-
" <Coords points=\"
|
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>
|
417 |
" </TextEquiv>\n",
|
418 |
-
" <PredScore pred_score=\"0.
|
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 |
-
" \"
|
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 så 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>"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 på 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>"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 & 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 så 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>"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",
|