Skip to main content

text2sentences

This module can be used by tts modules or others.

It split input text to sentences according the punctuation of native language, and detects each sentence's language id, sentence in a dialog or not(include in ""), start position in the source text, and if sentence is a new paragraph.

Dependents

Installation

pip install langdetect
pip install text2sentences

Usage

see the test/test.py

Test

we only test English, Chinese

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text2sentences-0.0.8.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file text2sentences-0.0.8.tar.gz.

File metadata

  • Download URL: text2sentences-0.0.8.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for text2sentences-0.0.8.tar.gz
Algorithm Hash digest
SHA256 a18b89309b12adcb829aab47d36ea20222c1509604e93fac68e97e20ee43df60
MD5 ab270cc1f95d9dfc7b4eb00e2c370a61
BLAKE2b-256 39ae7aac871b84c96c63d48e8ab0f1e95059bb0f810a3282aa562e431867cb98

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

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