[R] Trying to get RWeka/Snowball to work

From: Peter Holme <peter_at_holme.se>
Date: Fri, 29 Apr 2011 16:14:19 +0200


Hi!

I was trying to install RWeka to be able to use SnowballStemmer in a Mac OS X 10.6.7 environment... but coudn't do it... I get error messages after:

> library(RWeka);
> install(Snowball);
> ## Test the supplied vocabulary for the default stemmer ('porter'):
> source <- readLines(system.file("words", "porter","voc.txt",

+                                 package = "Snowball"))

> result <- SnowballStemmer(source)

Error in .jnew(name) :
  java.lang.InternalError: Can't start the AWT because Java was started on the first thread. Make sure StartOnFirstThread is not specified in your application's Info.plist or on the command line
> target <- readLines(system.file("words", "porter", "output.txt",
+                                 package = "Snowball"))

> ## Any differences?
> any(result != target)
Error: object 'result' not found
Trying to add database driver (JDBC): RmiJdbc.RJDriver - Warning, not in CLASSPATH?
Trying to add database driver (JDBC): jdbc.idbDriver - Warning, not in CLASSPATH?
Trying to add database driver (JDBC): org.gjt.mm.mysql.Driver - Warning, not in CLASSPATH?
Trying to add database driver (JDBC): com.mckoi.JDBCDriver - Warning, not in CLASSPATH?
Trying to add database driver (JDBC): org.hsqldb.jdbcDriver - Warning, not in CLASSPATH?

Well – after searching around, I decided to take the matter into my own hands – not ideal, but it fits my small purpose for now... will possibly expand it later..:
http://holme.se/stem/

:)

Peter

-- 
+47 920 42 782

	[[alternative HTML version deleted]]


______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Received on Fri 29 Apr 2011 - 19:12:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 19:20:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive