Fig. 2
From: EHR phenotyping via jointly embedding medical concepts and words into a unified vector space

The framework of JointSkip-gram. a Each code is used to predict all other codes and words in the same visit. b Each word is used to predict all codes in the same visit and its neighbour words in a small context window to keep its syntactic properties