<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Prebuilt Azure AI services in Fabric:  ModuleNotFoundError &amp;amp; NULL output in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3592833#M38</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Thanks for your response; As advised, I raised support request with no&amp;nbsp;2312200030001295. Thanks, Sarnendu De&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 05:58:30 GMT</pubDate>
    <dc:creator>sarnendude</dc:creator>
    <dc:date>2023-12-20T05:58:30Z</dc:date>
    <item>
      <title>Prebuilt Azure AI services in Fabric:  ModuleNotFoundError &amp; NULL output</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3588667#M36</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When I was importing &lt;SPAN&gt;SynapseML&amp;nbsp;&lt;/SPAN&gt;libraries as mentioned in blog &lt;A href="https://blog.fabric.microsoft.com/en-us/blog/prebuilt-azure-ai-services-in-fabric-2?ft=All," target="_blank" rel="noopener"&gt;https://blog.fabric.microsoft.com/en-us/blog/prebuilt-azure-ai-services-in-fabric-2?ft=All,&lt;/A&gt;&amp;nbsp;I got below error&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;ModuleNotFoundError: No module named 'synapse.ml.services'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Same error found&lt;/EM&gt;&lt;/FONT&gt; when we tried to import&amp;nbsp;&lt;FONT color="#FF0000"&gt;&amp;nbsp;SynapseML&lt;/FONT&gt;&amp;nbsp;library for&amp;nbsp;&lt;FONT color="#FF0000"&gt;Azure OpenAI&lt;/FONT&gt; as&amp;nbsp;Prerequisites as per this post&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/ai-services/how-to-use-openai-sdk-synapse?tabs=synapseml#prerequisites" target="_blank" rel="noopener"&gt;Use Azure OpenAI with Python SDK - Microsoft Fabric | Microsoft Learn.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve above error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per this blog message "&lt;U&gt;&lt;EM&gt;Fabric has the latest SynapseML package preinstalled and integrated with prebuilt AI models&lt;/EM&gt;&lt;/U&gt;", So I assumed we do not need to install anything to resolve above error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After commeneting above line &amp;amp; running other code lines to import libraries , I ran below code to translate the review_text, it is &lt;FONT color="#FF0000"&gt;&lt;EM&gt;alaways returing NULL value for translation column&lt;/EM&gt;&lt;/FONT&gt; :&lt;/P&gt;&lt;PRE&gt;translate = (Translate()
    .setTextCol("reviews_text")
    .setToLanguage("en")
    .setOutputCol("translation")
    .setConcurrency(5))

df_en = translate.transform(df)\
        .withColumn("translation_result", flatten(col("translation.translations")))\
        .withColumn("translation", col("translation_result.text")[0])\
        .cache()

df_en = df_en.select(df_en.columns[:6]+ ["translation"])

display(df_en.tail(5))&lt;/PRE&gt;&lt;P&gt;Please let me know how to get proper translated result instead of &lt;EM&gt;&lt;U&gt;NULL&lt;/U&gt; &lt;/EM&gt;alaways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even when I ran the all code snippet to translate text as per this blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/ai-services/how-to-use-text-translator?tabs=synapseml#text-translation" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-science/ai-services/how-to-use-text-translator?tabs=synapseml#text-translation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It returns &lt;FONT color="#FF0000"&gt;&lt;EM&gt;NULL&lt;/EM&gt; &lt;/FONT&gt;as translation value.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarnendu De&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 11:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3588667#M36</guid>
      <dc:creator>sarnendude</dc:creator>
      <dc:date>2023-12-18T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Prebuilt Azure AI services in Fabric:  ModuleNotFoundError &amp; NULL output</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3589597#M37</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="598048" data-lia-user-login="sarnendude" class="lia-mention lia-mention-user"&gt;sarnendude&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Fabric Community.&lt;/P&gt;
&lt;P&gt;Apologies for the issue that you are facing.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This might require a deeper investigation from our engineering team about your workspace and the logic behind it to properly understand what might be happening.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please go ahead and raise a support ticket to reach our support team:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.fabric.microsoft.com/support" target="_blank" rel="noopener nofollow noreferrer"&gt;https://support.fabric.microsoft.com/support&lt;/A&gt;&lt;BR /&gt;Please provide the ticket number here as we can keep an eye on it.&lt;/SPAN&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 17:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3589597#M37</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-18T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Prebuilt Azure AI services in Fabric:  ModuleNotFoundError &amp; NULL output</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3592833#M38</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, Thanks for your response; As advised, I raised support request with no&amp;nbsp;2312200030001295. Thanks, Sarnendu De&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 05:58:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Prebuilt-Azure-AI-services-in-Fabric-ModuleNotFoundError-amp/m-p/3592833#M38</guid>
      <dc:creator>sarnendude</dc:creator>
      <dc:date>2023-12-20T05:58:30Z</dc:date>
    </item>
  </channel>
</rss>

