synapse.ml.services.language package
Submodules
synapse.ml.services.language.AnalyzeText module
- class synapse.ml.services.language.AnalyzeText.AnalyzeText(java_obj=None, AADToken=None, AADTokenCol=None, CustomAuthHeader=None, CustomAuthHeaderCol=None, apiVersion=None, apiVersionCol=None, batchSize=10, concurrency=1, concurrentTimeout=None, countryHint=None, countryHintCol=None, customHeaders=None, customHeadersCol=None, customUrlRoot=None, domain=None, domainCol=None, errorCol='AnalyzeText_6142f1b6d1c3_error', handler=None, kind=None, language=None, languageCol=None, loggingOptOut=None, loggingOptOutCol=None, modelVersion=None, modelVersionCol=None, opinionMining=None, opinionMiningCol=None, outputCol='AnalyzeText_6142f1b6d1c3_output', piiCategories=None, piiCategoriesCol=None, showStats=None, showStatsCol=None, stringIndexType=None, stringIndexTypeCol=None, subscriptionKey=None, subscriptionKeyCol=None, text=None, textCol=None, timeout=60.0, url=None)[source]
Bases:
ComplexParamsMixin
,JavaMLReadable
,JavaMLWritable
,JavaTransformer
- Parameters:
CustomAuthHeader¶ (object) – A Custom Value for Authorization Header
concurrentTimeout¶ (float) – max number seconds to wait on futures if concurrency >= 1
countryHint¶ (object) – the countryHint for language detection
customHeaders¶ (object) – Map of Custom Header Key-Value Tuples.
customUrlRoot¶ (str) – The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
domain¶ (object) – if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: ‘PHI’, ‘none’.
handler¶ (object) – Which strategy to use when handling requests
language¶ (object) – the language code of the text (optional for some services)
opinionMining¶ (object) – opinionMining option for SentimentAnalysisTask
piiCategories¶ (object) – describes the PII categories to return
showStats¶ (object) – Whether to include detailed statistics in the response
stringIndexType¶ (object) – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
timeout¶ (float) – number of seconds to wait before closing the connection
- AADToken = Param(parent='undefined', name='AADToken', doc='ServiceParam: AAD Token used for authentication')
- CustomAuthHeader = Param(parent='undefined', name='CustomAuthHeader', doc='ServiceParam: A Custom Value for Authorization Header')
- apiVersion = Param(parent='undefined', name='apiVersion', doc='ServiceParam: version of the api')
- batchSize = Param(parent='undefined', name='batchSize', doc='The max size of the buffer')
- concurrency = Param(parent='undefined', name='concurrency', doc='max number of concurrent calls')
- concurrentTimeout = Param(parent='undefined', name='concurrentTimeout', doc='max number seconds to wait on futures if concurrency >= 1')
- countryHint = Param(parent='undefined', name='countryHint', doc='ServiceParam: the countryHint for language detection')
- customHeaders = Param(parent='undefined', name='customHeaders', doc='ServiceParam: Map of Custom Header Key-Value Tuples.')
- customUrlRoot = Param(parent='undefined', name='customUrlRoot', doc='The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.')
- domain = Param(parent='undefined', name='domain', doc="ServiceParam: if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'PHI', 'none'.")
- errorCol = Param(parent='undefined', name='errorCol', doc='column to hold http errors')
- getConcurrentTimeout()[source]
- Returns:
max number seconds to wait on futures if concurrency >= 1
- Return type:
concurrentTimeout
- getCustomAuthHeader()[source]
- Returns:
A Custom Value for Authorization Header
- Return type:
CustomAuthHeader
- getCustomHeaders()[source]
- Returns:
Map of Custom Header Key-Value Tuples.
- Return type:
customHeaders
- getCustomUrlRoot()[source]
- Returns:
The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
- Return type:
customUrlRoot
- getDomain()[source]
- Returns:
if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: ‘PHI’, ‘none’.
- Return type:
domain
- getLanguage()[source]
- Returns:
the language code of the text (optional for some services)
- Return type:
language
- getOpinionMining()[source]
- Returns:
opinionMining option for SentimentAnalysisTask
- Return type:
opinionMining
- getPiiCategories()[source]
- Returns:
describes the PII categories to return
- Return type:
piiCategories
- getShowStats()[source]
- Returns:
Whether to include detailed statistics in the response
- Return type:
showStats
- getStringIndexType()[source]
- Returns:
Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- Return type:
stringIndexType
- getTimeout()[source]
- Returns:
number of seconds to wait before closing the connection
- Return type:
timeout
- handler = Param(parent='undefined', name='handler', doc='Which strategy to use when handling requests')
- kind = Param(parent='undefined', name='kind', doc='Enumeration of supported Text Analysis tasks')
- language = Param(parent='undefined', name='language', doc='ServiceParam: the language code of the text (optional for some services)')
- loggingOptOut = Param(parent='undefined', name='loggingOptOut', doc='ServiceParam: loggingOptOut for task')
- modelVersion = Param(parent='undefined', name='modelVersion', doc='ServiceParam: Version of the model')
- opinionMining = Param(parent='undefined', name='opinionMining', doc='ServiceParam: opinionMining option for SentimentAnalysisTask')
- outputCol = Param(parent='undefined', name='outputCol', doc='The name of the output column')
- piiCategories = Param(parent='undefined', name='piiCategories', doc='ServiceParam: describes the PII categories to return')
- setConcurrentTimeout(value)[source]
- Parameters:
concurrentTimeout¶ – max number seconds to wait on futures if concurrency >= 1
- setCustomAuthHeader(value)[source]
- Parameters:
CustomAuthHeader¶ – A Custom Value for Authorization Header
- setCustomAuthHeaderCol(value)[source]
- Parameters:
CustomAuthHeader¶ – A Custom Value for Authorization Header
- setCustomHeaders(value)[source]
- Parameters:
customHeaders¶ – Map of Custom Header Key-Value Tuples.
- setCustomHeadersCol(value)[source]
- Parameters:
customHeaders¶ – Map of Custom Header Key-Value Tuples.
- setCustomUrlRoot(value)[source]
- Parameters:
customUrlRoot¶ – The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
- setDomain(value)[source]
- Parameters:
domain¶ – if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: ‘PHI’, ‘none’.
- setDomainCol(value)[source]
- Parameters:
domain¶ – if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: ‘PHI’, ‘none’.
- setLanguage(value)[source]
- Parameters:
language¶ – the language code of the text (optional for some services)
- setLanguageCol(value)[source]
- Parameters:
language¶ – the language code of the text (optional for some services)
- setOpinionMining(value)[source]
- Parameters:
opinionMining¶ – opinionMining option for SentimentAnalysisTask
- setOpinionMiningCol(value)[source]
- Parameters:
opinionMining¶ – opinionMining option for SentimentAnalysisTask
- setParams(AADToken=None, AADTokenCol=None, CustomAuthHeader=None, CustomAuthHeaderCol=None, apiVersion=None, apiVersionCol=None, batchSize=10, concurrency=1, concurrentTimeout=None, countryHint=None, countryHintCol=None, customHeaders=None, customHeadersCol=None, customUrlRoot=None, domain=None, domainCol=None, errorCol='AnalyzeText_6142f1b6d1c3_error', handler=None, kind=None, language=None, languageCol=None, loggingOptOut=None, loggingOptOutCol=None, modelVersion=None, modelVersionCol=None, opinionMining=None, opinionMiningCol=None, outputCol='AnalyzeText_6142f1b6d1c3_output', piiCategories=None, piiCategoriesCol=None, showStats=None, showStatsCol=None, stringIndexType=None, stringIndexTypeCol=None, subscriptionKey=None, subscriptionKeyCol=None, text=None, textCol=None, timeout=60.0, url=None)[source]
Set the (keyword only) parameters
- setPiiCategories(value)[source]
- Parameters:
piiCategories¶ – describes the PII categories to return
- setPiiCategoriesCol(value)[source]
- Parameters:
piiCategories¶ – describes the PII categories to return
- setShowStats(value)[source]
- Parameters:
showStats¶ – Whether to include detailed statistics in the response
- setShowStatsCol(value)[source]
- Parameters:
showStats¶ – Whether to include detailed statistics in the response
- setStringIndexType(value)[source]
- Parameters:
stringIndexType¶ – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- setStringIndexTypeCol(value)[source]
- Parameters:
stringIndexType¶ – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- setTimeout(value)[source]
- Parameters:
timeout¶ – number of seconds to wait before closing the connection
- showStats = Param(parent='undefined', name='showStats', doc='ServiceParam: Whether to include detailed statistics in the response')
- stringIndexType = Param(parent='undefined', name='stringIndexType', doc='ServiceParam: Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets')
- subscriptionKey = Param(parent='undefined', name='subscriptionKey', doc='ServiceParam: the API key to use')
- text = Param(parent='undefined', name='text', doc='ServiceParam: the text in the request body')
- timeout = Param(parent='undefined', name='timeout', doc='number of seconds to wait before closing the connection')
- url = Param(parent='undefined', name='url', doc='Url of the service')
synapse.ml.services.language.AnalyzeTextLongRunningOperations module
- class synapse.ml.services.language.AnalyzeTextLongRunningOperations.AnalyzeTextLongRunningOperations(java_obj=None, AADToken=None, AADTokenCol=None, CustomAuthHeader=None, CustomAuthHeaderCol=None, apiVersion=None, apiVersionCol=None, backoffs=[100, 500, 1000], batchSize=10, concurrency=1, concurrentTimeout=None, customHeaders=None, customHeadersCol=None, customUrlRoot=None, deploymentName=None, deploymentNameCol=None, domain=None, domainCol=None, errorCol='AnalyzeTextLongRunningOperations_88fcc2f9ce87_error', excludeNormalizedValues=None, excludeNormalizedValuesCol=None, exclusionList=None, exclusionListCol=None, inclusionList=None, inclusionListCol=None, initialPollingDelay=300, kind=None, language=None, languageCol=None, loggingOptOut=None, loggingOptOutCol=None, maxPollingRetries=1000, modelVersion=None, modelVersionCol=None, opinionMining=None, opinionMiningCol=None, outputCol='AnalyzeTextLongRunningOperations_88fcc2f9ce87_output', overlapPolicy=None, overlapPolicyCol=None, piiCategories=None, piiCategoriesCol=None, pollingDelay=1000, projectName=None, projectNameCol=None, sentenceCount=None, sentenceCountCol=None, showStats=None, showStatsCol=None, sortBy=None, sortByCol=None, stringIndexType=None, stringIndexTypeCol=None, subscriptionKey=None, subscriptionKeyCol=None, summaryLength=None, summaryLengthCol=None, suppressMaxRetriesException=False, text=None, textCol=None, timeout=60.0, url=None)[source]
Bases:
ComplexParamsMixin
,JavaMLReadable
,JavaMLWritable
,JavaTransformer
- Parameters:
CustomAuthHeader¶ (object) – A Custom Value for Authorization Header
concurrentTimeout¶ (float) – max number seconds to wait on futures if concurrency >= 1
customHeaders¶ (object) – Map of Custom Header Key-Value Tuples.
customUrlRoot¶ (str) – The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
deploymentName¶ (object) – This field indicates the deployment name for the model. This is a required field.
domain¶ (object) – The domain of the PII entity recognition request.
excludeNormalizedValues¶ (object) – (Optional) request parameter that allows the user to provide settings for running the inference. If set to true, the service will exclude normalized
exclusionList¶ (object) – (Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList
inclusionList¶ (object) – (Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList
initialPollingDelay¶ (int) – number of milliseconds to wait before first poll for result
language¶ (object) – the language code of the text (optional for some services)
opinionMining¶ (object) – Whether to use opinion mining in the request or not.
overlapPolicy¶ (object) – (Optional) describes the type of overlap policy to apply to the ner output.
piiCategories¶ (object) – describes the PII categories to return
pollingDelay¶ (int) – number of milliseconds to wait between polling
projectName¶ (object) – This field indicates the project name for the model. This is a required field
sentenceCount¶ (object) – Specifies the number of sentences in the extracted summary.
showStats¶ (object) – Whether to include detailed statistics in the response
sortBy¶ (object) – Specifies how to sort the extracted summaries. This can be either ‘Rank’ or ‘Offset’.
stringIndexType¶ (object) – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
summaryLength¶ (object) – (NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries.
suppressMaxRetriesException¶ (bool) – set true to suppress the maxumimum retries exception and report in the error column
timeout¶ (float) – number of seconds to wait before closing the connection
- AADToken = Param(parent='undefined', name='AADToken', doc='ServiceParam: AAD Token used for authentication')
- CustomAuthHeader = Param(parent='undefined', name='CustomAuthHeader', doc='ServiceParam: A Custom Value for Authorization Header')
- apiVersion = Param(parent='undefined', name='apiVersion', doc='ServiceParam: version of the api')
- backoffs = Param(parent='undefined', name='backoffs', doc='array of backoffs to use in the handler')
- batchSize = Param(parent='undefined', name='batchSize', doc='The max size of the buffer')
- concurrency = Param(parent='undefined', name='concurrency', doc='max number of concurrent calls')
- concurrentTimeout = Param(parent='undefined', name='concurrentTimeout', doc='max number seconds to wait on futures if concurrency >= 1')
- customHeaders = Param(parent='undefined', name='customHeaders', doc='ServiceParam: Map of Custom Header Key-Value Tuples.')
- customUrlRoot = Param(parent='undefined', name='customUrlRoot', doc='The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.')
- deploymentName = Param(parent='undefined', name='deploymentName', doc='ServiceParam: This field indicates the deployment name for the model. This is a required field.')
- domain = Param(parent='undefined', name='domain', doc='ServiceParam: The domain of the PII entity recognition request.')
- errorCol = Param(parent='undefined', name='errorCol', doc='column to hold http errors')
- excludeNormalizedValues = Param(parent='undefined', name='excludeNormalizedValues', doc='ServiceParam: (Optional) request parameter that allows the user to provide settings for running the inference. If set to true, the service will exclude normalized')
- exclusionList = Param(parent='undefined', name='exclusionList', doc='ServiceParam: (Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList')
- getConcurrentTimeout()[source]
- Returns:
max number seconds to wait on futures if concurrency >= 1
- Return type:
concurrentTimeout
- getCustomAuthHeader()[source]
- Returns:
A Custom Value for Authorization Header
- Return type:
CustomAuthHeader
- getCustomHeaders()[source]
- Returns:
Map of Custom Header Key-Value Tuples.
- Return type:
customHeaders
- getCustomUrlRoot()[source]
- Returns:
The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
- Return type:
customUrlRoot
- getDeploymentName()[source]
- Returns:
This field indicates the deployment name for the model. This is a required field.
- Return type:
deploymentName
- getExcludeNormalizedValues()[source]
- Returns:
(Optional) request parameter that allows the user to provide settings for running the inference. If set to true, the service will exclude normalized
- Return type:
excludeNormalizedValues
- getExclusionList()[source]
- Returns:
(Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList
- Return type:
exclusionList
- getInclusionList()[source]
- Returns:
(Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList
- Return type:
inclusionList
- getInitialPollingDelay()[source]
- Returns:
number of milliseconds to wait before first poll for result
- Return type:
initialPollingDelay
- getLanguage()[source]
- Returns:
the language code of the text (optional for some services)
- Return type:
language
- getOpinionMining()[source]
- Returns:
Whether to use opinion mining in the request or not.
- Return type:
opinionMining
- getOverlapPolicy()[source]
- Returns:
(Optional) describes the type of overlap policy to apply to the ner output.
- Return type:
overlapPolicy
- getPiiCategories()[source]
- Returns:
describes the PII categories to return
- Return type:
piiCategories
- getPollingDelay()[source]
- Returns:
number of milliseconds to wait between polling
- Return type:
pollingDelay
- getProjectName()[source]
- Returns:
This field indicates the project name for the model. This is a required field
- Return type:
projectName
- getSentenceCount()[source]
- Returns:
Specifies the number of sentences in the extracted summary.
- Return type:
sentenceCount
- getShowStats()[source]
- Returns:
Whether to include detailed statistics in the response
- Return type:
showStats
- getSortBy()[source]
- Returns:
Specifies how to sort the extracted summaries. This can be either ‘Rank’ or ‘Offset’.
- Return type:
sortBy
- getStringIndexType()[source]
- Returns:
Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- Return type:
stringIndexType
- getSummaryLength()[source]
- Returns:
(NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries.
- Return type:
summaryLength
- getSuppressMaxRetriesException()[source]
- Returns:
set true to suppress the maxumimum retries exception and report in the error column
- Return type:
suppressMaxRetriesException
- getTimeout()[source]
- Returns:
number of seconds to wait before closing the connection
- Return type:
timeout
- inclusionList = Param(parent='undefined', name='inclusionList', doc='ServiceParam: (Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList')
- initialPollingDelay = Param(parent='undefined', name='initialPollingDelay', doc='number of milliseconds to wait before first poll for result')
- kind = Param(parent='undefined', name='kind', doc='Enumeration of supported Text Analysis tasks')
- language = Param(parent='undefined', name='language', doc='ServiceParam: the language code of the text (optional for some services)')
- loggingOptOut = Param(parent='undefined', name='loggingOptOut', doc='ServiceParam: loggingOptOut for task')
- maxPollingRetries = Param(parent='undefined', name='maxPollingRetries', doc='number of times to poll')
- modelVersion = Param(parent='undefined', name='modelVersion', doc='ServiceParam: Version of the model')
- opinionMining = Param(parent='undefined', name='opinionMining', doc='ServiceParam: Whether to use opinion mining in the request or not.')
- outputCol = Param(parent='undefined', name='outputCol', doc='The name of the output column')
- overlapPolicy = Param(parent='undefined', name='overlapPolicy', doc='ServiceParam: (Optional) describes the type of overlap policy to apply to the ner output.')
- piiCategories = Param(parent='undefined', name='piiCategories', doc='ServiceParam: describes the PII categories to return')
- pollingDelay = Param(parent='undefined', name='pollingDelay', doc='number of milliseconds to wait between polling')
- projectName = Param(parent='undefined', name='projectName', doc='ServiceParam: This field indicates the project name for the model. This is a required field')
- sentenceCount = Param(parent='undefined', name='sentenceCount', doc='ServiceParam: Specifies the number of sentences in the extracted summary.')
- setConcurrentTimeout(value)[source]
- Parameters:
concurrentTimeout¶ – max number seconds to wait on futures if concurrency >= 1
- setCustomAuthHeader(value)[source]
- Parameters:
CustomAuthHeader¶ – A Custom Value for Authorization Header
- setCustomAuthHeaderCol(value)[source]
- Parameters:
CustomAuthHeader¶ – A Custom Value for Authorization Header
- setCustomHeaders(value)[source]
- Parameters:
customHeaders¶ – Map of Custom Header Key-Value Tuples.
- setCustomHeadersCol(value)[source]
- Parameters:
customHeaders¶ – Map of Custom Header Key-Value Tuples.
- setCustomUrlRoot(value)[source]
- Parameters:
customUrlRoot¶ – The custom URL root for the service. This will not append OpenAI specific model path completions (i.e. /chat/completions) to the URL.
- setDeploymentName(value)[source]
- Parameters:
deploymentName¶ – This field indicates the deployment name for the model. This is a required field.
- setDeploymentNameCol(value)[source]
- Parameters:
deploymentName¶ – This field indicates the deployment name for the model. This is a required field.
- setDomainCol(value)[source]
- Parameters:
domain¶ – The domain of the PII entity recognition request.
- setExcludeNormalizedValues(value)[source]
- Parameters:
excludeNormalizedValues¶ – (Optional) request parameter that allows the user to provide settings for running the inference. If set to true, the service will exclude normalized
- setExcludeNormalizedValuesCol(value)[source]
- Parameters:
excludeNormalizedValues¶ – (Optional) request parameter that allows the user to provide settings for running the inference. If set to true, the service will exclude normalized
- setExclusionList(value)[source]
- Parameters:
exclusionList¶ – (Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList
- setExclusionListCol(value)[source]
- Parameters:
exclusionList¶ – (Optional) request parameter that filters out any entities that are included the excludeList. When a user specifies an excludeList, they cannot get a prediction returned with an entity in that list. We will apply inclusionList before exclusionList
- setInclusionList(value)[source]
- Parameters:
inclusionList¶ – (Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList
- setInclusionListCol(value)[source]
- Parameters:
inclusionList¶ – (Optional) request parameter that limits the output to the requested entity types included in this list. We will apply inclusionList before exclusionList
- setInitialPollingDelay(value)[source]
- Parameters:
initialPollingDelay¶ – number of milliseconds to wait before first poll for result
- setLanguage(value)[source]
- Parameters:
language¶ – the language code of the text (optional for some services)
- setLanguageCol(value)[source]
- Parameters:
language¶ – the language code of the text (optional for some services)
- setOpinionMining(value)[source]
- Parameters:
opinionMining¶ – Whether to use opinion mining in the request or not.
- setOpinionMiningCol(value)[source]
- Parameters:
opinionMining¶ – Whether to use opinion mining in the request or not.
- setOverlapPolicy(value)[source]
- Parameters:
overlapPolicy¶ – (Optional) describes the type of overlap policy to apply to the ner output.
- setOverlapPolicyCol(value)[source]
- Parameters:
overlapPolicy¶ – (Optional) describes the type of overlap policy to apply to the ner output.
- setParams(AADToken=None, AADTokenCol=None, CustomAuthHeader=None, CustomAuthHeaderCol=None, apiVersion=None, apiVersionCol=None, backoffs=[100, 500, 1000], batchSize=10, concurrency=1, concurrentTimeout=None, customHeaders=None, customHeadersCol=None, customUrlRoot=None, deploymentName=None, deploymentNameCol=None, domain=None, domainCol=None, errorCol='AnalyzeTextLongRunningOperations_88fcc2f9ce87_error', excludeNormalizedValues=None, excludeNormalizedValuesCol=None, exclusionList=None, exclusionListCol=None, inclusionList=None, inclusionListCol=None, initialPollingDelay=300, kind=None, language=None, languageCol=None, loggingOptOut=None, loggingOptOutCol=None, maxPollingRetries=1000, modelVersion=None, modelVersionCol=None, opinionMining=None, opinionMiningCol=None, outputCol='AnalyzeTextLongRunningOperations_88fcc2f9ce87_output', overlapPolicy=None, overlapPolicyCol=None, piiCategories=None, piiCategoriesCol=None, pollingDelay=1000, projectName=None, projectNameCol=None, sentenceCount=None, sentenceCountCol=None, showStats=None, showStatsCol=None, sortBy=None, sortByCol=None, stringIndexType=None, stringIndexTypeCol=None, subscriptionKey=None, subscriptionKeyCol=None, summaryLength=None, summaryLengthCol=None, suppressMaxRetriesException=False, text=None, textCol=None, timeout=60.0, url=None)[source]
Set the (keyword only) parameters
- setPiiCategories(value)[source]
- Parameters:
piiCategories¶ – describes the PII categories to return
- setPiiCategoriesCol(value)[source]
- Parameters:
piiCategories¶ – describes the PII categories to return
- setPollingDelay(value)[source]
- Parameters:
pollingDelay¶ – number of milliseconds to wait between polling
- setProjectName(value)[source]
- Parameters:
projectName¶ – This field indicates the project name for the model. This is a required field
- setProjectNameCol(value)[source]
- Parameters:
projectName¶ – This field indicates the project name for the model. This is a required field
- setSentenceCount(value)[source]
- Parameters:
sentenceCount¶ – Specifies the number of sentences in the extracted summary.
- setSentenceCountCol(value)[source]
- Parameters:
sentenceCount¶ – Specifies the number of sentences in the extracted summary.
- setShowStats(value)[source]
- Parameters:
showStats¶ – Whether to include detailed statistics in the response
- setShowStatsCol(value)[source]
- Parameters:
showStats¶ – Whether to include detailed statistics in the response
- setSortBy(value)[source]
- Parameters:
sortBy¶ – Specifies how to sort the extracted summaries. This can be either ‘Rank’ or ‘Offset’.
- setSortByCol(value)[source]
- Parameters:
sortBy¶ – Specifies how to sort the extracted summaries. This can be either ‘Rank’ or ‘Offset’.
- setStringIndexType(value)[source]
- Parameters:
stringIndexType¶ – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- setStringIndexTypeCol(value)[source]
- Parameters:
stringIndexType¶ – Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets
- setSummaryLength(value)[source]
- Parameters:
summaryLength¶ – (NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries.
- setSummaryLengthCol(value)[source]
- Parameters:
summaryLength¶ – (NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries.
- setSuppressMaxRetriesException(value)[source]
- Parameters:
suppressMaxRetriesException¶ – set true to suppress the maxumimum retries exception and report in the error column
- setTimeout(value)[source]
- Parameters:
timeout¶ – number of seconds to wait before closing the connection
- showStats = Param(parent='undefined', name='showStats', doc='ServiceParam: Whether to include detailed statistics in the response')
- sortBy = Param(parent='undefined', name='sortBy', doc="ServiceParam: Specifies how to sort the extracted summaries. This can be either 'Rank' or 'Offset'.")
- stringIndexType = Param(parent='undefined', name='stringIndexType', doc='ServiceParam: Specifies the method used to interpret string offsets. Defaults to Text Elements(Graphemes) according to Unicode v8.0.0.For more information see https://aka.ms/text-analytics-offsets')
- subscriptionKey = Param(parent='undefined', name='subscriptionKey', doc='ServiceParam: the API key to use')
- summaryLength = Param(parent='undefined', name='summaryLength', doc='ServiceParam: (NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries.')
- suppressMaxRetriesException = Param(parent='undefined', name='suppressMaxRetriesException', doc='set true to suppress the maxumimum retries exception and report in the error column')
- text = Param(parent='undefined', name='text', doc='ServiceParam: the text in the request body')
- timeout = Param(parent='undefined', name='timeout', doc='number of seconds to wait before closing the connection')
- url = Param(parent='undefined', name='url', doc='Url of the service')
Module contents
SynapseML is an ecosystem of tools aimed towards expanding the distributed computing framework Apache Spark in several new directions. SynapseML adds many deep learning and data science tools to the Spark ecosystem, including seamless integration of Spark Machine Learning pipelines with Microsoft Cognitive Toolkit (CNTK), LightGBM and OpenCV. These tools enable powerful and highly-scalable predictive and analytical models for a variety of datasources.
SynapseML also brings new networking capabilities to the Spark Ecosystem. With the HTTP on Spark project, users can embed any web service into their SparkML models. In this vein, SynapseML provides easy to use SparkML transformers for a wide variety of Microsoft Cognitive Services. For production grade deployment, the Spark Serving project enables high throughput, sub-millisecond latency web services, backed by your Spark cluster.
SynapseML requires Scala 2.12, Spark 3.0+, and Python 3.6+.