Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

freenlpc-0.2.3-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page