Multi-mode knowledge graph construction method in cross-media retrieval
Патент · CN B
Полный текст
The embodiment of the application provides a multi-modal knowledge graph construction method in cross-media retrieval, which comprises the steps of mapping extracted multi-modal features into a multi-modal feature space through a linear transformation layer, calculating intra-modal attention weights of all modal features according to a self-attention mechanism in the multi-modal feature space, calculating cross-modal attention weights of different modal features according to a cross-attention mechanism, fusing the two to obtain final fusion weights, weighting all modal features, inputting the final fusion weights into a graph attention network to obtain a multi-modal fusion graph structure, carrying out semantic analysis on all modal features, matching the multi-modal fusion graph structure with a preset multi-modal semantic knowledge base, determining potential semantic association, carrying out semantic alignment on the multi-modal fusion graph structure according to a preset graph matching algorithm and the potential semantic association, and obtaining a multi-modal knowledge graph.