8000 GitHub - intfloat/uts: python package for unsupervised text segmentation.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

intfloat/uts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unsupervised Text Segmentation

Install

For python 2.x:

sudo pip install uts

For python 3.x:

sudo pip3 install uts

Usage

import uts

document = ['this is a good day', 'good day means good weather',\
            'I love computer science', 'computer science is cool']
model = uts.C99(window=2)
boundary = model.segment(document)
# output: [1, 0, 1, 0]
print(boundary)

About

python package for unsupervised text segmentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0