Text-Mining

InformationRetrieval

keywordExtraction

استخراج کلمات کلیدی متن

این ابزار به منظور شناسایی و وزن‌دهی به کلیدواژه‌های اصلی متن استفاده می‌شود. عبارات کلیدی متن، کلمات یا عباراتی هستند که فرد با دیدن آنها متوجه موضوع و محتوای کلی متن نوشته شده می‌شود. در این ابزار، شما می‌توانید تعداد کلیدواژه موردنظر، حداکثر تعداد کلمات (بخش) عبارات کلیدی و الگوریتم وزن‌دهی به عبارات کلیدی را مشخص کنید.


/api/InformationRetrieval/KeywordExtraction

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/InformationRetrieval/KeywordExtraction"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InformationRetrievalApi;

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

public class InformationRetrievalApiExample {

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

        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        KeywordExtractionModel inputModel = ; // KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع
        try {
            map['String', Double] result = apiInstance.keywordExtraction(inputModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#keywordExtraction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InformationRetrievalApi;

public class InformationRetrievalApiExample {

    public static void main(String[] args) {
        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        KeywordExtractionModel inputModel = ; // KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع
        try {
            map['String', Double] result = apiInstance.keywordExtraction(inputModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#keywordExtraction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

KeywordExtractionModel *inputModel = ; // پارامترهای ورودی موردنیاز تابع (optional)

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

// استخراج کلمات کلیدی متن
[apiInstance keywordExtractionWith:inputModel
              completionHandler: ^(map['String', Double] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.InformationRetrievalApi()

var opts = { 
  'inputModel':  // {KeywordExtractionModel} پارامترهای ورودی موردنیاز تابع
};

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

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

            var apiInstance = new InformationRetrievalApi();
            var inputModel = new KeywordExtractionModel(); // KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع (optional) 

            try
            {
                // استخراج کلمات کلیدی متن
                map['String', Double] result = apiInstance.keywordExtraction(inputModel);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InformationRetrievalApi.keywordExtraction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\InformationRetrievalApi();
$inputModel = ; // KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع

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

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

my $api_instance = WWW::SwaggerClient::InformationRetrievalApi->new();
my $inputModel = WWW::SwaggerClient::Object::KeywordExtractionModel->new(); # KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع

eval { 
    my $result = $api_instance->keywordExtraction(inputModel => $inputModel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InformationRetrievalApi->keywordExtraction: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.InformationRetrievalApi()
inputModel =  # KeywordExtractionModel | پارامترهای ورودی موردنیاز تابع (optional)

try: 
    # استخراج کلمات کلیدی متن
    api_response = api_instance.keyword_extraction(inputModel=inputModel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InformationRetrievalApi->keywordExtraction: %s\n" % e)

Parameters

Body parameters
Name Description
inputModel

Responses

Status: 200 - Success


stopWordRemoval

حذف کلمات توقف (فاقد ارزش معنایی) از متن

کار این ابزار حذف علائم، اعداد و کلمات عمومی و بدون ارزش معنایی (از قبیل: از، در، با، به، است، پس، …) در جمله است. <para> در بسیاری از کاربردهای بازیابی اطلاعات، حذف لغات کم‌اهمیت(توقف یا نویز) که شاخصه متن(معناساز) نیستند، باعث بهبود دقت و سرعت الگوریتم‌های متن‌کاوی شوند.در این ابزار علاوه بر علائم و حدود 500 کلمه بی‌ارزش می‌توانید انواع توکن‌های اعداد، ایمیل، آدرس صفحات وب یا شناسه شبکه‌های اجتماعی را به اختیار حذف کنید. </para>


/api/InformationRetrieval/StopWordRemoval

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/InformationRetrieval/StopWordRemoval"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InformationRetrievalApi;

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

public class InformationRetrievalApiExample {

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

        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        String inputText = inputText_example; // String | متن ورودی (دارای کلمات توقف)
        try {
            'String' result = apiInstance.stopWordRemoval(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#stopWordRemoval");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InformationRetrievalApi;

public class InformationRetrievalApiExample {

    public static void main(String[] args) {
        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        String inputText = inputText_example; // String | متن ورودی (دارای کلمات توقف)
        try {
            'String' result = apiInstance.stopWordRemoval(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#stopWordRemoval");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (دارای کلمات توقف) (optional)

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

// حذف کلمات توقف (فاقد ارزش معنایی) از متن
[apiInstance stopWordRemovalWith:inputText
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.InformationRetrievalApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی (دارای کلمات توقف)
};

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

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

            var apiInstance = new InformationRetrievalApi();
            var inputText = inputText_example;  // String | متن ورودی (دارای کلمات توقف) (optional) 

            try
            {
                // حذف کلمات توقف (فاقد ارزش معنایی) از متن
                'String' result = apiInstance.stopWordRemoval(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InformationRetrievalApi.stopWordRemoval: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\InformationRetrievalApi();
$inputText = inputText_example; // String | متن ورودی (دارای کلمات توقف)

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

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

my $api_instance = WWW::SwaggerClient::InformationRetrievalApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی (دارای کلمات توقف)

eval { 
    my $result = $api_instance->stopWordRemoval(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InformationRetrievalApi->stopWordRemoval: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.InformationRetrievalApi()
inputText = inputText_example # String | متن ورودی (دارای کلمات توقف) (optional)

try: 
    # حذف کلمات توقف (فاقد ارزش معنایی) از متن
    api_response = api_instance.stop_word_removal(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InformationRetrievalApi->stopWordRemoval: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


wordCloudGeneration

ترسیم ابر کلمات

رسم تصویر ابر کلمات براساس لیست کلمات کلیدی بهمراه وزن هر کلمه با فونت‌ها و رنگ‌بندی متنوع


/api/InformationRetrieval/WordCloudGeneration

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/InformationRetrieval/WordCloudGeneration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InformationRetrievalApi;

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

public class InformationRetrievalApiExample {

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

        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        WordCloudModel model = ; // WordCloudModel | 
        try {
            apiInstance.wordCloudGeneration(model);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#wordCloudGeneration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.InformationRetrievalApi;

public class InformationRetrievalApiExample {

    public static void main(String[] args) {
        InformationRetrievalApi apiInstance = new InformationRetrievalApi();
        WordCloudModel model = ; // WordCloudModel | 
        try {
            apiInstance.wordCloudGeneration(model);
        } catch (ApiException e) {
            System.err.println("Exception when calling InformationRetrievalApi#wordCloudGeneration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

WordCloudModel *model = ; //  (optional)

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

// ترسیم ابر کلمات
[apiInstance wordCloudGenerationWith:model
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.InformationRetrievalApi()

var opts = { 
  'model':  // {WordCloudModel} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.wordCloudGeneration(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new InformationRetrievalApi();
            var model = new WordCloudModel(); // WordCloudModel |  (optional) 

            try
            {
                // ترسیم ابر کلمات
                apiInstance.wordCloudGeneration(model);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling InformationRetrievalApi.wordCloudGeneration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\InformationRetrievalApi();
$model = ; // WordCloudModel | 

try {
    $api_instance->wordCloudGeneration($model);
} catch (Exception $e) {
    echo 'Exception when calling InformationRetrievalApi->wordCloudGeneration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::InformationRetrievalApi;

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

my $api_instance = WWW::SwaggerClient::InformationRetrievalApi->new();
my $model = WWW::SwaggerClient::Object::WordCloudModel->new(); # WordCloudModel | 

eval { 
    $api_instance->wordCloudGeneration(model => $model);
};
if ($@) {
    warn "Exception when calling InformationRetrievalApi->wordCloudGeneration: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.InformationRetrievalApi()
model =  # WordCloudModel |  (optional)

try: 
    # ترسیم ابر کلمات
    api_instance.word_cloud_generation(model=model)
except ApiException as e:
    print("Exception when calling InformationRetrievalApi->wordCloudGeneration: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


LanguageDetection

predict

شناسایی نوع زبان

این تابع حدود 60 نوع زبان را برای متن ورودی شناسایی کند <para><see href="https://iso639-3.sil.org/code_tables/639/data/all" /></para><para>خروجی نام اختصاری (مخفف) زبان متن مطابق استاندارد ایزو 639/1 است که میتواند شامل یکی از موارد ذیل باشد.</para><para> ### زبانهای با الفبای مشابه فارسی: ### - **fa** : Persian (فارسی) - **ar** : Arabic (عربی) - **azb** : Azerbaijani (آذری) - **ckb** : Central Kurdish (کُردی) - **glk** : Gilaki (گیلکی) - **lrc** : Luri (لوری) - **mzn** : Mazanderani (مازندرانی) - **pnb** : Western Panjabi (کوردی پنجابی) - **ps** : Pashto, Pushto (پشتو) - **ur** : Urdu (اردو) </para><para>باید توجه شود که با توجه به اشتراک کلمات در بین زبانهای مختلف، در متن های کوتاه (تعداد کلمات کم) احتمال بروز خطا وجود دارد.</para><para> ### زبانهای با الفبای غیر فارسی/عربی: ### - **af** : Afrikaans - **bg** : Bulgarian - **bn** : Bengali - **cs** : Czech - **da** : Danish - **de** : German - **el** : Greek - **en** : English - **es** : Spanish - **et** : Estonian - **fi** : Finnish - **fr** : French - **gu** : Gujarati - **he** : Hebrew (عبری) - **hi** : Hindi - **hr** : Croatian - **hu** : Hungarian - **id** : Indonesian - **it** : Italian - **ja** : Japanese - **kn** : Kannada - **ko** : Korean - **lt** : Lithuanian - **lv** : Latvian - **mk** : Macedonian - **ml** : Malayalam - **mr** : Marathi - **ne** : Nepali - **nl** : Dutch - **no** : Norwegian - **pa** : Punjabi - **pl** : Polish - **pt** : Portuguese - **ro** : Romanian - **ru** : Russian - **sk** : Slovak - **sl** : Slovenian - **so** : Somali - **sq** : Albanian - **sv** : Swedish - **sw** : Swahili - **ta** : Tamil - **te** : Telugu - **th** : Thai - **tl** : Filipino - **tr** : Turkish - **uk** : Ukrainian - **vi** : Vietnamese - **zh-cn** : Chinese (Simplified) - **zh-tw** : Chinese (Traditional) </para>


/api/LanguageDetection/Predict

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/LanguageDetection/Predict"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LanguageDetectionApi;

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

public class LanguageDetectionApiExample {

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

        LanguageDetectionApi apiInstance = new LanguageDetectionApi();
        String inputText = inputText_example; // String | The input text.
        try {
            'String' result = apiInstance.predict(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguageDetectionApi#predict");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LanguageDetectionApi;

public class LanguageDetectionApiExample {

    public static void main(String[] args) {
        LanguageDetectionApi apiInstance = new LanguageDetectionApi();
        String inputText = inputText_example; // String | The input text.
        try {
            'String' result = apiInstance.predict(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LanguageDetectionApi#predict");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // The input text. (optional)

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

// شناسایی نوع زبان
[apiInstance predictWith:inputText
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.LanguageDetectionApi()

var opts = { 
  'inputText': inputText_example // {String} The input text.
};

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

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

            var apiInstance = new LanguageDetectionApi();
            var inputText = inputText_example;  // String | The input text. (optional) 

            try
            {
                // شناسایی نوع زبان
                'String' result = apiInstance.predict(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LanguageDetectionApi.predict: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\LanguageDetectionApi();
$inputText = inputText_example; // String | The input text.

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

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

my $api_instance = WWW::SwaggerClient::LanguageDetectionApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | The input text.

eval { 
    my $result = $api_instance->predict(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LanguageDetectionApi->predict: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LanguageDetectionApi()
inputText = inputText_example # String | The input text. (optional)

try: 
    # شناسایی نوع زبان
    api_response = api_instance.predict(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LanguageDetectionApi->predict: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


NamedEntityRecognition

detect

شناسایی انواع موجودیت‌های نام‌دار

این تابع پنج نوع از موجودیت‌های متن را شناسایی و برچسب‌گذاری می‌کند. <para> تگ (برچسب)های خروجی: - **O** : عدم وجود موجودیت - **B-PER** : شروع موجودیت شخص یا نام فرد - **I-PER** : ادامه موجودیت شخص یا نام فرد - **B-LOC** : شروع موجودیت مکان یا محل خاص - **I-LOC** : ادامه موجودیت مکان یا محل خاص - **B-ORG** : شروع موجودیت نام سازمان یا تشکل - **I-ORG** : ادامه موجودیت نام سازمان یا تشکل - **B-DAT** : شروع موجودیت تاریخ یا زمان - **I-DAT** : ادامه موجودیت تاریخ یا زمان - **B-EVE** : شروع موجودیت رویداد یا حادثه - **I-EVE** : ادامه موجودیت رویداد یا حادثه </para>


/api/NamedEntityRecognition/Detect

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/NamedEntityRecognition/Detect"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NamedEntityRecognitionApi;

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

public class NamedEntityRecognitionApiExample {

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

        NamedEntityRecognitionApi apiInstance = new NamedEntityRecognitionApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array[Phrase] result = apiInstance.detect(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NamedEntityRecognitionApi#detect");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NamedEntityRecognitionApi;

public class NamedEntityRecognitionApiExample {

    public static void main(String[] args) {
        NamedEntityRecognitionApi apiInstance = new NamedEntityRecognitionApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array[Phrase] result = apiInstance.detect(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NamedEntityRecognitionApi#detect");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// شناسایی انواع موجودیت‌های نام‌دار
[apiInstance detectWith:inputText
              completionHandler: ^(array[Phrase] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.NamedEntityRecognitionApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new NamedEntityRecognitionApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // شناسایی انواع موجودیت‌های نام‌دار
                array[Phrase] result = apiInstance.detect(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NamedEntityRecognitionApi.detect: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\NamedEntityRecognitionApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::NamedEntityRecognitionApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->detect(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NamedEntityRecognitionApi->detect: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.NamedEntityRecognitionApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # شناسایی انواع موجودیت‌های نام‌دار
    api_response = api_instance.detect(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NamedEntityRecognitionApi->detect: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


PosTagger

getPos

تابع تعیین برچسب نقش ادات سخن

این تابع عملیات برچسب زنی نقش (اسم، ضمیر، انواع صفت، انواع قید، فعل، ...) کلمات در جمله را انجام می دهد.


/api/PosTagger/GetPos

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PosTagger/GetPos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PosTaggerApi;

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

public class PosTaggerApiExample {

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

        PosTaggerApi apiInstance = new PosTaggerApi();
        String text = text_example; // String | متن ورودی
        try {
            array[Phrase] result = apiInstance.getPos(text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PosTaggerApi#getPos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PosTaggerApi;

public class PosTaggerApiExample {

    public static void main(String[] args) {
        PosTaggerApi apiInstance = new PosTaggerApi();
        String text = text_example; // String | متن ورودی
        try {
            array[Phrase] result = apiInstance.getPos(text);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PosTaggerApi#getPos");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *text = text_example; // متن ورودی (optional)

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

// تابع تعیین برچسب نقش ادات سخن
[apiInstance getPosWith:text
              completionHandler: ^(array[Phrase] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PosTaggerApi()

var opts = { 
  'text': text_example // {String} متن ورودی
};

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

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

            var apiInstance = new PosTaggerApi();
            var text = text_example;  // String | متن ورودی (optional) 

            try
            {
                // تابع تعیین برچسب نقش ادات سخن
                array[Phrase] result = apiInstance.getPos(text);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PosTaggerApi.getPos: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PosTaggerApi();
$text = text_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::PosTaggerApi->new();
my $text = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->getPos(text => $text);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PosTaggerApi->getPos: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PosTaggerApi()
text = text_example # String | متن ورودی (optional)

try: 
    # تابع تعیین برچسب نقش ادات سخن
    api_response = api_instance.get_pos(text=text)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PosTaggerApi->getPos: %s\n" % e)

Parameters

Body parameters
Name Description
text

Responses

Status: 200 - Success


PreProcessing

normalizePersianWord

نرمال‌سازی متن ورودی

متن ورودی را با یکسان‌سازی حروف صفحه کلیدهای مختلف به فارسی استاندارد، اصلاح نیم‌فاصله و فاصه‌ها، تبدیل به متن استاندارد می‌کند


/api/PreProcessing/NormalizePersianWord

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PreProcessing/NormalizePersianWord"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreProcessingApi;

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

public class PreProcessingApiExample {

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

        PreProcessingApi apiInstance = new PreProcessingApi();
        NormalizerModel model = ; // NormalizerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.normalizePersianWord(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#normalizePersianWord");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreProcessingApi;

public class PreProcessingApiExample {

    public static void main(String[] args) {
        PreProcessingApi apiInstance = new PreProcessingApi();
        NormalizerModel model = ; // NormalizerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.normalizePersianWord(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#normalizePersianWord");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

NormalizerModel *model = ; // پارامترهای ورودی (optional)

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

// نرمال‌سازی متن ورودی
[apiInstance normalizePersianWordWith:model
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PreProcessingApi()

var opts = { 
  'model':  // {NormalizerModel} پارامترهای ورودی
};

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

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

            var apiInstance = new PreProcessingApi();
            var model = new NormalizerModel(); // NormalizerModel | پارامترهای ورودی (optional) 

            try
            {
                // نرمال‌سازی متن ورودی
                'String' result = apiInstance.normalizePersianWord(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PreProcessingApi.normalizePersianWord: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PreProcessingApi();
$model = ; // NormalizerModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::PreProcessingApi->new();
my $model = WWW::SwaggerClient::Object::NormalizerModel->new(); # NormalizerModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->normalizePersianWord(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreProcessingApi->normalizePersianWord: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PreProcessingApi()
model =  # NormalizerModel | پارامترهای ورودی (optional)

try: 
    # نرمال‌سازی متن ورودی
    api_response = api_instance.normalize_persian_word(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreProcessingApi->normalizePersianWord: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSplitter

تقطیع جملات متن

در این تابع شناسایی مرز جملات ساده/مرکب (جمله مرکب غیر تودرتو) متن ورودی انجام می‌شود


/api/PreProcessing/SentenceSplitter

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PreProcessing/SentenceSplitter"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreProcessingApi;

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

public class PreProcessingApiExample {

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

        PreProcessingApi apiInstance = new PreProcessingApi();
        SentenceSplitterModel model = ; // SentenceSplitterModel | پارامترهای ورودی
        try {
            array['String'] result = apiInstance.sentenceSplitter(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#sentenceSplitter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreProcessingApi;

public class PreProcessingApiExample {

    public static void main(String[] args) {
        PreProcessingApi apiInstance = new PreProcessingApi();
        SentenceSplitterModel model = ; // SentenceSplitterModel | پارامترهای ورودی
        try {
            array['String'] result = apiInstance.sentenceSplitter(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#sentenceSplitter");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

SentenceSplitterModel *model = ; // پارامترهای ورودی (optional)

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

// تقطیع جملات متن
[apiInstance sentenceSplitterWith:model
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PreProcessingApi()

var opts = { 
  'model':  // {SentenceSplitterModel} پارامترهای ورودی
};

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

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

            var apiInstance = new PreProcessingApi();
            var model = new SentenceSplitterModel(); // SentenceSplitterModel | پارامترهای ورودی (optional) 

            try
            {
                // تقطیع جملات متن
                array['String'] result = apiInstance.sentenceSplitter(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PreProcessingApi.sentenceSplitter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PreProcessingApi();
$model = ; // SentenceSplitterModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::PreProcessingApi->new();
my $model = WWW::SwaggerClient::Object::SentenceSplitterModel->new(); # SentenceSplitterModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSplitter(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreProcessingApi->sentenceSplitter: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PreProcessingApi()
model =  # SentenceSplitterModel | پارامترهای ورودی (optional)

try: 
    # تقطیع جملات متن
    api_response = api_instance.sentence_splitter(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreProcessingApi->sentenceSplitter: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSplitterAndTokenize

تقطیع جملات و توکن‌های متن

در این تابع شناسایی مرز جملات ساده/مرکب و جداسازی کلمات (توکن‌ها) آن انجام می‌شود


/api/PreProcessing/SentenceSplitterAndTokenize

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PreProcessing/SentenceSplitterAndTokenize"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreProcessingApi;

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

public class PreProcessingApiExample {

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

        PreProcessingApi apiInstance = new PreProcessingApi();
        SentenceSplitterModel model = ; // SentenceSplitterModel | پارامترهای ورودی
        try {
            array[array['String']] result = apiInstance.sentenceSplitterAndTokenize(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#sentenceSplitterAndTokenize");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreProcessingApi;

public class PreProcessingApiExample {

    public static void main(String[] args) {
        PreProcessingApi apiInstance = new PreProcessingApi();
        SentenceSplitterModel model = ; // SentenceSplitterModel | پارامترهای ورودی
        try {
            array[array['String']] result = apiInstance.sentenceSplitterAndTokenize(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#sentenceSplitterAndTokenize");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

SentenceSplitterModel *model = ; // پارامترهای ورودی (optional)

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

// تقطیع جملات و توکن‌های متن
[apiInstance sentenceSplitterAndTokenizeWith:model
              completionHandler: ^(array[array['String']] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PreProcessingApi()

var opts = { 
  'model':  // {SentenceSplitterModel} پارامترهای ورودی
};

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

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

            var apiInstance = new PreProcessingApi();
            var model = new SentenceSplitterModel(); // SentenceSplitterModel | پارامترهای ورودی (optional) 

            try
            {
                // تقطیع جملات و توکن‌های متن
                array[array['String']] result = apiInstance.sentenceSplitterAndTokenize(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PreProcessingApi.sentenceSplitterAndTokenize: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PreProcessingApi();
$model = ; // SentenceSplitterModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::PreProcessingApi->new();
my $model = WWW::SwaggerClient::Object::SentenceSplitterModel->new(); # SentenceSplitterModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSplitterAndTokenize(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreProcessingApi->sentenceSplitterAndTokenize: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PreProcessingApi()
model =  # SentenceSplitterModel | پارامترهای ورودی (optional)

try: 
    # تقطیع جملات و توکن‌های متن
    api_response = api_instance.sentence_splitter_and_tokenize(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreProcessingApi->sentenceSplitterAndTokenize: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


tokenize

تقطیع کلمات (توکن) متن

در این تابع شناسایی توکن/کلمات متن ورودی انجام می‌شود


/api/PreProcessing/Tokenize

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PreProcessing/Tokenize"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreProcessingApi;

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

public class PreProcessingApiExample {

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

        PreProcessingApi apiInstance = new PreProcessingApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array['String'] result = apiInstance.tokenize(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#tokenize");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreProcessingApi;

public class PreProcessingApiExample {

    public static void main(String[] args) {
        PreProcessingApi apiInstance = new PreProcessingApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array['String'] result = apiInstance.tokenize(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#tokenize");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// تقطیع کلمات (توکن) متن
[apiInstance tokenizeWith:inputText
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PreProcessingApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new PreProcessingApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // تقطیع کلمات (توکن) متن
                array['String'] result = apiInstance.tokenize(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PreProcessingApi.tokenize: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PreProcessingApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::PreProcessingApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->tokenize(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreProcessingApi->tokenize: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PreProcessingApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # تقطیع کلمات (توکن) متن
    api_response = api_instance.tokenize(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreProcessingApi->tokenize: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


tokenizeWithType

تقطیع توکن های متن بهمراه تعیین نوع آنها

در این تابع جداسازی و شناسایی انواع توکن/کلمات متن ورودی با استفاده از عبارات باقاعده انجام می‌شود <para> ### انواع توکن ها: ### - **Word (1)** : A collection of letters. - **Separator (2)** : Separator or delimiter characters. - **Number (3)** : A number without a decimal point or a floating-point number. - **Phone (4)** : Phone number formatting. e.g. 0903444786 or 021-8830 5641 - **Email (5)** : Email formatting. e.g. hi@text-mining.ir - **WebAddress (6)** : A website address formatting. - **SocialId (7)** : A social id formatting. e.g. @text-mining - **HashTag (8)** : A hashtag formatting. e.g. #text_mining - **Emoji (9)** : A small digital image or icon used to express an idea or emotion. - **Abbreviation (10)** : A shortened form of a word or phrase. e.g. B.B.C or ن.ت.ت - **DateTime (11)** : A standard date or time format for Persian language. e.g. 1398/1/26 or 21:13 </para>


/api/PreProcessing/TokenizeWithType

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/PreProcessing/TokenizeWithType"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PreProcessingApi;

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

public class PreProcessingApiExample {

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

        PreProcessingApi apiInstance = new PreProcessingApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array[KeyValuePair['String',TokenType]] result = apiInstance.tokenizeWithType(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#tokenizeWithType");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PreProcessingApi;

public class PreProcessingApiExample {

    public static void main(String[] args) {
        PreProcessingApi apiInstance = new PreProcessingApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            array[KeyValuePair['String',TokenType]] result = apiInstance.tokenizeWithType(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreProcessingApi#tokenizeWithType");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// تقطیع توکن های متن بهمراه تعیین نوع آنها
[apiInstance tokenizeWithTypeWith:inputText
              completionHandler: ^(array[KeyValuePair['String',TokenType]] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.PreProcessingApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new PreProcessingApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // تقطیع توکن های متن بهمراه تعیین نوع آنها
                array[KeyValuePair['String',TokenType]] result = apiInstance.tokenizeWithType(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PreProcessingApi.tokenizeWithType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\PreProcessingApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::PreProcessingApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->tokenizeWithType(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreProcessingApi->tokenizeWithType: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PreProcessingApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # تقطیع توکن های متن بهمراه تعیین نوع آنها
    api_response = api_instance.tokenize_with_type(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreProcessingApi->tokenizeWithType: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


SentimentAnalyzer

sentimentClassifier

تحلیل حسی (3-کلاسه) - نسخه آزمایشی

<para> با استفاده از این ابزار نوع و میزان رضایتمندی افراد یا مشتریان از روی متن نوشته شده آنها مشخص می‌شود. </para> ### برچسب خروجی: ### - **0** : Negative (منفی) - **1** : Neutral (خنثی) - **2** : Positive (مثبت)


/api/SentimentAnalyzer/SentimentClassifier

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/SentimentAnalyzer/SentimentClassifier"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SentimentAnalyzerApi;

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

public class SentimentAnalyzerApiExample {

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

        SentimentAnalyzerApi apiInstance = new SentimentAnalyzerApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            'String' result = apiInstance.sentimentClassifier(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SentimentAnalyzerApi#sentimentClassifier");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SentimentAnalyzerApi;

public class SentimentAnalyzerApiExample {

    public static void main(String[] args) {
        SentimentAnalyzerApi apiInstance = new SentimentAnalyzerApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            'String' result = apiInstance.sentimentClassifier(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SentimentAnalyzerApi#sentimentClassifier");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// تحلیل حسی (3-کلاسه) - نسخه آزمایشی
[apiInstance sentimentClassifierWith:inputText
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.SentimentAnalyzerApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new SentimentAnalyzerApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // تحلیل حسی (3-کلاسه) - نسخه آزمایشی
                'String' result = apiInstance.sentimentClassifier(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SentimentAnalyzerApi.sentimentClassifier: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\SentimentAnalyzerApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::SentimentAnalyzerApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->sentimentClassifier(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SentimentAnalyzerApi->sentimentClassifier: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.SentimentAnalyzerApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # تحلیل حسی (3-کلاسه) - نسخه آزمایشی
    api_response = api_instance.sentiment_classifier(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SentimentAnalyzerApi->sentimentClassifier: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


Stemmer

lemmatizePhrase2Phrase

ریشه‌یابی عبارات

ریشه‌یابی چندسطحی کلمه بدون تغییر مفهوم اصلی کلمه در جمله با استفاده از ترکیب دو رویکرد مبتنی بر فرهنگ لغات و قواعد ریخت‌شناسی انجام میشود


/api/Stemmer/LemmatizePhrase2Phrase

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Stemmer/LemmatizePhrase2Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StemmerApi;

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

public class StemmerApiExample {

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

        StemmerApi apiInstance = new StemmerApi();
        StemmerModel model = ; // StemmerModel | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizePhrase2Phrase(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizePhrase2Phrase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StemmerApi;

public class StemmerApiExample {

    public static void main(String[] args) {
        StemmerApi apiInstance = new StemmerApi();
        StemmerModel model = ; // StemmerModel | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizePhrase2Phrase(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizePhrase2Phrase");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

StemmerModel *model = ; // پارامترهای ورودی (optional)

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

// ریشه‌یابی عبارات
[apiInstance lemmatizePhrase2PhraseWith:model
              completionHandler: ^(array[Phrase] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.StemmerApi()

var opts = { 
  'model':  // {StemmerModel} پارامترهای ورودی
};

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

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

            var apiInstance = new StemmerApi();
            var model = new StemmerModel(); // StemmerModel | پارامترهای ورودی (optional) 

            try
            {
                // ریشه‌یابی عبارات
                array[Phrase] result = apiInstance.lemmatizePhrase2Phrase(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StemmerApi.lemmatizePhrase2Phrase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StemmerApi();
$model = ; // StemmerModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::StemmerApi->new();
my $model = WWW::SwaggerClient::Object::StemmerModel->new(); # StemmerModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->lemmatizePhrase2Phrase(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StemmerApi->lemmatizePhrase2Phrase: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StemmerApi()
model =  # StemmerModel | پارامترهای ورودی (optional)

try: 
    # ریشه‌یابی عبارات
    api_response = api_instance.lemmatize_phrase2_phrase(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StemmerApi->lemmatizePhrase2Phrase: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


lemmatizeText2Phrase

ریشه‌یابی متن

ریشه‌یابی چندسطحی کلمات (بن واژه) با استفاده از ترکیب دو رویکرد مبتنی بر فرهنگ لغات و قواعد ریخت‌شناسی انجام میشود <para> برای نمایش ریشه افعال شکل گذشته ساده درنظر گرفته میشود و سایر اطلاعات صرفی فعل در متغیر ذیل وجود دارد: <para>verbInformation</para></para>


/api/Stemmer/LemmatizeText2Phrase

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Stemmer/LemmatizeText2Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StemmerApi;

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

public class StemmerApiExample {

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

        StemmerApi apiInstance = new StemmerApi();
        StemmerModel model = ; // StemmerModel | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizeText2Phrase(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeText2Phrase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StemmerApi;

public class StemmerApiExample {

    public static void main(String[] args) {
        StemmerApi apiInstance = new StemmerApi();
        StemmerModel model = ; // StemmerModel | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizeText2Phrase(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeText2Phrase");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

StemmerModel *model = ; // پارامترهای ورودی (optional)

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

// ریشه‌یابی متن
[apiInstance lemmatizeText2PhraseWith:model
              completionHandler: ^(array[Phrase] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.StemmerApi()

var opts = { 
  'model':  // {StemmerModel} پارامترهای ورودی
};

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

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

            var apiInstance = new StemmerApi();
            var model = new StemmerModel(); // StemmerModel | پارامترهای ورودی (optional) 

            try
            {
                // ریشه‌یابی متن
                array[Phrase] result = apiInstance.lemmatizeText2Phrase(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StemmerApi.lemmatizeText2Phrase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StemmerApi();
$model = ; // StemmerModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::StemmerApi->new();
my $model = WWW::SwaggerClient::Object::StemmerModel->new(); # StemmerModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->lemmatizeText2Phrase(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StemmerApi->lemmatizeText2Phrase: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StemmerApi()
model =  # StemmerModel | پارامترهای ورودی (optional)

try: 
    # ریشه‌یابی متن
    api_response = api_instance.lemmatize_text2_phrase(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StemmerApi->lemmatizeText2Phrase: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


lemmatizeText2Text

ریشه‌یابی متن


/api/Stemmer/LemmatizeText2Text

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Stemmer/LemmatizeText2Text"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StemmerApi;

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

public class StemmerApiExample {

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

        StemmerApi apiInstance = new StemmerApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            'String' result = apiInstance.lemmatizeText2Text(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeText2Text");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StemmerApi;

public class StemmerApiExample {

    public static void main(String[] args) {
        StemmerApi apiInstance = new StemmerApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            'String' result = apiInstance.lemmatizeText2Text(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeText2Text");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// ریشه‌یابی متن
[apiInstance lemmatizeText2TextWith:inputText
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.StemmerApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new StemmerApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // ریشه‌یابی متن
                'String' result = apiInstance.lemmatizeText2Text(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StemmerApi.lemmatizeText2Text: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StemmerApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::StemmerApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->lemmatizeText2Text(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StemmerApi->lemmatizeText2Text: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StemmerApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # ریشه‌یابی متن
    api_response = api_instance.lemmatize_text2_text(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StemmerApi->lemmatizeText2Text: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


lemmatizeWords2Phrase

ریشه‌یابی لیست کلمات ورودی

ریشه‌یابی چندسطحی کلمات (بن واژه) با استفاده از ترکیب دو رویکرد مبتنی بر فرهنگ لغات و قواعد ریخت‌شناسی انجام میشود


/api/Stemmer/LemmatizeWords2Phrase

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Stemmer/LemmatizeWords2Phrase"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StemmerApi;

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

public class StemmerApiExample {

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

        StemmerApi apiInstance = new StemmerApi();
        array[String] words = ; // array[String] | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizeWords2Phrase(words);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeWords2Phrase");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StemmerApi;

public class StemmerApiExample {

    public static void main(String[] args) {
        StemmerApi apiInstance = new StemmerApi();
        array[String] words = ; // array[String] | پارامترهای ورودی
        try {
            array[Phrase] result = apiInstance.lemmatizeWords2Phrase(words);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StemmerApi#lemmatizeWords2Phrase");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

array[String] *words = ; // پارامترهای ورودی (optional)

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

// ریشه‌یابی لیست کلمات ورودی
[apiInstance lemmatizeWords2PhraseWith:words
              completionHandler: ^(array[Phrase] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.StemmerApi()

var opts = { 
  'words':  // {array[String]} پارامترهای ورودی
};

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

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

            var apiInstance = new StemmerApi();
            var words = new array[String](); // array[String] | پارامترهای ورودی (optional) 

            try
            {
                // ریشه‌یابی لیست کلمات ورودی
                array[Phrase] result = apiInstance.lemmatizeWords2Phrase(words);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StemmerApi.lemmatizeWords2Phrase: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StemmerApi();
$words = ; // array[String] | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::StemmerApi->new();
my $words = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | پارامترهای ورودی

eval { 
    my $result = $api_instance->lemmatizeWords2Phrase(words => $words);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StemmerApi->lemmatizeWords2Phrase: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.StemmerApi()
words =  # array[String] | پارامترهای ورودی (optional)

try: 
    # ریشه‌یابی لیست کلمات ورودی
    api_response = api_instance.lemmatize_words2_phrase(words=words)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StemmerApi->lemmatizeWords2Phrase: %s\n" % e)

Parameters

Body parameters
Name Description
words

Responses

Status: 200 - Success


TextRefinement

formalConverter

تبدیل کلمات محاوره‌ای به رسمی

کلمات محاوره‌ای درون متن به شکل (معادل) رسمی آنها تبدیل می‌شود


/api/TextRefinement/FormalConverter

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextRefinement/FormalConverter"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextRefinementApi;

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

public class TextRefinementApiExample {

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

        TextRefinementApi apiInstance = new TextRefinementApi();
        String inputText = inputText_example; // String | متن محاوره ای ورودی
        try {
            'String' result = apiInstance.formalConverter(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#formalConverter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextRefinementApi;

public class TextRefinementApiExample {

    public static void main(String[] args) {
        TextRefinementApi apiInstance = new TextRefinementApi();
        String inputText = inputText_example; // String | متن محاوره ای ورودی
        try {
            'String' result = apiInstance.formalConverter(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#formalConverter");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن محاوره ای ورودی (optional)

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

// تبدیل کلمات محاوره‌ای به رسمی
[apiInstance formalConverterWith:inputText
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextRefinementApi()

var opts = { 
  'inputText': inputText_example // {String} متن محاوره ای ورودی
};

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

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

            var apiInstance = new TextRefinementApi();
            var inputText = inputText_example;  // String | متن محاوره ای ورودی (optional) 

            try
            {
                // تبدیل کلمات محاوره‌ای به رسمی
                'String' result = apiInstance.formalConverter(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextRefinementApi.formalConverter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextRefinementApi();
$inputText = inputText_example; // String | متن محاوره ای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextRefinementApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن محاوره ای ورودی

eval { 
    my $result = $api_instance->formalConverter(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextRefinementApi->formalConverter: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextRefinementApi()
inputText = inputText_example # String | متن محاوره ای ورودی (optional)

try: 
    # تبدیل کلمات محاوره‌ای به رسمی
    api_response = api_instance.formal_converter(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextRefinementApi->formalConverter: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


spellCorrector

اصلاح اشتباهات تایپی

این تابع اشتباهات تایپی/املایی متن ورودی با توجه به لیست کلمات فارسی اصلاح میکند


/api/TextRefinement/SpellCorrector

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextRefinement/SpellCorrector"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextRefinementApi;

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

public class TextRefinementApiExample {

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

        TextRefinementApi apiInstance = new TextRefinementApi();
        SpellCheckerModel model = ; // SpellCheckerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.spellCorrector(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#spellCorrector");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextRefinementApi;

public class TextRefinementApiExample {

    public static void main(String[] args) {
        TextRefinementApi apiInstance = new TextRefinementApi();
        SpellCheckerModel model = ; // SpellCheckerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.spellCorrector(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#spellCorrector");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

SpellCheckerModel *model = ; // پارامترهای ورودی (optional)

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

// اصلاح اشتباهات تایپی
[apiInstance spellCorrectorWith:model
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextRefinementApi()

var opts = { 
  'model':  // {SpellCheckerModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextRefinementApi();
            var model = new SpellCheckerModel(); // SpellCheckerModel | پارامترهای ورودی (optional) 

            try
            {
                // اصلاح اشتباهات تایپی
                'String' result = apiInstance.spellCorrector(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextRefinementApi.spellCorrector: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextRefinementApi();
$model = ; // SpellCheckerModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextRefinementApi->new();
my $model = WWW::SwaggerClient::Object::SpellCheckerModel->new(); # SpellCheckerModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->spellCorrector(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextRefinementApi->spellCorrector: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextRefinementApi()
model =  # SpellCheckerModel | پارامترهای ورودی (optional)

try: 
    # اصلاح اشتباهات تایپی
    api_response = api_instance.spell_corrector(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextRefinementApi->spellCorrector: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


spellCorrectorInContext

اصلاح کلمات (پیشنهاد کلمات صحیح) با توجه به زمینه متن

این تابع اشتباهات تایپی/املایی متن ورودی با توجه به محتوای جمله اصلاح میکند


/api/TextRefinement/SpellCorrectorInContext

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextRefinement/SpellCorrectorInContext"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextRefinementApi;

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

public class TextRefinementApiExample {

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

        TextRefinementApi apiInstance = new TextRefinementApi();
        SpellCheckerModel model = ; // SpellCheckerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.spellCorrectorInContext(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#spellCorrectorInContext");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextRefinementApi;

public class TextRefinementApiExample {

    public static void main(String[] args) {
        TextRefinementApi apiInstance = new TextRefinementApi();
        SpellCheckerModel model = ; // SpellCheckerModel | پارامترهای ورودی
        try {
            'String' result = apiInstance.spellCorrectorInContext(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#spellCorrectorInContext");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

SpellCheckerModel *model = ; // پارامترهای ورودی (optional)

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

// اصلاح کلمات (پیشنهاد کلمات صحیح) با توجه به زمینه متن
[apiInstance spellCorrectorInContextWith:model
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextRefinementApi()

var opts = { 
  'model':  // {SpellCheckerModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextRefinementApi();
            var model = new SpellCheckerModel(); // SpellCheckerModel | پارامترهای ورودی (optional) 

            try
            {
                // اصلاح کلمات (پیشنهاد کلمات صحیح) با توجه به زمینه متن
                'String' result = apiInstance.spellCorrectorInContext(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextRefinementApi.spellCorrectorInContext: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextRefinementApi();
$model = ; // SpellCheckerModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextRefinementApi->new();
my $model = WWW::SwaggerClient::Object::SpellCheckerModel->new(); # SpellCheckerModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->spellCorrectorInContext(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextRefinementApi->spellCorrectorInContext: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextRefinementApi()
model =  # SpellCheckerModel | پارامترهای ورودی (optional)

try: 
    # اصلاح کلمات (پیشنهاد کلمات صحیح) با توجه به زمینه متن
    api_response = api_instance.spell_corrector_in_context(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextRefinementApi->spellCorrectorInContext: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


swearWordTagger

شناسایی کلمات زشت و رکیک

این تابع کلمات زشت/ناسزا (در دو سطح از اهانت) را تشخیص و تعیین میکند <para> ### برچسب خروجی: ### - **{}** : عبارت زشت یافت نشد - **MildSwearWord** : عبارت دارای اهانت خفیف یا دووجهی - **StrongSwearWord** : عبارت دارای اهانت شدید </para>


/api/TextRefinement/SwearWordTagger

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextRefinement/SwearWordTagger"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextRefinementApi;

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

public class TextRefinementApiExample {

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

        TextRefinementApi apiInstance = new TextRefinementApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            map['String', 'String'] result = apiInstance.swearWordTagger(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#swearWordTagger");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextRefinementApi;

public class TextRefinementApiExample {

    public static void main(String[] args) {
        TextRefinementApi apiInstance = new TextRefinementApi();
        String inputText = inputText_example; // String | متن ورودی
        try {
            map['String', 'String'] result = apiInstance.swearWordTagger(inputText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextRefinementApi#swearWordTagger");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *inputText = inputText_example; // متن ورودی (optional)

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

// شناسایی کلمات زشت و رکیک
[apiInstance swearWordTaggerWith:inputText
              completionHandler: ^(map['String', 'String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextRefinementApi()

var opts = { 
  'inputText': inputText_example // {String} متن ورودی
};

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

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

            var apiInstance = new TextRefinementApi();
            var inputText = inputText_example;  // String | متن ورودی (optional) 

            try
            {
                // شناسایی کلمات زشت و رکیک
                map['String', 'String'] result = apiInstance.swearWordTagger(inputText);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextRefinementApi.swearWordTagger: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextRefinementApi();
$inputText = inputText_example; // String | متن ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextRefinementApi->new();
my $inputText = WWW::SwaggerClient::Object::String->new(); # String | متن ورودی

eval { 
    my $result = $api_instance->swearWordTagger(inputText => $inputText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextRefinementApi->swearWordTagger: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextRefinementApi()
inputText = inputText_example # String | متن ورودی (optional)

try: 
    # شناسایی کلمات زشت و رکیک
    api_response = api_instance.swear_word_tagger(inputText=inputText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextRefinementApi->swearWordTagger: %s\n" % e)

Parameters

Body parameters
Name Description
inputText

Responses

Status: 200 - Success


TextSimilarity

extractSynonyms

استخراج مترادف‌های کلمات در لغتنامه های مختلف

این تابع کلمات هم‌معنی (معادل مفهومی) با کلمه ورودی در فرهنگ لغت‌های مختلف را برمی‌گرداند


/api/TextSimilarity/ExtractSynonyms

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/ExtractSynonyms"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        String word = word_example; // String | کلمه ورودی
        try {
            array['String'] result = apiInstance.extractSynonyms(word);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#extractSynonyms");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        String word = word_example; // String | کلمه ورودی
        try {
            array['String'] result = apiInstance.extractSynonyms(word);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#extractSynonyms");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *word = word_example; // کلمه ورودی (optional)

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

// استخراج مترادف‌های کلمات در لغتنامه های مختلف
[apiInstance extractSynonymsWith:word
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'word': word_example // {String} کلمه ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var word = word_example;  // String | کلمه ورودی (optional) 

            try
            {
                // استخراج مترادف‌های کلمات در لغتنامه های مختلف
                array['String'] result = apiInstance.extractSynonyms(word);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.extractSynonyms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$word = word_example; // String | کلمه ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $word = WWW::SwaggerClient::Object::String->new(); # String | کلمه ورودی

eval { 
    my $result = $api_instance->extractSynonyms(word => $word);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->extractSynonyms: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
word = word_example # String | کلمه ورودی (optional)

try: 
    # استخراج مترادف‌های کلمات در لغتنامه های مختلف
    api_response = api_instance.extract_synonyms(word=word)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->extractSynonyms: %s\n" % e)

Parameters

Body parameters
Name Description
word

Responses

Status: 200 - Success


getMostSimilarWord

دریافت کلمات مرتبط

این تابع تعداد مشخص شده (در پارامتر ورودی) از کلمات مرتبط (هم کاربرد) با کلمه ورودی را با استفاده از مدل تعبیه کلمات بازمی گرداند


/api/TextSimilarity/GetMostSimilarWord

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/GetMostSimilarWord"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        SimilarWordModel model = ; // SimilarWordModel | پارامترهای ورودی مورد نیاز
        try {
            array['String'] result = apiInstance.getMostSimilarWord(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getMostSimilarWord");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        SimilarWordModel model = ; // SimilarWordModel | پارامترهای ورودی مورد نیاز
        try {
            array['String'] result = apiInstance.getMostSimilarWord(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getMostSimilarWord");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

SimilarWordModel *model = ; // پارامترهای ورودی مورد نیاز (optional)

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

// دریافت کلمات مرتبط
[apiInstance getMostSimilarWordWith:model
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {SimilarWordModel} پارامترهای ورودی مورد نیاز
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new SimilarWordModel(); // SimilarWordModel | پارامترهای ورودی مورد نیاز (optional) 

            try
            {
                // دریافت کلمات مرتبط
                array['String'] result = apiInstance.getMostSimilarWord(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.getMostSimilarWord: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // SimilarWordModel | پارامترهای ورودی مورد نیاز

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::SimilarWordModel->new(); # SimilarWordModel | پارامترهای ورودی مورد نیاز

eval { 
    my $result = $api_instance->getMostSimilarWord(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->getMostSimilarWord: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # SimilarWordModel | پارامترهای ورودی مورد نیاز (optional)

try: 
    # دریافت کلمات مرتبط
    api_response = api_instance.get_most_similar_word(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->getMostSimilarWord: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


getStatisticalDistance

محاسبه فاصله آماری دو کلمه یا دو جمله براساس مدل تعبیه کلمات

فاصله (میزان عدم شباهت) دو کلمه یا دو جمله بر اساس رابطه واژگان از نظر استفاده و کاربرد در محتوای (پیکره) متنی با استفاده از مدل تعبیه کلمات محاسبه میشود


/api/TextSimilarity/GetStatisticalDistance

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/GetStatisticalDistance"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست)
        try {
            Float result = apiInstance.getStatisticalDistance(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getStatisticalDistance");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست)
        try {
            Float result = apiInstance.getStatisticalDistance(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getStatisticalDistance");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست) (optional)

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

// محاسبه فاصله آماری دو کلمه یا دو جمله براساس مدل تعبیه کلمات
[apiInstance getStatisticalDistanceWith:model
              completionHandler: ^(Float output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست)
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست) (optional) 

            try
            {
                // محاسبه فاصله آماری دو کلمه یا دو جمله براساس مدل تعبیه کلمات
                Float result = apiInstance.getStatisticalDistance(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.getStatisticalDistance: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست)

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست)

eval { 
    my $result = $api_instance->getStatisticalDistance(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->getStatisticalDistance: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (فقط مقدار String1 و String2 لازم هست) (optional)

try: 
    # محاسبه فاصله آماری دو کلمه یا دو جمله براساس مدل تعبیه کلمات
    api_response = api_instance.get_statistical_distance(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->getStatisticalDistance: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


getSyntacticDistance

محاسبه فاصله لغوی (کاراکتری) کلمات

این تابع میزان فاصله لغوی (بیش از 10 روش متداول شباهت و اشتراک کاراکتری و زیررشته‌ای) را محاسبه میکند <para> دقت شود که شباهت با فاصله رابطه عکس دارد </para><para> Similarity = 1 - Distance </para>


/api/TextSimilarity/GetSyntacticDistance

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/GetSyntacticDistance"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Float result = apiInstance.getSyntacticDistance(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getSyntacticDistance");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Float result = apiInstance.getSyntacticDistance(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#getSyntacticDistance");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (optional)

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

// محاسبه فاصله لغوی (کاراکتری) کلمات
[apiInstance getSyntacticDistanceWith:model
              completionHandler: ^(Float output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (optional) 

            try
            {
                // محاسبه فاصله لغوی (کاراکتری) کلمات
                Float result = apiInstance.getSyntacticDistance(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.getSyntacticDistance: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->getSyntacticDistance(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->getSyntacticDistance: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (optional)

try: 
    # محاسبه فاصله لغوی (کاراکتری) کلمات
    api_response = api_instance.get_syntactic_distance(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->getSyntacticDistance: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSimilarityBipartiteMatching

محاسبه شباهت دو جمله براساس انطباق کلمات با استفاده از گراف دوبخشی

بر مبنای میزان شباهت لغوی بین کلمات دو جمله، گراف دوبخشی شکل گرفته و سپس با محاسبه مجموع وزن یالهای انتخاب شده در انطباق بهینه کلمات مشابه در گراف دوبخشی، میزان شباهت بین دو جمله تعیین میشود


/api/TextSimilarity/SentenceSimilarityBipartiteMatching

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/SentenceSimilarityBipartiteMatching"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityBipartiteMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityBipartiteMatching");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityBipartiteMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityBipartiteMatching");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (optional)

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

// محاسبه شباهت دو جمله براساس انطباق کلمات با استفاده از گراف دوبخشی
[apiInstance sentenceSimilarityBipartiteMatchingWith:model
              completionHandler: ^(Double output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (optional) 

            try
            {
                // محاسبه شباهت دو جمله براساس انطباق کلمات با استفاده از گراف دوبخشی
                Double result = apiInstance.sentenceSimilarityBipartiteMatching(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.sentenceSimilarityBipartiteMatching: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSimilarityBipartiteMatching(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->sentenceSimilarityBipartiteMatching: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (optional)

try: 
    # محاسبه شباهت دو جمله براساس انطباق کلمات با استفاده از گراف دوبخشی
    api_response = api_instance.sentence_similarity_bipartite_matching(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->sentenceSimilarityBipartiteMatching: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSimilarityWithIntersectionMatching

محاسبه شباهت دو جمله براساس اشتراک کلمات

میزان شباهت دو جمله براساس تعداد اشتراک کلمات با استفاده از رابطه سورنسن تعیین میشود <para> حداقل فاصله لغوی دو کلمه برای اینکه یکسان فرض شوند در پارامترهای ورودی مشخص میشود </para>


/api/TextSimilarity/SentenceSimilarityWithIntersectionMatching

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/SentenceSimilarityWithIntersectionMatching"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithIntersectionMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithIntersectionMatching");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithIntersectionMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithIntersectionMatching");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (optional)

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

// محاسبه شباهت دو جمله براساس اشتراک کلمات
[apiInstance sentenceSimilarityWithIntersectionMatchingWith:model
              completionHandler: ^(Double output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (optional) 

            try
            {
                // محاسبه شباهت دو جمله براساس اشتراک کلمات
                Double result = apiInstance.sentenceSimilarityWithIntersectionMatching(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.sentenceSimilarityWithIntersectionMatching: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSimilarityWithIntersectionMatching(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->sentenceSimilarityWithIntersectionMatching: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (optional)

try: 
    # محاسبه شباهت دو جمله براساس اشتراک کلمات
    api_response = api_instance.sentence_similarity_with_intersection_matching(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->sentenceSimilarityWithIntersectionMatching: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSimilarityWithNGramMatching

محاسبه شباهت دو جمله براساس تعداد کلمات مشابه پشت سرهم

میزان شباهت دو جمله براساس بزرگترین توالی مشترک (نزدیک بهم) تعیین میشود <para> حداقل فاصله لغوی دو کلمه برای اینکه یکسان فرض شوند در پارامترهای ورودی مشخص میشود </para>


/api/TextSimilarity/SentenceSimilarityWithNGramMatching

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/SentenceSimilarityWithNGramMatching"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithNGramMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithNGramMatching");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithNGramMatching(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithNGramMatching");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (optional)

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

// محاسبه شباهت دو جمله براساس تعداد کلمات مشابه پشت سرهم
[apiInstance sentenceSimilarityWithNGramMatchingWith:model
              completionHandler: ^(Double output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (optional) 

            try
            {
                // محاسبه شباهت دو جمله براساس تعداد کلمات مشابه پشت سرهم
                Double result = apiInstance.sentenceSimilarityWithNGramMatching(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.sentenceSimilarityWithNGramMatching: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSimilarityWithNGramMatching(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->sentenceSimilarityWithNGramMatching: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (optional)

try: 
    # محاسبه شباهت دو جمله براساس تعداد کلمات مشابه پشت سرهم
    api_response = api_instance.sentence_similarity_with_n_gram_matching(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->sentenceSimilarityWithNGramMatching: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


sentenceSimilarityWithNearDuplicateDetector

محاسبه شباهت دو جمله براساس کلمات نزدیک بهم

میزان شباهت دو جمله براساس تطابق/مشابهت توکن ها براساس تعداد کاراکترهای متفاوت با استفاده از فاصله غیرنرمال لونشتاین تعیین میشود <para>این تابع دارای سرعت (کارایی) بالا و مناسب برای حجم بالای متون است</para>


/api/TextSimilarity/SentenceSimilarityWithNearDuplicateDetector

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/TextSimilarity/SentenceSimilarityWithNearDuplicateDetector"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TextSimilarityApi;

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

public class TextSimilarityApiExample {

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

        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithNearDuplicateDetector(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithNearDuplicateDetector");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TextSimilarityApi;

public class TextSimilarityApiExample {

    public static void main(String[] args) {
        TextSimilarityApi apiInstance = new TextSimilarityApi();
        TextSimilarityModel model = ; // TextSimilarityModel | پارامترهای ورودی
        try {
            Double result = apiInstance.sentenceSimilarityWithNearDuplicateDetector(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TextSimilarityApi#sentenceSimilarityWithNearDuplicateDetector");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

TextSimilarityModel *model = ; // پارامترهای ورودی (optional)

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

// محاسبه شباهت دو جمله براساس کلمات نزدیک بهم
[apiInstance sentenceSimilarityWithNearDuplicateDetectorWith:model
              completionHandler: ^(Double output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TextSimilarityApi()

var opts = { 
  'model':  // {TextSimilarityModel} پارامترهای ورودی
};

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

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

            var apiInstance = new TextSimilarityApi();
            var model = new TextSimilarityModel(); // TextSimilarityModel | پارامترهای ورودی (optional) 

            try
            {
                // محاسبه شباهت دو جمله براساس کلمات نزدیک بهم
                Double result = apiInstance.sentenceSimilarityWithNearDuplicateDetector(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TextSimilarityApi.sentenceSimilarityWithNearDuplicateDetector: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TextSimilarityApi();
$model = ; // TextSimilarityModel | پارامترهای ورودی

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

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

my $api_instance = WWW::SwaggerClient::TextSimilarityApi->new();
my $model = WWW::SwaggerClient::Object::TextSimilarityModel->new(); # TextSimilarityModel | پارامترهای ورودی

eval { 
    my $result = $api_instance->sentenceSimilarityWithNearDuplicateDetector(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TextSimilarityApi->sentenceSimilarityWithNearDuplicateDetector: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TextSimilarityApi()
model =  # TextSimilarityModel | پارامترهای ورودی (optional)

try: 
    # محاسبه شباهت دو جمله براساس کلمات نزدیک بهم
    api_response = api_instance.sentence_similarity_with_near_duplicate_detector(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TextSimilarityApi->sentenceSimilarityWithNearDuplicateDetector: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success


Token

getToken

دریافت کلید توکن

این تابع برای تبدیل کلید ای.پی.آی به توکن استفاده میشود <para> برای دریافت کلید به <see href="https://app.text-mining.ir" /> سامانه متن کاوی مراجعه فرمایید. </para>


/api/Token/GetToken

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Token/GetToken?apikey="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TokenApi;

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

public class TokenApiExample {

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

        TokenApi apiInstance = new TokenApi();
        String apikey = apikey_example; // String | کلید api
        try {
            apiInstance.getToken(apikey);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenApi#getToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TokenApi;

public class TokenApiExample {

    public static void main(String[] args) {
        TokenApi apiInstance = new TokenApi();
        String apikey = apikey_example; // String | کلید api
        try {
            apiInstance.getToken(apikey);
        } catch (ApiException e) {
            System.err.println("Exception when calling TokenApi#getToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

String *apikey = apikey_example; // کلید api (optional)

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

// دریافت کلید توکن
[apiInstance getTokenWith:apikey
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.TokenApi()

var opts = { 
  'apikey': apikey_example // {String} کلید api
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getToken(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            var apiInstance = new TokenApi();
            var apikey = apikey_example;  // String | کلید api (optional) 

            try
            {
                // دریافت کلید توکن
                apiInstance.getToken(apikey);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TokenApi.getToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\TokenApi();
$apikey = apikey_example; // String | کلید api

try {
    $api_instance->getToken($apikey);
} catch (Exception $e) {
    echo 'Exception when calling TokenApi->getToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TokenApi;

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

my $api_instance = WWW::SwaggerClient::TokenApi->new();
my $apikey = apikey_example; # String | کلید api

eval { 
    $api_instance->getToken(apikey => $apikey);
};
if ($@) {
    warn "Exception when calling TokenApi->getToken: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.TokenApi()
apikey = apikey_example # String | کلید api (optional)

try: 
    # دریافت کلید توکن
    api_instance.get_token(apikey=apikey)
except ApiException as e:
    print("Exception when calling TokenApi->getToken: %s\n" % e)

Parameters

Query parameters
Name Description
apikey
String
کلید api

Responses

Status: 200 - Success


Virastar

scanText

ویراستاری متن فارسی‌یار

بررسی و ویراستاری متن ورودی و پیشنهاد اصلاحات مربوط به نویسه‌ها، فاصله و نیم‌فاصله‌ها، جایگزینی طبق دستور زبان و آیین‌نامه مصوب فرهنگستان و همچنین غلط‌یاب املایی در متن فارسی (مطابق تنظیمات مشخص شده)


/api/Virastar/ScanText

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://api.apieco.ir/text-mining/api/Virastar/ScanText"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.VirastarApi;

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

public class VirastarApiExample {

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

        VirastarApi apiInstance = new VirastarApi();
        VirastarModel model = ; // VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار
        try {
            array[TokenInfo] result = apiInstance.scanText(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirastarApi#scanText");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.VirastarApi;

public class VirastarApiExample {

    public static void main(String[] args) {
        VirastarApi apiInstance = new VirastarApi();
        VirastarModel model = ; // VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار
        try {
            array[TokenInfo] result = apiInstance.scanText(model);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirastarApi#scanText");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

VirastarModel *model = ; // متن ورودی و تنظیمات ویراستار فارسی‌یار (optional)

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

// ویراستاری متن فارسی‌یار
[apiInstance scanTextWith:model
              completionHandler: ^(array[TokenInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var TextMining = require('text_mining');
var defaultClient = TextMining.ApiClient.instance;

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

var api = new TextMining.VirastarApi()

var opts = { 
  'model':  // {VirastarModel} متن ورودی و تنظیمات ویراستار فارسی‌یار
};

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

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

            var apiInstance = new VirastarApi();
            var model = new VirastarModel(); // VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار (optional) 

            try
            {
                // ویراستاری متن فارسی‌یار
                array[TokenInfo] result = apiInstance.scanText(model);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling VirastarApi.scanText: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\VirastarApi();
$model = ; // VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار

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

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

my $api_instance = WWW::SwaggerClient::VirastarApi->new();
my $model = WWW::SwaggerClient::Object::VirastarModel->new(); # VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار

eval { 
    my $result = $api_instance->scanText(model => $model);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirastarApi->scanText: $@\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: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.VirastarApi()
model =  # VirastarModel | متن ورودی و تنظیمات ویراستار فارسی‌یار (optional)

try: 
    # ویراستاری متن فارسی‌یار
    api_response = api_instance.scan_text(model=model)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirastarApi->scanText: %s\n" % e)

Parameters

Body parameters
Name Description
model

Responses

Status: 200 - Success