The invention discloses a
spatial relationship extraction method and device based on
semantic dependency, and the method comprises the steps: constructing a
semantic dependency recognition model, extracting a
spatial relationship tuple from an unstructured text, firstly, defining
semantic dependency types, namely a trigger word-containing role type and a trigger word-free role type; then inputting a to-be-recognized text and pre-labeled space elements into a semantic dependency recognition model based on the deep self-
attention network, and obtaining all semantic dependency recognition results among the space elements in combination with the defined semantic dependency type; and finally, combining the obtained semantic dependency recognition results, and outputting a complete
spatial relationship tuple. According to the method, a spatial
relationship extraction problem is converted into a semantic dependency recognition problem, and various spatial relationships including a spatial relationship containing a trigger word and a spatial relationship not containing the trigger word can be processed at the same time; according to the method, the spatial
semantic information in the text can be effectively expressed, the semantic dependence among the spatial elements is extracted, manual
feature design is not needed, the generalization performance is high, and the accuracy rate is high.