List all classes available for elements
We need the ml classes ID to publish them through CreateClassification
.
But an ML developer cannot (and should not) know their ID on the different Arkindex instances.
So we need to:
- list all the ML classes for an element's corpus
- store them, indexed by slug on the worker instance
- give an easy way to the developer to get the class ID from a slug
- use a cache to avoid loading ML classes for the same corpus over & over