To generate the n th word in document d we draw the topic id z n d from the document-specific topic distribution θ d , and then draw the word from the word distribution corresponding to the chosen topic φ zn d .
the training set consists of sentences annotated with the relations and their directionality.