SynapseML icon indicating copy to clipboard operation
SynapseML copied to clipboard

[BUG] DocumentTranslator - No TargetInputs definition

Open haithamshahin333 opened this issue 7 months ago • 1 comments

SynapseML version

1.0.4

System information

  • Language version (e.g. python 3.8, scala 2.12):
  • Spark Version (e.g. 3.2.3):
  • Spark Platform (Synapse):

Describe the problem

Cannot call the DocumentTranslator setTargets param in the constructor. Unclear on what the definition for the TargetInputs object should be in pyspark. How should the targetInputs be defined in pyspark to enable calling DocumentTranslator?

https://mmlspark.blob.core.windows.net/docs/1.0.4/scala/com/microsoft/azure/synapse/ml/services/translate/TargetInput.html

Code to reproduce issue

DocumentTranslator() .... .setTargets([{targetUrl: "", language: ""}])

Other info / logs

No response

What component(s) does this bug affect?

  • [X] area/cognitive: Cognitive project
  • [ ] area/core: Core project
  • [ ] area/deep-learning: DeepLearning project
  • [ ] area/lightgbm: Lightgbm project
  • [ ] area/opencv: Opencv project
  • [ ] area/vw: VW project
  • [ ] area/website: Website
  • [ ] area/build: Project build system
  • [ ] area/notebooks: Samples under notebooks folder
  • [ ] area/docker: Docker usage
  • [ ] area/models: models related issue

What language(s) does this bug affect?

  • [ ] language/scala: Scala source code
  • [X] language/python: Pyspark APIs
  • [ ] language/r: R APIs
  • [ ] language/csharp: .NET APIs
  • [ ] language/new: Proposals for new client languages

What integration(s) does this bug affect?

  • [X] integrations/synapse: Azure Synapse integrations
  • [ ] integrations/azureml: Azure ML integrations
  • [ ] integrations/databricks: Databricks integrations

haithamshahin333 avatar Jul 18 '24 20:07 haithamshahin333