How does rasa achieve unit conversion?

I want to use rasa to achieve unit conversion.But now there are many units,like time,digital,length,mass,temperature,volume.And like the length unit has a lot, such as meters, kilometers, centimeters.There are many situations in combination.

How can I use rasa to quickly and efficiently achieve unit conversion? Please help me,Thanks a lot

Study a library like pint that already does unit conversion, see how it works and from there create custom actions for what you want to do. And you’re correct, there are a lot of units, you’ll need a big lookup table and a lot of synonyms tables, and something for extracting numbers, I’m not sure if a regex will be enough.

1 Like