Skip to main content

Forschungszentrum Juelich Logo

Text processing utils

Small helpers for NLP tasks.

Installation

Create and activate a virtual environment.
Then, install the package via pip and download the spaCy pipeline.

pip install text-processing-utils
python3 -m spacy download en_core_web_md

Contents

  • batches
    • get_batches_of_strict_size_with_remainder
    • get_n_batches
    • get_batches_of_roughly_equal_size
  • boolean_checks
    • is_gibberish
    • is_plural
    • an_vs_a
  • char_offsets
    • is_inside
    • get_span_distance_sorted
    • get_span_distance
    • remove_whitespace_from_annotation
    • merge_annotation_offsets
  • bio_tags
    • bio_tags_to_spans
    • remove_overlapping_bio_tags
    • transform_into_char_offsets_and_readable_tag
    • token_spans_to_char_annotations
  • locate
    • get_sent_idx
    • locate_span_in_context
  • highlight_context
    • enclose_with_special_symbol
  • sentences
    • lower_first_letter_if_sent_start
    • correct_sentence_boundary_detection
  • regex
    • make_named_group_unique
  • types
    • Offset
    • Annotations

About Us

Institute image ICE-2

We are the Institute of Climate and Energy Systems (ICE) - Jülich Systems Analysis belonging to the Forschungszentrum Jülich. Our interdisciplinary department's research is focusing on energy-related process and systems analyses. Data searches and system simulations are used to determine energy and mass balances, as well as to evaluate performance, emissions and costs of energy systems. The results are used for performing comparative assessment studies between the various systems. Our current priorities include the development of energy strategies, in accordance with the German Federal Government’s greenhouse gas reduction targets, by designing new infrastructures for sustainable and secure energy supply chains and by conducting cost analysis studies for integrating new technologies into future energy market frameworks.

Acknowledgements

The authors would like to thank the German Federal Government, the German state governments, and the Joint Science Conference (GWK) for their funding and support as part of the NFDI4Ing consortium. Funded by the German Research Foundation (DFG) – project number: 442146713. Furthermore, this work was supported by the Helmholtz Association under the program "Energy System Design".

NFDI4Ing Logo Helmholtz Logo

Metadata

Release files for text-processing-utils 0.0.0

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

Source distribution (sdist)

Source distribution for text-processing-utils 0.0.0
File Size Uploaded Provenance Actions
text_processing_utils-0.0.0.tar.gz 15.4 kB Without provenance Details for text_processing_utils-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for text-processing-utils 0.0.0
File Interpreter ABI Platform Actions
text_processing_utils-0.0.0-py3-none-any.whl Python 3 none any Details for text_processing_utils-0.0.0-py3-none-any.whl

Total release size: 30.2 kB

Release files / text_processing_utils-0.0.0.tar.gz

Download URL text_processing_utils-0.0.0.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4ac77e65a7c388194d123deced3b98513f4bf668874d1b98aad94cdc8cd265ce
BLAKE2b-256 checksum
How to use checksums
e0722ba8f0bd025db71857a5c9e5260ace0895d292ce3f54d81df7ac535cd00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / text_processing_utils-0.0.0-py3-none-any.whl

Download URL text_processing_utils-0.0.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e9dbcaff42394b93e165717c219bf2cbb124fef1cd9889ebeba54b590dab9ba
BLAKE2b-256 checksum
How to use checksums
63a3844ee2db966439efbc35f99d42eb0c15c1bcaaa493c23722b82345184c50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for text-processing-utils 0.0.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.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

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