Hi! I’m trying to build a bot which uses a form. In one of the form-slots the bot asks the user for a transportation method. I can successfully extract the correct entity but I want to generalize it.
Example 1: If the users writes “I will fly”, the bot should recognize the entity “fly” and generalize it to “plane”.
Example 2: If the users writes “I will ride my bike”, the bot should recognize the entity “bike” and generalize it to “bicycle”.
What would be the best way to do this?