I want values of synonym mapper in action.py file
Here is the list of synonyms that I have
how to get all the values in action.py file.(I need that to build some custom logic)
Does tracker object supports it?
Can we access an object of EntitySynonymMapper class in action.py file?
I don’t believe that individual steps in the NLU pipeline are available through the tracker. Since it’s pretty short, maybe add it to your actions.py file directly as a dictionary they way you would for data validation?
Hey @rctatman thank you for your answer.
yes you are right there is no way to get the object of EntitySynonymMapper class.
So I wrote some custom logic to get all the synonyms in the dictionary format.
Logic will dynamically handle all the synonyms added in the nlu folder, so avoiding the hustle to maintain another mapper for synonyms.
Here is the logic. I think it is useful for anybody who wants to implement this.’