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
- entity extraction
- question answering
- semantic similarity
- sentiment/emotions analysis
- summarization
- embeddings
- translation
- language detection
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.0.9.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.0.9.tar.gz
.
File metadata
- Download URL: freenlpc-0.0.9.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a4c5bee5b241c5d760f9f395ad3707ecdf588e293c40c9549685e5a0b40af4 |
|
MD5 | 743fce0b3e04ad8af97de75eae66cb1a |
|
BLAKE2b-256 | 2ab76667a45c4826128792e8fa474c99ba2b0034dd9d489e87e441360be659e6 |
File details
Details for the file freenlpc-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64d765748162f83505dd382de01ddc83c82efa8015438179b12eaac1a3ea1d10 |
|
MD5 | a5123c5a95a2c05479854d3ce4cf6320 |
|
BLAKE2b-256 | 31eab2fc5c7d4223aeb55f80f2b4a38281d5be3c6a68d38041ffde0cb9e8cd91 |