Detect Language API Documentation

DetectLanguage

detectLanguage

Detects the language based on the parameter provided


/language/identify/{text}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/detect-language/language/identify/{text}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DetectLanguageApi;

import java.io.File;
import java.util.*;

public class DetectLanguageApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        DetectLanguageApi apiInstance = new DetectLanguageApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil
        try {
            inline_response_200 result = apiInstance.detectLanguage(apiecoKey, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectLanguageApi#detectLanguage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DetectLanguageApi;

public class DetectLanguageApiExample {

    public static void main(String[] args) {
        DetectLanguageApi apiInstance = new DetectLanguageApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil
        try {
            inline_response_200 result = apiInstance.detectLanguage(apiecoKey, text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectLanguageApi#detectLanguage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *text = text_example; // actual text in respective language - கர்த்தர் - return as tamil

DetectLanguageApi *apiInstance = [[DetectLanguageApi alloc] init];

// 
[apiInstance detectLanguageWith:apiecoKey
    text:text
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DetectLanguageApiDocumentation = require('detect_language_api_documentation');
var defaultClient = DetectLanguageApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new DetectLanguageApiDocumentation.DetectLanguageApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var text = text_example; // {String} actual text in respective language - கர்த்தர் - return as tamil


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.detectLanguage(apiecoKey, text, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class detectLanguageExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new DetectLanguageApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var text = text_example;  // String | actual text in respective language - கர்த்தர் - return as tamil

            try
            {
                // 
                inline_response_200 result = apiInstance.detectLanguage(apiecoKey, text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DetectLanguageApi.detectLanguage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\DetectLanguageApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil

try {
    $result = $api_instance->detectLanguage($apiecoKey, $text);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DetectLanguageApi->detectLanguage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DetectLanguageApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DetectLanguageApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $text = text_example; # String | actual text in respective language - கர்த்தர் - return as tamil

eval { 
    my $result = $api_instance->detectLanguage(apiecoKey => $apiecoKey, text => $text);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DetectLanguageApi->detectLanguage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DetectLanguageApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
text = text_example # String | actual text in respective language - கர்த்தர் - return as tamil

try: 
    # 
    api_response = api_instance.detect_language(apiecoKey, text)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DetectLanguageApi->detectLanguage: %s\n" % e)

Parameters

Path parameters
Name Description
text*
String
actual text in respective language - கர்த்தர் - return as tamil
Required
Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


DetectLanguagePrivateModel

detectLanguagePrivate

Detect the language based on the customized model data


/language/profile/{userEmail}/{ProfileName}

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/detect-language/language/profile/{userEmail}/{ProfileName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DetectLanguagePrivateModelApi;

import java.io.File;
import java.util.*;

public class DetectLanguagePrivateModelApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        DetectLanguagePrivateModelApi apiInstance = new DetectLanguagePrivateModelApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String userEmail = userEmail_example; // String | User Email who created the modell
        String profileName = profileName_example; // String | Custom Language Profile Namel
        try {
            inline_response_200 result = apiInstance.detectLanguagePrivate(apiecoKey, userEmail, profileName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectLanguagePrivateModelApi#detectLanguagePrivate");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DetectLanguagePrivateModelApi;

public class DetectLanguagePrivateModelApiExample {

    public static void main(String[] args) {
        DetectLanguagePrivateModelApi apiInstance = new DetectLanguagePrivateModelApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String userEmail = userEmail_example; // String | User Email who created the modell
        String profileName = profileName_example; // String | Custom Language Profile Namel
        try {
            inline_response_200 result = apiInstance.detectLanguagePrivate(apiecoKey, userEmail, profileName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectLanguagePrivateModelApi#detectLanguagePrivate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *userEmail = userEmail_example; // User Email who created the modell
String *profileName = profileName_example; // Custom Language Profile Namel

DetectLanguagePrivateModelApi *apiInstance = [[DetectLanguagePrivateModelApi alloc] init];

// 
[apiInstance detectLanguagePrivateWith:apiecoKey
    userEmail:userEmail
    profileName:profileName
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DetectLanguageApiDocumentation = require('detect_language_api_documentation');
var defaultClient = DetectLanguageApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new DetectLanguageApiDocumentation.DetectLanguagePrivateModelApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var userEmail = userEmail_example; // {String} User Email who created the modell

var profileName = profileName_example; // {String} Custom Language Profile Namel


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.detectLanguagePrivate(apiecoKey, userEmail, profileName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class detectLanguagePrivateExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new DetectLanguagePrivateModelApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var userEmail = userEmail_example;  // String | User Email who created the modell
            var profileName = profileName_example;  // String | Custom Language Profile Namel

            try
            {
                // 
                inline_response_200 result = apiInstance.detectLanguagePrivate(apiecoKey, userEmail, profileName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DetectLanguagePrivateModelApi.detectLanguagePrivate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\DetectLanguagePrivateModelApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$userEmail = userEmail_example; // String | User Email who created the modell
$profileName = profileName_example; // String | Custom Language Profile Namel

try {
    $result = $api_instance->detectLanguagePrivate($apiecoKey, $userEmail, $profileName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DetectLanguagePrivateModelApi->detectLanguagePrivate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DetectLanguagePrivateModelApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DetectLanguagePrivateModelApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $userEmail = userEmail_example; # String | User Email who created the modell
my $profileName = profileName_example; # String | Custom Language Profile Namel

eval { 
    my $result = $api_instance->detectLanguagePrivate(apiecoKey => $apiecoKey, userEmail => $userEmail, profileName => $profileName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DetectLanguagePrivateModelApi->detectLanguagePrivate: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DetectLanguagePrivateModelApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
userEmail = userEmail_example # String | User Email who created the modell
profileName = profileName_example # String | Custom Language Profile Namel

try: 
    # 
    api_response = api_instance.detect_language_private(apiecoKey, userEmail, profileName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DetectLanguagePrivateModelApi->detectLanguagePrivate: %s\n" % e)

Parameters

Path parameters
Name Description
userEmail*
String
User Email who created the modell
Required
ProfileName*
String
Custom Language Profile Namel
Required
Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input


TrainModelWithYourOwnData

trainModel

Upload your own respective language data, Train & Create your own model


/language/learn/

Usage and SDK Samples

curl -X POST -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/detect-language/language/learn/?useremail=&inptlabel1=&ccrprofname="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TrainModelWithYourOwnDataApi;

import java.io.File;
import java.util.*;

public class TrainModelWithYourOwnDataApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        TrainModelWithYourOwnDataApi apiInstance = new TrainModelWithYourOwnDataApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil
        String useremail = useremail_example; // String | User Email
        String inptdata1 = inptdata1_example; // String | This can be either filesrc / textsrcl
        String inptlabel1 = inptlabel1_example; // String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
        String ccrprofname = ccrprofname_example; // String | This can be either filesrc / textsrc
        String maxgram = maxgram_example; // String | maximum graml
        try {
            inline_response_200_1 result = apiInstance.trainModel(apiecoKey, text, useremail, inptdata1, inptlabel1, ccrprofname, maxgram);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrainModelWithYourOwnDataApi#trainModel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TrainModelWithYourOwnDataApi;

public class TrainModelWithYourOwnDataApiExample {

    public static void main(String[] args) {
        TrainModelWithYourOwnDataApi apiInstance = new TrainModelWithYourOwnDataApi();
        String apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
        String text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil
        String useremail = useremail_example; // String | User Email
        String inptdata1 = inptdata1_example; // String | This can be either filesrc / textsrcl
        String inptlabel1 = inptlabel1_example; // String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
        String ccrprofname = ccrprofname_example; // String | This can be either filesrc / textsrc
        String maxgram = maxgram_example; // String | maximum graml
        try {
            inline_response_200_1 result = apiInstance.trainModel(apiecoKey, text, useremail, inptdata1, inptlabel1, ccrprofname, maxgram);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrainModelWithYourOwnDataApi#trainModel");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

String *apiecoKey = apiecoKey_example; // Pet object that needs to be added to the store
String *text = text_example; // actual text in respective language - கர்த்தர் - return as tamil
String *useremail = useremail_example; // User Email
String *inptdata1 = inptdata1_example; // This can be either filesrc / textsrcl
String *inptlabel1 = inptlabel1_example; // Name of Learning Model That will be created, to which we will test our data againt to generate resultl
String *ccrprofname = ccrprofname_example; // This can be either filesrc / textsrc
String *maxgram = maxgram_example; // maximum graml

TrainModelWithYourOwnDataApi *apiInstance = [[TrainModelWithYourOwnDataApi alloc] init];

// 
[apiInstance trainModelWith:apiecoKey
    text:text
    useremail:useremail
    inptdata1:inptdata1
    inptlabel1:inptlabel1
    ccrprofname:ccrprofname
    maxgram:maxgram
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DetectLanguageApiDocumentation = require('detect_language_api_documentation');
var defaultClient = DetectLanguageApiDocumentation.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new DetectLanguageApiDocumentation.TrainModelWithYourOwnDataApi()

var apiecoKey = apiecoKey_example; // {String} Pet object that needs to be added to the store

var text = text_example; // {String} actual text in respective language - கர்த்தர் - return as tamil

var useremail = useremail_example; // {String} User Email

var inptdata1 = inptdata1_example; // {String} This can be either filesrc / textsrcl

var inptlabel1 = inptlabel1_example; // {String} Name of Learning Model That will be created, to which we will test our data againt to generate resultl

var ccrprofname = ccrprofname_example; // {String} This can be either filesrc / textsrc

var maxgram = maxgram_example; // {String} maximum graml


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trainModel(apiecoKey, text, useremail, inptdata1, inptlabel1, ccrprofname, maxgram, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class trainModelExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new TrainModelWithYourOwnDataApi();
            var apiecoKey = apiecoKey_example;  // String | Pet object that needs to be added to the store
            var text = text_example;  // String | actual text in respective language - கர்த்தர் - return as tamil
            var useremail = useremail_example;  // String | User Email
            var inptdata1 = inptdata1_example;  // String | This can be either filesrc / textsrcl
            var inptlabel1 = inptlabel1_example;  // String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
            var ccrprofname = ccrprofname_example;  // String | This can be either filesrc / textsrc
            var maxgram = maxgram_example;  // String | maximum graml

            try
            {
                // 
                inline_response_200_1 result = apiInstance.trainModel(apiecoKey, text, useremail, inptdata1, inptlabel1, ccrprofname, maxgram);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TrainModelWithYourOwnDataApi.trainModel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\TrainModelWithYourOwnDataApi();
$apiecoKey = apiecoKey_example; // String | Pet object that needs to be added to the store
$text = text_example; // String | actual text in respective language - கர்த்தர் - return as tamil
$useremail = useremail_example; // String | User Email
$inptdata1 = inptdata1_example; // String | This can be either filesrc / textsrcl
$inptlabel1 = inptlabel1_example; // String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
$ccrprofname = ccrprofname_example; // String | This can be either filesrc / textsrc
$maxgram = maxgram_example; // String | maximum graml

try {
    $result = $api_instance->trainModel($apiecoKey, $text, $useremail, $inptdata1, $inptlabel1, $ccrprofname, $maxgram);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrainModelWithYourOwnDataApi->trainModel: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TrainModelWithYourOwnDataApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::TrainModelWithYourOwnDataApi->new();
my $apiecoKey = apiecoKey_example; # String | Pet object that needs to be added to the store
my $text = text_example; # String | actual text in respective language - கர்த்தர் - return as tamil
my $useremail = useremail_example; # String | User Email
my $inptdata1 = inptdata1_example; # String | This can be either filesrc / textsrcl
my $inptlabel1 = inptlabel1_example; # String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
my $ccrprofname = ccrprofname_example; # String | This can be either filesrc / textsrc
my $maxgram = maxgram_example; # String | maximum graml

eval { 
    my $result = $api_instance->trainModel(apiecoKey => $apiecoKey, text => $text, useremail => $useremail, inptdata1 => $inptdata1, inptlabel1 => $inptlabel1, ccrprofname => $ccrprofname, maxgram => $maxgram);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TrainModelWithYourOwnDataApi->trainModel: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TrainModelWithYourOwnDataApi()
apiecoKey = apiecoKey_example # String | Pet object that needs to be added to the store
text = text_example # String | actual text in respective language - கர்த்தர் - return as tamil
useremail = useremail_example # String | User Email
inptdata1 = inptdata1_example # String | This can be either filesrc / textsrcl
inptlabel1 = inptlabel1_example # String | Name of Learning Model That will be created, to which we will test our data againt to generate resultl
ccrprofname = ccrprofname_example # String | This can be either filesrc / textsrc
maxgram = maxgram_example # String | maximum graml

try: 
    # 
    api_response = api_instance.train_model(apiecoKey, text, useremail, inptdata1, inptlabel1, ccrprofname, maxgram)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TrainModelWithYourOwnDataApi->trainModel: %s\n" % e)

Parameters

Path parameters
Name Description
text*
String
actual text in respective language - கர்த்தர் - return as tamil
Required
inptdata1*
String
This can be either filesrc / textsrcl
Required
maxgram*
String
maximum graml
Required
Header parameters
Name Description
apieco-key*
String
Pet object that needs to be added to the store
Required
Query parameters
Name Description
useremail*
String
User Email
Required
inptlabel1*
String
Name of Learning Model That will be created, to which we will test our data againt to generate resultl
Required
ccrprofname*
String
This can be either filesrc / textsrc
Required

Responses

Status: 200 - Successful

Status: 405 - Invalid input