Quantcast

carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

emmanuelchauvin
Hi,

I downloaded the carrot2-java-api-3.3.0.zip.

I create a project on eclipse with the correct classpath.

And when I execute ClusteringDataFromDocumentSources.java I have this error :

---------------------------------------
Exception in thread "main" org.carrot2.util.attribute.AttributeBindingException: No value for required attribute: documents (org.carrot2.clustering.lingo.LingoClusteringAlgorithm#documents)
        at org.carrot2.util.attribute.AttributeBinder$AttributeBinderActionBind.performAction(AttributeBinder.java:543)
        at org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:309)
        at org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:214)
        at org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:159)
        at org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:137)
        at org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:124)
        at org.carrot2.core.SimpleProcessingComponentManager.prepare(SimpleProcessingComponentManager.java:59)
        at org.carrot2.core.Controller.process(Controller.java:273)
        at org.carrot2.core.Controller.process(Controller.java:180)
        at org.carrot2.examples.clustering.ClusteringDataFromDocumentSources.main(ClusteringDataFromDocumentSources.java:86)
-----------------------------------------

I work with Eclipse 3.4.1 and JRE 1.6 update 20.

I tested both providers Yahoo and Microsoft of your example ...

Could you tell me where is the problem ?

Best regards.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

JIRA dawid.weiss@cs.put.poznan.pl
You must be doing something wrong because when I download this zip,
unpack it and run

ant carrot2.api.test

all the examples work just fine. Have you modified this example
anyhow? It looks like the required attribute documents is not set
property -- in this example you mentioned, this attribute is set by
the input component (MicrosoftLiveDocumentSource).

Dawid

On Thu, Jun 10, 2010 at 6:32 PM, emmanuelchauvin
<[hidden email]> wrote:

>
> Hi,
>
> I downloaded the carrot2-java-api-3.3.0.zip.
>
> I create a project on eclipse with the correct classpath.
>
> And when I execute ClusteringDataFromDocumentSources.java I have this error
> :
>
> ---------------------------------------
> Exception in thread "main"
> org.carrot2.util.attribute.AttributeBindingException: No value for required
> attribute: documents
> (org.carrot2.clustering.lingo.LingoClusteringAlgorithm#documents)
>        at
> org.carrot2.util.attribute.AttributeBinder$AttributeBinderActionBind.performAction(AttributeBinder.java:543)
>        at
> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:309)
>        at
> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:214)
>        at
> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:159)
>        at
> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:137)
>        at
> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:124)
>        at
> org.carrot2.core.SimpleProcessingComponentManager.prepare(SimpleProcessingComponentManager.java:59)
>        at org.carrot2.core.Controller.process(Controller.java:273)
>        at org.carrot2.core.Controller.process(Controller.java:180)
>        at
> org.carrot2.examples.clustering.ClusteringDataFromDocumentSources.main(ClusteringDataFromDocumentSources.java:86)
> -----------------------------------------
>
> I work with Eclipse 3.4.1 and JRE 1.6 update 20.
>
> I tested both providers Yahoo and Microsoft of your example ...
>
> Could you tell me where is the problem ?
>
> Best regards.
>
>
> --
> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/carrot2-java-api-3-3-0-problem-on-ClusteringDataFromDocumentSources-java-tp5164096p5164096.html
> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

emmanuelchauvin
Hi Dawid,

In your ant carrot2.api.test you don't have integrated "org.carrot2.examples.clustering.ClusteringDataFromDocumentSources".

For this specific classe your sample seems not working ...

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

JIRA dawid.weiss@cs.put.poznan.pl
In reply to this post by JIRA dawid.weiss@cs.put.poznan.pl
Hi. This looks like a bug in simple controller logic to me. Filed an
issue for this:

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

For now, you can replace the controller to use the pooled one:

        final Controller controller = ControllerFactory.createPooling();

Apologies for problems, we'll work on this.

Dawid

On Thu, Jun 10, 2010 at 6:52 PM, Dawid Weiss
<[hidden email]> wrote:

> You must be doing something wrong because when I download this zip,
> unpack it and run
>
> ant carrot2.api.test
>
> all the examples work just fine. Have you modified this example
> anyhow? It looks like the required attribute documents is not set
> property -- in this example you mentioned, this attribute is set by
> the input component (MicrosoftLiveDocumentSource).
>
> Dawid
>
> On Thu, Jun 10, 2010 at 6:32 PM, emmanuelchauvin
> <[hidden email]> wrote:
>>
>> Hi,
>>
>> I downloaded the carrot2-java-api-3.3.0.zip.
>>
>> I create a project on eclipse with the correct classpath.
>>
>> And when I execute ClusteringDataFromDocumentSources.java I have this error
>> :
>>
>> ---------------------------------------
>> Exception in thread "main"
>> org.carrot2.util.attribute.AttributeBindingException: No value for required
>> attribute: documents
>> (org.carrot2.clustering.lingo.LingoClusteringAlgorithm#documents)
>>        at
>> org.carrot2.util.attribute.AttributeBinder$AttributeBinderActionBind.performAction(AttributeBinder.java:543)
>>        at
>> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:309)
>>        at
>> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:214)
>>        at
>> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:159)
>>        at
>> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:137)
>>        at
>> org.carrot2.util.attribute.AttributeBinder.bind(AttributeBinder.java:124)
>>        at
>> org.carrot2.core.SimpleProcessingComponentManager.prepare(SimpleProcessingComponentManager.java:59)
>>        at org.carrot2.core.Controller.process(Controller.java:273)
>>        at org.carrot2.core.Controller.process(Controller.java:180)
>>        at
>> org.carrot2.examples.clustering.ClusteringDataFromDocumentSources.main(ClusteringDataFromDocumentSources.java:86)
>> -----------------------------------------
>>
>> I work with Eclipse 3.4.1 and JRE 1.6 update 20.
>>
>> I tested both providers Yahoo and Microsoft of your example ...
>>
>> Could you tell me where is the problem ?
>>
>> Best regards.
>>
>>
>> --
>> View this message in context: http://carrot2-users-and-developers-forum.607571.n2.nabble.com/carrot2-java-api-3-3-0-problem-on-ClusteringDataFromDocumentSources-java-tp5164096p5164096.html
>> Sent from the Carrot2 Users and Developers Forum mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Carrot2-developers mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>>
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

Stanislaw Osinski
Administrator
Hi,

Hi. This looks like a bug in simple controller logic to me. Filed an
issue for this:

http://issues.carrot2.org/browse/CARROT-684
 
The issue is fixed now. You can download working code from:


Please let us know if you're still having any problems.

Thanks!

S.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: carrot2-java-api-3.3.0 problem on ClusteringDataFromDocumentSources.java

emmanuelchauvin
In reply to this post by emmanuelchauvin
Yes, it's working fine now.

Thank you !

Emmanuel Chauvin.
Loading...