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.3.tar.gz
(7.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freenlpc-0.2.3.tar.gz.
File metadata
- Download URL: freenlpc-0.2.3.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 |
ddb14f2863897cca5c389b75fec01893deb4f51031142d31f58b57e912c62b37
|
|
| MD5 |
d3614ac1ccf03161978e4bc0d1089f8e
|
|
| BLAKE2b-256 |
06d9c08b31b64201b29b4b824a573c9351ff24e9a98935f161f88887a4242f0d
|
File details
Details for the file freenlpc-0.2.3-py3-none-any.whl.
File metadata
- Download URL: freenlpc-0.2.3-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 |
b6ae43e57fbd3ffe03942d81f67c551f88a69eec0e82e9a564ff7c020471b4fd
|
|
| MD5 |
7b5d0db7058514b0660595c5d3b5988b
|
|
| BLAKE2b-256 |
3fe5e7a2747a22295cd157baed3f420c183ceeb450baae4e4b3d393a64629c9e
|