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.6.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.1.6.tar.gz
.
File metadata
- Download URL: freenlpc-0.1.6.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f14686a2a77451fa689d4512918d52956eccb7447117752c05e10c00d61639b7 |
|
MD5 | de5fb9d1e1ec766a1b3d1077f76c8e1e |
|
BLAKE2b-256 | 166b3041c05fea4f27dbb877b31ff576bf017d0d95b785d3301b0c7dd024555c |
File details
Details for the file freenlpc-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.1.6-py3-none-any.whl
- Upload date:
- Size: 5.6 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 | 93d9cce412f38bada81e3c884e045b0f8d5920e6ca0717df329cd5358402436d |
|
MD5 | 919f646b4bdd9292cdcb7165c12dfe06 |
|
BLAKE2b-256 | 57481dcddc85014b3e99d0e89e809f01f47a6d3303e5d45ea748369ce55df300 |