python-duckling
python-duckling copied to clipboard
Dimension object unwieldy
Hey @FraBle great work here :+1: :smile:! just tried to use the duckling.dim.Dim object to have all the allowed values for dimensions, but I need to do it like this
from duckling.dim import Dim
from inspect import getmembers
allowed_values = [m[1] for m in getmembers(Dim) if not m[0].startswith("__") and not m[0].endswith("__")]
is there a more convenient way to get these values? If not, I'd also be happy to make a PR to turn it into a dict or sth that is easier accessible for people
Yes, please feel free to submit a pull request 😃
@twerkmeister, any updates?