how to instantiate a Set?

2009-02-22 Thread Bill Janssen
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("strin

Re: JCC Install

2009-02-22 Thread Andi Vajda
On Fri, 20 Feb 2009, Jacob Floyd wrote: Here I am again. After talking with some of the gentoo devs, they suggested I modify the setup.py to include gentoo specifics and send it upstream. As it is, they don't like to have to specify all the lflags, and in fact it becomes troublesome, because we

Re: JCC Install

2009-02-22 Thread Bill Janssen
> Getting annoyed with having to modify setup.py myself and needing a > way to build JCC that didn't involve editing the file, I added a long > time ago the possibility to set all these flags via environment > variables (as you noticed). I then do the right thing, once, in the > Makefile driving my

Re: how to instantiate a Set?

2009-02-22 Thread Andi Vajda
On Sun, 22 Feb 2009, Bill Janssen wrote: 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)", "

Re: how to instantiate a Set?

2009-02-22 Thread Andi Vajda
On Sun, 22 Feb 2009, Bill Janssen wrote: 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)", "

Re: how to instantiate a Set?

2009-02-22 Thread Bill Janssen
OK, I added JavaSet to my codebase. But still no joy -- I can now call mlt = MoreLikeThis(...) mlt.setStopWords(JavaSet(set(["foo", "bar", "bletch"]))) terms = mlt.retrieveInterestingTerms(...) Unfortunately, I still get "foo", "bar", and "bletch" in the terms. So something is still