HongChow / deepsegment

A sentence segmenter that actually works!

Home Page:http://bpraneeth.com/projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DeepSegment: A sentence segmenter that actually works!

For the original implementation please use the "master" branch of this repo.

This implementation is trained on data from various sources. (v1 or the model in master branch is trained only on Tatoeba data).

The Demo is available at http://bpraneeth.com/projects

Installation:

pip install --upgrade deepsegment
# please install tensorflow or tensorflow-gpu separately. Tested with tf and tf-gpu versions 1.8 to 2.0

Usage:

from deepsegment import DeepSegment
# The default language is 'en'
segmenter = DeepSegment('en')
segmenter.segment('I am Batman i live in gotham')
# ['I am Batman', 'i live in gotham']

To Do:

  1. Add a sliding window for processing very long texts. - DONE (segmenter.segment_long(input_sentence))
  2. Publish docker tf-serving image and deepsegment-client.

About

A sentence segmenter that actually works!

http://bpraneeth.com/projects

License:GNU General Public License v3.0


Languages

Language:Python 100.0%