The invention provides a computer-implemented method for intersententially determining a semantic relationship between a first entity and a second entity in a natural language document, comprising at least the steps of: generating (S10) a first dependency parse tree, DPT, for a first origin sentence of the document which comprises the first entity, wherein each DPT comprises at least a root node; generating (S20) a second DPT for a second origin sentence of the document which mentions the second entity; linking (S30) the root nodes of the first DPT and the second DPT so as to create a chain of words, COW; determining (S40) for each word in the COW a subtree; generating (S50) for each word in the COW a subtree embedding vector (SEV) cw which is based at least on word embedding v ectors (WEV) xw of the words of the subtree; generating (S60) a representation vector pw for each word in the COW; and classifying (S80), using a recurrent neural network, the semantic relationship between the first entity (e1) and the second entity (e2), based on the input representation vectors pw.
NEURAL RELATION EXTRACTION WITHIN AND ACROSS SENTENCE BOUNDARIES