“…Figure 1, there exists a subscientific workflow named CNTCI, which is short for Chemical_Name_To_Chemspider_ID, and a subscientific workflow named Workflow40 in the scientific workflow sw 1 . We can get the textual descriptions of the sw 1 , i.e., " is workflow will map a chemical name or identifier to uniform sim tmp1 ⟵ 0, sim tmp2 ⟵ 0 (4) for each sw in SW do (5) for each activity a in sw do (6) sim ⟵ cosine_sim (doc2vec (dsc), doc2vec (a)) (7) if sim > sim tmp1 then (8) sim tmp1 ⟵ sim (9) a tmp ⟵ a (10) end if (11) end for (12) for each sub-scientific workflow d in sw do (13) sim ⟵ cosine_sim (doc2vec (dsc), doc2vec (d)) (14) if sim > sim tmp2 then (15) sim tmp2 ⟵ sim (16) d tmp ⟵ d (17) end if (18) end for (19) end for (20) if sim tmp1 > sim tmp2 then (21) append a tmp to A smp (22) else (23) append d tmp to D smp (24) end if (25) end for (26) return A smp , D smp ALGORITHM 4: Function GetActivity_SubWF (requirement.dscs, SW).…”