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.2.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.2.2.tar.gz
.
File metadata
- Download URL: freenlpc-0.2.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9150bba1b5c1b51bd7feb38f79833d7f27139ac4799983a3b193d5fc0de83a1c |
|
MD5 | 1e8f982f95616df7d230f54b0906802a |
|
BLAKE2b-256 | fd8313e28637e94f176e5fd292480dcfeede774675c32f8629105ff7cafe7621 |
File details
Details for the file freenlpc-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.3 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 | aef816a3ad42acea8378fe3b27c50de6cccecb17a9d43ab5dc2513a49c3bc286 |
|
MD5 | fc44d083031e0bedab65cfc16614df1b |
|
BLAKE2b-256 | fe311cbb99e8ab9036e022993dc82ac1346971d788ed0c142c015f46de92ecd3 |