dkpro / dkpro-cassis

UIMA CAS processing library written in Python
https://pypi.org/project/dkpro-cassis/
Apache License 2.0
84 stars 22 forks source link

Clean up typeystem query type method #201

Open jcklie opened 2 years ago

jcklie commented 2 years ago

Is your feature request related to a problem? Please describe. Right now, we have methods for checking type info like is_instance in three places, standalone functions, on Type and on Typesystem. It would be nice to unify them somehow if that makes sense.

reckart commented 2 years ago

Any specific idea how to unify them?

jcklie commented 2 years ago

Maybe only put them on the type or remove them atleast from the type system. If one adds a new function like these, it needs to be added in 3 places right now to adhere to the existing ones.