Skip to content

split text to sentences according the stop words of language

Notifications You must be signed in to change notification settings

yumoqing/text2sentences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

split text to sentences according the stop words of language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages