rg
stringlengths 29
32
| html
stringlengths 8.03k
545k
|
---|---|
RG-50.030.0469_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.549.03.0004_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0117_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.233.0103_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0703_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0093_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0146_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0752_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.030.0687_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
RG-50.549.02.0043_trs_en_cleaned | "<!DOCTYPE html>\n\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\"/>\n<title>Document</title>\n(...TRUNCATED) |
End of preview. Expand
in Dataset Viewer.
Holocaust Survivor Testimonies Dataset
This dataset contains a collection of Holocaust survivor testimonies from the United States Holocaust Memorial Museum (USHMM). The testimonies are presented in an unconventional HTML format, which is temporary and will be further processed in future iterations.
Dataset Structure
Each item in the dataset consists of two fields:
rg
: A unique identifier for each testimony, corresponding to the original filename without the extension.html
: The content of the testimony in HTML format.
HTML Structure
The HTML content is structured as follows:
- The document starts with a standard HTML5 doctype and structure.
- The main content is enclosed in
<body>
tags. - Each dialogue element (question or answer) is wrapped in
<dialogue>
tags with a class attribute indicating whether it's a "Question" or "Answer". - The text content is further wrapped in
<p>
tags within the<dialogue>
tags. Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Document</title>
</head>
<body><dialogue class=""><p><p>DAVID KOCHALSKI July 28, 1994</p></p></dialogue>
<dialogue class=""><p></p></dialogue><dialogue class="Question"><p><p>Q: I need you to start off by telling me your name, place of birth, and date of birth?</p></p></dialogue>
<dialogue class=""><p></p></dialogue><dialogue class="Answer"><p><p>A: My name David Kochalski. I was born in a small town called , and I was born May 5, 1928.</p></p></dialogue>
<dialogue class=""><p></p></dialogue><dialogue class="Question"><p><p>Q: Tell me a little bit about your family life before the war?</p></p></dialogue>
- There are
<span>
elements with class "page-break" used to identify page breaks within the text. These elements include a "number" attribute indicating the page number.
Example:
<dialogue class="Answer">
<p>
<p>A: Yes, I did. I felt it, maybe not personally, but I knew of a lot of incidents whereby either they were small little -- I would call it -- we were separated, in other words, but hardly got together, and there were incidents. Incidents, not pleasant incidents, because we were <span class="page-break" number="0"></span> called in from the house, people regardless of how religious we were, did not believe that we were really religious people.</p>
</p>
</dialogue>
Example of Finding all the Questions:
from datasets import load_dataset
from bs4 import BeautifulSoup
# Load the dataset from Hugging Face
dataset = load_dataset("placingholocaust/testimonies-1k", split="train").take(1)
# Function to extract questions from HTML content
def extract_questions(html_content):
soup = BeautifulSoup(html_content, 'html.parser')
questions = soup.find_all('dialogue', class_='Question')
return [q.get_text(strip=True) for q in questions]
# Iterate through the dataset and print questions
for item in dataset:
rg = item['rg']
html_content = item['html']
questions = extract_questions(html_content)
print(f"Questions from testimony {rg}:")
for i, question in enumerate(questions, 1):
print(f"{i}. {question}")
print("\n")
- Downloads last month
- 35