Parsing failed in running Python script
sapperlon
New Altair Community Member
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!
Tagged:
0
Answers
-
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.
1 -
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.
0 -
Hi @sapperlon,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-packagesIt 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-packagesHope this helps,Tamas
3