Skip to main content

convert a long text to sentences

Project description

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

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

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.

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