JNI

56 views
Skip to first unread message

Al Docherty

unread,
Jun 2, 2015, 12:41:07 PM6/2/15
to unitex-...@googlegroups.com
Hi,

Would really appreciate some instructions on setting up and using JNI in 3.0 release.

Kind regards
Alex

Gilles Vollant

unread,
Jun 3, 2015, 5:12:15 AM6/3/15
to Alex, unitex-...@googlegroups.com

I've uploaded Windows compilation of jni at
http://gvollant.free.fr/unitex_jni_win_demo.zip

with sample

There is online documentation
http://unitex-library.readthedocs.org/fr/latest/

and (incomplete) english translation
http://unitex-library.readthedocs.org/en/latest/


-----Message d'origine-----
De : Alex [mailto:alexdoch...@gmail.com]
Envoyé : mardi 2 juin 2015 19:16
À : Gilles Vollant
Objet : Re: [Unitex-GramLab] JNI

Salut,

I didn't build it no. Working on windows 7 64-bit.

Merci

Kind regards
Alex

Sent from my iPhone

> On 2 Jun 2015, at 17:56, Gilles Vollant <voll...@gmail.com> wrote:
>
> Dis you build it?
>
> What is your opérations system ?
>> --
>> You received this message because you are subscribed to the Google Groups "Unitex-GramLab" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to unitex-gramla...@googlegroups.com.
>> To post to this group, send email to unitex-...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/unitex-gramlab.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/unitex-gramlab/5da61698-cf5e-490e-90cf-6ae57a3e510e%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

Gilles Vollant

unread,
Jun 3, 2015, 7:58:26 AM6/3/15
to Al Docherty, unitex-...@googlegroups.com

 

I’ve updated the java sample with correct persist and vfs

 

In the batch, just replace

"%JAVA_HOME%\bin\java.exe" -classpath .; unitexLibraryAndJniDemo %1 %2 %3

by

"%JAVA_HOME%\bin\java.exe" -classpath .; unitexLibraryAndJniDemo %1 %2 %3 %4

 

Because there is an additional parameter

(and for the .sh, add $4 after $3 for bash)

 

De : Al Docherty [mailto:alexdoch...@gmail.com]
Envoyé : mercredi 3 juin 2015 12:37


À : Gilles Vollant
Objet : Re: [Unitex-GramLab] JNI

 

Hi Gilles,

 

This is very good. Works as expected, thank you.

 

Wondering if you know of any speed improvements? For example, writing the corpus to disk probably takes more time than is necessary when running Locate, if it could just take a string directly...?

 

Kind regards

Alex

unitexLibraryAndJniDemo.zip
unitexLibraryAndJniDemo.java
Reply all
Reply to author
Forward
0 new messages