Skip to content

Dimension object unwieldy #13

@twerkmeister

Description

@twerkmeister

Hey @FraBle great work here 👍 😄! 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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions