Skip to main content

Clause Segmenter

A clause segmenting tool utilising Python's SpaCy

Demo

The following link requires a valid Australian Access Federation login

Binder

Installation

python3 -m pip install clause-segmenter

Documentation

Documentation can be found here

Usage

A code snippet example that uses the ClauseSegmenter

from clause_segmenter import ClauseSegmenter

text = "When I want to leave the house, I have to check if it's raining, so I know whether to bring an umbrella."
segmenter = ClauseSegmenter()
clauses_ls = segmenter.get_clauses_as_list(text)
for clause in clauses_ls:
    print(clause)

Output:

When I want to leave the house
I have to check if it's raining
so I know whether to bring an umbrella

Tests

python3 clause_segmenter/tests/tests.py

Contributing

The package for this project is hosted on PyPi: https://pypi.org/project/clause-segmenter/

Dependencies, publishing, and version numbering is handled by Poetry

To publish a new version:

poetry config pypi-token.pypi <TOKEN>
poetry version minor
poetry publish --build

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for clause-segmenter 0.1.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 clause-segmenter 0.1.1
File Size Uploaded Provenance Actions
clause_segmenter-0.1.1.tar.gz 4.6 kB Without provenance Details for clause_segmenter-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clause-segmenter 0.1.1
File Interpreter ABI Platform Actions
clause_segmenter-0.1.1-py3-none-any.whl Python 3 none any Details for clause_segmenter-0.1.1-py3-none-any.whl

Total release size: 9.8 kB

Release files / clause_segmenter-0.1.1.tar.gz

Download URL clause_segmenter-0.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e8b24c82010925de3a28389a8889ea11dd4bcb479c137936f5efc48bf6f495fa
BLAKE2b-256 checksum
How to use checksums
b7cca503375ad52d12e905c585a74e53c6de566f20b58d69a3e6499e3c9881c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.9 Darwin/23.6.0

Release files / clause_segmenter-0.1.1-py3-none-any.whl

Download URL clause_segmenter-0.1.1-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e092e7e9a6d6ca5a1125954845222adf073888fafaef29061da2fc56ee7b6a8b
BLAKE2b-256 checksum
How to use checksums
962fa2ee329067122a1e17a55fc975f381856872b4ab2c021d96ab2d062b54eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.11.9 Darwin/23.6.0

Security for clause-segmenter 0.1.1

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.1.1 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