Michał Martyniak 2d1923ac7e
Better element IDs - deterministic and document-unique hashes (#2673)
Part two of: https://github.com/Unstructured-IO/unstructured/pull/2842

Main changes compared to part one:
* hash computation includes element's sequence number on page, page
number, document filename and its text
* there are more test for deterministic behavior of IDs returned by
partitioning functions + their uniqueness (guaranteed at the document
level, and high probability across multiple documents)

This PR addresses the following issue:
https://github.com/Unstructured-IO/unstructured/issues/2461
2024-04-24 00:05:20 -07:00

102 lines
3.9 KiB
JSON

[
{
"element_id": "52585ab256e2832166ca185be6c76cc9",
"metadata": {
"data_source": {
"date_modified": "2010-01-23T23:18:40",
"record_locator": {
"file_path": "LICENSE.txt",
"repo_path": "dcneiner/Downloadify"
},
"url": "https://raw.githubusercontent.com/dcneiner/Downloadify/master/LICENSE.txt",
"version": "W/\"2c4f1ab8689a6dfef4ee7d13d4d935cb6663a7e4\""
},
"filetype": "text/plain",
"languages": [
"eng"
]
},
"text": "Downloadify: Client Side File Creation JavaScript + Flash Library",
"type": "Title"
},
{
"element_id": "107ab54e7143d022fee38d5dfe235f89",
"metadata": {
"data_source": {
"date_modified": "2010-01-23T23:18:40",
"record_locator": {
"file_path": "LICENSE.txt",
"repo_path": "dcneiner/Downloadify"
},
"url": "https://raw.githubusercontent.com/dcneiner/Downloadify/master/LICENSE.txt",
"version": "W/\"2c4f1ab8689a6dfef4ee7d13d4d935cb6663a7e4\""
},
"filetype": "text/plain",
"languages": [
"eng"
]
},
"text": "Copyright (c) 2009 Douglas C. Neiner",
"type": "Title"
},
{
"element_id": "1cd03f5c7eea429178fc15c9d6c4cbd4",
"metadata": {
"data_source": {
"date_modified": "2010-01-23T23:18:40",
"record_locator": {
"file_path": "LICENSE.txt",
"repo_path": "dcneiner/Downloadify"
},
"url": "https://raw.githubusercontent.com/dcneiner/Downloadify/master/LICENSE.txt",
"version": "W/\"2c4f1ab8689a6dfef4ee7d13d4d935cb6663a7e4\""
},
"filetype": "text/plain",
"languages": [
"eng"
]
},
"text": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:",
"type": "NarrativeText"
},
{
"element_id": "5da204497a4873a8d0f71ad7865cea7e",
"metadata": {
"data_source": {
"date_modified": "2010-01-23T23:18:40",
"record_locator": {
"file_path": "LICENSE.txt",
"repo_path": "dcneiner/Downloadify"
},
"url": "https://raw.githubusercontent.com/dcneiner/Downloadify/master/LICENSE.txt",
"version": "W/\"2c4f1ab8689a6dfef4ee7d13d4d935cb6663a7e4\""
},
"filetype": "text/plain",
"languages": [
"eng"
]
},
"text": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
"type": "NarrativeText"
},
{
"element_id": "1b454f06bfa94b6d367e0e812ae32655",
"metadata": {
"data_source": {
"date_modified": "2010-01-23T23:18:40",
"record_locator": {
"file_path": "LICENSE.txt",
"repo_path": "dcneiner/Downloadify"
},
"url": "https://raw.githubusercontent.com/dcneiner/Downloadify/master/LICENSE.txt",
"version": "W/\"2c4f1ab8689a6dfef4ee7d13d4d935cb6663a7e4\""
},
"filetype": "text/plain",
"languages": [
"eng"
]
},
"text": "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"type": "NarrativeText"
}
]