Parsing failed in running Python script

sapperlon
sapperlon New Altair Community Member
edited November 2024 in Community Q&A
I tried a community real world use case-Amazon customer reviews-Topics analysis but had an error in the last step: Create word clouds. It is saying "No module named "wordcloud". I am desperate to know how to achieve LDA visualization and please help me out!  

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • jacobcybulski
    jacobcybulski New Altair Community Member
    I find that the best way of including Python scripts in RapidMiner is to first test them outside RapidMiner (e.g. in Spyder or Jupyter). Once they are working place them into RapidMiner. Judging from your error you do not have "wordcloud" module. So you first need to install "wordcloud" library (e.g. using "WordCloud" package) and then import the required function "wordcloud". Having said this why not simply output your LDA word frequencies and use RapidMiner wordcloud visualisation? There is also an LDA operator built in within a Text Processing extension.

  • sapperlon
    sapperlon New Altair Community Member
    edited July 2020
    Hi Jacob, Thank you for your answer. I use R but kind very new to Python. Rapid miner detects python in my local Anacoda file but I do not know how to download python packages in Spyder. Problem still unsolved. I have the topic distribution so far and I just hope to visualize it. Is there any suggestions?  R packages also work.
  • tkenez
    tkenez New Altair Community Member
    edited July 2020
    Just follow Anaconda's guides on how to install the wordcloud package: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#installing-packages
    It should be as simple as opening an Anaconda prompt (if on Windows) and running 'conda install wordcloud
    '.

    If you get an error saying that no such package exists in the Anaconda repository, follow the instructions in this section: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-pkgs.html#installing-non-conda-packages

    Hope this helps,
    Tamas


Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.