I am working on putting together a plugin for Indico that will access there custom data set feature. I have all of the calls working to add data, train the collection and tag text from it. Now the problem, I don’t know anything about JS and I believe writing an action to define the object as a variable that I can write to a table is what I need to do.
Results are returned as an object and its probability of being a match like this
Here is an actual return from a test data set I trained with a few cars and motorcycles just to test. I expect my actual dataset to have 100+ possible objects that may change at any given time so hardcoding them is not an option.
I can have the API only return the best match but the way that the data is structured I only get access to the probability when what I need is the object name. Ideally I would like to have access to both the object name and the probability so that if there are multiple high probability objects I could classify something as both and weight it on the probability.
I’m not expecting somebody to write this for me but if someone could point me in the right direction that would be great. I have no intention of becoming a master at JS but I am certainly willing to learn enough to get by. The problem is I don’t even know where to start and I can’t seem to find any examples that seem close to what I want to do and to be honest I’m not quite sure where to start. Also I will release this with dynamic options so other can define their own custom collections and make use of it.