mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-30 00:38:10 +00:00
**Summary** Install new `@apply_metadata()` on TXT. **Additional Context** - Both EML and MSG delegate to both HTML and TXT to partition the message-body, depending on which MIME-part body payload is selected (`text/plain` or `text/html`). This PR prepares the way to remove decorators from EML and MSG in the next PR. --------- Co-authored-by: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com> Co-authored-by: scanny <scanny@users.noreply.github.com>
65 lines
2.0 KiB
JSON
65 lines
2.0 KiB
JSON
[
|
|
{
|
|
"type": "Title",
|
|
"element_id": "e9e2949adb0a1004997619eb751aaa52",
|
|
"text": "American",
|
|
"metadata": {
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"filetype": "text/plain",
|
|
"data_source": {
|
|
"version": "1",
|
|
"record_locator": {
|
|
"hosts": [
|
|
"http://localhost:9200"
|
|
],
|
|
"index_name": "movies",
|
|
"document_id": "1"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Title",
|
|
"element_id": "05a3d52e5ecf195049b8612341f75d61",
|
|
"text": "Wallace McCutcheon and Ediwin S. Porter",
|
|
"metadata": {
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"filetype": "text/plain",
|
|
"data_source": {
|
|
"version": "1",
|
|
"record_locator": {
|
|
"hosts": [
|
|
"http://localhost:9200"
|
|
],
|
|
"index_name": "movies",
|
|
"document_id": "1"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "NarrativeText",
|
|
"element_id": "b5489ccb83602726bdb58ba6db57b0f1",
|
|
"text": "Boone's daughter befriends an Indian maiden as Boone and his companion start out on a hunting expedition. While he is away, Boone's cabin is attacked by the Indians, who set it on fire and abduct Boone's daughter. Boone returns, swears vengeance, then heads out on the trail to the Indian camp. His daughter escapes but is chased. The Indians encounter Boone, which sets off a huge fight on the edge of a cliff. A burning arrow gets shot into the Indian camp. Boone gets tied to the stake and tortured. The burning arrow sets the Indian camp on fire, causing panic. Boone is rescued by his horse, and Boone has a knife fight in which he kills the Indian chief.[2]",
|
|
"metadata": {
|
|
"languages": [
|
|
"eng"
|
|
],
|
|
"filetype": "text/plain",
|
|
"data_source": {
|
|
"version": "1",
|
|
"record_locator": {
|
|
"hosts": [
|
|
"http://localhost:9200"
|
|
],
|
|
"index_name": "movies",
|
|
"document_id": "1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
] |