I have built a model that classifies emails based on keywords in subjects(features) into 10 different work_categories
(labels). However, this task might consist of possibility where the emails should be categorized in more than a single label.
For example: A email with subject "Servicing certificates and Transfer them" should be classified into two labels i.e. Servicing Worktype
(label 1) and Transfer Worktype
(label 2). In my current program, this gets assigned to label 1
only. Is there anyway i can achieve classifying the email to both labels using spark ml in java ?
I have been following https://github.com/apache/spark/tree/master/examples/src/main/java/org/apache/spark/examples/ml for guidance, but there is nothing on multilabel classification.
Please, let me know if you have any suggestions or documentation that can help me on this. Thanks