IBMPredictiveAnalytics / Word_Cloud_Visualization

Create Word Clouds from text data in IBM SPSS Modeler
Apache License 2.0
2 stars 4 forks source link

Wordcloud fails #2

Open JosedeKruif opened 7 years ago

JosedeKruif commented 7 years ago

I use modeler 18.0 I use R 3.2.2 I installed essentials for R. I checked and found out that I am able to run Rcode in Routput node.

However, the wordcloud node only reports "unpacked package 'wordcloud' successfully unpacked and MD5 sums checked" and "The downloaded binary packages are in (...) package 'tm' successfully unpacked and MD5 sums checked.

No further output is produced. No wordcloud.

Wenpei commented 7 years ago

Hi Josede there is some issues for wordcloud install for R 3.2.2 Please use old version of wordcloud for R 3.2.2.

http://stackoverflow.com/questions/17082341/installing-older-version-of-r-package https://cran.r-project.org/src/contrib/Archive/wordcloud/

JosedeKruif commented 7 years ago

I have tried to install old version for R.2.2 from the link to the tars you provided. I have also tried all the suggestions for installing old packages in the link to Stack overlflow that you provided. Nothing works. I think it is because the node seems to install the newer package on top of the old. When the node has been used, my R suddenly has an extra wordcloud package in a higher version.

Wenpei commented 7 years ago

Which version you used? I suggest 2.4 to take a try. https://cran.r-project.org/src/contrib/Archive/wordcloud/wordcloud_2.4.tar.gz

JosedeKruif commented 7 years ago

Dear Yu Wenpei,

I finally found the time to try version 2.4. Sorry to inform you that this fails as well.

José de Kruif


Van: Yu Wenpei [notifications@github.com] Verzonden: woensdag 18 januari 2017 9:06 Aan: IBMPredictiveAnalytics/Word_Cloud_Visualization CC: Kruif, J. de (José); Author Onderwerp: Re: [IBMPredictiveAnalytics/Word_Cloud_Visualization] Wordcloud fails (#2)

Which version you used? I suggest 2.4 to take a try. https://cran.r-project.org/src/contrib/Archive/wordcloud/wordcloud_2.4.tar.gz

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/IBMPredictiveAnalytics/Word_Cloud_Visualization/issues/2#issuecomment-273409323, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGvfBI40YxFsR6eDUS9igS9UNrxH9xJDks5rTcgHgaJpZM4Lbkkv.

seakiki commented 7 years ago

Hi, my name is Juliana and I am trying to finish installing the packages to use in node wordcloud, but I am having difficulties and also I am not understanding what is happening.

Just like Jose de Kruif, I followed IBM's step by step, I installed version 3.2.1, but later I changed because I saw that version 3.2.2 would be better, so I downloaded the node and followed the instructions.

I see the node normally Inside the modeler.

I downloaded the packages, but I did not install it because I did not understand if the node itself (wordcloud) had already built them in, but after reading Jose's post, I understood that it should Install them, I was in doubt if I could use the R of the modeler or if I would use RStudio or even R to install them. In doubt I tested both.

The packages rvest, tm and RColorBrewer, I managed to install without problems, but the wordcloud, I can not. I followed your advice Wenpei .... and tried to install

The 4.tar.gz that are in the pg of the archive that you indicated. When I tried the last two, it says that it depends on Slam, I went in Slam is also in the archieve, I downloaded all I tried to install all, nothing. I have no options, can anyone find where I went wrong?

The message that appears when I run the stream and the word cloud visualization screen, in the text output: package 'wordcloud' tab successfully unpacked and MD5 sums ckeched

The downloaded binary packages are in C: \ Users \ VM_SPRB \ AppData \ Local \ Temp \ RtmpoTpSZg \ downloaded_packages Package 'tm' successfully unpacked and MD5 sums checked

The downloaded binary packages are in: C: \ Users \ VM_SPRB \ AppData \ Local \ Temp \ RtmpoTpSZg \ downloaded_packages

When I click on the Graph Output tab, no graph is generated.

seakiki commented 7 years ago

Hello, I did the test that José described on the 13th, I was able to install version 2.4 in R.3.2.5 and verified the same, it is no use installing an older version of wordcloud because the node overwrites and brings the new one up Here is 2.5 that would work with version 3.4.0 of R, the most current. I tried to contact Greg, but he asked me to check here on GitHub.

Wenpei commented 7 years ago

@seakiki If you install wordcloud package successful.

I suggest you take a look for this source and ensure it runable in R console. https://github.com/IBMPredictiveAnalytics/Word_Cloud_Visualization/blob/master/Source%20code/script.r

After Reinstall R, you need reinstall Modeler R Essential as well. And I though Modeler 18.0 support R 3.2.* only, not sure how R 3.4.0 support. It may report error when R Essential install, correct me if i am wrong.

Yu Wenpei.

seakiki commented 7 years ago

@Wenpei , @JosedeKruif

How are you? Thanks for attencion.

Wenpei, You are correct version 3.4 does not support the essentials for spss R, because it only works until version 3.2.

Well, I was able to build a vm to test on version 17, which uses R 3.1. I did not install any packages, just the Essential for the R version, I saw that the node itself looks for the packages Wordcloud, tm, rvest and RColorBrewer direct from CRAN, without the need to have to do a preinstallation before.

I saw this because I had already commented here in an earlier post, when installing the correct version of the packages for my R, the node when I rode Overwritten for the newer version of wordcloud was 2.5) version 2.4 is for R 3.0, but that is only supported for version 16 of the modeler.

Understood?

I made another test, now using a file with words in English only, in wordcloud the stopwords is in English ..., I believed that because of my file being in Portuguese, it did not recognize the default. Even so, with all the tests ..... I could not generate a single graph. I'm disappointed!

I'll try to use the code in R manually.

I have read about SnowballC (An R interface to the C libstemmer library that implements Porter's word stemming algorithm for collapsing words to a common root for aid of vocabulary.) Currently supported languages ​​are Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish and Turkish) and found it very interesting Maybe it could be an add-on to the code.

José and Wenpei thank you for your help. :+1:

JosedeKruif commented 7 years ago

Dear Juliana, dear all,

I have exactly the same experience: the node itself looks for the relevant R packages and installs them overwriting other versions. If this is not solved, we will never be able to generate a graph in any language.

Kind regards,

[cid:image002.png@01D2249D.52FFD8D0]

dr José de Kruifhttp://www.uu.nl/staff/JdeKruif/0, Utrecht University | Digital Humanities Labhttp://dig.hum.uu.nl/

Drift 10, room 3.07, 3512 BS Utrecht | Tel +31(0)30 253 7867

From: seakiki [mailto:notifications@github.com] Sent: donderdag 8 juni 2017 18:13 To: IBMPredictiveAnalytics/Word_Cloud_Visualization Cc: Kruif, J. de (José); Mention Subject: Re: [IBMPredictiveAnalytics/Word_Cloud_Visualization] Wordcloud fails (#2)

@Wenpeihttps://github.com/wenpei , @JosedeKruifhttps://github.com/josedekruif

How are you? Thanks for attencion.

Wenpei, You are correct version 3.4 does not support the essentials for spss R, because it only works until version 3.2.

Well, I was able to build a vm to test on version 17, which uses R 3.1. I did not install any packages, just the Essential for the R version, I saw that the node itself looks for the packages Wordcloud, tm, rvest and RColorBrewer direct from CRAN, without the need to have to do a preinstallation before.

I saw this because I had already commented here in an earlier post, when installing the correct version of the packages for my R, the node when I rode Overwritten for the newer version of wordcloud was 2.5) version 2.4 is for R 3.0, but that is only supported for version 16 of the modeler.

Understood?

I made another test, now using a file with words in English only, in wordcloud the stopwords is in English ..., I believed that because of my file being in Portuguese, it did not recognize the default. Even so, with all the tests ..... I could not generate a single graph. I'm disappointed!

I'll try to use the code in R manually.

I have read about SnowballC (An R interface to the C libstemmer library that implements Porter's word stemming algorithm for collapsing words to a common root for aid of vocabulary.) Currently supported languages ​​are Danish, Dutch, English, Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish and Turkish) and found it very interesting Maybe it could be an add-on to the code.

José and Wenpei thank you for your help. 👍

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/IBMPredictiveAnalytics/Word_Cloud_Visualization/issues/2#issuecomment-307152180, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGvfBABs6brx5G8HNX-3cR7qoawng0Orks5sCB2OgaJpZM4Lbkkv.

seakiki commented 7 years ago

I have an idea. Maybe not leave so open the line install.packages (pkgs = x, repos = "http://cran.r-project.org") and put something more focused like: Pkgs = x, repos = "http://cran.r-project.org/bin/windows/contrib/3.0". I know, it will only bring packages of this version, but the problem is that IBM has decreed that only versions 3.1 and 3.2 of R can be used, then ....

seakiki commented 7 years ago

1

Wenpei commented 7 years ago

You may need update to Modeler 18.1 which released yesterday.

JosedeKruif commented 7 years ago

Thank you Ye Wenpei. But can you explain why I should do that? Will it solve the bug in the Wordcloud node what exactly will it solve? E.g. will it no longer override the other versions of the R plugin? You have asked us to do many actions and I have tried them all. With no effect. Very time consuming. So I am a bit reluctant at the moment……

Kind regards,

[cid:image002.png@01D2249D.52FFD8D0]

dr José de Kruifhttp://www.uu.nl/staff/JdeKruif/0, Utrecht University | Digital Humanities Labhttp://dig.hum.uu.nl/

Drift 10, room 3.07, 3512 BS Utrecht | Tel +31(0)30 253 7867

From: Yu Wenpei [mailto:notifications@github.com] Sent: woensdag 21 juni 2017 8:04 To: IBMPredictiveAnalytics/Word_Cloud_Visualization Cc: Kruif, J. de (José); Mention Subject: Re: [IBMPredictiveAnalytics/Word_Cloud_Visualization] Wordcloud fails (#2)

You may need update to Modeler 18.1 which released yesterday.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/IBMPredictiveAnalytics/Word_Cloud_Visualization/issues/2#issuecomment-309972421, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGvfBDuMuH9koOuSF4FlDmVop72Zugh4ks5sGLJQgaJpZM4Lbkkv.