Skip to main content

No project description provided

Project description

client.marian

A client for interacting with Marian-NMT websocket server (see MarianNMT).

Usage

from marian_client import MarianClient

host = "0.0.0.0" 
port = "5000"

mc = MarianClient(PORT=port, HOST=host)

tokenized_sentence = "Alice like cats ."

success, corrected_sentence, error_info = mc(tokenized_sentence)

if success:
    print(corrected_sentence)
else:
    print(f"Call to MarianClient failed with error code {error_info[0]} and message {error_info[1]}")

Installation

pip install marian-client

License

Unlicensed.

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

marian-client-0.3.0.tar.gz (2.4 kB view hashes)

Uploaded Source

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