Skip to main content

An HTML cleaner customized for kinship ties extraction from large text corpra

Project description

Alt text

This repository enables users to extract kinship ties and relational information from large text corpora, such as genealogies, biographies, and historical dictionaries.

It is designed to process HTML documents (this format offers many task-related benefits, such as font-identification). The HTML files go through a structured cleaning and segmentation process to be finally supplied to LLMs for the purpouse of kinship relations and events extraction. For example, extracting from a historical dictionary information about individuals("father of", "married to", "born").

Flowchart of the code logic:

The user needs to manually identify when does the relevant HTML section begin and when does it end. For example, by opening the file in code editor (here VS Code) and selecting how many characters are before and after the desired text chunk:

Demo animation

In this case the number for relevant beginning is 4601. This information needs to be added to the JSON file in the section that includes this specific HTML.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html_cleaner_kinship-0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html_cleaner_kinship-0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file html_cleaner_kinship-0.1.tar.gz.

File metadata

  • Download URL: html_cleaner_kinship-0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for html_cleaner_kinship-0.1.tar.gz
Algorithm Hash digest
SHA256 62a3ff76b79650af69e88ee3ec91c423bbf552fbcc7ed2af2b04b16b99d59596
MD5 33c92d4a8a27801ebfbc97278a68e2c8
BLAKE2b-256 f730cc1446a1e6efb84804e0a9d7c0443a83653734cd0224019e441deba2c5f7

See more details on using hashes here.

File details

Details for the file html_cleaner_kinship-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for html_cleaner_kinship-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af3cb53f7d02e5aa491f59bef2da51848d530c2588dd1bfdc9f3e7666af2d3b3
MD5 62d2a7f30bdda9db9d534d79ab221954
BLAKE2b-256 f2ac2ad954186a179037fb16c56fdb94ffdfab94153fbd4f0ac932369a961c4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page