Skip to main content

A Python client library for the Aristech Natural-Language-Processing API.

Project description

Aristech NLP-Client for Python

This is the Python client implementation for the Aristech NLP-Server.

Installation

The package is not published to PyPI yet but will be soon.

Usage

from aristech_nlp_client import NlpClient

client = NlpClient(host='nlp.example.com')
data = client.synthesize(SpeechRequest(
    text='Hello, world!',
    options=SpeechRequestOption(
      voice_id='some-voice-id'
    )
))
with open('output.wav', 'wb') as f:
    f.write(data)

There are several examples in the examples directory:

  • functions.py: Demonstrates how to list the available functions.
  • process.py: Demonstrates how to perform NLP processing on a text.
  • projects.py: Demonstrates how to list the available projects.
  • intents.py: Demonstrates how to list intents for a project.
  • scoreLimits.py: Demonstrates how to use score limits to figure out good thresholds for intents.
  • content.py: Demonstrates how to search content for a given prompt.

You can run the examples directly using python like this:

  1. Create a .env file in the python directory:
HOST=nlp.example.com
# The credentials are optional but probably required for most servers:
TOKEN=your-token
SECRET=your-secret

# The following are optional:
# ROOT_CERT=your-root-cert.pem # If the server uses a self-signed certificate
# PROJECT_ID=some-project-id # Required for some examples
  1. Run the examples, e.g.:
python examples/functions.py

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

aristech_nlp_client-1.0.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aristech_nlp_client-1.0.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file aristech_nlp_client-1.0.0.tar.gz.

File metadata

  • Download URL: aristech_nlp_client-1.0.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for aristech_nlp_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 534662d9b186f48c13b751d230cabc7f97d3ef3e1f53e8be2e8e4f14b1df9058
MD5 8c55b70cb4063ec8c213e8159e427129
BLAKE2b-256 d8fc8f1205707f8b0d87ca8daae2a2861e36d1bfcba8b7d9127a3e1f65d0eff0

See more details on using hashes here.

File details

Details for the file aristech_nlp_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aristech_nlp_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f08729416d2d41853b31f7480c316fea8a7fd13a5f6fe5d6ad22ee4321c759d
MD5 2218fb2ccb64afb5a27d6e359561ee83
BLAKE2b-256 df3180290cfef2c5a1011a342c96c27e3d7bdf60ab860b6a97513acf90449ecb

See more details on using hashes here.

Supported by

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