Spaces:
Sleeping
Sleeping
added some chnages for xml
Browse files- app.py +8 -14
- helper/examples/create_examples.py +28 -2
- helper/text/text_riksarkivet.py +2 -6
- src/htr_pipeline/utils/process_xml.py +14 -1
- src/htr_pipeline/utils/templates/page_xml_2013.xml +16 -13
- test_api.ipynb +408 -349
app.py
CHANGED
@@ -18,14 +18,14 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
|
|
18 |
|
19 |
with gr.Tabs():
|
20 |
with gr.Tab("HTR Tool"):
|
21 |
-
with gr.Row():
|
22 |
with gr.Column(scale=2):
|
23 |
with gr.Row():
|
24 |
fast_track_input_region_image = gr.Image(
|
25 |
-
label="Image to run HTR on", type="numpy", tool="editor", elem_id="image_upload"
|
26 |
-
)
|
27 |
|
28 |
-
with gr.Row(
|
29 |
# with gr.Group():
|
30 |
# callback = gr.CSVLogger()
|
31 |
# # hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "htr_pipelin_flags")
|
@@ -67,12 +67,9 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
|
|
67 |
)
|
68 |
|
69 |
with gr.Column(scale=4):
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
type="numpy",
|
74 |
-
tool="editor",
|
75 |
-
).style(height=650)
|
76 |
|
77 |
with gr.Row(visible=False) as api_placeholder:
|
78 |
htr_pipeline_button_api = gr.Button(
|
@@ -395,10 +392,7 @@ with gr.Blocks(title="HTR Riksarkivet", theme=theme, css=css) as demo:
|
|
395 |
|
396 |
with gr.Tab("Riksarkivet"):
|
397 |
with gr.Row():
|
398 |
-
|
399 |
-
gr.Markdown(TextRiksarkivet.riksarkivet)
|
400 |
-
with gr.Column():
|
401 |
-
gr.Markdown(TextRiksarkivet.contact)
|
402 |
|
403 |
htr_pipeline_button.click(
|
404 |
fast_track.segment_to_xml,
|
|
|
18 |
|
19 |
with gr.Tabs():
|
20 |
with gr.Tab("HTR Tool"):
|
21 |
+
with gr.Row(equal_height=True):
|
22 |
with gr.Column(scale=2):
|
23 |
with gr.Row():
|
24 |
fast_track_input_region_image = gr.Image(
|
25 |
+
label="Image to run HTR on", type="numpy", tool="editor", elem_id="image_upload", height=395
|
26 |
+
)
|
27 |
|
28 |
+
with gr.Row():
|
29 |
# with gr.Group():
|
30 |
# callback = gr.CSVLogger()
|
31 |
# # hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "htr_pipelin_flags")
|
|
|
67 |
)
|
68 |
|
69 |
with gr.Column(scale=4):
|
70 |
+
fast_track_output_image = gr.Image(
|
71 |
+
label="HTR results visualizer", type="numpy", tool="editor", height=650
|
72 |
+
)
|
|
|
|
|
|
|
73 |
|
74 |
with gr.Row(visible=False) as api_placeholder:
|
75 |
htr_pipeline_button_api = gr.Button(
|
|
|
392 |
|
393 |
with gr.Tab("Riksarkivet"):
|
394 |
with gr.Row():
|
395 |
+
gr.Markdown(TextRiksarkivet.riksarkivet)
|
|
|
|
|
|
|
396 |
|
397 |
htr_pipeline_button.click(
|
398 |
fast_track.segment_to_xml,
|
helper/examples/create_examples.py
CHANGED
@@ -1,4 +1,8 @@
|
|
|
|
|
|
|
|
1 |
import datasets
|
|
|
2 |
|
3 |
_CITATION = """\
|
4 |
@InProceedings{huggingface:dataset,
|
@@ -51,11 +55,33 @@ class ExampleImages(datasets.GeneratorBasedBuilder):
|
|
51 |
metadata_list = f.read().split("\n")
|
52 |
for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
|
53 |
filepath, image = img_obj
|
|
|
|
|
|
|
54 |
yield idx, {
|
55 |
"image": {"path": filepath, "bytes": image.read()},
|
56 |
-
"text":
|
57 |
}
|
58 |
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
if __name__ == "__main__":
|
61 |
-
|
|
|
|
1 |
+
import os
|
2 |
+
import tarfile
|
3 |
+
|
4 |
import datasets
|
5 |
+
import pandas as pd
|
6 |
|
7 |
_CITATION = """\
|
8 |
@InProceedings{huggingface:dataset,
|
|
|
55 |
metadata_list = f.read().split("\n")
|
56 |
for idx, (img_obj, meta_txt) in enumerate(zip(images, metadata_list)):
|
57 |
filepath, image = img_obj
|
58 |
+
|
59 |
+
text_value = meta_txt.split("= ")[-1].strip()
|
60 |
+
|
61 |
yield idx, {
|
62 |
"image": {"path": filepath, "bytes": image.read()},
|
63 |
+
"text": text_value,
|
64 |
}
|
65 |
|
66 |
|
67 |
+
def txt_to_csv(file_name):
|
68 |
+
text_file_path = f"{file_name}.txt"
|
69 |
+
df = pd.read_csv(text_file_path, delimiter="=", header=None, names=["Key", "Label"], encoding="utf-8")
|
70 |
+
df["Key"] = df["Key"].str.strip()
|
71 |
+
df["Label"] = df["Label"].str.strip()
|
72 |
+
print(df)
|
73 |
+
df.to_csv(f"{file_name}.csv", index=False)
|
74 |
+
|
75 |
+
|
76 |
+
def sort_and_compress_images(images_folder, tar_file):
|
77 |
+
sorted_images = sorted(os.listdir(images_folder))
|
78 |
+
with tarfile.open(tar_file, "w:gz") as tar:
|
79 |
+
for image_name in sorted_images:
|
80 |
+
image_path = os.path.join(images_folder, image_name)
|
81 |
+
tar.add(image_path, arcname=image_name)
|
82 |
+
print("Images sorted and compressed into tar.gz archive.")
|
83 |
+
|
84 |
+
|
85 |
if __name__ == "__main__":
|
86 |
+
txt_to_csv("info")
|
87 |
+
sort_and_compress_images("images", "sorted_images.tar.gz")
|
helper/text/text_riksarkivet.py
CHANGED
@@ -1,12 +1,8 @@
|
|
1 |
class TextRiksarkivet:
|
2 |
riksarkivet = """
|
3 |
-
## Riksarkivet
|
4 |
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
5 |
-
"""
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
10 |
"""
|
11 |
|
12 |
|
|
|
1 |
class TextRiksarkivet:
|
2 |
riksarkivet = """
|
|
|
|
|
|
|
3 |
|
4 |
+
|
5 |
+
|
|
|
6 |
"""
|
7 |
|
8 |
|
src/htr_pipeline/utils/process_xml.py
CHANGED
@@ -141,7 +141,11 @@ class XMLHelper:
|
|
141 |
line_data["id"] = line_id
|
142 |
line_data["boundary"] = line_pol
|
143 |
|
144 |
-
|
|
|
|
|
|
|
|
|
145 |
htr_scores.append(htr_score)
|
146 |
|
147 |
if htr_score > htr_threshold:
|
@@ -149,6 +153,15 @@ class XMLHelper:
|
|
149 |
|
150 |
return text_lines, htr_scores
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
153 |
if __name__ == "__main__":
|
154 |
pass
|
|
|
141 |
line_data["id"] = line_id
|
142 |
line_data["boundary"] = line_pol
|
143 |
|
144 |
+
transcribed_text, htr_score = inferencer.transcribe(line)
|
145 |
+
escaped_text = self._escape_xml_chars(transcribed_text)
|
146 |
+
line_data["unicode"] = escaped_text
|
147 |
+
line_data["pred_score"] = round(htr_score, 4)
|
148 |
+
|
149 |
htr_scores.append(htr_score)
|
150 |
|
151 |
if htr_score > htr_threshold:
|
|
|
153 |
|
154 |
return text_lines, htr_scores
|
155 |
|
156 |
+
def _escape_xml_chars(self, textline):
|
157 |
+
return (
|
158 |
+
textline.replace("&", "&")
|
159 |
+
.replace("<", "<")
|
160 |
+
.replace(">", ">")
|
161 |
+
.replace("'", "'")
|
162 |
+
.replace('"', """)
|
163 |
+
)
|
164 |
+
|
165 |
|
166 |
if __name__ == "__main__":
|
167 |
pass
|
src/htr_pipeline/utils/templates/page_xml_2013.xml
CHANGED
@@ -9,19 +9,22 @@
|
|
9 |
<TextRegion id="{{ textRegion.id }}" custom="readingOrder {index:{{ loop.index0 }};}">
|
10 |
<Coords points="{% for point in textRegion.boundary %}{{ point|join(',') }}{% if not loop.last %} {% endif %}{% endfor %}"/>
|
11 |
{% for textLine in textRegion.textLines %}
|
12 |
-
|
13 |
-
{% if textLine.boundary %}
|
14 |
-
|
15 |
-
{% endif %}
|
16 |
-
{% if textLine.baseline %}
|
17 |
-
|
18 |
-
{% endif %}
|
19 |
-
{% if textLine.unicode %}
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
{% endif %}
|
24 |
-
|
|
|
|
|
|
|
25 |
{% endfor %}
|
26 |
</TextRegion>
|
27 |
{% endfor %}
|
|
|
9 |
<TextRegion id="{{ textRegion.id }}" custom="readingOrder {index:{{ loop.index0 }};}">
|
10 |
<Coords points="{% for point in textRegion.boundary %}{{ point|join(',') }}{% if not loop.last %} {% endif %}{% endfor %}"/>
|
11 |
{% for textLine in textRegion.textLines %}
|
12 |
+
<TextLine id="{{ textLine.id }}" custom="readingOrder {index:{{ loop.index0 }};}">
|
13 |
+
{% if textLine.boundary %}
|
14 |
+
<Coords points="{% for point in textLine.boundary %}{{ point|join(',') }}{% if not loop.last %} {% endif %}{% endfor %}"/>
|
15 |
+
{% endif %}
|
16 |
+
{% if textLine.baseline %}
|
17 |
+
<Baseline points="{% for point in textLine.baseline %}{{ point|join(',') }}{% if not loop.last %} {% endif %}{% endfor %}"/>
|
18 |
+
{% endif %}
|
19 |
+
{% if textLine.unicode %}
|
20 |
+
<TextEquiv>
|
21 |
+
<Unicode>{{ textLine.unicode }}</Unicode>
|
22 |
+
</TextEquiv>
|
23 |
+
{% endif %}
|
24 |
+
{% if textLine.pred_score %}
|
25 |
+
<PredScore pred_score="{{ textLine.pred_score }}"/>
|
26 |
+
{% endif %}
|
27 |
+
</TextLine>
|
28 |
{% endfor %}
|
29 |
</TextRegion>
|
30 |
{% endfor %}
|
test_api.ipynb
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
"outputs": [
|
8 |
{
|
@@ -14,356 +14,409 @@
|
|
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=\"
|
20 |
" <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
|
21 |
-
" <Coords points=\"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
" </TextRegion>\n",
|
29 |
-
" <TextRegion id=\"
|
30 |
-
" <Coords points=\"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"
|
34 |
-
"
|
35 |
-
"
|
36 |
-
"
|
37 |
-
"
|
38 |
-
" <Coords points=\"1365,1590 1382,1628 2618,1621 2812,1654 3009,1624 3660,1619 3949,1659 4179,1618 4199,1526 4147,1489 3903,1505 3805,1484 3505,1527 2808,1501 2397,1526 2143,1478 1402,1538\"/>\n",
|
39 |
-
" <TextEquiv>\n",
|
40 |
-
" <Unicode>i norr Till Hauebe och Skogs socknar i Helsingland,</Unicode>\n",
|
41 |
-
" </TextEquiv>\n",
|
42 |
-
" </TextLine>\n",
|
43 |
-
" <TextLine id=\"line_1_2\" custom=\"readingOrder {index:2;}\">\n",
|
44 |
-
" <Coords points=\"1387,1733 1415,1776 1499,1794 3108,1803 4146,1773 4162,1724 4147,1674 3993,1685 3851,1652 2383,1688 2045,1651 1462,1689\"/>\n",
|
45 |
-
" <TextEquiv>\n",
|
46 |
-
" <Unicode>i oster till Hamrange socken, i sydost till Hille och</Unicode>\n",
|
47 |
-
" </TextEquiv>\n",
|
48 |
-
" </TextLine>\n",
|
49 |
-
" <TextLine id=\"line_1_3\" custom=\"readingOrder {index:3;}\">\n",
|
50 |
-
" <Coords points=\"4146,1826 4066,1814 3113,1843 1494,1821 1380,1835 1362,1930 1398,1956 2247,1936 2447,2019 2597,1955 2904,1948 3152,1997 3394,1941 3995,1938 4136,1916\"/>\n",
|
51 |
-
" <TextEquiv>\n",
|
52 |
-
" <Unicode>Wahlbo, i söder till Ofvansjö, i sydvest och vester</Unicode>\n",
|
53 |
-
" </TextEquiv>\n",
|
54 |
-
" </TextLine>\n",
|
55 |
-
" <TextLine id=\"line_1_4\" custom=\"readingOrder {index:4;}\">\n",
|
56 |
-
" <Coords points=\"1353,2083 1394,2115 1609,2106 1850,2150 2398,2101 4085,2100 4150,2083 4148,1977 4061,1965 3032,2006 2747,1945 2447,2015 2303,1974 1991,1996 1698,1954 1394,1967 1363,1997\"/>\n",
|
57 |
-
" <TextEquiv>\n",
|
58 |
-
" <Unicode>till Svärdsjö socken i Dalarne, och i nordvest till</Unicode>\n",
|
59 |
-
" </TextEquiv>\n",
|
60 |
-
" </TextLine>\n",
|
61 |
-
" <TextLine id=\"line_1_5\" custom=\"readingOrder {index:5;}\">\n",
|
62 |
-
" <Coords points=\"1361,2222 1396,2269 2462,2259 2651,2281 3003,2261 3303,2291 3554,2257 4058,2255 4153,2235 4159,2181 3910,2120 3668,2145 2638,2147 2445,2119 2250,2150 1700,2156 1497,2118 1376,2147\"/>\n",
|
63 |
-
" <TextEquiv>\n",
|
64 |
-
" <Unicode>Bollnäs socken i Helsingland, intager en större å</Unicode>\n",
|
65 |
-
" </TextEquiv>\n",
|
66 |
-
" </TextLine>\n",
|
67 |
-
" <TextLine id=\"line_1_6\" custom=\"readingOrder {index:6;}\">\n",
|
68 |
-
" <Coords points=\"1366,2374 1396,2421 1775,2423 1947,2474 2067,2428 2183,2432 2205,2478 2264,2444 2469,2422 3013,2425 3146,2491 3503,2420 4147,2416 4183,2377 4149,2296 3239,2314 2853,2275 2649,2291 2506,2261 2179,2314 1604,2287 1400,2304\"/>\n",
|
69 |
-
" <TextEquiv>\n",
|
70 |
-
" <Unicode>real än någon af Gestriklands öfrige socknar el¬</Unicode>\n",
|
71 |
-
" </TextEquiv>\n",
|
72 |
-
" </TextLine>\n",
|
73 |
-
" <TextLine id=\"line_1_7\" custom=\"readingOrder {index:7;}\">\n",
|
74 |
-
" <Coords points=\"4149,2517 4142,2476 4003,2429 3799,2465 3243,2464 3056,2488 2703,2483 2295,2431 1955,2477 1408,2442 1370,2466 1365,2534 1399,2582 1810,2575 2003,2645 2245,2573 2466,2591 3453,2572 3653,2634 3816,2577 4115,2568\"/>\n",
|
75 |
-
" <TextEquiv>\n",
|
76 |
-
" <Unicode>ler nära 1/4 af hela provinsen och år ett af Större</Unicode>\n",
|
77 |
-
" </TextEquiv>\n",
|
78 |
-
" </TextLine>\n",
|
79 |
-
" <TextLine id=\"line_1_8\" custom=\"readingOrder {index:8;}\">\n",
|
80 |
-
" <Coords points=\"4154,2677 4117,2647 3846,2600 3647,2640 2691,2601 2008,2639 1403,2614 1370,2683 1401,2726 1776,2725 1952,2784 2204,2722 2903,2721 3104,2797 3349,2782 3592,2731 3999,2783 4145,2726\"/>\n",
|
81 |
-
" <TextEquiv>\n",
|
82 |
-
" <Unicode>vattendrag genomskuret, med berg, sjöar och myr¬</Unicode>\n",
|
83 |
-
" </TextEquiv>\n",
|
84 |
-
" </TextLine>\n",
|
85 |
-
" <TextLine id=\"line_1_9\" custom=\"readingOrder {index:9;}\">\n",
|
86 |
-
" <Coords points=\"1355,2871 1394,2898 2057,2893 2356,2941 2713,2892 4103,2896 4196,2882 4200,2832 4172,2797 3092,2789 2890,2751 2247,2787 2104,2754 1952,2767 1844,2729 1549,2766 1402,2755 1365,2792\"/>\n",
|
87 |
-
" <TextEquiv>\n",
|
88 |
-
" <Unicode>landta träkter uppfylldt land, som genom sin nå¬</Unicode>\n",
|
89 |
-
" </TextEquiv>\n",
|
90 |
-
" </TextLine>\n",
|
91 |
-
" <TextLine id=\"line_1_10\" custom=\"readingOrder {index:10;}\">\n",
|
92 |
-
" <Coords points=\"1326,2955 1326,3040 1395,3066 2064,3049 2684,3089 2847,3074 2991,3102 3621,3053 3899,3104 4152,3060 4190,3015 4160,2948 2534,2954 2153,2910 1771,2929 1445,2900\"/>\n",
|
93 |
-
" <TextEquiv>\n",
|
94 |
-
" <Unicode>turskonhet utmärker sig framför provinsens öfrige</Unicode>\n",
|
95 |
-
" </TextEquiv>\n",
|
96 |
-
" </TextLine>\n",
|
97 |
-
" <TextLine id=\"line_1_11\" custom=\"readingOrder {index:11;}\">\n",
|
98 |
-
" <Coords points=\"1357,3150 1364,3203 1402,3221 2659,3208 3051,3281 3254,3219 4148,3213 4196,3192 4204,3132 4148,3101 3814,3088 2952,3107 2797,3076 2635,3095 2413,3071 2200,3108 2038,3064 1855,3099 1400,3097\"/>\n",
|
99 |
-
" <TextEquiv>\n",
|
100 |
-
" <Unicode>socknar. Dess största längd från hon till söder</Unicode>\n",
|
101 |
-
" </TextEquiv>\n",
|
102 |
-
" </TextLine>\n",
|
103 |
-
" <TextLine id=\"line_1_12\" custom=\"readingOrder {index:12;}\">\n",
|
104 |
-
" <Coords points=\"3801,3315 3796,3275 3705,3237 3573,3255 3348,3240 2991,3277 2806,3228 2405,3264 1643,3232 1397,3263 1363,3328 1397,3370 1656,3389 1909,3369 2113,3433 2307,3368 3405,3381 3714,3364 3796,3340\"/>\n",
|
105 |
-
" <TextEquiv>\n",
|
106 |
-
" <Unicode>år 25/6 mil och från vester till Öster 3 2/3 mil.</Unicode>\n",
|
107 |
-
" </TextEquiv>\n",
|
108 |
-
" </TextLine>\n",
|
109 |
-
" <TextLine id=\"line_1_13\" custom=\"readingOrder {index:13;}\">\n",
|
110 |
-
" <Coords points=\"4176,3424 4152,3376 3675,3420 3252,3392 2959,3439 2699,3415 2498,3440 1950,3410 1740,3430 1543,3399 1398,3413 1365,3488 1402,3542 3254,3521 3452,3591 3663,3525 4140,3517\"/>\n",
|
111 |
-
" <TextEquiv>\n",
|
112 |
-
" <Unicode>Man räknar, inom denna socken öfver 300 stor</Unicode>\n",
|
113 |
-
" </TextEquiv>\n",
|
114 |
-
" </TextLine>\n",
|
115 |
-
" <TextLine id=\"line_1_14\" custom=\"readingOrder {index:14;}\">\n",
|
116 |
-
" <Coords points=\"4208,3677 4181,3593 3999,3539 3809,3567 3543,3549 3347,3589 3003,3540 2661,3587 1937,3583 1728,3555 1397,3581 1361,3624 1369,3677 1401,3694 2654,3683 2895,3723 3096,3687 4109,3698\"/>\n",
|
117 |
-
" <TextEquiv>\n",
|
118 |
-
" <Unicode>re och mindre sjöar och tjernar, hvilka tillsam¬</Unicode>\n",
|
119 |
-
" </TextEquiv>\n",
|
120 |
-
" </TextLine>\n",
|
121 |
-
" <TextLine id=\"line_1_15\" custom=\"readingOrder {index:15;}\">\n",
|
122 |
-
" <Coords points=\"1356,3828 1401,3853 2235,3839 2433,3880 2659,3841 2876,3895 3139,3843 3503,3842 3700,3880 4132,3839 4159,3774 4126,3741 3752,3714 3420,3740 1987,3719 1397,3737 1361,3764\"/>\n",
|
123 |
-
" <TextEquiv>\n",
|
124 |
-
" <Unicode>utans med vattendragen intaga den ansenliga area</Unicode>\n",
|
125 |
-
" </TextEquiv>\n",
|
126 |
-
" </TextLine>\n",
|
127 |
-
" <TextLine id=\"line_1_16\" custom=\"readingOrder {index:16;}\">\n",
|
128 |
-
" <Coords points=\"2972,3931 2945,3913 2850,3906 2657,3858 2547,3892 2106,3914 1850,3890 1557,3890 1446,3864 1376,3889 1364,3945 1386,4009 1558,4071 1602,4072 1797,4008 1933,3997 2137,4029 2253,3999 2449,3998 2650,4065 2753,4021 2953,3985\"/>\n",
|
129 |
-
" <TextEquiv>\n",
|
130 |
-
" <Unicode>len af 69093, i qvädratrefvar</Unicode>\n",
|
131 |
-
" </TextEquiv>\n",
|
132 |
-
" </TextLine>\n",
|
133 |
-
" <TextLine id=\"line_1_17\" custom=\"readingOrder {index:17;}\">\n",
|
134 |
-
" <Coords points=\"3383,3930 3382,3976 3401,3995 3899,3990 4008,4024 4177,4000 4210,3978 4198,3909 4182,3896 3658,3888 3600,3834 3478,3856 3403,3892\"/>\n",
|
135 |
-
" <TextEquiv>\n",
|
136 |
-
" <Unicode>På norra grån</Unicode>\n",
|
137 |
-
" </TextEquiv>\n",
|
138 |
-
" </TextLine>\n",
|
139 |
-
" <TextLine id=\"line_1_18\" custom=\"readingOrder {index:18;}\">\n",
|
140 |
-
" <Coords points=\"4138,4116 4104,4047 3904,4009 3620,4050 3449,4018 3148,4050 2947,4014 2719,4064 1951,4011 1612,4061 1397,4056 1362,4132 1397,4177 2790,4166 2878,4181 2954,4234 3083,4173 3238,4152 3750,4165 3903,4222 4107,4162\"/>\n",
|
141 |
-
" <TextEquiv>\n",
|
142 |
-
" <Unicode>sen och till hälften inom Skogs socken är Lingbo</Unicode>\n",
|
143 |
-
" </TextEquiv>\n",
|
144 |
-
" </TextLine>\n",
|
145 |
-
" <TextLine id=\"line_1_19\" custom=\"readingOrder {index:19;}\">\n",
|
146 |
-
" <Coords points=\"4115,4231 4082,4210 3846,4224 3401,4198 3254,4164 2990,4226 2255,4186 2091,4212 1704,4180 1396,4209 1363,4327 1396,4365 1561,4318 3347,4316 3544,4347 4088,4319\"/>\n",
|
147 |
-
" <TextEquiv>\n",
|
148 |
-
" <Unicode>sjön belägen, denna sammanbindes genom ett</Unicode>\n",
|
149 |
-
" </TextEquiv>\n",
|
150 |
-
" </TextLine>\n",
|
151 |
-
" <TextLine id=\"line_1_20\" custom=\"readingOrder {index:20;}\">\n",
|
152 |
-
" <Coords points=\"4193,4413 4149,4369 3500,4356 3355,4315 3150,4350 1800,4339 1400,4382 1372,4404 1366,4477 1404,4498 1646,4469 3143,4470 3449,4510 3678,4469 4152,4468\"/>\n",
|
153 |
-
" <TextEquiv>\n",
|
154 |
-
" <Unicode>mält sund med den vidsträckta, sydost derom</Unicode>\n",
|
155 |
-
" </TextEquiv>\n",
|
156 |
-
" </TextLine>\n",
|
157 |
-
" <TextLine id=\"line_1_21\" custom=\"readingOrder {index:21;}\">\n",
|
158 |
-
" <Coords points=\"1326,4630 1707,4642 1901,4684 2138,4629 3109,4631 3266,4684 3395,4634 4150,4638 4186,4621 4196,4570 4177,4532 4046,4491 3848,4534 3547,4536 2844,4482 2542,4532 2292,4467 2108,4530 1402,4505 1364,4531 1353,4614\"/>\n",
|
159 |
-
" <TextEquiv>\n",
|
160 |
-
" <Unicode>belägna sjön Ekaren. Vid Östra gränsen utbreda</Unicode>\n",
|
161 |
-
" </TextEquiv>\n",
|
162 |
-
" </TextLine>\n",
|
163 |
-
" <TextLine id=\"line_1_22\" custom=\"readingOrder {index:22;}\">\n",
|
164 |
-
" <Coords points=\"1364,4784 1399,4829 2365,4780 2749,4837 3162,4774 3396,4839 3592,4791 4118,4791 4150,4776 4163,4674 4103,4650 3976,4683 3659,4693 3386,4630 3329,4677 3247,4694 2740,4689 2502,4625 2350,4677 2043,4650 1840,4690 1552,4645 1392,4689\"/>\n",
|
165 |
-
" <TextEquiv>\n",
|
166 |
-
" <Unicode>sig Lilla och Stora Daninsjöarne, Tolfvorn samt</Unicode>\n",
|
167 |
-
" </TextEquiv>\n",
|
168 |
-
" </TextLine>\n",
|
169 |
-
" <TextLine id=\"line_1_23\" custom=\"readingOrder {index:23;}\">\n",
|
170 |
-
" <Coords points=\"4197,4828 3987,4848 3806,4812 3639,4849 3341,4848 3104,4781 2853,4851 2364,4838 2228,4795 2041,4840 1757,4812 1392,4847 1372,4927 1400,4957 3153,4946 3445,5014 3601,4963 3776,5012 3951,4964 4172,4948\"/>\n",
|
171 |
-
" <TextEquiv>\n",
|
172 |
-
" <Unicode>den till en liten del inom Hansränge liggande</Unicode>\n",
|
173 |
-
" </TextEquiv>\n",
|
174 |
-
" </TextLine>\n",
|
175 |
-
" <TextLine id=\"line_1_24\" custom=\"readingOrder {index:24;}\">\n",
|
176 |
-
" <Coords points=\"1361,5070 1397,5112 1645,5135 2054,5098 2944,5112 3104,5146 3309,5113 4049,5114 4145,5087 4150,5029 4054,4977 3857,5005 3696,4980 3387,5006 3104,4978 2765,5004 2400,4993 2202,4953 2050,4995 1895,4999 1483,4962 1380,4985\"/>\n",
|
177 |
-
" <TextEquiv>\n",
|
178 |
-
" <Unicode>Vittersjön. På gränsen emot Ofvansjö bemärkas</Unicode>\n",
|
179 |
-
" </TextEquiv>\n",
|
180 |
-
" </TextLine>\n",
|
181 |
-
" <TextLine id=\"line_1_25\" custom=\"readingOrder {index:25;}\">\n",
|
182 |
-
" <Coords points=\"4198,5132 3632,5162 3357,5126 3056,5145 2896,5112 2680,5166 2305,5115 1806,5151 1545,5121 1390,5158 1367,5233 1397,5266 1653,5281 2036,5261 4152,5271 4195,5254\"/>\n",
|
183 |
-
" <TextEquiv>\n",
|
184 |
-
" <Unicode>Hällsjön och Långsjön, hvilka till någon del lig¬</Unicode>\n",
|
185 |
-
" </TextEquiv>\n",
|
186 |
-
" </TextLine>\n",
|
187 |
" </TextRegion>\n",
|
188 |
-
" <TextRegion id=\"
|
189 |
-
" <Coords points=\"
|
190 |
-
"
|
191 |
-
"
|
192 |
-
"
|
193 |
-
"
|
194 |
-
"
|
195 |
-
"
|
196 |
-
"
|
197 |
-
" <
|
198 |
-
"
|
199 |
-
"
|
200 |
-
" <
|
201 |
-
"
|
202 |
-
"
|
203 |
-
" </
|
204 |
-
"
|
205 |
-
"
|
206 |
-
"
|
207 |
-
" <
|
208 |
-
"
|
209 |
-
"
|
210 |
-
"
|
211 |
-
"
|
212 |
-
"
|
213 |
-
"
|
214 |
-
"
|
215 |
-
"
|
216 |
-
"
|
217 |
-
"
|
218 |
-
"
|
219 |
-
"
|
220 |
-
"
|
221 |
-
" </
|
222 |
-
" </
|
223 |
-
"
|
224 |
-
"
|
225 |
-
"
|
226 |
-
" <
|
227 |
-
"
|
228 |
-
"
|
229 |
-
"
|
230 |
-
"
|
231 |
-
"
|
232 |
-
"
|
233 |
-
"
|
234 |
-
"
|
235 |
-
"
|
236 |
-
"
|
237 |
-
"
|
238 |
-
"
|
239 |
-
"
|
240 |
-
"
|
241 |
-
"
|
242 |
-
" <
|
243 |
-
"
|
244 |
-
"
|
245 |
-
" </
|
246 |
-
"
|
247 |
-
"
|
248 |
-
"
|
249 |
-
" <
|
250 |
-
"
|
251 |
-
"
|
252 |
-
"
|
253 |
-
"
|
254 |
-
"
|
255 |
-
"
|
256 |
-
"
|
257 |
-
"
|
258 |
-
"
|
259 |
-
"
|
260 |
-
"
|
261 |
-
"
|
262 |
-
"
|
263 |
-
" </
|
264 |
-
" </
|
265 |
-
"
|
266 |
-
"
|
267 |
-
"
|
268 |
-
" <
|
269 |
-
"
|
270 |
-
"
|
271 |
-
"
|
272 |
-
"
|
273 |
-
"
|
274 |
-
"
|
275 |
-
"
|
276 |
-
"
|
277 |
-
"
|
278 |
-
"
|
279 |
-
"
|
280 |
-
"
|
281 |
-
"
|
282 |
-
"
|
283 |
-
"
|
284 |
-
" <
|
285 |
-
"
|
286 |
-
"
|
287 |
-
" </
|
288 |
-
"
|
289 |
-
"
|
290 |
-
"
|
291 |
-
" <
|
292 |
-
"
|
293 |
-
"
|
294 |
-
"
|
295 |
-
"
|
296 |
-
"
|
297 |
-
"
|
298 |
-
"
|
299 |
-
"
|
300 |
-
"
|
301 |
-
"
|
302 |
-
"
|
303 |
-
"
|
304 |
-
"
|
305 |
-
"
|
306 |
-
" </
|
307 |
-
"
|
308 |
-
"
|
309 |
-
"
|
310 |
-
" <
|
311 |
-
"
|
312 |
-
"
|
313 |
-
"
|
314 |
-
"
|
315 |
-
"
|
316 |
-
"
|
317 |
-
"
|
318 |
-
"
|
319 |
-
"
|
320 |
-
"
|
321 |
-
"
|
322 |
-
"
|
323 |
-
"
|
324 |
-
"
|
325 |
-
"
|
326 |
-
" <
|
327 |
-
"
|
328 |
-
"
|
329 |
-
" </
|
330 |
-
"
|
331 |
-
"
|
332 |
-
"
|
333 |
-
" <
|
334 |
-
"
|
335 |
-
"
|
336 |
-
"
|
337 |
-
"
|
338 |
-
"
|
339 |
-
"
|
340 |
-
"
|
341 |
-
"
|
342 |
-
"
|
343 |
-
"
|
344 |
-
"
|
345 |
-
"
|
346 |
-
"
|
347 |
-
"
|
348 |
-
" </
|
349 |
-
"
|
350 |
-
"
|
351 |
-
"
|
352 |
-
" <
|
353 |
-
"
|
354 |
-
"
|
355 |
-
"
|
356 |
-
"
|
357 |
-
"
|
358 |
-
"
|
359 |
-
"
|
360 |
-
"
|
361 |
-
"
|
362 |
-
"
|
363 |
-
"
|
364 |
-
"
|
365 |
-
"
|
366 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
" </TextRegion>\n",
|
368 |
" </Page>\n",
|
369 |
"</PcGts>\n",
|
@@ -376,13 +429,19 @@
|
|
376 |
"\n",
|
377 |
"client = Client(\"http://127.0.0.1:7860/\")\n",
|
378 |
"job = client.submit(\n",
|
379 |
-
" \"./
|
380 |
-
" \"test_api\", # str in 'parameter_22' Textbox component\n",
|
381 |
" api_name=\"/predict\",\n",
|
382 |
")\n",
|
383 |
"\n",
|
384 |
"print(job.result())\n"
|
385 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
}
|
387 |
],
|
388 |
"metadata": {
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 4,
|
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-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",
|
422 |
"</PcGts>\n",
|
|
|
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",
|
436 |
"print(job.result())\n"
|
437 |
]
|
438 |
+
},
|
439 |
+
{
|
440 |
+
"cell_type": "code",
|
441 |
+
"execution_count": null,
|
442 |
+
"metadata": {},
|
443 |
+
"outputs": [],
|
444 |
+
"source": []
|
445 |
}
|
446 |
],
|
447 |
"metadata": {
|