<?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: Visualizations not displaying in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/visualizations-not-displaying/m-p/54687#M2780</link>
    <description>&lt;P&gt;Here's a solution:&amp;nbsp; use a parameter (here, `return_html = True`) to get an HTML object back, and then call `displayHTML` to actually display the object.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from sparknlp_display import NerVisualizer

visualiser = NerVisualizer()

for i in text_list:

    light_result = light_model.fullAnnotate(i)
    html = visualiser.display(light_result[0], label_col='ner_chunk', document_col='document', return_html=True)
    displayHTML(html)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 19:36:12 GMT</pubDate>
    <dc:creator>DavidKxx</dc:creator>
    <dc:date>2023-12-05T19:36:12Z</dc:date>
    <item>
      <title>Visualizations not displaying</title>
      <link>https://community.databricks.com/t5/machine-learning/visualizations-not-displaying/m-p/54016#M2762</link>
      <description>&lt;P&gt;With a copy of notebook&amp;nbsp;&lt;A href="https://github.com/JohnSnowLabs/spark-nlp-workshop/blob/master/open-source-nlp/03.0.SparkNLP_Pretrained_Models.ipynb" target="_blank"&gt;https://github.com/JohnSnowLabs/spark-nlp-workshop/blob/master/open-source-nlp/03.0.SparkNLP_Pretrained_Models.ipynb&lt;/A&gt;&amp;nbsp;imported into Databricks, there's a lovely visualization created by the cell that you can locate by searching on "&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; NerVisualizer":&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidKxx_0-1701107229407.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/5352i321AEB0456DB0C04/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DavidKxx_0-1701107229407.png" alt="DavidKxx_0-1701107229407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I actually run that cell, Databricks only gives me the following where the visualization ought to be:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidKxx_1-1701107287817.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/5353i70C09E9CD57FBB4F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DavidKxx_1-1701107287817.png" alt="DavidKxx_1-1701107287817.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a trick that will make the image show up?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 17:49:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/visualizations-not-displaying/m-p/54016#M2762</guid>
      <dc:creator>DavidKxx</dc:creator>
      <dc:date>2023-11-27T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Visualizations not displaying</title>
      <link>https://community.databricks.com/t5/machine-learning/visualizations-not-displaying/m-p/54687#M2780</link>
      <description>&lt;P&gt;Here's a solution:&amp;nbsp; use a parameter (here, `return_html = True`) to get an HTML object back, and then call `displayHTML` to actually display the object.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from sparknlp_display import NerVisualizer

visualiser = NerVisualizer()

for i in text_list:

    light_result = light_model.fullAnnotate(i)
    html = visualiser.display(light_result[0], label_col='ner_chunk', document_col='document', return_html=True)
    displayHTML(html)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:36:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/visualizations-not-displaying/m-p/54687#M2780</guid>
      <dc:creator>DavidKxx</dc:creator>
      <dc:date>2023-12-05T19:36:12Z</dc:date>
    </item>
  </channel>
</rss>

