Point of interest name generation method, model training method, device, equipment and medium
Through the feature fusion and attention mechanism of multi-modal information, the problem that traditional methods cannot handle no text information or poor image quality is solved, and the generation of high-quality interest point names is achieved.
Patent Information
- Application Number
- CN202411009482.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional interest point name generation methods are only suitable for images with text information and cannot handle images without text information, and poor image quality will affect the quality of name generation.
Multi-modal interest point information (such as images, audio, text, video, etc.) is used to extract feature vectors through a dedicated encoder, and a text decoder is used to generate interest point names. It is combined with a multi-modal attention mechanism for feature fusion to generate a stable Point of interest name.
It achieves the stable generation of high-quality interest point names even when there is no text information or poor image quality. It makes full use of the complementarity and richness of multi-modal information and improves the accuracy of name generation.
Smart Images

Figure CN118536476B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic maps, and in particular to a method for generating names of points of interest, a model training method, an apparatus, a device and a medium. Background Art
[0002] A point of interest (POI) usually refers to a location on a map, which represents various geographical entities that are attractive to people, such as restaurants, hotels, attractions, parks, shops, etc. Each point of interest has one or more attributes, among which the name is one of the most basic and important attributes of the point of interest.
[0003] Currently, the names of POIs are often generated by image text recognition, that is, recognizing the text in images such as signs and buildings, and then generating the names of POIs based on the recognized text.
[0004] In the process of implementing the present application, the inventors discovered that the traditional method of generating POI names has certain limitations, namely, it is only applicable to images with text information, and is not applicable when the captured images do not contain text information. In addition, the quality of the captured images will greatly affect the quality of POI name generation.
[0005] Therefore, there is an urgent need to provide a new POI name generation scheme that can stably obtain high-quality POI names. Summary of the invention
[0006] Based on the above problems, the present application provides a method for generating POI names, which can stably obtain high-quality POI names.
[0007] The embodiments of the present application disclose the following technical solutions:
[0008] In a first aspect, the present application discloses a method for generating a point of interest name, comprising: obtaining point of interest information of at least two modalities of a point of interest; inputting the point of interest information into a point of interest name generation model to generate a point of interest name for the point of interest; wherein the point of interest name generation model comprises: a text decoder and encoders corresponding to at least two modalities; the encoder corresponding to each modality is used to extract a feature vector of the point of interest information of that modality; the text decoder is used to decode a target feature vector to obtain a point of interest name; the target feature vector is obtained based on a fusion of the extracted feature vectors.
[0009] The method for generating POI names disclosed in the present application makes full use of the complementarity and richness of multimodal POI information, accurately extracts feature vectors in each modality through a dedicated encoder for each modality, and generates a target feature vector that comprehensively reflects the characteristics of the POI based on the extracted feature vector. Since the target feature vector not only integrates detailed information from different modalities, but also retains the unique information of each modality; therefore, when decoding the POI name from this comprehensive and accurate target feature vector through a text decoder, a relatively accurate POI name can be stably generated.
[0010] In the second aspect, the present application discloses a model training method, including: obtaining interest point information and true value naming names of at least two modalities of sample interest points; inputting the interest point information of each modality into an encoder corresponding to the modality, and extracting a sample feature vector; fusing the sample feature vectors to obtain a target sample feature vector; inputting the target sample feature vector into a text decoder to obtain a predicted naming name; based on the similarity between the true value naming name and the predicted naming name, iteratively training the text decoder and encoder to obtain a trained interest point name generation model.
[0011] In a third aspect, the present application discloses a device for generating a point of interest name, including a point of interest information acquisition module and a point of interest name generation module. The point of interest information acquisition module is used to obtain point of interest information of at least two modalities of the point of interest; the point of interest name generation module is used to input the point of interest information into the point of interest name generation model to generate the point of interest name of the point of interest; wherein the point of interest name generation model includes: a text decoder and an encoder corresponding to at least two modalities; the encoder corresponding to each modality is used to extract the feature vector of the point of interest information of the modality; the text decoder is used to decode the target feature vector to obtain the point of interest name; the target feature vector is obtained based on the fusion of the extracted feature vectors.
[0012] In a fourth aspect, the present application discloses a training device for a point of interest name generation model, including a training data acquisition module, a feature vector extraction module, a fusion module, a predicted name generation module and a model training module. The training data acquisition module is used to obtain the point of interest information of at least two modes and the true value name of the sample point of interest; the feature vector extraction module is used to input the point of interest information of each mode into the encoder corresponding to the mode to extract the sample feature vector; the fusion module is used to fuse the sample feature vector to obtain the target sample feature vector; the predicted name generation module is used to input the target sample feature vector into the text decoder to obtain the predicted name; the model training module is used to iteratively train the text decoder and encoder based on the similarity between the true value name and the predicted name to obtain the point of interest name generation model.
[0013] A fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method introduced in any implementation of the first aspect or the second aspect.
[0014] The sixth aspect of the present application provides an electronic device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method introduced in any implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0016] Figure 1 A flowchart of a method for generating a point of interest name provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of the structure of a point of interest name generation model provided in an embodiment of the present application;
[0018] Figure 3 A flowchart of a method for training a point of interest name generation model provided in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of the structure of a device for generating a point of interest name provided in an embodiment of the present application;
[0020] Figure 5 A schematic diagram of the structure of a training device for a point of interest name generation model provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] A point of interest usually refers to a location on a map, which represents various geographical entities that are attractive to people, such as restaurants, hotels, attractions, parks, shops, etc. Each point of interest has one or more attributes, among which the name is one of the most basic and important attributes of the point of interest.
[0022] Currently, the names of POIs are often generated by image text recognition, that is, recognizing the text in images such as signs and buildings, and then generating the names of POIs based on the recognized text.
[0023] In the process of implementing the present application, the inventors discovered that the traditional method of generating POI names has certain limitations, namely, it is only applicable to images with text information, and is not applicable when the captured images do not contain text information. In addition, the quality of the captured images will greatly affect the quality of POI name generation.
[0024] Therefore, there is an urgent need to provide a new POI name generation scheme that can stably obtain high-quality POI names.
[0025] To solve the above problems, the present application discloses a method for generating POI names, which can stably obtain high-quality POI names.
[0026] It should be emphasized that the user information (including but not limited to user device information such as location information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] Figure 1 A flowchart of a method for generating a point of interest name provided in an embodiment of the present application. Figure 1 As shown, the method for generating a point of interest name disclosed in this application includes:
[0029] S101, obtaining interest point information of at least two modes.
[0030] Among them, modality refers to different forms of information. In the embodiment of the present application, the modality of the point of interest includes: image modality, audio modality, text modality, video modality or code modality, etc. The at least two modalities can be any combination of the above two or more modalities.
[0031] It can be understood that the more types of modalities are obtained, the more descriptive information about the point of interest from more perspectives can be obtained, making the obtained information richer and more comprehensive.
[0032] For example, the at least two modalities may be a picture modality and a text modality, or a text modality and a video modality, or a picture modality, a text modality, and an audio modality. Examples are not given here one by one.
[0033] The POI information of a certain modality refers to the data in the modality used to describe the POI. For example, the POI information of the picture modality is the picture describing the POI; the POI information of the text modality is the text describing the POI; the POI information of the audio modality is the audio describing the POI; the POI information of the video modality is the video describing the POI; the POI information of the code modality is the code file describing the POI.
[0034] In addition, the point of interest information of each modality in the present application can be obtained from one or more sources. Among them, the source refers to the source of obtaining the point of interest information of this modality. The source can be a waybill data source, a navigation data source, a network connection request data source, a search data source, a payment data source, and a location information data source within a preset range of the point of interest, etc.
[0035] The POI information of each modality can be obtained from any one of the above sources, or from at least two of the above sources, which is reasonable. It is understandable that the more sources of POI information of each modality, the richer and more comprehensive the data obtained under this modality.
[0036] Optionally, in order to obtain richer data, the POI information of at least one modality may be configured as multiple sources.
[0037] For example, if the point of interest is a coffee shop, pictures (i.e., point of interest information in picture mode) and text information (i.e., point of interest information in text mode) of the coffee shop can be obtained from the waybill data source, the navigation data source, and the network connection request data source. In another example, pictures of coffee shops (i.e., point of interest information in picture mode) can also be obtained from the search data source, and texts of coffee shops (i.e., point of interest information in text mode) can be obtained from the payment data source and the location information data source within the preset range of the point of interest.
[0038] S102, inputting the interest point information into the interest point name generation model to generate the interest point name of the interest point; wherein the interest point name generation model includes: a text decoder and an encoder corresponding to the at least two modalities; the encoder corresponding to each modality is used to extract the feature vector of the interest point information of the modality; the text decoder is used to decode the target feature vector to obtain the interest point name; the target feature vector is obtained based on the fusion of the extracted feature vectors.
[0039] In the embodiment of the present application, an encoder and a text decoder corresponding to multiple modes are used to process the information of the points of interest corresponding to at least two modes, and directly output the names of the points of interest. This method can accommodate data under multiple modes, and adopts an end-to-end generation method, enriches the information of the points of interest, and reduces information loss, which can improve the accuracy of the generation of the points of interest names, and enable the generated points of interest names to contain more reference content for users.
[0040] The encoder may be an image encoder, a text encoder, an audio encoder, a video encoder, a code encoder, etc. The encoder is used to extract meaningful features from the data input to the encoder. These features are usually represented as vectors, called feature vectors or embedding vectors, which can be used as input for subsequent tasks.
[0041] Image encoders are usually part of deep learning models and are used to extract features from input images and convert them into fixed-length vector representations. Text encoders are a type of model in natural language processing technology. Their main function is to convert text data into fixed-length vector representations for computer understanding and processing. These vectors are usually called text embeddings or word vectors. Audio encoders are used to extract features from input audio and convert them into fixed-length vector representations. Video encoders are used to extract features from input videos and convert them into fixed-length vector representations. Code encoders are used to extract features from input codes and convert them into fixed-length vector representations.
[0042] A text decoder is a software or algorithmic component that converts a machine-processable form (such as a sequence of numbers, a vector, or an encoding) back into human-readable text. A text decoder is paired with an encoder to form an encoder-decoder architecture, where the encoder is responsible for converting input data into vector representations and the decoder generates output text based on these vectors.
[0043] In one implementation, the point of interest name generation model in the present application may include a text encoder, an image encoder and a text decoder; in another implementation, the point of interest name generation model may include a text encoder, an image encoder, a video encoder and a text decoder; in yet another implementation, the point of interest name generation model may include an image encoder, a video encoder, an audio encoder and a text decoder; in yet another implementation, the point of interest name generation model may also include a video encoder, an audio encoder and a text decoder; examples are not given one by one here.
[0044] It can be understood that, in a preferred embodiment, the at least two modalities of POI information acquired in S101 should be compatible with the encoder configured by the POI name generation model.
[0045] Of course, the interest point information of at least two modes acquired by S101 may not be compatible with the encoder configured by the interest point name generation model. For example, when the interest point name generation model is configured with more than two types of encoders, and the interest point information acquired is more than two modes, there may be one mode of interest point information that does not match the encoder configured by the interest point name generation model. In this case, the interest point name generation model may not process the interest point information of this mode, which is reasonable.
[0046] For ease of understanding, Figure 2 Taking the POI name generation model shown in FIG. 1 as an example, the processes of S101 and S102 are described again.
[0047] Figure 2 The interest point name generation model shown in includes a text encoder, an image encoder and a text decoder. In this case, interest point information in picture mode and interest point information in text mode can be obtained in S101.
[0048] After obtaining the interest point information of the picture modality and the interest point information of the text modality, the interest point information of the picture modality is input into the image encoder, and the image encoder encodes the interest point information of the picture modality into an image feature vector; the interest point information of the text modality is input into the text encoder, and the text encoder encodes the interest point information of the text modality into a text feature vector.
[0049] Then, the image feature vector and the text feature vector are fused into a new feature vector that combines the information of both, namely the target feature vector. Finally, the target feature vector is input into the text decoder, and the text decoder decodes the target feature vector to obtain the name of the point of interest.
[0050] Among them, the fusion can be performed by direct splicing, that is, the image feature vector and the text feature vector are directly spliced together to form a longer vector. This method can retain all the information of the two features, making the features richer. Fusion can also be performed by multimodal attention mechanism. The attention mechanism can help the model focus on more important parts during the fusion process, that is, by assigning different weights to different parts of the image and text, the model can more intelligently decide which information is more critical to the current task. The fusion method is of course not limited to this, and no examples are given here.
[0051] The present application discloses a method for generating the names of points of interest, which makes full use of the complementarity and richness of multi-modal information on points of interest, accurately extracts feature vectors in each modality through encoders specific to each modality, and generates a target feature vector that comprehensively reflects the features of the points of interest based on the extracted feature vectors. Since the target feature vector not only integrates detailed information from different modalities, but also retains the unique information of each modality; therefore, when decoding the names of points of interest from this comprehensive and accurate target feature vector through a text decoder, a relatively accurate name of the points of interest can be stably generated.
[0052] In yet another embodiment, when the POI name generation model includes an audio encoder, a text encoder, and a text decoder, the POI information in the audio modality and the POI information in the text modality may be acquired.
[0053] After obtaining the interest point information of the audio modality and the interest point information of the text modality, the interest point information of the audio modality is input into the audio encoder, and the audio encoder encodes the interest point information of the audio modality into an audio feature vector; the interest point information of the text modality is input into the text encoder, and the text encoder encodes the interest point information of the text modality into a text feature vector.
[0054] Then, the audio feature vector and the text feature vector are fused into a new feature vector that combines the information of both, namely the target feature vector. Finally, the target feature is input into the text decoder, and the text decoder decodes the target feature vector to obtain the name of the point of interest.
[0055] In this way, the POI information of the audio mode and the text mode can be fully utilized to generate the POI name, so that the generated POI name has higher quality. By utilizing the POI information of at least two modes not mentioned in the above examples, rich POI information can also be obtained, thereby improving the generation quality of the POI name, which will not be described one by one here.
[0056] In an optional implementation, Figure 3 The method shown in , trains the interest point name generation model. Combined with Figure 3 The training steps of the POI name generation model in this application include:
[0057] S301, obtaining interest point information of at least two modes and true value naming names of sample interest points.
[0058] For the relevant contents of the at least two modalities of the sample interest point information, please refer to the relevant description of S101 in the above embodiment, which will not be repeated here.
[0059] The true value names of the sample interest points in this application may be the actual names used by the sample interest points. Specifically, the true value names of the sample interest points may be: names on business signs, names of buildings, accurate names marked by map staff, and the like.
[0060] It is understandable that the interest point information of various modes obtained through the above channels may include information irrelevant to the interest point or information of low quality. In order to filter such information, the interest point information may be cleaned first.
[0061] For example, when the interest point information obtained in at least two modalities is the interest point information in the image modality and the interest point information in the text modality, these interest point information may contain blurred, overexposed, underexposed, and inconsistent images (the image content is obviously inconsistent with the expected interest point). For example, the sample image of the sample interest point obtained from the waybill data source is an image of Xiao Song BBQ Restaurant, but the true value name corresponding to the sample interest point is "Xiaoyang BBQ".
[0062] It may also contain text that is not related to the POI. For example, the name of the POI displayed in the waybill data obtained from the waybill data source is "Little Lamb BBQ", but in fact the true value name of the POI is "Small Sample BBQ".
[0063] At this time, the interest point information of the text modality that does not match the true value naming name of the sample interest point can be identified based on the pre-trained text similarity model and eliminated.
[0064] In addition, you can also identify images of poor quality (such as blurry, overexposed, underexposed) and images that do not match the text and images in the following ways to obtain images that meet the requirements:
[0065] In one implementation, the image modality image can be recognized using image text recognition technology to obtain text recognition results; then, the named entity recognition model is used to extract elements from the text recognition results to obtain name-type text description information (such as the name of the coffee shop, the name of the wireless network), business scope-type text description information (such as drinks and snacks provided by the coffee shop), address-type text description information (such as the specific address information of the coffee shop, including street name, house number, city, district and county), time-type text description information (such as business hours) and price-type text description information (such as drink prices, set meal prices). After that, the pre-trained discriminant scoring model can be used to identify the possibility of whether the above-mentioned name-type text description information is a name, the possibility of whether the address-type text description information is an address, etc., and then the text description information with a lower possibility (i.e., a lower score) is eliminated to eliminate inaccurate text description information. Images corresponding to text recognition results with scores lower than a preset score can also be eliminated to obtain high-quality images.
[0066] Among them, the named entity recognition model, text similarity model and discriminant scoring model that can realize the above functions are existing models, and this application does not make a detailed description of the named entity recognition model, text similarity model and discriminant scoring model.
[0067] In another implementation, when there is no text recognition result, it indicates that the image does not contain text content, and this part of the image with low information content can also be filtered out.
[0068] S302, inputting the interest point information of each modality into the encoder corresponding to the modality, and extracting the sample feature vector.
[0069] In an example of the present application, the interest point information of the picture modality can be input into the image encoder to obtain a sample image feature vector; the interest point information of the text modality can be input into the text encoder to obtain a sample text feature vector; the interest point information of the audio modality can be input into the audio encoder to obtain a sample audio feature vector.
[0070] Exemplarily, Vision Transformer or Swin Transformer can be used as an image encoder, and Transformer Encoder can be used as a text encoder.
[0071] Among them, Vision Transformer is a deep learning model that uses the Transformer architecture to process image data and performs computer vision tasks by capturing long-distance dependencies between image blocks.
[0072] Swin Transformer is a visual Transformer model that effectively processes high-resolution images and captures cross-window dependencies through a shift window mechanism and hierarchical design, improving model performance and efficiency.
[0073] Transformer Encoder is a component consisting of multiple stacked encoder layers, each of which contains a self-attention mechanism and a feedforward neural network to process sequence data and extract its internal dependencies.
[0074] It is understandable that when an encoder corresponding to other modes is used, an encoder corresponding to other modes in the prior art can be used for encoding, and examples are not given one by one here.
[0075] S303, fusing the sample feature vectors to obtain a target sample feature vector.
[0076] After obtaining a plurality of sample feature vectors, feature fusion may be performed on the plurality of sample feature vectors extracted above to obtain a target sample feature vector.
[0077] As described in the above embodiments, fusion can be performed by direct splicing, that is, the image feature vector and the text feature vector are directly spliced together to form a longer vector. This method can retain all the information of the two features, making the features richer. Fusion can also be performed by a multimodal attention mechanism. The attention mechanism can help the model focus on the more important parts during the fusion process, that is, by assigning different weights to different parts of the image and text, the model can more intelligently decide which information is more critical to the current task.
[0078] S304, inputting the target sample feature vector into the text decoder to obtain a predicted name.
[0079] In an implementation example of the present application, the target sample feature vector may be input into a text decoder, and the text decoder parses the target sample feature vector to obtain a predicted name of the sample interest point.
[0080] Exemplarily, a Transformer Decoder may be used as a text decoder.
[0081] In the field of machine learning and natural language processing, a text decoder usually refers to the part of the model that receives the encoded representation as input and generates a text sequence such as words, phrases, or sentences through multiple steps such as vocabulary selection and sequence generation.
[0082] Transformer Decoder is a part of the Transformer model. It is mainly responsible for gradually generating each element of the output sequence through the self-attention mechanism and the encoder-decoder attention mechanism according to the output of the encoder and the generated sequence part, thereby completing the sequence-to-sequence conversion task.
[0083] S305, based on the similarity between the true value name and the predicted name, iteratively train the text decoder and the encoder to obtain a trained POI name generation model.
[0084] In an embodiment of the present application, the predicted naming names of the sample interest points and the corresponding true naming names can be mapped to a common feature space, and the similarity results between the predicted naming names and the corresponding true naming names can be calculated by algorithms such as the cosine similarity algorithm or the Euclidean distance algorithm; the similarity results are then substituted into the cross entropy loss function to obtain the loss value; based on the loss data, the network parameters in the text decoder and encoder are adjusted, that is, the text decoder and encoder are iteratively trained to obtain a trained interest point name generation model.
[0085] For ease of understanding, Figure 2 Taking the POI name generation model in as an example, the training steps of S301-S305 are further introduced in detail.
[0086] The interest point name generation model to be trained can be recorded as an initial model. In one embodiment, the initial model is a model including an image encoder, a text encoder, and a text decoder. The network parameters of each module in the initial model have not reached an appropriate state, and are not sufficient to generate the names of the sample interest points that meet the requirements after receiving the interest point information of the sample interest point in the picture mode and the interest point information in the text mode.
[0087] Through two stages of training, the network parameters in the initial model can be adjusted to obtain a trained POI name generation model.
[0088] The training process of the first stage is as follows:
[0089] In step 1.1, the interest point information of the image mode and the interest point information of the text mode of each sample interest point are obtained.
[0090] In step 1.2, based on the interest point information of the sample interest point image modality and the sample text recognition results, the initial model is trained iteratively to obtain an intermediate interest point name generation model.
[0091] In one implementation, optical character recognition technology may be used to identify sample text recognition results from the image modality of each sample interest point among N sample interest points; wherein N is an integer greater than or equal to 2.
[0092] 1.2 Steps can be divided into the following two sub-steps:
[0093] In step 1.2.1, the interest point information of the sample interest point in the image mode and the sample text recognition result are input into the initial model to obtain the predicted field of the sample interest point.
[0094] Combination Figure 2 As shown, for any sample interest point, the interest point information of the sample interest point in the image modality (i.e., the image of the sample interest point) is input into the image encoder in the initial model to generate a sample image feature vector; the sample text recognition result of the sample interest point is input into the text encoder in the initial model to generate a sample text feature vector.
[0095] The interest point information of the picture modality of the N sample interest points and the sample text recognition results are input into the image encoder and the text encoder in the initial model to obtain N sample image feature vectors and N sample text feature vectors.
[0096] After calculating the similarity results of each sample text feature vector and each sample image feature vector in turn, the calculated similarity results are fused using weighted summation, attention mechanism or feature fusion technology to generate N target sample feature vectors.
[0097] The N target sample feature vectors are input into the text decoder in the initial model, and the text decoder decodes the N target sample feature vectors to obtain the predicted field of each sample interest point.
[0098] The predicted field of each sample interest point is: a field predicted based on the target sample feature vector corresponding to the sample interest point and used to describe the picture corresponding to the sample interest point. For example, the predicted fields that can be identified are: "BBQ lamb", "Stewed dishes, seafood and barbecue".
[0099] In step 1.2.2, the initial model is trained based on the similarity between the predicted field of each sample interest point and the real field corresponding to the predicted field in the sample text recognition result, as well as the similarity between the sample image feature vector and the sample text feature vector to obtain the intermediate interest point name generation model.
[0100] In the embodiment of the present application, after performing text recognition on the image corresponding to the sample interest point, the sample text recognition result obtained is the true value, that is, the true value describing the image corresponding to the sample interest point. For example, after performing text recognition on the image corresponding to the sample interest point, the text contained in the image can be obtained: small sample barbecue, stewed seafood and barbecue. That is, the real field can be obtained: "small sample barbecue", "stewed dishes, seafood and barbecue".
[0101] For each predicted field of the sample interest point, after determining the predicted field, the predicted field and the corresponding real field in the sample text recognition result can be mapped to a common feature space, and the similarity result between the predicted field and the corresponding real field can be calculated by using algorithms such as the cosine similarity algorithm or the Euclidean distance algorithm. The similarity result is then substituted into the first loss function to obtain the loss value corresponding to the predicted field; the loss values corresponding to each predicted field are added to obtain the first loss value.
[0102] Exemplarily, in this application, language modeling loss (LM Loss) is selected as the first loss function.
[0103] In addition, the calculated similarity results of the sample image feature vector and the sample text feature vector can be substituted into the second loss function to obtain a second loss value; and then the calculated similarity results of the sample image feature vector and the sample text feature vector can be substituted into the third loss function to obtain a third loss value.
[0104] Exemplarily, in this application, Image-Text Matching Loss (ITMLoss) is selected as the second loss function. The second loss function is used to minimize the distance of corresponding image-text pairs and maximize the distance of non-corresponding image-text pairs, and encourages the model to learn the matching relationship between images and texts by minimizing the distance between matching samples and maximizing the distance between non-matching samples.
[0105] For example, in this application, Image-Text Contrastive Loss (ITC Loss) is selected as the third loss function. The third loss function is used to make the corresponding image and text embeddings close to each other in the embedding space, and the non-corresponding image and text embeddings far away from each other, so that the model learns the correlation and semantic information between the image and the text.
[0106] Among them, ITM Loss focuses more on learning matching relationships, while ITC Loss focuses more on learning the correlation and semantic information between images and texts.
[0107] After determining the first loss value, the second loss value and the third loss value, the total loss value can be calculated based on the formula: total loss value = first weight coefficient × first loss value + second weight coefficient × second loss value + third weight coefficient × third loss value.
[0108] It should be noted that in the present application, the first weight coefficient, the second weight coefficient and the third weight coefficient are all set to 1. Those skilled in the art can set the values of the first weight coefficient, the second weight coefficient and the third weight coefficient according to actual needs.
[0109] It can be understood that the total loss value refers to the loss value determined during the training process of the initial model, which can reflect the prediction accuracy of the initial model for the sample POI names based on the current network parameters. The larger the total loss value, the worse the initial model performs in the task of predicting the sample POI names; the smaller the total loss value, the better the initial model performs in the task of predicting the sample POI names.
[0110] Based on the total loss value, the gradient is calculated by the back propagation algorithm and the network parameters are adjusted by the optimization algorithm, and the training is iterated until the model converges to obtain the intermediate POI name generation model. Since this process is a numerical content of those skilled in the art, this application will not elaborate on this content.
[0111] It should be noted that, because the network parameters of each module in the initial model have been updated during the training process of this step, the intermediate interest point name generation model obtained through training has the ability to align images with texts and understand the text content in images. It can more accurately identify and extract fields related to sample interest points from the image modality of sample interest points.
[0112] The training process of the second stage is as follows;
[0113] In step 2.1, based on the interest point information of the image modality and the interest point information of the text modality of the sample interest point, the intermediate interest point name generation model is trained iteratively to obtain a trained interest point name generation model.
[0114] Specifically, step 2.1 can be divided into the following two sub-steps:
[0115] In step 2.1.1, the interest point information of the N sample interest points in the image mode and the interest point information in the text mode are input into the intermediate interest point name generation model to generate a predicted name for each sample interest point.
[0116] The interest point information of the picture modality of the N sample interest points is input into the image encoder of the intermediate interest point name generation model to obtain N sample image feature vectors; the interest point information of the text modality of the N sample interest points is input into the text encoder of the intermediate interest point name generation model to obtain N sample text feature vectors.
[0117] After calculating the similarity results of each sample text feature vector and each sample image feature vector in turn, weighted summation, attention mechanism or feature fusion technology are used to fuse the calculated similarity results to generate N target sample feature vectors.
[0118] The N target sample feature vectors are input into the text decoder in the intermediate interest point name generation model. The text decoder decodes the N target sample feature vectors to obtain the predicted name of each sample interest point.
[0119] In step 2.1.2, according to the similarity between the predicted name and the true name of each sample POI, the intermediate POI name generation model is trained iteratively to obtain a trained POI name generation model.
[0120] For the relevant contents about the true value naming of the sample interest points, please refer to the description of S301, which will not be repeated here.
[0121] After determining the predicted name of each sample interest point, map the predicted name and the corresponding true name to a common feature space, and calculate the similarity result between the predicted name and the corresponding true name through algorithms such as cosine similarity algorithm or Euclidean distance algorithm; then substitute the similarity result into the first loss function to obtain the loss value corresponding to the predicted name; add the loss values corresponding to each predicted name to obtain the first loss value.
[0122] It should be noted that after the "first stage" of training, the intermediate POI name generation model has the ability to align sample POI information in the text modality and sample POI information in the image modality, as well as recognize and understand the content in the image modality. The purpose of retraining the intermediate POI name generation model in the "second stage" is to enhance the generalization ability of the model so that it can adapt to diverse input data, combine diverse input data, and output more accurate POI names that better reflect the essential characteristics of POIs.
[0123] Based on this, the second and third loss values are not calculated in this round of training, and the first loss value is directly used as the total loss value. Based on the total loss value, the network parameters of the intermediate POI name generation model are adjusted to obtain the trained POI name prediction model.
[0124] From the introduction of the above embodiments, it can be seen that in the process of training the intermediate POI name generation model, the breadth and depth of the trainable data set are expanded, and the POI information in the text mode of the sample POI is additionally added to the training data. Using this rich data set, after multiple iterations of training, the POI name prediction model finally obtained can output more accurate and higher quality POI names.
[0125] In an optional implementation, the text decoder in the POI name generation model can decode the target feature vector based on multiple preset usage scenario prompt words and the received target feature vector to obtain the POI name corresponding to each preset usage scenario prompt word.
[0126] In other words, the text decoder in the POI name generation model can receive both preset usage scenario prompt words and target feature vectors. After receiving the above two types of information, the text decoder can output multiple POI names corresponding to each preset usage scenario prompt word.
[0127] Specifically, inputting multiple preset usage scenario prompt words and target feature vectors into the text decoder of the interest point name generation model means first encoding multiple preset usage scenario prompt words into semantic prompt vectors in sequence; then inputting multiple semantic prompt vectors and target semantic feature vectors into the text decoder, and the text decoder parses the target semantic feature vector. In the process of outputting the name of the interest point, the role of the preset usage scenario prompt words will be fully considered, and multiple interest point names corresponding to each preset usage scenario prompt word will be output.
[0128] The preset usage scenario prompt words in this application may include: merchant usage scenario, general user usage scenario, electronic map platform usage scenario, etc.
[0129] The preset usage scenario prompt words in the present application refer to a word group or phrase used to guide the text decoder to output a point of interest name that is highly correlated with the preset usage scenario prompt words.
[0130] For example, if the point of interest is a coffee shop, the preset usage scenario prompt words may be: merchant usage scenario and general user usage scenario.
[0131] After inputting the above-mentioned preset usage scenario prompt words and target feature vectors into the text decoder of the POI name generation model, the POI names output by the text decoder are: merchant usage scenario: Tianhao Coffee; ordinary user usage scenario: Tianhao Coffee Longhu Blue Ocean Engine Industrial Park Store.
[0132] It should be noted that the present application will include a POI name generation model that includes a text decoder that can receive preset usage scenario prompt words, which is called an optimized POI name generation model.
[0133] Accordingly, the optimized POI name generation model corresponding to this embodiment can be trained by the following steps, specifically:
[0134] The first step is to obtain at least two modal interest point information and true value naming names of the sample interest points. For details of this process, please refer to the relevant description of S301.
[0135] The second step is to input the interest point information of each modality into the encoder corresponding to the modality to extract the sample feature vector. For details of this process, please refer to the relevant description of S302.
[0136] The third step is to fuse the sample feature vectors to obtain the target sample feature vector. For details of this process, see the relevant description of S303.
[0137] In the fourth step, multiple preset usage scenario prompt words and target sample feature vectors are input into a text decoder to obtain a predicted name corresponding to each preset usage scenario prompt word.
[0138] Specifically, after encoding each preset usage scenario prompt word into a semantic prompt vector, multiple semantic prompt vectors and target sample feature vectors are input into the text decoder. When the text decoder parses the target semantic feature vector and outputs the predicted naming name of the point of interest, it will fully consider the role of the preset usage scenario prompt words and output the predicted naming name of the point of interest corresponding to each preset usage scenario prompt word.
[0139] The fifth step is to iteratively train the text decoder and encoder based on the similarity between the true name and the predicted name corresponding to each preset usage scenario prompt word to obtain a trained POI name generation model (the trained POI name generation model in this embodiment is also called an optimized POI name generation model).
[0140] The true value naming name used in this step is the true value naming name corresponding to the preset usage scenario prompt word.
[0141] The process of iteratively training the text decoder and encoder based on the similarity between the true value naming name and the predicted naming name is described in S305 and will not be repeated here.
[0142] For ease of understanding, Figure 2 Taking the initial model in as an example, the training process of the optimized POI name generation model is further described in detail.
[0143] The process of training the initial model to obtain the optimized POI name generation model is basically the same as the process of training the initial model to obtain the trained POI name generation model disclosed in the aforementioned embodiment, but there are some differences between the two, including the following:
[0144] The difference between the two in the first stage of training is that name entity recognition prompts are introduced in steps 1.2.1 and 1.2.2.
[0145] In this embodiment, the difference corresponding to the above step 1.2.1 is that the interest point information of the picture modality of each sample interest point, the sample text recognition result and multiple name entity recognition prompt words are input into the initial model to obtain the predicted field of each sample interest point.
[0146] Among them, the name entity recognition prompt word is a prompt word used to guide the model to output the field in the image modality.
[0147] Exemplarily, the name entity recognition prompt word may be: "What is the name in the picture?"; "What is the business scope in the picture?"; "What is the geographical location of the point of interest?" and so on.
[0148] It should be noted that the name entity recognition prompt words are set by those skilled in the art in actual working scenarios according to business needs. The content and acquisition method of the name entity recognition prompt words are not limited in this application.
[0149] In step 1.2.2, the initial model is trained based on the similarity between the predicted field corresponding to the name entity recognition prompt word of the sample interest point and the real field corresponding to the name entity recognition prompt word, as well as the similarity between the sample image feature vector and the sample text feature vector to obtain the intermediate interest point name prediction model.
[0150] The real field corresponding to the name entity recognition prompt word is the name or field of the sample interest point recorded in the image modality of the sample interest point.
[0151] For example, the name (field) of the sample interest point recorded in the picture modality is "Small Sample BBQ", and the real field corresponding to the name entity recognition prompt "What is the name in the picture?" is "Small Sample BBQ".
[0152] The difference between the two in the second stage of training is that the use of scenario prompt words is introduced in steps 2.1.1 and 2.1.2.
[0153] In step 2.1.1, the interest point information of each sample interest point in the image mode, the interest point information of the text mode and multiple usage scenario prompt words are input into the intermediate interest point name generation model to generate a predicted name of the sample interest point corresponding to the usage scenario prompt word.
[0154] In step 2.1.2, based on the similarity between the predicted names corresponding to the sample interest points and the usage scenario prompt words and the true names corresponding to the usage scenario prompt words, the intermediate interest point name generation model is trained iteratively to obtain the optimized interest point name generation model.
[0155] The usage scenario prompt words are phrases or phrases used to guide the intermediate POI name prediction model to output POI names that are highly correlated with the usage scenario prompt words.
[0156] The usage scenario prompt word is the preset usage scenario prompt word mentioned in the above embodiment. For the usage scenario prompt word and the relevant content of the true value naming name corresponding to the usage scenario prompt word, refer to the relevant introduction about the preset usage scenario prompt word and the true value naming name corresponding to the preset usage scenario prompt word in the above embodiment, which will not be repeated here.
[0157] It can be understood that the optimized POI name generation model has the ability to output more accurate sample POI names that are more in line with user usage scenarios based on the prompt words.
[0158] After obtaining multiple POI names output by the POI name generation model, the generated POI names may still not meet user expectations.
[0159] To solve this problem, after obtaining the POI name generation model disclosed in the above embodiment, the following steps may be taken to obtain an updated POI name generation model. Specifically, the following steps may be taken:
[0160] The first step is to obtain the name that the user expects.
[0161] The actual names of the points of interest used by the target user group in actual work can be obtained as the names expected by the users.
[0162] For example, the actual name of the point of interest given by the merchant is obtained as the name the merchant expects; or, the actual name of the point of interest given by users who visit or browse the point of interest is used as the name the user expects; or, the actual name of the point of interest given by technical personnel in this field is used as the name the technician expects.
[0163] In the second step, based on the similarity between the user's expected name and each POI name generated by the POI name generation model, each generated POI name is scored.
[0164] The following describes this step by taking the example that the name desired by the user is the name of the point of interest provided by the merchant.
[0165] Assume that the user expects to name the coffee shop as: Tianhao Coffee - Longhu Blue Ocean Engine Store. The four POI names of the coffee shop generated by the POI name generation model are: "Tianhao Coffee", "Tianhao Coffee - Longhu Blue Ocean Engine Industrial Park Store", "Tianhao Coffee 1 Store", and "Tims - Tianhao Coffee - Longhu Blue Ocean Engine Industrial Park Store".
[0166] Then, the string edit distance calculation method can be used to determine the similarity between each of the four POI names and the name expected by the user; and then the calculated similarity between the POI name and the name expected by the user is used as the score of the POI name.
[0167] For example, if it is calculated that the similarity between "Tianhao Coffee" and the name expected by the user, namely "Tianhao Coffee-Longhu Blue Ocean Engine Store", is 0.4; the similarity between "Tianhao Coffee-Longhu Blue Ocean Engine Industrial Park Store" and "Tianhao Coffee-Longhu Blue Ocean Engine Store" is 0.8 points; the similarity between "Tianhao Coffee 1 Store" and "Tianhao Coffee-Longhu Blue Ocean Engine Store" is 0.5 points; the similarity between "Tims-Tianhao Coffee-Longhu Blue Ocean Engine Industrial Park Store" and "Tianhao Coffee-Longhu Blue Ocean Engine Store" is 0.7 points.
[0168] The score of the point of interest name "Tianhao Coffee" is 0.4 points, the score of the point of interest name "Tianhao Coffee-Longhu Blue Ocean Engine Industrial Park Store" is 0.8 points, the score of the point of interest name "Tianhao Coffee 1 Store" is 0.5 points, and the score of the point of interest name "Tims-Tianhao Coffee-Longhu Blue Ocean Engine Industrial Park Store" is 0.7 points.
[0169] In the third step, based on the user's expected name and the score of each POI name generated by the POI name generation model, the text decoder and the encoder are iteratively trained to obtain an updated POI name generation model.
[0170] In the first method, the prediction score of the POI name that has the highest similarity to the name expected by the user, i.e., "Tianhao Coffee - Longhu Blue Ocean Engine Industrial Park Store", gradually increases until the prediction score of "Tianhao Coffee - Longhu Blue Ocean Engine Industrial Park Store" is the highest prediction score among the above four POI name prediction scores. The encoder and text decoder parameters in the POI name generation model are adjusted to obtain an updated POI name generation model.
[0171] The second method is to iteratively train the text decoder and encoder according to the difference between the score of the point of interest (the score calculated based on the similarity between the user's expected name and the point of interest name) and the predicted score of the point of interest name. When the difference between the score of the point of interest and the predicted score of the point of interest name is less than the preset score difference threshold, the training is stopped to obtain the updated point of interest name generation model.
[0172] It is understandable that since the updated POI name generation model is constructed based on the user expected names of POIs provided by the target user group (such as merchants) as the core training signal, the updated POI name generation model can deeply understand and internalize the unique naming preferences and habits of the target user group. The updated POI name generation model is particularly suitable for target user groups who have clear preferences, feature requirements and high-standard usage requirements for POI naming. The POI names generated based on the updated POI name generation model are POI names that closely fit the personalized needs of the target user group.
[0173] Based on the method for generating a point of interest name disclosed in the aforementioned embodiment, the present application also discloses a device for generating a point of interest name. Figure 4 A schematic diagram of the structure of a device for generating a point of interest name provided in an embodiment of the present application. Figure 4 As shown, the device 400 for generating a point of interest name disclosed in the present application includes:
[0174] The interest point information acquisition module 401 is used to acquire interest point information of at least two modes of interest points;
[0175] The POI name generating module 402 is used to input the POI information into the POI name generating model to generate the POI name of the POI;
[0176] Among them, the POI name generation model includes: a text decoder and encoders corresponding to the at least two modalities; the encoder corresponding to each modality is used to extract the feature vector of the POI information of the modality; the text decoder is used to decode the target feature vector to obtain the POI name; the target feature vector is obtained based on the fusion of the extracted feature vectors.
[0177] In an optional implementation, the device 400 for generating a point of interest name further includes a first point of interest name training module, and the first point of interest name training module specifically includes:
[0178] A first training data acquisition unit, used to acquire interest point information of at least two modes and true value naming names of sample interest points;
[0179] A first feature vector extraction unit, used to input the interest point information of each modality into an encoder corresponding to the modality to extract a sample feature vector;
[0180] A first feature vector fusion unit, used for fusing the sample feature vectors to obtain a target sample feature vector;
[0181] A first predicted naming name generating unit, used for inputting the target sample feature vector into the text decoder to obtain a predicted naming name;
[0182] The first POI name generation model training unit is used to iteratively train the text decoder and the encoder based on the similarity between the true value name and the predicted name to obtain a trained POI name generation model.
[0183] In an optional implementation, the text decoder is used to: decode the target feature vector based on multiple preset usage scenario prompt words and the received target feature vector to obtain the name of the point of interest corresponding to each of the preset usage scenario prompt words.
[0184] In an optional implementation, the device 400 for generating a point of interest name further includes a second point of interest name training module, and the second point of interest name training module specifically includes:
[0185] A second training data acquisition unit is used to acquire interest point information of at least two modes and true value naming names of sample interest points;
[0186] A second feature vector extraction unit is used to input the interest point information of each modality into an encoder corresponding to the modality to extract a sample feature vector;
[0187] A second feature vector fusion unit, used for fusing the sample feature vectors to obtain a target sample feature vector;
[0188] A second predicted naming name generating unit, used for inputting the plurality of preset usage scenario prompt words and the target sample feature vector into the text decoder to obtain a predicted naming name corresponding to each of the preset usage scenario prompt words;
[0189] The second POI name generation model training unit is used to iteratively train the text decoder and the encoder based on the similarity between the true value naming name and the predicted naming name corresponding to each preset usage scenario to obtain a trained POI name generation model.
[0190] In an optional implementation, the device 400 for generating a point of interest name further includes a third point of interest name training module, and the third point of interest name training module specifically includes:
[0191] A true value name acquisition unit, used to acquire the name expected by the user;
[0192] a point of interest name scoring generating unit, configured to score each point of interest name generated based on the similarity between the user's desired name and each point of interest name generated by the point of interest name generating model;
[0193] The third POI name generation model training unit is used to iteratively train the text decoder and the encoder based on the user's expected naming name and the score of each POI name generated by the POI name generation model to obtain an updated POI name generation model.
[0194] Furthermore, the present application also discloses a training device for a point of interest name generation model. Figure 5 A schematic diagram of the structure of a training device for generating a point of interest name model provided in an embodiment of the present application. Figure 5 As shown, the training device 500 of the interest point name generation model in the present application includes:
[0195] A training data acquisition module 501 is used to obtain interest point information of at least two modes of sample interest points and true value naming names;
[0196] A feature vector extraction module 502 is used to input the interest point information of each modality into an encoder corresponding to the modality to extract a sample feature vector;
[0197] A fusion module 503 is used to fuse the sample feature vectors to obtain a target sample feature vector;
[0198] A predicted naming name generation module 504 is used to input the target sample feature vector into a text decoder to obtain a predicted naming name;
[0199] The model training module 505 is used to iteratively train the text decoder and the encoder based on the similarity between the true value naming name and the predicted naming name to obtain a POI name generation model.
[0200] Based on the point of interest name generation method, model training method and device provided in the aforementioned embodiments, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements part or all of the steps in the point of interest name generation method and model training method mentioned above.
[0201] Based on the method for generating a name of a point of interest, the method for training a model, and the device provided in the foregoing embodiments, the present application further provides an electronic device, including:
[0202] a memory having a computer program stored thereon;
[0203] A processor is used to execute the computer program in the memory to implement part or all of the steps in the method for generating a point of interest name and the model training method provided in the aforementioned embodiments.
[0204] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0205] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for generating a point of interest name, characterized in that: The method comprises: Obtaining information of at least two modes of a point of interest; the modes include: picture mode, text mode, audio mode, video mode or code mode; the information of at least one mode of the point of interest is from multiple sources; the multiple sources include at least two of the following: a waybill data source, a navigation data source, a network connection request data source, a search data source, a payment data source and a location information data source within a preset range of the point of interest; Inputting the point of interest information into a point of interest name generation model to generate a point of interest name for the point of interest; Among them, the point of interest name generation model includes: a text decoder and an encoder corresponding to the at least two modalities; the encoder corresponding to each modality is used to extract the feature vector of the point of interest information of the modality; the text decoder is used to decode the target feature vector based on multiple preset usage scenario prompt words and the received target feature vector to obtain the point of interest name corresponding to each preset usage scenario prompt word; the target feature vector is obtained based on the fusion of the extracted feature vectors.
2. The method according to claim 1, characterized in that The training step of the interest point name generation model includes: Obtaining interest point information of at least two modes and true value naming names of sample interest points; Input the interest point information of each modality into the encoder corresponding to the modality to extract the sample feature vector; Fusing the sample feature vectors to obtain a target sample feature vector; Inputting the plurality of preset usage scenario prompt words and the target sample feature vector into the text decoder to obtain a predicted name corresponding to each of the preset usage scenario prompt words; Based on the similarity between the true value name and the predicted name corresponding to each preset usage scenario prompt word, the text decoder and the encoder are iteratively trained to obtain a trained POI name generation model.
3. The method according to claim 2, characterized in that After obtaining the trained POI name generation model, the method further includes: Get the name the user expects; Scoring each generated POI name based on the similarity between the user's desired name and each POI name generated by the POI name generation model; Based on the user's expected name and the score of each POI name generated by the POI name generation model, the text decoder and the encoder are iteratively trained to obtain an updated POI name generation model.
4. A device for generating a name of a point of interest, characterized in that: The device is applied to the method according to claim 1, and the device comprises: A point of interest information acquisition module, used to acquire point of interest information of at least two modes of the point of interest; the modes include: picture mode, text mode, audio mode, video mode or code mode; the point of interest information of at least one mode is from multiple sources; the multiple sources include at least two of the following: waybill data source, navigation data source, network connection request data source, search data source, payment data source and location information data source within a preset range of the point of interest; A point of interest name generation module, used for inputting the point of interest information into a point of interest name generation model to generate a point of interest name for the point of interest; Among them, the point of interest name generation model includes: a text decoder and an encoder corresponding to the at least two modalities; the encoder corresponding to each modality is used to extract the feature vector of the point of interest information of the modality; the text decoder is used to decode the target feature vector based on multiple preset usage scenario prompt words and the received target feature vector to obtain the point of interest name corresponding to each preset usage scenario prompt word; the target feature vector is obtained based on the fusion of the extracted feature vectors.
5. A training device for generating a point of interest name model, characterized in that: The device is applied to the method according to claim 1, and the device comprises: A training data acquisition module, used to obtain interest point information of at least two modes of sample interest points and true value naming names; A feature vector extraction module is used to input the interest point information of each modality into the encoder corresponding to the modality to extract the sample feature vector; A fusion module, used for fusing the sample feature vectors to obtain a target sample feature vector; A predicted naming name generation module, used for inputting the plurality of preset usage scenario prompt words and the target sample feature vector into the text decoder to obtain a predicted naming name corresponding to each of the preset usage scenario prompt words; The model training module is used to iteratively train the text decoder and the encoder based on the similarity between the true value name and the predicted name corresponding to each preset usage scenario prompt word to obtain a trained POI name generation model.
6. A computer device, characterized in that: The device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the steps of the method according to any one of claims 1 to 3 according to the computer program.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Type discrimination method and system for interest point name text
CN112417322A
POI name generation method and device, electronic equipment and storage medium
CN115984838A
Interest point semantic annotation method and system based on spatial and semantic neighbor information
CN116341567A
Interest point image generation method and device, electronic equipment and storage medium
CN117237606A
Method and apparatus for extracting POI name, device, and computer storage medium
WO2021093308A1
