Lucene Character NGram UFE: ClassNotFoundException for IndexableField

9 views
Skip to first unread message

rainbo...@googlemail.com

unread,
Mar 9, 2016, 6:25:40 PM3/9/16
to dkpro-tc-users
Heyho,

I was trying to use the LuceneCharacterNGramUFE. During the experiment, URLClassLoader throws a ClassNotFoundException for the class IndexableField (org/apache/lucene/index/IndexableField).
Sounds like the URL changed.

Is this a known and reproducible issue, or does the Feature Extractor need any particular settings,which I am unaware of? I simply tried to add the Feature extractor to my list of feature extractors.

Johannes Daxenberger

unread,
Mar 10, 2016, 2:08:15 AM3/10/16
to rainbo...@googlemail.com, dkpro-tc-users
Hi,

could be a version conflict. Could you make sure that you don't have different versions of, e.g. Lucene, on the classpath/in your pom?

Best,
Johannes




Am 10.03.16 00:25 schrieb "dkpro-t...@googlegroups.com im Auftrag von rainbow.head6 via dkpro-tc-users" <dkpro-t...@googlegroups.com>:
>--
>You received this message because you are subscribed to the Google Groups "dkpro-tc-users" group.
>To unsubscribe from this group and stop receiving emails from it, send an email to dkpro-tc-user...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

Marius Hamacher

unread,
Mar 10, 2016, 4:27:26 AM3/10/16
to dkpro-tc-users, rainbo...@googlemail.com
Hey,

Do I need to add the dependency for Lucene manually or is DKPro taking care of that? 


> Could you make sure that you don't have different versions of, e.g. Lucene, on the classpath/in your pom? 

I can try (still new to DKPro, eclipse and all that jazz). There are two warnings (non-critical) by eclipse, when inspecting the pom:

    Duplicating managed version 0.7.0 for dkpro-tc-core,
    Duplicating managed version 1.7.0 for de.tudarmstadt.ukp.dkpro.core.stanfordnlp-gpl

Fixing this had no effect on the problem.

Best Regards
Marius

Richard Eckart de Castilho

unread,
Mar 10, 2016, 4:33:18 AM3/10/16
to Marius Hamacher, dkpro-tc-users
Could be related to the Lucene version on the classpath. See

https://groups.google.com/d/msg/dkpro-tc-dev/YHGvxt1khNY/Fo7-EptsDgAJ

Cheers,

-- Richard

Marius Hamacher

unread,
Mar 10, 2016, 8:01:06 AM3/10/16
to dkpro-tc-users, rainbo...@googlemail.com
> Could be related to the Lucene version on the classpath

Spot on, thanks a lot!

Cheers,
Marius
Reply all
Reply to author
Forward
0 new messages