Spaces:
Sleeping
Sleeping
|
Download scripts/README_scripts.md from Zachurban/Housingmind: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/spaces/Zachurban/Housingmind/resolve/main/scripts/README_scripts.md
- Command line
-
hf download hf://spaces/Zachurban/Housingmind/scripts/README_scripts.md
-
curl -L -o README_scripts.md https://huggingface.co/spaces/Zachurban/Housingmind/resolve/main/scripts/README_scripts.md
1.29 kB
βοΈ HousingMind Scripts
This directory contains utility scripts used to process, clean, and generate training data from housing-related documents and reference tables.
π Script Index
β
generate_instruction_pairs.py
- Converts structured data (FMR, income limits) into JSONL prompt-response pairs.
- Output is used for instruction-tuning language models.
π pdf_chunker.py
- Reads HUD-related PDF documents and splits them into text chunks (~1000 characters).
- Useful for preprocessing documents for annotation, summarization, or RAG ingestion.
ποΈ generate_notice_qa.py
- Demonstrates how to manually convert HUD Notice excerpts into QA instruction data.
- Generates JSONL-formatted prompt-response entries from policy summaries.
βοΈ Dependencies
To run these scripts, install the following:
pip install pandas PyMuPDF
π‘ Notes
- Ensure paths to
/lookup_tables,/raw_documents, and/instruction_dataare correct before execution. - Outputs are typically saved as
.jsonlfor easy integration into training pipelines.
π€ Contributions
If you create a new script (e.g., tokenizer, tokenizer-aware chunker, metadata tagger), please add a section here explaining its purpose and usage.