NLP Toolbox
Project description
Reason
Python easy-to-use natural language processing toolbox.
Install
Install latest stable version using pip:
pip install reason
Quick-Start
Word tokenize:
>>> from reason.tokenize import word_tokenize
>>> text = "Testing reason0.1.0, (on: 127.0.0.1). Cool stuff..."
>>> word_tokenize(text, 'alphanumeric')
['Testing', 'reason0.1.0', 'on', '127.0.0.1', 'Cool', 'stuff']
Sentence tokenize:
>>> from reason.tokenize import sent_tokenize
>>> text = "Hey, what's up? I love using Reason library!"
>>> sents = sent_tokenize(text, 'alphanumeric')
>>> for sent in sents:
... print(sent)
Hey, what's up?
I love using Reason library!
Dependencies
Keep in mind NumPy will be automatically installed with Reason.
License
MIT -- See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
reason-0.2.0.tar.gz
(221.3 kB
view hashes)
Built Distribution
reason-0.2.0-py3-none-any.whl
(232.0 kB
view hashes)