Re: LambdaMART XML model to JSON

2017-07-24 Thread Ryan Yacyshyn
Hi Alessandro, Ok no prob. The script-based approach seems to work just fine for me right now! Ryan On Mon, 24 Jul 2017 at 18:56 alessandro.benedetti wrote: > hi Ryan, > the issue you mentioned was mine : > https://sourceforge.net/p/lemur/feature-requests/144/ > > My bad It got lost in sea of

Re: LambdaMART XML model to JSON

2017-07-24 Thread alessandro.benedetti
hi Ryan, the issue you mentioned was mine : https://sourceforge.net/p/lemur/feature-requests/144/ My bad It got lost in sea of "To Dos" . I still think it could be a good contribution to the library, but at the moment I think going with a custom script/app to do the transformation is the way to go

Re: LambdaMART XML model to JSON

2017-07-24 Thread Ryan Yacyshyn
Here's something that'll create a JSON model that can be directly uploaded into Solr: https://github.com/ryac/lambdamart-xml-to-json It'll map the feature IDs to the names found in the feature-store as well. I had this error when uploading model: Model type does not exist org.apache.solr.ltr.mo

Re: LambdaMART XML model to JSON

2017-07-23 Thread Ryan Yacyshyn
Thanks Doug, this is helpful. I also started something last night to output to JSON for Solr, I'll post it up as well. Ryan On Sun, 23 Jul 2017 at 23:48 Doug Turnbull < dturnb...@opensourceconnections.com> wrote: > Yes you're correct that the feature is the 1-based identifier from your > tra

Re: LambdaMART XML model to JSON

2017-07-23 Thread Doug Turnbull
Yes you're correct that the feature is the 1-based identifier from your training data. For a script. Not one to Solr exactly, but when developing the Elasticsearch plugin, I started to work on a JSON serialization format, and as part of that built a Python script for reading the Ranklib XML and ou