Similarity calculation method and device for financial text matching and electronic equipment

The invention discloses a similarity calculation method and device for financial text matching and electronic equipment. The method comprises the steps of obtaining a first financial text and a second financial text to be matched; inputting the first financial text into a pre-training model, obtaini...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: GAN WEICHAO, ZHOU JINGYU, ZOU HONGYUE, LIN YUANPING
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a similarity calculation method and device for financial text matching and electronic equipment. The method comprises the steps of obtaining a first financial text and a second financial text to be matched; inputting the first financial text into a pre-training model, obtaining a first vector output by the pre-training model, and inputting the first vector into an average pooling layer to generate a corresponding first sentence vector; inputting the second financial text into a pre-training model, obtaining a second vector output by the pre-training model, and inputting the second vector into an average pooling layer to generate a corresponding second sentence vector; fusing the first sentence vector and the second sentence vector to generate a target vector; and inputting the target vector into a normalization function, and taking a calculation result of the normalization function as a matching similarity. According to the method, text similarity calculation is carried out, word vecto