A wrapper for nlpcloud free-tier services with no requests per minute limits.
Project description
freenlpc
a wrapper for nlpcloud free-tier.
FEATURES
- wrappes all the important nlpcloud free-tier models in one object.
- no rate limit per minute error, it will just keep on trying until it gets the response.
- you can initialize it with more than one API token, if one reached the rate limit it will automatically switch to the other API token.
AVAILABLE TASKS
- classification
- dialog summary
- headline generation
- entities extraction
- question answering
- semantic similarity
- sentiment/emotions analysis
- summarization
- embeddings
- translation
- language detection
- tokenization and lemmatization
- sentence dependencies
INSTALLATION
pip install freenlpc
USAGE
from freenlpc import FreeNlpc
tokens = ["token1", "token2"] # your nlpcloud api token/s
nlpc = FreeNlpc(tokens)
# then use whatever task you want
result = nlpc.sentiment_emotions("i am feelin happy")
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
freenlpc-0.1.9.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.1.9.tar.gz
.
File metadata
- Download URL: freenlpc-0.1.9.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a058ca445e0c7638aa2f45c2681b48d2d071448990ab6774443cff92f648a31a |
|
MD5 | 5d7797d9d8fcc4241a6e775c11b3979b |
|
BLAKE2b-256 | 8728dfe5c81e610b1d2fbeb031d939a97a5b763974a6a27c575d3d0ce83fdb11 |
File details
Details for the file freenlpc-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.1.9-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96da51bd28aa256b40b076a789dbc1d04dc85c0526c6ed2d710c8fe91ca2a327 |
|
MD5 | 998c703b4162c3db0a7eca6828ed5f9b |
|
BLAKE2b-256 | 34f0b7982476967d908ad65be32a37fbaf837f50c8bb79257f382adac3f7b387 |