Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-02-08 Thread Dom
Hi, I'm having the same problem, but the aforementioned solution didn't work for me. I keep getting an error message and the Stemmer is still reportedly unknown. See code below. Please let me know if I'm overlooking anything. Thanks. Sys.setenv(NOAWT=TRUE) library(tm) library(Snowball)

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-02-04 Thread Julien Velcin
THANK YOU ! Actually, the key is to disable AWT before loading the R packages. At last, it works with just a few warnings. Julien On Feb 2, 2012, at 4:36 PM, Zhou Zhou wrote: The Sys.setenv(NOAWT=TRUE) code indeed solved my problem which was excatly what Julien described. The key is

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-02-02 Thread Zhou Zhou
The Sys.setenv(NOAWT=TRUE) code indeed solved my problem which was excatly what Julien described. The key is you have to deactivate AWT BEFORE loading RWeka/Snowball. If I do so it will fire a few warning messages but that should not affect anything. I am running the lsa package which requires

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le dimanche 15 janvier 2012 à 23:06 +0100, Julien Velcin a écrit : I use the version 1.6: $ java -version java version 1.6.0_26 OK, so nothing wrong on that side. FWIW, I've found another person with the same problem: https://list.scms.waikato.ac.nz/pipermail/wekalist/2010-June/048895.html

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le lundi 16 janvier 2012 à 11:27 +0100, Julien Velcin a écrit : I had already seen this post. If I'm logged as root (it is possible under macosx), here is the result: * First run: reuters - tm_map(reuters, stemDocument) Error in .jnew(name) : java.lang.InternalError: Can't start

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
I had already seen this post. If I'm logged as root (it is possible under macosx), here is the result: * First run: reuters - tm_map(reuters, stemDocument) Error in .jnew(name) : java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
Ok but unfortunately JGR doesn't work when run as root! I think this is because the packages needed (e.g., rWeka) are installed locally (for the user). The installation at system level (in R framework) fails: Currently it is not possible to install binary packages from a remote

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Milan Bouchet-Valat
Le lundi 16 janvier 2012 à 13:07 +0100, Julien Velcin a écrit : Ok but unfortunately JGR doesn't work when run as root! I think this is because the packages needed (e.g., rWeka) are installed locally (for the user). The installation at system level (in R framework) fails: Currently it

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread David Winsemius
On Jan 16, 2012, at 8:18 AM, Milan Bouchet-Valat wrote: Le lundi 16 janvier 2012 à 13:07 +0100, Julien Velcin a écrit : snipped install.packages('RWeka') --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... Error: .onLoad failed in loadNamespace() for

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
My libraries are not in /Library/Frameworks/... but in /Users/ myname/Library/R/2.14/library/... I have made a chmod a+x for all the files (including the directories). No changes :(. Besides, I have already tried to re-install the packages (using different version of R: 2.12, 2.13, 2.4).

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-16 Thread Julien Velcin
Yes, I've tried to repair the permissions through Disk Utility. But it doesn't work. Julien The fact that the OP knows how to log in as root an a Mac suggests that he probably already knows that the Disk Utility.app program is the typical way to check and repair permissions, but I

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-15 Thread Milan Bouchet-Valat
Le vendredi 13 janvier 2012 à 15:49 +0100, Julien Velcin a écrit : Dear all, I have some troubles using the stemming algorithm provided by the tm (text mining) + Snowball packages. Here is my config: MacOS 10.5 R 2.12.0 / R 2.13.1 / R 2.14.1 (I have tried several versions) I have

Re: [R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-15 Thread Julien Velcin
I use the version 1.6: $ java -version java version 1.6.0_26 Julien On Jan 15, 2012, at 8:55 PM, Milan Bouchet-Valat wrote: Le dimanche 15 janvier 2012 à 16:32 +0100, Julien Velcin a écrit : Unfortunately, it doesn't work. I've installed JGR and launched my script. I still obtain an error:

[R] Troubles with stemming (tm + Snowball packages) under MacOS

2012-01-13 Thread Julien Velcin
Dear all, I have some troubles using the stemming algorithm provided by the tm (text mining) + Snowball packages. Here is my config: MacOS 10.5 R 2.12.0 / R 2.13.1 / R 2.14.1 (I have tried several versions) I have installed all the needed packages (tm, rJava, rWeka, Snowball) +