Skip to main content

A fundamental sentence splitter based on spacy.

Project description

Fun Sentence Splitter

A fundamental sentence splitter based on spacy.

Requirements

Python 3.10 or higher and poetry.

Local Dev Setup

Download the Spacy language model used in the tests:

python -m spacy download de_core_news_sm

Run static checks and tests:

ruff check .
mypy .
pytest --cov=fun_sentence_splitter

Run Evaluation

./evaluate.sh path/to/splits_dir

path/to/splits_dir: directory containing pairs of *.split and *.txt files. .split files contain the expected sentences, each on a separate line. .txt files contain the original text to split.

The evaluation script will automatically update the spacy dependency and download the required language models.

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

fun_sentence_splitter-0.3.387.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

fun_sentence_splitter-0.3.387-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file fun_sentence_splitter-0.3.387.tar.gz.

File metadata

  • Download URL: fun_sentence_splitter-0.3.387.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.1 Linux/6.11.0-1018-azure

File hashes

Hashes for fun_sentence_splitter-0.3.387.tar.gz
Algorithm Hash digest
SHA256 4f681872b200a239ec568c88ae319b814cb8fd2f475ebefdbe066c9fa7a06869
MD5 bf36788a1d63b4e4e4d1c40aba706461
BLAKE2b-256 6bbe3ed99db8a7adc8de8a5a3482bcb4c207b5e15912e7d1440ce60109a56b3a

See more details on using hashes here.

File details

Details for the file fun_sentence_splitter-0.3.387-py3-none-any.whl.

File metadata

File hashes

Hashes for fun_sentence_splitter-0.3.387-py3-none-any.whl
Algorithm Hash digest
SHA256 a2726a01816cbd646e71922148afbcaa5bcc40a30cc141698cc47a7d0c316f1f
MD5 58b4d4129d191db6e2858ce146e05d57
BLAKE2b-256 18ac3c9c9e59d40e65acc695a0f5d926ab32a62dca902b4659abc5e607392ae2

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