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.1.2.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.1.2.tar.gz
.
File metadata
- Download URL: freenlpc-0.1.2.tar.gz
- Upload date:
- Size: 4.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 | 0cadd9c0ab75ccf52c837b9f9d492f04a422d49cde0381a7902dd1627af7bd84 |
|
MD5 | 68b5cc44db630f2c7c060e81983ca1fc |
|
BLAKE2b-256 | 84771097c772773ca12d5715efeb076493d398b7bca7af8ff3fba728f7149014 |
File details
Details for the file freenlpc-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | 56a550e21a66572f24be9e3a715e6325d9ae6c70f87700a9362fbe59550605e6 |
|
MD5 | 639c28de7dcf2fec1951f4b74a27a14c |
|
BLAKE2b-256 | 5d1a1ca272a55e46143b4859763509437c275d7a05e24966b286b24a8eb581a6 |