Skip to main content

NLP Toolbox

Project description

Reason

License PyPI Downloads Lines Activity

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


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 details)

Uploaded Source

Built Distribution

reason-0.2.0-py3-none-any.whl (232.0 kB view details)

Uploaded Python 3

File details

Details for the file reason-0.2.0.tar.gz.

File metadata

  • Download URL: reason-0.2.0.tar.gz
  • Upload date:
  • Size: 221.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4

File hashes

Hashes for reason-0.2.0.tar.gz
Algorithm Hash digest
SHA256 428bc7631cce2137ab9d281f57e34b13e873ad84f33e25c84f1b601392910e20
MD5 715ebddeb35fc7f7732dbaa78eafdeae
BLAKE2b-256 019542a5417a57eada2263a97b324297e7c2a86f2080b447f57270e854272cc1

See more details on using hashes here.

File details

Details for the file reason-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: reason-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 232.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4

File hashes

Hashes for reason-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37fcf0f5f4fd1a2061b8ba33ad35e7780de07404ac86d532d0aeca4abba618d2
MD5 20374edb146675297ea9dc16c787601f
BLAKE2b-256 480fe2d5a2806eec4a5a7bcdf5fed2265369b032c677db786da42c06c3c0db4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page