HF RL Explorer

Task: Extract Text with Labels from HTML Using BeautifulSoup

Task: Extract Text with Labels from HTML Using BeautifulSoup: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that uses BeautifulSoup to extract labeled data from an HTML file. The HTML contains personal information with labels (like "YOB:", "RACE:") wrapped in…

The task

You need to write a Python script that uses BeautifulSoup to extract labeled data from an HTML file. The HTML contains personal information with labels (like "YOB:", "RACE:") wrapped in `<strong>` tags, followed by their corresponding values as plain text.

Part of PrimeIntellect/Terminal-Lego-15k.