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...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
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 |
---|