------
Word and sentence tokenization in Python.
[](https://badge.fury.io/py/ciseau)
[](https://travis-ci.org/JonathanRaiman/ciseau)

[](LICENSE.md)
Usage
-----
Use this package to split up strings according to sentence and word boundaries.
For instance, to simply break up strings into tokens:
```
tokenize("Joey was a great sailor.")
#=> ["Joey ", "was ", "a ", "great ", "sailor ", "."]
```
To also detect sentence boundaries:
```
sent_tokenize("Cat sat mat. Cat's named Cool.", keep_whitespace=True)
#=> [["Cat ", "sat ", "mat", ". "], ["Cat ", "'s ", "named ", "Cool", "."]]
```
`sent_tokenize` can keep the whitespace as-is with the flags `keep_whitespace=True` and `normalize_ascii=False`.
Installation
------------
```
pip3 install ciseau
```
Testing
-------
Run `nose2`.
If you find this project useful for your work or research, here's how you can cite it:
```latex
@misc{RaimanCiseau2017,
author = {Raiman, Jonathan},
title = {Ciseau},
year = {2017},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/jonathanraiman/ciseau}},
commit = {fe88b9d7f131b88bcdd2ff361df60b6d1cc64c04}
}
```
Metadata
Release files for ciseau 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ciseau-1.0.1.tar.gz | 10.3 kB | Without provenance | Details for ciseau-1.0.1.tar.gz |
Release files / ciseau-1.0.1.tar.gz
| Download URL | ciseau-1.0.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a316b9131f48dda54ea41dae25fc4adead04a3050c52c1ce2c0936a94f78e3ad
|
|
BLAKE2b-256 checksum How to use checksums |
0bbe2ba2d3a6dbffc69797471c7e691153c40949879f1719264a8f3b16271ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ciseau 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.