lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Janssen <jans...@parc.com>
Subject how to instantiate a Set?
Date Sun, 22 Feb 2009 14:19:10 GMT
I'm probably missing something incredibly obvious here...

I'm trying to call MoreLikethis.setStopWords(Set words).  I've got a
list of stop words in Python, but I can't figure out how to turn that
into a Java Set.  I tried "lucene.HashSet(set(words)",
"lucene.HashSet(lucene.ArrayList(JArray("string")(words)))", and so
forth, without much luck.

Bill

Mime
View raw message