Skip to main content

zaragoza-construction-faq (Python package)

Pip-installable wrapper for the Swedish Construction FAQ dataset by Zaragoza AB.

Bilingual: 503 Q&A pairs in Swedish (sv) and English (en), grounded in Swedish construction law (PBL, BBR, Inkomstskattelagen, AFS, ABS 18, AB 04).

Install

pip install zaragoza-construction-faq

Use

import zaragoza_construction_faq as zcf

# Swedish (default)
zcf.meta()                    # dataset metadata
zcf.categories()              # list of 39 categories
zcf.load()                    # all 503 Q&As in Swedish
zcf.load("bygglov")           # only bygglov category

# English
zcf.meta(lang="en")
zcf.load(lang="en")
zcf.categories(lang="en")

# Alpaca / ShareGPT iterators
for rec in zcf.iter_alpaca():          # Swedish Alpaca
    print(rec["instruction"], "→", rec["output"][:60])

for rec in zcf.iter_alpaca(lang="en"):  # English Alpaca
    print(rec["instruction"], "→", rec["output"][:60])

for rec in zcf.iter_sharegpt(lang="en"):  # English ShareGPT
    ...

License

CC BY 4.0 — attribution to Zaragoza AB required.

"Swedish Construction FAQ by Zaragoza AB, CC BY 4.0. https://github.com/zaragoza-ab/swedish-construction-faq-1000"

Build & publish (maintainer)

cd python/
rm -rf zaragoza_construction_faq/data
cp -r ../data zaragoza_construction_faq/data
python -m build
twine upload dist/*

Metadata

Release files for zaragoza-construction-faq 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zaragoza-construction-faq 1.2.1
File Size Uploaded
zaragoza_construction_faq-1.2.1.tar.gz 556.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zaragoza-construction-faq 1.2.1
File Interpreter ABI Platform
zaragoza_construction_faq-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / zaragoza_construction_faq-1.2.1.tar.gz

Download URL zaragoza_construction_faq-1.2.1.tar.gz
Size 556.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5212ce17820e66ac5d80217c388b44d27ad3f9043f41821b42df23ababebb8dd
BLAKE2b-256 checksum
How to use checksums
e4cde8bbc4349576c7dc2bdfa67cee21c45eae4e21e20b2e426550bc3915de71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / zaragoza_construction_faq-1.2.1-py3-none-any.whl

Download URL zaragoza_construction_faq-1.2.1-py3-none-any.whl
Size 566.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
716a1999dd5ad8494c6a4e47d3510f017aa767ea9e55d3b348b0ad70b0e8d3d7
BLAKE2b-256 checksum
How to use checksums
e59cb8421106e81a953cf79482561480b3ef29be7fa00bc98fb8e311545a5cfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page