|
List Info
Thread: slovenian stemmer for snowball for pylucene
|
|
| slovenian stemmer for snowball for
pylucene |

|
2006-12-27 03:51:17 |
On Wed, 27 Dec 2006, Andra Tori wrote:
> On Tue, 2006-12-26 at 16:34 -0800, Andi Vajda wrote:
>>> I managed to compile it with standard tools in
debian unstable, but
>>> Highlighter only partly works - until i try to
pass it my own or already
>>> existing fragmenter as a parameter... then i
start getting null pointer
>>> exceptions.
>>
>> As said in my previous reply, run 'make test', if
you get failures, use a
>> different compiler: gcj 3.4.6 or a recent gcj 4.2.0
snapshot are good. Nothing
>> in between usually is on Linux.
>
>
> I just tried to build with gcj from experimental
(4.2-20061003-1), but
> without luck...
That may not be recent enough of a snapshot.
I think I used late November ones with success.
For more details, see:
http://lists.osafoundation.org/pi
permail/pylucene-dev/2006-November/001404.html
(and correct appropriately for your platform).
Please, note that if you wish to use a gcj 4.x compiler, you
need to start
building from the Lucene Java sources (as outlined at the
URL above) and not
from the source tarballs I produce. These seem to work with
gcj 3.4.x only for
a strange, so far unsolved, reason.
GCJ 4.x is rather bleeding edge, if you want to take an
easier route, use gcj
3.4.6. If yu need to build gcj 3.4.x from sourcesm, see
PyLucene's INSTALL
file.
Andi..
_______________________________________________
pylucene-dev mailing list
pylucene-dev osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
|
|
| debian unstable package of pylucene |

|
2006-12-27 13:18:09 |
On Tue, 2006-12-26 at 19:51 -0800, Andi Vajda wrote:
> On Wed, 27 Dec 2006, Andra Tori wrote:
>
> > Well it was submitted there more than a year ago
(i got it from the list
> > and fixed it up to handle utf8 properly), but
Porter did not include it
> > into the distribution because he wanted to clarify
if all the rules are
> > ok.
>
> Oh well. That happens.
> I saw no copyright notice on the source file you sent.
> It might be good to add that first. If you agree to the
License used by
> PyLucene, just copy the copyright notice from one of
the other PyLucene source
> files.
I can't do that - i am not the author of the file in
question, Porter is and he posted it on the mailing list, i
just fixed it up.
It is reasonably to expect that the file bears the same
licence as other stemmers he publishes in Snowball...
> > Well... by my own evaluation the stemmer is far
from perfect, but still
> > very useful for many uses (i already use it
directly in my project), and
> > way better than no stemmer at all... So it would
be great if I could use
> > it for the PyLucene which I use...
>
> That makes it less than ideal for distribution by
PyLucene and PyLucene only.
>
> Can you send a python sample about how this stemmer
is/would be used with
> PyLucene (I know next to nothing about the porter
stemmers package) and from
> that I can see what is needed to include it in PyLucene
and I can at least
> send you instructions on how to do it yourself if it
comes to that...
Well, i have to figure out first how to use any stemmer at
all in PyLucenne ... I am currently using this stemmer
through PyStemmer... I'll get back to you when i do it.
> > I just tried to build with gcj from experimental
(4.2-20061003-1), but
> > without luck...
>
> GCJ 4.x is rather bleeding edge, if you want to take an
easier route, use gcj
> 3.4.6. If yu need to build gcj 3.4.x from sourcesm, see
PyLucene's INSTALL
> file.
Thank you _very_ much for your help. I managed to build the
packages
finally, I used gcj 3.4.4 as explained in INSTALL and with
the debian
skeleton from Brett Parker.
they pass the "make test" test.
The result is here for anyone who needs this:
http://www
.kiberpipa.org/~minmax/pylucene/
bye
Andraz Tori
_______________________________________________
pylucene-dev mailing list
pylucene-dev osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
|
|
| debian unstable package of pylucene |

|
2006-12-27 14:20:08 |
On Wed, 2006-12-27 at 14:18 +0100, Andraž Tori wrote:
> Thank you _very_ much for your help. I managed to build
the packages
> finally, I used gcj 3.4.4 as explained in INSTALL and
with the debian
> skeleton from Brett Parker.
>
> they pass the "make test" test.
>
> The result is here for anyone who needs this:
> http://www
.kiberpipa.org/~minmax/pylucene/
>
I proclaimed victory too soon...
all tests pass, but when try to use it inside Django, it
silently
crushes. Crush happens on import sentance already... for
example at:
from PyLucene import FSDirectory
... no error message, just crush
anyone had this problem before ?
bye
andraz
_______________________________________________
pylucene-dev mailing list
pylucene-dev osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
|
|
| debian unstable package of pylucene |

|
2006-12-27 15:25:53 |
On Wed, Dec 27, 2006 at 03:20:08PM +0100, Andra?? Tori
wrote:
> On Wed, 2006-12-27 at 14:18 +0100, Andra?? Tori wrote:
>
> > Thank you _very_ much for your help. I managed to
build the packages
> > finally, I used gcj 3.4.4 as explained in INSTALL
and with the debian
> > skeleton from Brett Parker.
> >
> > they pass the "make test" test.
> >
> > The result is here for anyone who needs this:
> > http://www
.kiberpipa.org/~minmax/pylucene/
> >
>
>
> I proclaimed victory too soon...
>
> all tests pass, but when try to use it inside Django,
it silently
> crushes. Crush happens on import sentance already...
for example at:
> from PyLucene import FSDirectory
> ... no error message, just crush
>
> anyone had this problem before ?
brettp erwin:~$ python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on
linux2
Type "help", "copyright",
"credits" or "license" for more
information.
>>> from PyLucene import FSDirectory
WARNING: could not properly read security provider files:
file:/usr/lib/python2.4/site-packages/security/libgcj.securi
ty
file:/usr/lib/python2.4/site-packages/security/classpath.sec
urity
Falling back to standard GNU security provider
>>>
Using your package it looks fine here - can you give any
debug information?
Potentially the output of strace -f for the above would be
good... something
like:
strace -f -o pylucene-crash.strace python -c "from
PyLucene import FSDirectory"
Should do the trick.
Cheers,
--
Brett Parker
_______________________________________________
pylucene-dev mailing list
pylucene-dev osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/pylu
cene-dev
|
|
| debian unstable package of pylucene |

|
2006-12-27 15:45:22 |
|
> I proclaimed victory too soon...
>
> all tests pass, but when try to use it inside Django, it silently
> crushes. Crush happens on import sentance already... for example at:
> from PyLucene import FSDirectory
> ... no error message, just crush
>
> anyone had this problem before ?
brettp erwin:~$ python
Python 2.4.4 (#2, Oct 20 2006, 00:23:25)
[GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyLucene import FSDirectory
WARNING: could not properly read security provider files:
file:/usr/lib/python2.4/site-packages/security/libgcj.security
file:/usr/lib/python2.4/site-packages/security/classpath.security
Falling back to standard GNU security provider
>>>
Using your package it looks fine here - can you give any debug information?
Potentially the output of strace -f for the above would be good... something
like:
strace -f -o pylucene-crash.strace python -c "from PyLucene import FSDirectory"
The problems comes up _only_ inside Django... If i load pylucene cleanly in python it works.
Here's the end of the trace -f:
[pid 4490] open("/usr/lib/python2.4/site-packages/_PyLucene.so", O_RDONLY) = 8
[pid 4490] read(8, "177ELF111 | |