Synapseml  0.10.0
Public Member Functions | Static Public Member Functions | List of all members
Synapse.ML.Cognitive.DocumentTranslator Class Reference

DocumentTranslator implements DocumentTranslator More...

Inheritance diagram for Synapse.ML.Cognitive.DocumentTranslator:
Inheritance graph
[legend]
Collaboration diagram for Synapse.ML.Cognitive.DocumentTranslator:
Collaboration graph
[legend]

Public Member Functions

 DocumentTranslator ()
 Creates a DocumentTranslator without any parameters. More...
 
 DocumentTranslator (string uid)
 Creates a DocumentTranslator with a UID that is used to give the DocumentTranslator a unique ID. More...
 
DocumentTranslator SetBackoffs (int[] value)
 Sets value for backoffs More...
 
DocumentTranslator SetConcurrency (int value)
 Sets value for concurrency More...
 
DocumentTranslator SetConcurrentTimeout (double value)
 Sets value for concurrentTimeout More...
 
DocumentTranslator SetErrorCol (string value)
 Sets value for errorCol More...
 
DocumentTranslator SetFilterPrefix (string value)
 Sets value for filterPrefix More...
 
DocumentTranslator SetFilterPrefixCol (string value)
 Sets value for filterPrefix column More...
 
DocumentTranslator SetFilterSuffix (string value)
 Sets value for filterSuffix More...
 
DocumentTranslator SetFilterSuffixCol (string value)
 Sets value for filterSuffix column More...
 
DocumentTranslator SetInitialPollingDelay (int value)
 Sets value for initialPollingDelay More...
 
DocumentTranslator SetMaxPollingRetries (int value)
 Sets value for maxPollingRetries More...
 
DocumentTranslator SetOutputCol (string value)
 Sets value for outputCol More...
 
DocumentTranslator SetPollingDelay (int value)
 Sets value for pollingDelay More...
 
DocumentTranslator SetServiceName (string value)
 Sets value for serviceName More...
 
DocumentTranslator SetSourceLanguage (string value)
 Sets value for sourceLanguage More...
 
DocumentTranslator SetSourceLanguageCol (string value)
 Sets value for sourceLanguage column More...
 
DocumentTranslator SetSourceStorageSource (string value)
 Sets value for sourceStorageSource More...
 
DocumentTranslator SetSourceStorageSourceCol (string value)
 Sets value for sourceStorageSource column More...
 
DocumentTranslator SetSourceUrl (string value)
 Sets value for sourceUrl More...
 
DocumentTranslator SetSourceUrlCol (string value)
 Sets value for sourceUrl column More...
 
DocumentTranslator SetStorageType (string value)
 Sets value for storageType More...
 
DocumentTranslator SetStorageTypeCol (string value)
 Sets value for storageType column More...
 
DocumentTranslator SetSubscriptionKey (string value)
 Sets value for subscriptionKey More...
 
DocumentTranslator SetSubscriptionKeyCol (string value)
 Sets value for subscriptionKey column More...
 
DocumentTranslator SetSuppressMaxRetriesExceededException (bool value)
 Sets value for suppressMaxRetriesExceededException More...
 
DocumentTranslator SetTargets (TargetInput[] value)
 Sets value for targets More...
 
DocumentTranslator SetTargetsCol (string value)
 Sets value for targets column More...
 
DocumentTranslator SetTimeout (double value)
 Sets value for timeout More...
 
DocumentTranslator SetUrl (string value)
 Sets value for url More...
 
int [] GetBackoffs ()
 Gets backoffs value More...
 
int GetConcurrency ()
 Gets concurrency value More...
 
double GetConcurrentTimeout ()
 Gets concurrentTimeout value More...
 
string GetErrorCol ()
 Gets errorCol value More...
 
string GetFilterPrefix ()
 Gets filterPrefix value More...
 
string GetFilterSuffix ()
 Gets filterSuffix value More...
 
int GetInitialPollingDelay ()
 Gets initialPollingDelay value More...
 
int GetMaxPollingRetries ()
 Gets maxPollingRetries value More...
 
string GetOutputCol ()
 Gets outputCol value More...
 
int GetPollingDelay ()
 Gets pollingDelay value More...
 
string GetServiceName ()
 Gets serviceName value More...
 
string GetSourceLanguage ()
 Gets sourceLanguage value More...
 
string GetSourceStorageSource ()
 Gets sourceStorageSource value More...
 
string GetSourceUrl ()
 Gets sourceUrl value More...
 
string GetStorageType ()
 Gets storageType value More...
 
string GetSubscriptionKey ()
 Gets subscriptionKey value More...
 
bool GetSuppressMaxRetriesExceededException ()
 Gets suppressMaxRetriesExceededException value More...
 
TargetInput [] GetTargets ()
 Gets targets value More...
 
double GetTimeout ()
 Gets timeout value More...
 
string GetUrl ()
 Gets url value More...
 
void Save (string path)
 Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More...
 
JavaMLWriter Write ()
 
Returns
a JavaMLWriter instance for this ML instance.

 
JavaMLReader< DocumentTranslatorRead ()
 Get the corresponding JavaMLReader instance. More...
 
DocumentTranslator SetLinkedService (string value)
 Sets value for linkedService More...
 

Static Public Member Functions

static DocumentTranslator Load (string path)
 Loads the DocumentTranslator that was previously saved using Save(string). More...
 

Detailed Description

DocumentTranslator implements DocumentTranslator

Constructor & Destructor Documentation

◆ DocumentTranslator() [1/2]

Synapse.ML.Cognitive.DocumentTranslator.DocumentTranslator ( )
inline

Creates a DocumentTranslator without any parameters.

◆ DocumentTranslator() [2/2]

Synapse.ML.Cognitive.DocumentTranslator.DocumentTranslator ( string  uid)
inline

Creates a DocumentTranslator with a UID that is used to give the DocumentTranslator a unique ID.

Parameters
uidAn immutable unique ID for the object and its derivatives.

Member Function Documentation

◆ GetBackoffs()

int [] Synapse.ML.Cognitive.DocumentTranslator.GetBackoffs ( )

Gets backoffs value

Returns
backoffs: array of backoffs to use in the handler

◆ GetConcurrency()

int Synapse.ML.Cognitive.DocumentTranslator.GetConcurrency ( )

Gets concurrency value

Returns
concurrency: max number of concurrent calls

◆ GetConcurrentTimeout()

double Synapse.ML.Cognitive.DocumentTranslator.GetConcurrentTimeout ( )

Gets concurrentTimeout value

Returns
concurrentTimeout: max number seconds to wait on futures if concurrency >= 1

◆ GetErrorCol()

string Synapse.ML.Cognitive.DocumentTranslator.GetErrorCol ( )

Gets errorCol value

Returns
errorCol: column to hold http errors

◆ GetFilterPrefix()

string Synapse.ML.Cognitive.DocumentTranslator.GetFilterPrefix ( )

Gets filterPrefix value

Returns
filterPrefix: A case-sensitive prefix string to filter documents in the source path for translation. For example, when using an Azure storage blob Uri, use the prefix to restrict sub folders for translation.

◆ GetFilterSuffix()

string Synapse.ML.Cognitive.DocumentTranslator.GetFilterSuffix ( )

Gets filterSuffix value

Returns
filterSuffix: A case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.

◆ GetInitialPollingDelay()

int Synapse.ML.Cognitive.DocumentTranslator.GetInitialPollingDelay ( )

Gets initialPollingDelay value

Returns
initialPollingDelay: number of milliseconds to wait before first poll for result

◆ GetMaxPollingRetries()

int Synapse.ML.Cognitive.DocumentTranslator.GetMaxPollingRetries ( )

Gets maxPollingRetries value

Returns
maxPollingRetries: number of times to poll

◆ GetOutputCol()

string Synapse.ML.Cognitive.DocumentTranslator.GetOutputCol ( )

Gets outputCol value

Returns
outputCol: The name of the output column

◆ GetPollingDelay()

int Synapse.ML.Cognitive.DocumentTranslator.GetPollingDelay ( )

Gets pollingDelay value

Returns
pollingDelay: number of milliseconds to wait between polling

◆ GetServiceName()

string Synapse.ML.Cognitive.DocumentTranslator.GetServiceName ( )

Gets serviceName value

Returns
serviceName:

◆ GetSourceLanguage()

string Synapse.ML.Cognitive.DocumentTranslator.GetSourceLanguage ( )

Gets sourceLanguage value

Returns
sourceLanguage: Language code. If none is specified, we will perform auto detect on the document.

◆ GetSourceStorageSource()

string Synapse.ML.Cognitive.DocumentTranslator.GetSourceStorageSource ( )

Gets sourceStorageSource value

Returns
sourceStorageSource: Storage source of source input.

◆ GetSourceUrl()

string Synapse.ML.Cognitive.DocumentTranslator.GetSourceUrl ( )

Gets sourceUrl value

Returns
sourceUrl: Location of the folder / container or single file with your documents.

◆ GetStorageType()

string Synapse.ML.Cognitive.DocumentTranslator.GetStorageType ( )

Gets storageType value

Returns
storageType: Storage type of the input documents source string. Required for single document translation only.

◆ GetSubscriptionKey()

string Synapse.ML.Cognitive.DocumentTranslator.GetSubscriptionKey ( )

Gets subscriptionKey value

Returns
subscriptionKey: the API key to use

◆ GetSuppressMaxRetriesExceededException()

bool Synapse.ML.Cognitive.DocumentTranslator.GetSuppressMaxRetriesExceededException ( )

Gets suppressMaxRetriesExceededException value

Returns
suppressMaxRetriesExceededException: set true to suppress the maxumimum retries exception and report in the error column

◆ GetTargets()

TargetInput [] Synapse.ML.Cognitive.DocumentTranslator.GetTargets ( )
inline

Gets targets value

Returns
targets: Destination for the finished translated documents.

◆ GetTimeout()

double Synapse.ML.Cognitive.DocumentTranslator.GetTimeout ( )

Gets timeout value

Returns
timeout: number of seconds to wait before closing the connection

◆ GetUrl()

string Synapse.ML.Cognitive.DocumentTranslator.GetUrl ( )

Gets url value

Returns
url: Url of the service

◆ Load()

static DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.Load ( string  path)
static

Loads the DocumentTranslator that was previously saved using Save(string).

Parameters
pathThe path the previous DocumentTranslator was saved to
Returns
New DocumentTranslator object, loaded from path.

◆ Read()

JavaMLReader<DocumentTranslator> Synapse.ML.Cognitive.DocumentTranslator.Read ( )

Get the corresponding JavaMLReader instance.

Returns
an JavaMLReader<DocumentTranslator> instance for this ML instance.

◆ Save()

void Synapse.ML.Cognitive.DocumentTranslator.Save ( string  path)

Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.

Parameters
pathThe path to save the object to

◆ SetBackoffs()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetBackoffs ( int []  value)

Sets value for backoffs

Parameters
valuearray of backoffs to use in the handler
Returns
New DocumentTranslator object

◆ SetConcurrency()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetConcurrency ( int  value)

Sets value for concurrency

Parameters
valuemax number of concurrent calls
Returns
New DocumentTranslator object

◆ SetConcurrentTimeout()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetConcurrentTimeout ( double  value)

Sets value for concurrentTimeout

Parameters
valuemax number seconds to wait on futures if concurrency >= 1
Returns
New DocumentTranslator object

◆ SetErrorCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetErrorCol ( string  value)

Sets value for errorCol

Parameters
valuecolumn to hold http errors
Returns
New DocumentTranslator object

◆ SetFilterPrefix()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetFilterPrefix ( string  value)

Sets value for filterPrefix

Parameters
valueA case-sensitive prefix string to filter documents in the source path for translation. For example, when using an Azure storage blob Uri, use the prefix to restrict sub folders for translation.
Returns
New DocumentTranslator object

◆ SetFilterPrefixCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetFilterPrefixCol ( string  value)

Sets value for filterPrefix column

Parameters
valueA case-sensitive prefix string to filter documents in the source path for translation. For example, when using an Azure storage blob Uri, use the prefix to restrict sub folders for translation.
Returns
New DocumentTranslator object

◆ SetFilterSuffix()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetFilterSuffix ( string  value)

Sets value for filterSuffix

Parameters
valueA case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.
Returns
New DocumentTranslator object

◆ SetFilterSuffixCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetFilterSuffixCol ( string  value)

Sets value for filterSuffix column

Parameters
valueA case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.
Returns
New DocumentTranslator object

◆ SetInitialPollingDelay()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetInitialPollingDelay ( int  value)

Sets value for initialPollingDelay

Parameters
valuenumber of milliseconds to wait before first poll for result
Returns
New DocumentTranslator object

◆ SetLinkedService()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetLinkedService ( string  value)

Sets value for linkedService

Parameters
valuelinkedService name
Returns
New DocumentTranslator object

◆ SetMaxPollingRetries()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetMaxPollingRetries ( int  value)

Sets value for maxPollingRetries

Parameters
valuenumber of times to poll
Returns
New DocumentTranslator object

◆ SetOutputCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetOutputCol ( string  value)

Sets value for outputCol

Parameters
valueThe name of the output column
Returns
New DocumentTranslator object

◆ SetPollingDelay()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetPollingDelay ( int  value)

Sets value for pollingDelay

Parameters
valuenumber of milliseconds to wait between polling
Returns
New DocumentTranslator object

◆ SetServiceName()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetServiceName ( string  value)

Sets value for serviceName

Parameters
value
Returns
New DocumentTranslator object

◆ SetSourceLanguage()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceLanguage ( string  value)

Sets value for sourceLanguage

Parameters
valueLanguage code. If none is specified, we will perform auto detect on the document.
Returns
New DocumentTranslator object

◆ SetSourceLanguageCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceLanguageCol ( string  value)

Sets value for sourceLanguage column

Parameters
valueLanguage code. If none is specified, we will perform auto detect on the document.
Returns
New DocumentTranslator object

◆ SetSourceStorageSource()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceStorageSource ( string  value)

Sets value for sourceStorageSource

Parameters
valueStorage source of source input.
Returns
New DocumentTranslator object

◆ SetSourceStorageSourceCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceStorageSourceCol ( string  value)

Sets value for sourceStorageSource column

Parameters
valueStorage source of source input.
Returns
New DocumentTranslator object

◆ SetSourceUrl()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceUrl ( string  value)

Sets value for sourceUrl

Parameters
valueLocation of the folder / container or single file with your documents.
Returns
New DocumentTranslator object

◆ SetSourceUrlCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSourceUrlCol ( string  value)

Sets value for sourceUrl column

Parameters
valueLocation of the folder / container or single file with your documents.
Returns
New DocumentTranslator object

◆ SetStorageType()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetStorageType ( string  value)

Sets value for storageType

Parameters
valueStorage type of the input documents source string. Required for single document translation only.
Returns
New DocumentTranslator object

◆ SetStorageTypeCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetStorageTypeCol ( string  value)

Sets value for storageType column

Parameters
valueStorage type of the input documents source string. Required for single document translation only.
Returns
New DocumentTranslator object

◆ SetSubscriptionKey()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSubscriptionKey ( string  value)

Sets value for subscriptionKey

Parameters
valuethe API key to use
Returns
New DocumentTranslator object

◆ SetSubscriptionKeyCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSubscriptionKeyCol ( string  value)

Sets value for subscriptionKey column

Parameters
valuethe API key to use
Returns
New DocumentTranslator object

◆ SetSuppressMaxRetriesExceededException()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetSuppressMaxRetriesExceededException ( bool  value)

Sets value for suppressMaxRetriesExceededException

Parameters
valueset true to suppress the maxumimum retries exception and report in the error column
Returns
New DocumentTranslator object

◆ SetTargets()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetTargets ( TargetInput []  value)

Sets value for targets

Parameters
valueDestination for the finished translated documents.
Returns
New DocumentTranslator object

◆ SetTargetsCol()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetTargetsCol ( string  value)

Sets value for targets column

Parameters
valueDestination for the finished translated documents.
Returns
New DocumentTranslator object

◆ SetTimeout()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetTimeout ( double  value)

Sets value for timeout

Parameters
valuenumber of seconds to wait before closing the connection
Returns
New DocumentTranslator object

◆ SetUrl()

DocumentTranslator Synapse.ML.Cognitive.DocumentTranslator.SetUrl ( string  value)

Sets value for url

Parameters
valueUrl of the service
Returns
New DocumentTranslator object

The documentation for this class was generated from the following file: