The invention discloses a legal
knowledge graph construction method and equipment based on entity relationship joint extraction. The construction method comprises the following steps: constructing a triple
data set; designing a
model architecture and training a model, wherein the
model architecture comprises a model coding layer, a head entity extraction layer and a relation-
tail entity extraction layer; judging a relationship between text sentences; and carrying out triple compounding and
map visualization. According to the design of the
model architecture, a Chinese bert pre-training model is adopted as an
encoder, and the Chinese text encoding effect is good. According to the entity extraction part, two BiLSTM binary classifiers are adopted to judge the starting position and the ending position of an entity, and the entity in a
phrase form in a text can be effectively extracted. According to the method, the head entity is firstly extracted, then the
tail entity corresponding to the entity relationship is extracted from the extracted head entity, and when the entity relationship and the
tail entity are extracted, not only is coded information of sentences used, but also coded information of the head entity is fused. According to the method, the legal
knowledge graph with relatively high accuracy can be obtained.