python package for unsupervised text segmentation
Project description
## Unsupervised Text Segmentation
### Install
sudo pip install uts
### Usage
```python
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)
```
### Install
sudo pip install uts
### Usage
```python
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)
```
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
uts-0.0.4.tar.gz
(5.4 kB
view hashes)
Built Distributions
uts-0.0.4-py3.4.egg
(12.0 kB
view hashes)
uts-0.0.4-py2.7.egg
(11.2 kB
view hashes)