RapidMiner 9.8 Beta is now available

Be one of the first to get your hands on the new features. More details and downloads here:

GET RAPIDMINER 9.8 BETA

Parsing failed in running Python script

sapperlonsapperlon Member Posts: 4 Newbie
edited July 19 in Help
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!ย ย 

Answers

  • jacobcybulskijacobcybulski Member, University Professor Posts: 235   Unicorn
    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
  • sapperlonsapperlon Member Posts: 4 Newbie
    edited July 19
    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.
  • tkeneztkenez Employee, RapidMiner Certified Expert, Member Posts: 15  RM Product Management
    edited July 20
    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


    jacobcybulskisapperlonMarcoBarradas
Sign In or Register to comment.