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.2.1.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.2.1.tar.gz
.
File metadata
- Download URL: freenlpc-0.2.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46d9dd189c36b44b1370670eeae8efb8320264e73024602b6399fb4648ccbf2e |
|
MD5 | c6f847a0410439a2c0ce1657d04c20ea |
|
BLAKE2b-256 | f520cd6ed642b92ed2e3205b844c656e5336fb4e6192834ad3d112a2c025db51 |
File details
Details for the file freenlpc-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 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 | 62bea089433f6d4d86c19c5d4eb5d2f42abbbe0c303f361c2da212018ce26e16 |
|
MD5 | b5a931166bf5d6953c439599ba1ad980 |
|
BLAKE2b-256 | 06f24b1148f4d3950592276575ac37e57998fd4b201403e6d7ea14a93929a485 |