Mycroft Community Forum

Entity extraction

Hi! I want to use “Padatious Intents” technology. But I do not understand how the entity extraction is done.

So, I make a “askTime.intent” file which contains this:
What time is it in {country}?

Now, in a “@intent_handler” I want to extract that entity and assign to a variable called “COUNTRY”. How can I do that?

COUNTRY = ------------------


Hi Ibak,

The entity is contained in the object. So your code would look something like:

    def handle_ask_time(self, message):
        COUNTRY ='country')

Thank you! Another question… Is it possible to use (in the same file) both Adapt Intent Parser and Padatious Intents technology?

Yeah absolutely, see the Hello World Skill for a really basic example: