[JIRA] [CARROT2] ClusteringQualityBenchmark example not working

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] [CARROT2] ClusteringQualityBenchmark example not working

mounaim.latif
the example of  clustering quality  (ClusteringQualityBenchmark .java )  in carrot2 api does not function  

Topic Algorithm Contamination F-Score Precision Recall NMI
Exception in thread "main" java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.carrot2.core.SimpleProcessingComponentManager.prepare(SimpleProcessingComponentManager.java:55)
        at org.carrot2.core.Controller.process(Controller.java:341)
        at org.carrot2.core.Controller.process(Controller.java:246)
        at examples.org.carrot2.examples.research.ClusteringQualityBenchmark.main(ClusteringQualityBenchmark.java:72)
Caused by: java.lang.NullPointerException
        at org.carrot2.util.resource.URLResource.<init>(URLResource.java:59)
        at org.carrot2.util.resource.ClassResource.<init>(ClassResource.java:31)
        at org.carrot2.source.ambient.FubTestCollection.<init>(FubTestCollection.java:55)
        at org.carrot2.source.ambient.AmbientDocumentSource.<clinit>(AmbientDocumentSource.java:29)
        ... 10 more
Java Result: 1
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

Dawid Weiss-2
Your projects are incorrectly configured. This exception means no
resource has been found. That resource is definitely part of the
project.

Follow the instructions here and set up your Eclipse properly:
http://download.carrot2.org/head/manual/index.html#section.integration.seting-up-c2-project-in-eclipse

Dawid

On Sun, Jun 10, 2012 at 6:07 PM, mounaim.latif <[hidden email]> wrote:

> the example of  clustering quality  (ClusteringQualityBenchmark .java )  in
> carrot2 api does not function
>
> Topic   Algorithm       Contamination   F-Score Precision       Recall  NMI
> Exception in thread "main" java.lang.ExceptionInInitializerError
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>        at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>        at java.lang.Class.newInstance0(Class.java:355)
>        at java.lang.Class.newInstance(Class.java:308)
>        at
> org.carrot2.core.SimpleProcessingComponentManager.prepare(SimpleProcessingComponentManager.java:55)
>        at org.carrot2.core.Controller.process(Controller.java:341)
>        at org.carrot2.core.Controller.process(Controller.java:246)
>        at
> examples.org.carrot2.examples.research.ClusteringQualityBenchmark.main(ClusteringQualityBenchmark.java:72)
> Caused by: java.lang.NullPointerException
>        at org.carrot2.util.resource.URLResource.<init>(URLResource.java:59)
>        at org.carrot2.util.resource.ClassResource.<init>(ClassResource.java:31)
>        at
> org.carrot2.source.ambient.FubTestCollection.<init>(FubTestCollection.java:55)
>        at
> org.carrot2.source.ambient.AmbientDocumentSource.<clinit>(AmbientDocumentSource.java:29)
>        ... 10 more
> Java Result: 1
>
> --
> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/JIRA-CARROT2-ClusteringQualityBenchmark-example-not-working-tp7577504.html
> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

mounaim.latif
I am sure that my project is correctly configured for all classes test is correctly running except this class   , plz I need results for this class
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

Dawid Weiss-2
I've just ran it and it works fine. The exception you're getting
suggests you have a classpath problem (the required resource is not
found).

Dawid

On Tue, Jun 12, 2012 at 4:46 AM, mounaim.latif <[hidden email]> wrote:

> I am sure that my project is correctly configured for all classes test is
> correctly running except this class   , plz I need results for this class
>
> --
> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/JIRA-CARROT2-ClusteringQualityBenchmark-example-not-working-tp7577504p7577525.html
> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

mounaim.latif
 I tried several times, I still have the same problem, how can I run the class in another project?

might you send me your project in jar format ? to test if it works
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

Dawid Weiss-2
http://ophelia.cs.put.poznan.pl/~dweiss/download/api.zip

I modified the default examples distribution and:

1) added the resources I previously mentioned
(core/carrot2-source-ambient/src/[ambient,odp239]) to the project's
classpath (under src/),

2) added an ant target to run ClusteringQualityBenchmark.

Download, unzip and run "ant metrics".

Dawid

On Tue, Jun 12, 2012 at 5:51 PM, mounaim.latif <[hidden email]> wrote:

>  I tried several times, I still have the same problem, how can I run the
> class in another project?
>
> might you send me your project in jar format ? to test if it works
>
> --
> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/JIRA-CARROT2-ClusteringQualityBenchmark-example-not-working-tp7577504p7577530.html
> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

Dawid Weiss-2
I have fixed the current distribution to include those resources by
default (and run the clustering quality benchmark):

http://issues.carrot2.org/browse/CARROT-928

Dawid

On Tue, Jun 12, 2012 at 9:55 PM, Dawid Weiss
<[hidden email]> wrote:

> http://ophelia.cs.put.poznan.pl/~dweiss/download/api.zip
>
> I modified the default examples distribution and:
>
> 1) added the resources I previously mentioned
> (core/carrot2-source-ambient/src/[ambient,odp239]) to the project's
> classpath (under src/),
>
> 2) added an ant target to run ClusteringQualityBenchmark.
>
> Download, unzip and run "ant metrics".
>
> Dawid
>
> On Tue, Jun 12, 2012 at 5:51 PM, mounaim.latif <[hidden email]> wrote:
>>  I tried several times, I still have the same problem, how can I run the
>> class in another project?
>>
>> might you send me your project in jar format ? to test if it works
>>
>> --
>> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/JIRA-CARROT2-ClusteringQualityBenchmark-example-not-working-tp7577504p7577530.html
>> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Carrot2-developers mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

mounaim.latif
thank you it's working fine, please how I can apply this class with a arabic document corpus ??
Reply | Threaded
Open this post in threaded view
|

Re: [JIRA] [CARROT2] ClusteringQualityBenchmark example not working

Dawid Weiss-2
The source code is the answer here -- take a look at the tests of
quality metrics and note how each document has an "ideal" cluster
assignment attribute. Quality metrics are calculated based on this
field.

We don't have a corpus of Arabic texts but you'll need a predefined
ground truth clustering of that too, not just the corpus of documents.

Dawid

On Fri, Jun 15, 2012 at 11:24 PM, mounaim.latif <[hidden email]> wrote:

> thank you it's working fine, please how I can apply this class with a arabic
> document corpus ??
>
> --
> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/JIRA-CARROT2-ClusteringQualityBenchmark-example-not-working-tp7577504p7577563.html
> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers