Re: A working example to play with Naive Bayes classifier

2019-04-01 Thread koponk
Hi, i have some problem when implementing this solr classification, this is my schema : and this is my solrconfig : classi pagetext_mlt knn_tags prebayes_tags bayes

Re: A working example to play with Naive Bayes classifier

2016-07-15 Thread Alessandro Benedetti
But how big it is your index ? Are you expecting Solr to automatically classify your documents without any knowledge groundbase ? Please attach an example of schema. There was a reason if I asked you :) Seems related the fact we get no token from the text analysis. Cheers On Fri, Jul 15, 2016 at

Re: A working example to play with Naive Bayes classifier

2016-07-15 Thread Tomas Ramanauskas
Hi, Allesandro, sorry for the delay. What do you mean? As I mentioned earlier, I followed a super simply set of steps. 1. Download Solr 2. Configure classification 3. Create some documents using curl over HTTP. Is it difficult to reproduce the steps / problem? Tomas > On 23 Jun 2016, at

Re: A working example to play with Naive Bayes classifier

2016-06-23 Thread Alessandro Benedetti
Can you give an example of your schema, and can you run a simple query for you index, curious to see how the input fields are analyzed. Cheers On Wed, Jun 22, 2016 at 6:05 PM, Alessandro Benedetti < benedetti.ale...@gmail.com> wrote: > This is better! At list the classifier is invoked! > How ma

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Alessandro Benedetti
This is better! At list the classifier is invoked! How many docs in the index have the class assigned? Take a look to the stacktrace and you should find the cause! I am now on mobile, I will check the code tomorrow! Cheers On 22 Jun 2016 5:26 pm, "Tomas Ramanauskas" wrote: > > I also tried with

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Tomas Ramanauskas
I also tried with this config (adding **): classification And I get the error: $ curl http://localhost:8983/solr/demo/update -d ' [ {"id" : "book15", "title_t":["The Way of Kings"], "author_s":"Brandon Sanderson", "cat_s": null, "pubyear_i":2010, "ISBN_s":"978-0-765

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Tomas Ramanauskas
Thanks for the response, Alessandro. I tried this and it didn’t work either: $ curl http://localhost:8983/solr/demo/update -d ' [ {"id" : "book14", "title_t":["The Way of Kings"], "author_s":"Brandon Sanderson", "cat_s": null, "pubyear_i":2010, "ISBN_s":"978-0-7653-2635-5" } ]’ {"responseHeade

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Alessandro Benedetti
Hi Tomas, first consideration : an empty string is different from a NULL string. This is controversial, I would suggest you to never use the empty String as this can cause some others side effect. Apart from that, the plugin will add the class only if the class field is without any value > Object

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Tomas Ramanauskas
I also tried this configuration, but could get the feature to work: classification title_t,author_s cat_s bayes Tomas On 22 Jun 2016, at 13:46, Tomas Ramanauskas mailto:tomas.ramanaus...@springer.com>> wrote: P.S. The version I use:

Re: A working example to play with Naive Bayes classifier

2016-06-22 Thread Tomas Ramanauskas
P.S. The version I use: 6.1.0-68 Also, earlier I said “If I modify an existing record, I think the functionality works:”, but I think it doesn’t work for me at all. $ curl http://localhost:8983/solr/demo/get?id=book1 { "doc": { "id":"book1", "title_t":["The Way of Kings"], "auth

A working example to play with Naive Bayes classifier

2016-06-22 Thread Tomas Ramanauskas
Hi, everyone, would someone be able to share a working example (step by step) that demonstrates the use of Naive Bayes classifier in Solr? I followed this Blog post: https://alexbenedetti.blogspot.co.uk/2015/07/solr-document-classification-part-1.html?showComment=1464358093048#c248990230208500