Research Article

Distant Supervision with Transductive Learning for Adverse Drug Reaction Identification from Electronic Medical Records

Algorithm 2

Pseudocode for our proposed EM with BN-dependent representation (dEM).
Input:
= the number of labels
= the maximum number of iteration
Output: parameter
1
2 ;
3 repeat
4 for to n do
5   E–Step:
     Estimate model probability:   (21)
     M–Step:
     Update class-conditional probability:   (22)
                       (23)
                       (24)
     Update class probability:   (25)
6 
7 until convergence or