Skip to main content

loomchild-segment

A python module for interfacing with Java sentence splitter Loomchild. This package is aimed to be used in Bifixer and/or Bitextor

System dependencies to build and use this package are Maven and Java.

Installation

This package can be installed with pip from pypi:

pip install loomchild-segment

Usage

Splitting a text into sentences:

from loomchild.segmenter import LoomchildSegmenter

segmenter = LoomchildSegmenter(lang)
# segmenting a single line:
segments = segmenter.get_segmentation(input_line)
print("\n".join(segments))

# segmenting a document (i.e. multiple line breaks in the input)
segments = segmenter.get_document_segmentation(input_text)
print("\n".join(segments))

A command line tool is provided to work with base64 encoded documents.

cat b64encoded_input | py-segment -l $LANG > b64encoded_output

Metadata

Release files for loomchild-segment 2.0.4.2

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

Source distribution (sdist)

Source distribution for loomchild-segment 2.0.4.2
File Size Uploaded Provenance
loomchild-segment-2.0.4.2.tar.gz 2.4 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for loomchild-segment 2.0.4.2
File Interpreter ABI Platform
loomchild_segment-2.0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 MB

Release files / loomchild-segment-2.0.4.2.tar.gz

Download URL loomchild-segment-2.0.4.2.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
1072e46d5b67213a0ba7b7dc34696314d519a8cca324351339bb8932f326ac5a
BLAKE2b-256 checksum
How to use checksums
2d37678ae76034b5e6ecbb0e4ba3c05529efe1f87430f6a71383654105a04b24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.0

Release files / loomchild_segment-2.0.4.2-py3-none-any.whl

Download URL loomchild_segment-2.0.4.2-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e8fd559325cf829592a92c96b331adef51d209a1a7101688ab3edecb88557bb6
BLAKE2b-256 checksum
How to use checksums
c083708a3616bfe5b1d70c89a1768f5f9e98fd942a91881289804b27cddd69a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.0

Security for loomchild-segment 2.0.4.2

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.

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