docforge-swedish
Swedish NLP utilities for the DocForge platform. Zero external dependencies — pure stdlib.
Install
pip install docforge-swedish
# or locally:
pip install -e src/docforge_swedish
Usage
from docforge_swedish import (
SwedishNormalizer,
SwedishNER,
SwedishFormats,
SwedishStopwords,
SwedishProcessor,
Domain,
)
normalizer = SwedishNormalizer()
normalized = normalizer.normalize("socialtjänstlagen § 4 kap")
# → "SoL § 4 kap"
ner = SwedishNER()
entities = ner.extract("JO har granskat Socialnämnden i Stockholm")
print(entities.authorities) # ['JO', 'Socialnämnden']
stopwords = SwedishStopwords.for_municipal()
filtered = stopwords.filter_text("nämnden beslutade att godkänna rapporten")
Modules
| Module | Description |
|---|---|
SwedishNormalizer |
OCR fixes, law reference normalization, municipality/authority name normalization |
SwedishNER |
Rule-based named entity recognition (authorities, courts, law refs, persons, dates) |
SwedishFormats |
Date, SEK amount, personnummer parsing and formatting |
SwedishStopwords |
Domain-specific stopword sets (general, legal, municipal, social, medical) |
SwedishProcessor |
High-level pipeline combining all of the above |
Domain |
Enum for stopword domains |
Metadata
Release files for docforge-swedish 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docforge_swedish-0.1.0.tar.gz | 11.8 kB | Without provenance | Details for docforge_swedish-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docforge_swedish-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for docforge_swedish-0.1.0-py3-none-any.whl |
Total release size: 26.6 kB
Release files / docforge_swedish-0.1.0.tar.gz
| Download URL | docforge_swedish-0.1.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e597918e68487f5e9351a394f62d4d1f179f09396b5462eaf5dd77c5734cf8ec
|
|
BLAKE2b-256 checksum How to use checksums |
a063fe3d257e14e097840aa68ed92500b6fdcc364ad9e029b7fbfb389748c58c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / docforge_swedish-0.1.0-py3-none-any.whl
| Download URL | docforge_swedish-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bd294bb77d6088ba66bd06dfeda298b2c40ff704b425823447c8097688b7480
|
|
BLAKE2b-256 checksum How to use checksums |
b3f916c2ad41aa04d7f581a827ce6823f057be03aa29d5e272c2f7ccaac1e30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for docforge-swedish 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.