diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 622d3381bf2363d0041ec3ffbd89447aa081dc07..f58e675310d1b7d112bfb89a1d8b355532e85b44 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,6 @@ repos: hooks: - id: codespell args: ['--write-changes'] - exclude: '^tests/samples/build_entities/(.*)$' - repo: meta hooks: - id: check-useless-excludes diff --git a/tests/samples/Dockerfile b/tests/samples/Dockerfile deleted file mode 100644 index af9f28963e7fbb6f6fd9442f6d19754cf57164bf..0000000000000000000000000000000000000000 --- a/tests/samples/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM python:3-alpine - -RUN pip install requests \ No newline at end of file diff --git a/tests/samples/Dockerfile-fake b/tests/samples/Dockerfile-fake deleted file mode 100644 index 76afcce70ff76ee90f90d4d15968a22d2d206f0f..0000000000000000000000000000000000000000 --- a/tests/samples/Dockerfile-fake +++ /dev/null @@ -1,2 +0,0 @@ -test -test \ No newline at end of file diff --git a/tests/samples/build_entities/create_blocks.json b/tests/samples/build_entities/create_blocks.json deleted file mode 100644 index 24c88e721296e3ab6cfd03f5c57bca4ea9cc3dd8..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/create_blocks.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "create_blocks.xml", - "corpus_id": "corpus_id", - "page_id": "page_id", - "transcriptions": [ - { - "transcription_id": "transcription_0", - "index_region": 0 - }, - { - "transcription_id": "transcription_1", - "index_region": 1 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/build_entities/create_entities.json b/tests/samples/build_entities/create_entities.json deleted file mode 100644 index 76bc74ea16d8cebd08656900ee2d738af7962a8b..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/create_entities.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "create_entities.xml", - "corpus_id": "corpus_id", - "page_id": "page_id", - "transcriptions": [ - { - "transcription_id": "transcription_0", - "index_region": 0 - }, - { - "transcription_id": "transcription_1", - "index_region": 1 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/build_entities/first_and_last_name.json b/tests/samples/build_entities/first_and_last_name.json deleted file mode 100644 index 3ef324f574d41edd9ae09bd8047e941697c6f3fc..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/first_and_last_name.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "xml_file": "first_and_last_name.xml", - "corpus_id": "corpus_id", - "page_id": "page_id", - "transcriptions": [ - { - "transcription_id": "transcription_0", - "index_region": 0 - }, - { - "transcription_id": "transcription_1", - "index_region": 1 - }, - { - "transcription_id": "transcription_2", - "index_region": 2 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/build_entities/merge.json b/tests/samples/build_entities/merge.json deleted file mode 100644 index 405f4fb681ffbfd58f25f6a1b3d2b5899aa0794b..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/merge.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "merge.xml", - "corpus_id": "corpus_id", - "page_id": "page_id", - "transcriptions": [ - { - "transcription_id": "transcription_0", - "index_region": 0 - }, - { - "transcription_id": "transcription_1", - "index_region": 1 - } - ] - } -] diff --git a/tests/samples/build_entities/multiple_corpus.json b/tests/samples/build_entities/multiple_corpus.json deleted file mode 100644 index b38cea2a2de2be907ed093c2197b26847e08a784..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/multiple_corpus.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "xml_file": "merge.xml", - "corpus_id": "corpus_id_1", - "page_id": "page_id", - "transcriptions": [] - }, - { - "xml_file": "merge.xml", - "corpus_id": "corpus_id_2", - "page_id": "page_id", - "transcriptions": [] - } -] diff --git a/tests/samples/build_entities/regroup.json b/tests/samples/build_entities/regroup.json deleted file mode 100644 index 09c3c81b9624255069eb30589c3bfe32f0261f28..0000000000000000000000000000000000000000 --- a/tests/samples/build_entities/regroup.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "regroup.xml", - "corpus_id": "corpus_id", - "page_id": "page_id", - "transcriptions": [ - { - "transcription_id": "transcription_0", - "index_region": 0 - }, - { - "transcription_id": "transcription_1", - "index_region": 1 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/build_entities/transkribus_export.zip b/tests/samples/build_entities/transkribus_export.zip deleted file mode 100644 index d4d7543a039f422869ad9cc19c5facbd7dacd20f..0000000000000000000000000000000000000000 Binary files a/tests/samples/build_entities/transkribus_export.zip and /dev/null differ diff --git a/tests/samples/expected/create_blocks.json b/tests/samples/expected/create_blocks.json deleted file mode 100644 index e8f009a9ee7650d28606475f1ce6cf30a100ecd8..0000000000000000000000000000000000000000 --- a/tests/samples/expected/create_blocks.json +++ /dev/null @@ -1,149 +0,0 @@ -[ - { - "reading_order": 0, - "lines": [ - { - "reading_order": 0, - "tags": [ - { - "name": "readingOrder", - "index": "0", - "reading_order": 0, - "transcription_id": "transcription_0", - "offset_in_region": 0 - }, - { - "name": "_date", - "offset": "3", - "length": "30", - "_enregistrement": "1", - "value": "onze janvier mil neuf centsept", - "reading_order": 0, - "transcription_id": "transcription_0", - "offset_in_region": 3 - } - ], - "length": 33 - }, - { - "reading_order": 1, - "tags": [ - { - "name": "readingOrder", - "index": "1", - "reading_order": 1, - "transcription_id": "transcription_0", - "offset_in_region": 34 - }, - { - "name": "_prenom", - "offset": "36", - "length": "5", - "continued": "true", - "_role": "sujet", - "value": "Louis", - "reading_order": 1, - "transcription_id": "transcription_0", - "offset_in_region": 70 - } - ], - "length": 41 - } - ] - }, - { - "reading_order": 1, - "lines": [ - { - "reading_order": 0, - "tags": [ - { - "name": "readingOrder", - "index": "0", - "reading_order": 0, - "transcription_id": "transcription_1", - "offset_in_region": 0 - }, - { - "name": "structure", - "type": "ref", - "reading_order": 0, - "transcription_id": "transcription_1", - "offset_in_region": 0 - } - ], - "length": 4 - }, - { - "reading_order": 1, - "tags": [ - { - "name": "readingOrder", - "index": "1", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 5 - }, - { - "name": "_prenom", - "offset": "0", - "length": "12", - "continued": "true", - "_role": "sujet", - "value": "Louis Joseph", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 5 - } - ], - "length": 12 - }, - { - "reading_order": 2, - "tags": [ - { - "name": "readingOrder", - "index": "2", - "reading_order": 2, - "transcription_id": "transcription_1", - "offset_in_region": 18 - }, - { - "name": "_prenom", - "offset": "0", - "length": "13", - "continued": "true", - "_role": "sujet", - "value": "Pierre Siméon", - "reading_order": 2, - "transcription_id": "transcription_1", - "offset_in_region": 18 - } - ], - "length": 13 - }, - { - "reading_order": 3, - "tags": [ - { - "name": "readingOrder", - "index": "3", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 32 - }, - { - "name": "_nom", - "offset": "0", - "length": "7", - "value": "Lemieux", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 32 - } - ], - "length": 7 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/expected/first_and_last_name_0.json b/tests/samples/expected/first_and_last_name_0.json deleted file mode 100644 index efce00706d8fd56bd3f26568c74e00c9fe3679da..0000000000000000000000000000000000000000 --- a/tests/samples/expected/first_and_last_name_0.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "4", - "length": 20, - "continued": "true", - "_role": "sujet", - "value": "Gérard Henri Chaloux", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 18, - "items": [ - { - "name": "_prenom", - "offset": "4", - "length": "6", - "continued": "true", - "_role": "sujet", - "value": "Gérard", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 18 - }, - { - "name": "_prenom", - "offset": "0", - "length": "5", - "continued": "true", - "_role": "sujet", - "value": "Henri", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 25 - }, - { - "name": "_nom", - "offset": "0", - "length": "7", - "value": "Chaloux", - "reading_order": 1, - "transcription_id": "transcription_0", - "offset_in_region": 6 - } - ] - }, - { - "name": "_lieu_residence", - "offset": "2", - "length": 4, - "value": "N.H.", - "reading_order": 5, - "transcription_id": "transcription_0", - "offset_in_region": 39, - "items": [ - { - "name": "_lieu_residence", - "offset": "2", - "length": "4", - "value": "N.H.", - "reading_order": 5, - "transcription_id": "transcription_0", - "offset_in_region": 39 - } - ] - } -] diff --git a/tests/samples/expected/first_and_last_name_1.json b/tests/samples/expected/first_and_last_name_1.json deleted file mode 100644 index 3f39f21a8744598c89df9cf71a4ad3eb37a7edd5..0000000000000000000000000000000000000000 --- a/tests/samples/expected/first_and_last_name_1.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "14", - "length": 17, - "_role": "sujet", - "value": "garçon Dumoulin", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 32, - "items": [ - { - "name": "_prenom", - "offset": "14", - "length": "6", - "_role": "sujet", - "value": "garçon", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 32 - }, - { - "name": "_nom", - "offset": "10", - "length": "3", - "continued": "true", - "value": "Du-", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 54 - }, - { - "name": "_nom", - "offset": "0", - "length": "6", - "continued": "true", - "value": "moulin", - "reading_order": 5, - "transcription_id": "transcription_1", - "offset_in_region": 58 - } - ] - }, - { - "name": "_prenom", - "offset": "3", - "length": 17, - "_role": "père", - "value": "Joseph Dumoulin", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 47, - "items": [ - { - "name": "_prenom", - "offset": "3", - "length": "6", - "_role": "père", - "value": "Joseph", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 47 - }, - { - "name": "_nom", - "offset": "10", - "length": "3", - "continued": "true", - "value": "Du-", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 54 - }, - { - "name": "_nom", - "offset": "0", - "length": "6", - "continued": "true", - "value": "moulin", - "reading_order": 5, - "transcription_id": "transcription_1", - "offset_in_region": 58 - } - ] - }, - { - "name": "_prenom", - "offset": "3", - "length": 15, - "_role": "mère", - "value": "Valeda Paquette", - "reading_order": 6, - "transcription_id": "transcription_1", - "offset_in_region": 73, - "items": [ - { - "name": "_prenom", - "offset": "3", - "length": "6", - "_role": "mère", - "value": "Valeda", - "reading_order": 6, - "transcription_id": "transcription_1", - "offset_in_region": 73 - }, - { - "name": "_nom", - "offset": "10", - "length": "8", - "value": "Paquette", - "reading_order": 6, - "transcription_id": "transcription_1", - "offset_in_region": 80 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/expected/first_and_last_name_2.json b/tests/samples/expected/first_and_last_name_2.json deleted file mode 100644 index 6d6a093a020e8de83769826b5f142e7b6ef731df..0000000000000000000000000000000000000000 --- a/tests/samples/expected/first_and_last_name_2.json +++ /dev/null @@ -1,33 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "0", - "length": 22, - "_role": "sujet", - "value": "Charles-Albert Lapalme", - "reading_order": 2, - "transcription_id": "transcription_2", - "offset_in_region": 14, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "14", - "_role": "sujet", - "value": "Charles-Albert", - "reading_order": 2, - "transcription_id": "transcription_2", - "offset_in_region": 14 - }, - { - "name": "_nom", - "offset": "0", - "length": "7", - "value": "Lapalme", - "reading_order": 1, - "transcription_id": "transcription_2", - "offset_in_region": 6 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/expected/merge_0.json b/tests/samples/expected/merge_0.json deleted file mode 100644 index 7075eff46bbf51d4694092a6ed47942f8fa1a97a..0000000000000000000000000000000000000000 --- a/tests/samples/expected/merge_0.json +++ /dev/null @@ -1,108 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "0", - "length": 19, - "_role": "sujet", - "value": "Marie-Alice-Rosilda", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 42, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "19", - "_role": "sujet", - "value": "Marie-Alice-Rosilda", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 42 - } - ] - }, - { - "name": "_prenom", - "offset": "3", - "length": 7, - "_role": "p\u00e8re", - "value": "Antoine", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 70, - "items": [ - { - "name": "_prenom", - "offset": "3", - "length": "7", - "_role": "p\u00e8re", - "value": "Antoine", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 70 - } - ] - }, - { - "name": "_nom", - "offset": "11", - "length": 6, - "value": "Landry", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 78, - "items": [ - { - "name": "_nom", - "offset": "11", - "length": "6", - "value": "Landry", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 78 - } - ] - }, - { - "name": "_prenom", - "offset": "6", - "length": 6, - "_role": "m\u00e8re", - "value": "Zelpha", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 91, - "items": [ - { - "name": "_prenom", - "offset": "6", - "length": "6", - "_role": "m\u00e8re", - "value": "Zelpha", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 91 - } - ] - }, - { - "name": "_nom", - "offset": "0", - "length": 10, - "value": "Beauchesne", - "reading_order": 5, - "transcription_id": "transcription_0", - "offset_in_region": 98, - "items": [ - { - "name": "_nom", - "offset": "0", - "length": "10", - "value": "Beauchesne", - "reading_order": 5, - "transcription_id": "transcription_0", - "offset_in_region": 98 - } - ] - } -] diff --git a/tests/samples/expected/merge_1.json b/tests/samples/expected/merge_1.json deleted file mode 100644 index 6eed88a0cad4fb78ab15a1f44f05664dd297118f..0000000000000000000000000000000000000000 --- a/tests/samples/expected/merge_1.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "name": "_nom", - "offset": "0", - "length": 6, - "value": "Landry", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 6, - "items": [ - { - "name": "_nom", - "offset": "0", - "length": "6", - "value": "Landry", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 6 - } - ] - }, - { - "name": "_prenom", - "offset": "0", - "length": 19, - "continued": "true", - "_role": "sujet", - "value": "Marie-Alice Rosilda", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 13, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "11", - "continued": "true", - "_role": "sujet", - "value": "Marie-Alice", - "reading_order": 2, - "transcription_id": "transcription_1", - "offset_in_region": 13 - }, - { - "name": "_prenom", - "offset": "0", - "length": "7", - "continued": "true", - "_role": "sujet", - "value": "Rosilda", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 25 - } - ] - } -] diff --git a/tests/samples/expected/merge_names_0.json b/tests/samples/expected/merge_names_0.json deleted file mode 100644 index 358f2c519f476f7357677602330e3b02a8a05a66..0000000000000000000000000000000000000000 --- a/tests/samples/expected/merge_names_0.json +++ /dev/null @@ -1,95 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "0", - "length": 26, - "_role": "sujet", - "value": "Marie-Alice-Rosilda Landry", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 42, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "19", - "_role": "sujet", - "value": "Marie-Alice-Rosilda", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 42 - }, - { - "name": "_nom", - "offset": "11", - "length": "6", - "value": "Landry", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 78 - } - ] - }, - { - "name": "_prenom", - "offset": "3", - "length": 14, - "_role": "p\u00e8re", - "value": "Antoine Landry", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 70, - "items": [ - { - "name": "_prenom", - "offset": "3", - "length": "7", - "_role": "p\u00e8re", - "value": "Antoine", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 70 - }, - { - "name": "_nom", - "offset": "11", - "length": "6", - "value": "Landry", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 78 - } - ] - }, - { - "name": "_prenom", - "offset": "6", - "length": 17, - "_role": "m\u00e8re", - "value": "Zelpha Beauchesne", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 91, - "items": [ - { - "name": "_prenom", - "offset": "6", - "length": "6", - "_role": "m\u00e8re", - "value": "Zelpha", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 91 - }, - { - "name": "_nom", - "offset": "0", - "length": "10", - "value": "Beauchesne", - "reading_order": 5, - "transcription_id": "transcription_0", - "offset_in_region": 98 - } - ] - } -] diff --git a/tests/samples/expected/merge_names_1.json b/tests/samples/expected/merge_names_1.json deleted file mode 100644 index 3ead315724e9bac62b7e098a75ae20960f7f9e64..0000000000000000000000000000000000000000 --- a/tests/samples/expected/merge_names_1.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "0", - "length": 26, - "continued": "true", - "_role": "sujet", - "value": "Marie-Alice Rosilda Landry", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 13, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "11", - "continued": "true", - "_role": "sujet", - "value": "Marie-Alice", - "reading_order": 2, - "transcription_id": "transcription_1", - "offset_in_region": 13 - }, - { - "name": "_prenom", - "offset": "0", - "length": "7", - "continued": "true", - "_role": "sujet", - "value": "Rosilda", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 25 - }, - { - "name": "_nom", - "offset": "0", - "length": "6", - "value": "Landry", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 6 - } - ] - } -] diff --git a/tests/samples/expected/regroup_0.json b/tests/samples/expected/regroup_0.json deleted file mode 100644 index 9c4ec72ac0bd5f087d38a4a6d2c0bad099fb8f64..0000000000000000000000000000000000000000 --- a/tests/samples/expected/regroup_0.json +++ /dev/null @@ -1,121 +0,0 @@ -[ - { - "name": "_prenom", - "offset": "5", - "length": 13, - "_role": "sujet", - "value": "Marie-Evilina", - "reading_order": 1, - "transcription_id": "transcription_0", - "offset_in_region": 21, - "items": [ - { - "name": "_prenom", - "offset": "5", - "length": "13", - "_role": "sujet", - "value": "Marie-Evilina", - "reading_order": 1, - "transcription_id": "transcription_0", - "offset_in_region": 21 - } - ] - }, - { - "name": "_prenom", - "offset": "0", - "length": 7, - "_role": "père", - "value": "Camille", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 45, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "7", - "_role": "père", - "value": "Camille", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 45 - } - ] - }, - { - "name": "_nom", - "offset": "8", - "length": 9, - "value": "Thibeault", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 53, - "items": [ - { - "name": "_nom", - "offset": "8", - "length": "9", - "value": "Thibeault", - "reading_order": 2, - "transcription_id": "transcription_0", - "offset_in_region": 53 - } - ] - }, - { - "name": "_prenom", - "offset": "6", - "length": 10, - "continued": "true", - "_role": "mère", - "value": "Erminise", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 69, - "items": [ - { - "name": "_prenom", - "offset": "6", - "length": "5", - "continued": "true", - "_role": "mère", - "value": "Ermi-", - "reading_order": 3, - "transcription_id": "transcription_0", - "offset_in_region": 69 - }, - { - "name": "_prenom", - "offset": "0", - "length": "4", - "continued": "true", - "_role": "mère", - "value": "nise", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 75 - } - ] - }, - { - "name": "_nom", - "offset": "5", - "length": 8, - "value": "Champeau", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 80, - "items": [ - { - "name": "_nom", - "offset": "5", - "length": "8", - "value": "Champeau", - "reading_order": 4, - "transcription_id": "transcription_0", - "offset_in_region": 80 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/expected/regroup_1.json b/tests/samples/expected/regroup_1.json deleted file mode 100644 index a0c01ab7200e7bb7b9de43289b585697522b55c4..0000000000000000000000000000000000000000 --- a/tests/samples/expected/regroup_1.json +++ /dev/null @@ -1,68 +0,0 @@ -[ - { - "name": "_nom", - "offset": "0", - "length": 6, - "value": "Dragon", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 6, - "items": [ - { - "name": "_nom", - "offset": "0", - "length": "6", - "value": "Dragon", - "reading_order": 1, - "transcription_id": "transcription_1", - "offset_in_region": 6 - } - ] - }, - { - "name": "_prenom", - "offset": "0", - "length": 20, - "continued": "true", - "_role": "sujet", - "value": "Marie Emillia Elmire", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 13, - "items": [ - { - "name": "_prenom", - "offset": "0", - "length": "5", - "continued": "true", - "_role": "sujet", - "value": "Marie", - "reading_order": 2, - "transcription_id": "transcription_1", - "offset_in_region": 13 - }, - { - "name": "_prenom", - "offset": "0", - "length": "7", - "continued": "true", - "_role": "sujet", - "value": "Emillia", - "reading_order": 3, - "transcription_id": "transcription_1", - "offset_in_region": 19 - }, - { - "name": "_prenom", - "offset": "0", - "length": "6", - "continued": "true", - "_role": "sujet", - "value": "Elmire", - "reading_order": 4, - "transcription_id": "transcription_1", - "offset_in_region": 27 - } - ] - } -] \ No newline at end of file diff --git a/tests/samples/expected/transcriptions-subdir.json b/tests/samples/expected/transcriptions-subdir.json deleted file mode 100644 index 7391a68da8615b372aa41aafd7c96807deddc740..0000000000000000000000000000000000000000 --- a/tests/samples/expected/transcriptions-subdir.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "555/document/foo/bar/abcdefg.xml", - "corpus_id": "corpusid", - "page_id": "elementid", - "transcriptions": [ - { - "index_region": 0, - "transcription_id": "transcription1" - }, - { - "index_region": 1, - "transcription_id": "transcription6" - } - ] - } -] diff --git a/tests/samples/expected/transcriptions.json b/tests/samples/expected/transcriptions.json deleted file mode 100644 index 081bc0dc4ae72e926c116767ba54970d7a9f96bc..0000000000000000000000000000000000000000 --- a/tests/samples/expected/transcriptions.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "xml_file": "555/document/0001_123456.xml", - "corpus_id": "corpusid", - "page_id": "elementid", - "transcriptions": [ - { - "index_region": 0, - "transcription_id": "transcription1" - }, - { - "index_region": 1, - "transcription_id": "transcription6" - } - ] - } -]