Hi,
I want to create a device that lets users train a machine learning algorithm to find news articles of a certain topic. I have created a device in thingpedia that will do a simplified version of this. Specifically, the current implementation is already connected to another service that will get news articles from various RSS feeds (the get
part of the device).
I want to create a different command that will allow the user to choose if an article is relevant to a topic or not. Specifically, I want the program flow to go as follows:
User asks to train a certain topic
System returns a random news article from a remote service
System asks the user to determine if the article is relevant to the topic or not by choosing yes or no (preferably by pressing a button)
User chooses yes or no
System sends the article alongside the user’s response to the remote service
How should I structure the do
or action command to do this (specifically the index.js and manifest.tt)? Is it even possible for the device to obtain the article first before asking the user to choose?