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.7.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file freenlpc-0.1.7.tar.gz
.
File metadata
- Download URL: freenlpc-0.1.7.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 | 240a093a5329cbc3a6dbf0b022fc497a688d83af5522ffa0ed0bbb8065abcb07 |
|
MD5 | 49719fecdaced7a3292d4dee59d86133 |
|
BLAKE2b-256 | ee420882b8c05a18763fcd597525ea22e030187e552b8da8f742daa5a39df6f1 |
File details
Details for the file freenlpc-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: freenlpc-0.1.7-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 | c6f13f6dc0b0a364b003dcc419bf3b4e93d5a2e0a21587cecabaa870c926a5f8 |
|
MD5 | 714a32c3f537517505eacf0de4263aee |
|
BLAKE2b-256 | 6444998264385240f6024caf486f7114a30a6a336d4153f625988c0e2221f3e2 |