Skip to main content

Open Q&A dataset for the Swedish construction industry (byggbranschen). 503 bilingual (SV+EN) Q&As grounded in Swedish law. DOI: 10.5281/zenodo.19630803. By Zaragoza AB.

Project description

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/*

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

zaragoza_construction_faq-1.2.1.tar.gz (556.8 kB view details)

Uploaded Source

Built Distribution

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

zaragoza_construction_faq-1.2.1-py3-none-any.whl (566.7 kB view details)

Uploaded Python 3

File details

Details for the file zaragoza_construction_faq-1.2.1.tar.gz.

File metadata

File hashes

Hashes for zaragoza_construction_faq-1.2.1.tar.gz
Algorithm Hash digest
SHA256 5212ce17820e66ac5d80217c388b44d27ad3f9043f41821b42df23ababebb8dd
MD5 1448fa5744f755926f6e3568af3a977f
BLAKE2b-256 e4cde8bbc4349576c7dc2bdfa67cee21c45eae4e21e20b2e426550bc3915de71

See more details on using hashes here.

File details

Details for the file zaragoza_construction_faq-1.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zaragoza_construction_faq-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 716a1999dd5ad8494c6a4e47d3510f017aa767ea9e55d3b348b0ad70b0e8d3d7
MD5 f148044eb29577dfe75f1fb3d051cc00
BLAKE2b-256 e59cb8421106e81a953cf79482561480b3ef29be7fa00bc98fb8e311545a5cfc

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