A computer program product for performing a global task, the global task comprising analyzing an electronic version of a document, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor system to cause the processor system to perform operations comprising:
- receiving an electronic document comprising electronic document data having multiple electronic format types;
- using a first machine learning model to perform a first sub-task of the global task, the first sub-task comprising:
- parsing the electronic document data into the multiple electronic format types, thereby generating multiple parsed electronic format types;
- and
- individually labeling each of the multiple parsed electronic format types, thereby generating multiple parsed labeled electronic format types;
- wherein the multiple parsed labeled electronic format types include a first parsed labeled electronic format type and a second parsed labeled electronic format type;
- using a first format-type machine learning model to perform a second sub-task of the global task, the second sub-task comprising extracting features from the first parsed electronic format type, thereby generating a first set of extracted features;
- using a second format-type machine learning model to perform a third sub-task of the global task, the third sub-task comprising extracting features from the second parsed electronic format type, thereby generating a second set of extracted features;
- and
- using a content analysis (CA) machine learning model to perform a fourth sub-task of the global task, the fourth sub-task comprising:
- receiving an inquiry;
- analyzing the first set of extracted features to determine a relevance of the first parsed labeled electronic format type to the inquiry;
- and
- analyzing the second set of extracted feature to determine a relevance of the second parsed labeled electronic format type to the inquiry;
- wherein the first machine learning model, the first format-type machine learning model, the second format-type machine learning model, and the CA machine learning model have been trained in stages comprising:
- a set of individual training stages comprising training:
- the first machine learning model individually to perform the first sub-task;
- the first format-type machine learning model individually to perform the second sub-task;
- the second format-type machine learning model individually to perform the third sub-task;
- and
- the CA machine learning model individually to perform the fourth sub-task;
- a first joint training stage comprising jointly training:
- the first machine learning model to perform the first sub-task;
- the first format-type machine learning model to perform the second sub-task;
- and
- the second format-type machine learning model to perform the third sub-task;
- a second joint training stage comprising jointly training:
- the first machine learning model to perform the first sub-task;
- the first format-type machine learning model to perform the second sub-task;
- the second format-type machine learning model to perform the third sub-task;
- and
- the CA machine learning model to perform the fourth sub-task.