Not sure if this is the right place to ask such a specific question, and forgive me in advance for terminology issues in this post (both python and the Intent API are very fresh to me)
I’m working on a skill where I want to add a bunch of keywords at runtime during initialization. So, say the code is:
def initialize(self): self.load_data_files(dirname(__file__)) intent = IntentBuilder('MyIntent').require( 'MyKeyword').require('SomeOtherWords').build()
If I understand, in this example one of the entities associated with the intent is called “SomeOtherWords” (and at least one of the list of keywords that are included in the entity will be required to invoke the intent) – if I have placed a list of keywords in a file called ./vocab/en-us/SomeOtherWords.voc those keywords wind up in this entity.
What I want to do is to add additional keywords – or really all the keywords – to the entity programatically at runtime in the initialize function (I will pull them from a ZMQ message that has a list of stuff in it)
I have been reading the API docs, but haven’t yet stumbled upon the way to do it. In another post here on this board, I have seen code like
but that register_entity function isn’t available on the Intent, as far as I can tell.
Sorry for being so lost - any help would be greatly appreciated.