Generic multi-classifier implementation
The requirements-classifier service exposes two controllers:
-
binary-classification-controller: handles binary classifications as in previous versions, given a specific company and property to classify on the set of requirements. No changes have been applied to binary classification
-
multi-classification-controller: this is a refactor of the previous domain-based-controller. We have modified both controller and logic of the multidimensional classifier so that it is generic to any UC and property desired to use for this purpose. Main changes are:
-
reqDomains property has been removed; the component expects now, for each requirement, a custom key referred as property-key, which is used for the multidimensional classification. The tag of this key is sent as a parameter to the petitions. So, for instance, in orther to use the component as in previous versions, it is necessary to send as a query param property-key=reqDomains, and no changes are required on the JSON object.
-
classify method of the multi-classification-controller is now a fully-multidimensional classification process. Instead of classifying the requirements against a single value of the property-key, now all models of the given property are used to classify the requirements. For each requirement, a list of the matching assignations is returned, as the level of confidence which is the mean of all the recommendations.
-
Please reffer to https://api.openreq.eu/requirements-classifier/swagger-ui.html#/ to check details about the new API methods.