Skip to main content

This plugin detect language from given string with meaningcloud API

Project description

Language detection Plugin

The purpose of this plugin is detect language from given string with meaningcloud API

Configuration

This node requires configuration. You need have an account in meaningcloud to get access to API.

Example

{
  "source": {
    "id": "<source-id>"
  },
  "message": "Hello world!",
  "timeout": 10
}
  • source.id - enter your resource id with access token, See below for resource schema.
  • message - enter your message.
  • timeout - response time-out.

Resource configuration

Example

{
  "token": "<token>"
}

Please register to https://www.meaningcloud.com/developer/account/subscriptions to obtain token.

Use Api-Token resource template in GUI to create this kind of resource.

Input

This node does not process input payload.

Output

This node returns json with API response at response port if API call was successful.

Example of successful call

{
  "status": 200,
  "body": {
    "deepTime": 0.04363226890563965,
    "language_list": [
      {
        "iso-639-1": "en",
        "iso-639-2": "eng",
        "iso-639-3": "eng",
        "language": "en",
        "name": "English",
        "relevance": 100
      }
    ],
    "status": {
      "code": 0,
      "msg": "OK",
      "credits": 1,
      "remainig_credits": 19964
    },
    "time": 0.04784107208251953
  }
}

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

tracardi-language-detection-0.6.0.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

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