Electronic business card generation method and device, electronic equipment and medium

By obtaining and processing object attribute information of the target account, rich electronic business cards are generated, which solves the problem of being unable to accurately determine whether an object wants to be added as a friend in the prior art, and realizes a more efficient and convenient friend addition process.

CN119583493APending Publication Date: 2025-03-07TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311146431.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-05
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The introduction card in the prior art cannot accurately determine whether the object wants to add the target object as a friend, and after adding it, it needs to delete it if it does not match interests or hobbies, which increases the cumbersome operation.

Method used

By obtaining the object attribute information associated with the target account, word vector conversion and feature extraction are performed, predicted object description information and display configuration information are generated, and the content of the electronic business card is enriched, so that other objects can quickly determine whether to be added as friends based on the introduction.

Benefits of technology

The generated electronic business card not only contains object attribute information, but also object description information used to introduce objects, which reduces the operation cost of adding friends and improves the accuracy and convenience of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583493A_ABST
    Figure CN119583493A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to an electronic business card generation method and device, electronic equipment and a medium. The method comprises the following steps: in response to an electronic business card generation request triggered for a target account, obtaining object attribute information associated with the target account; performing word vector conversion on each attribute contained in the object attribute information to obtain a corresponding word vector, and performing feature extraction on each obtained word vector to obtain a corresponding attribute feature; obtaining prediction object description information of the use object and prediction display configuration information of the to-be-generated electronic business card based on the obtained attribute features; and generating an electronic business card for introducing the use object based on the prediction object description information and the prediction display configuration information. Based on the method, the content of the electronic business card can be enriched, and the introduction of the object is added in the electronic business card, so that other objects can quickly determine whether the added object is a friend or not according to the introduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and medium for generating an electronic business card. Background Art

[0002] With the development of social network technology, instant messaging software has become an important tool for people to communicate. In various communication software, introduction cards can usually be generated for objects to facilitate mutual addition of friends.

[0003] An introduction card is an electronic business card used to represent the attributes of an account when an object makes friends online in an instant messaging software. It is usually used to display the object's image, share and attract the attention of other objects. The information it carries generally includes some account information of the object in the instant messaging software, such as "nickname", "avatar", interests and hobbies, photos, purpose of making friends, etc. It will also include the object's personal QR code, which is convenient for other objects to quickly understand themselves and add friends.

[0004] However, the introduction card in the related art only supports the generation of a single QR code that can be scanned to add friends, and displays the "nickname", "avatar" and account information of the target. In actual applications, when the target receives the introduction card of the target object, it cannot accurately determine whether it wants to add the target object as a friend based on the information displayed in the introduction card. If it is found that the target object has different interests or hobbies from itself after adding the target object as a friend, it is necessary to delete the target object, which increases the complexity of the operation to a certain extent and brings inconvenience to the use process.

[0005] It can be seen that the information carried by the introduction card in the related art can only facilitate the objects to add each other as friends, which is not enough for the object to judge whether the target object is the friend it wants to add. It is necessary to redesign a method for generating an electronic business card to overcome the above defects. Summary of the invention

[0006] The embodiments of the present application provide a method, device, electronic device and medium for generating an electronic business card, which are used to enrich the content of the electronic business card and add an introduction of an object in the electronic business card, so that other objects can quickly determine whether to add the object as a friend based on the introduction.

[0007] In a first aspect, an embodiment of the present application provides a method for generating an electronic business card, the method comprising:

[0008] In response to an electronic business card generation request triggered for a target account, obtaining object attribute information associated with the target account, the object attribute information including: attribute content allowed to be displayed by an object using the target account;

[0009] Performing word vector conversion on each attribute included in the object attribute information respectively to obtain a corresponding word vector, and performing feature extraction on each obtained word vector to obtain a corresponding attribute feature;

[0010] Based on the obtained attribute features, obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated;

[0011] An electronic business card for introducing the usage object is generated based on the prediction object description information and the prediction display configuration information.

[0012] In a second aspect, an embodiment of the present application provides a device for generating an electronic business card, including:

[0013] An acquisition unit, configured to, in response to an electronic business card generation request triggered for a target account, acquire object attribute information associated with the target account, wherein the object attribute information includes: attribute content that is allowed to be displayed by an object using the target account;

[0014] A first processing unit is used to perform word vector conversion on each attribute included in the object attribute information to obtain a corresponding word vector, and perform feature extraction on each obtained word vector to obtain a corresponding attribute feature;

[0015] A second processing unit, configured to obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated based on the obtained attribute features;

[0016] A generating unit is used to generate an electronic business card for introducing the usage object based on the predicted object description information and the predicted display configuration information.

[0017] Optionally, the acquisition unit is further used to:

[0018] After obtaining the object attribute information associated with the target account, based on the operation behavior of the user object using the target account, obtaining the behavior data information of the user object;

[0019] The first processing unit is specifically configured to:

[0020] The attributes contained in the object attribute information and the behavior data information are respectively converted into word vectors to obtain corresponding word vectors.

[0021] Optionally, the acquisition unit is further used to:

[0022] After obtaining the object attribute information associated with the target account, based on the operation behavior of the user object using the target account, obtaining the behavior data information of the user object;

[0023] Based on the obtained behavior data information, obtain the behavior attribute of the user object;

[0024] The behavior attribute is added to the acquired object attribute information.

[0025] Optionally, the generating unit is specifically used for:

[0026] Based on the predicted display configuration information, obtaining an electronic business card template to be filled with information;

[0027] The object attribute information and the predicted object description information are added to the electronic business card template of the information to be filled in, so as to generate an electronic business card for introducing the object of use.

[0028] Optionally, the predicted display configuration information includes: style, color matching, and layout weights of different business card contents;

[0029] The generating unit is specifically used for:

[0030] Based on the style, a matching electronic business card template is obtained, wherein the electronic business card template includes initial positions and initial areas of different business card content display modules;

[0031] Based on the layout weights of the different business card contents, at least one of the initial position and the initial area of ​​each display module in the electronic business card template is adjusted to obtain the electronic business card template to be filled with information;

[0032] The object attribute information and the predicted object description information are added to the electronic business card template of the information to be filled, and an electronic business card for introducing the object of use is generated according to the color matching drawing.

[0033] Optionally, the device further comprises:

[0034] A first presentation unit, used for presenting a switch button for switching the template used by the electronic business card;

[0035] A second presentation unit, configured to present at least one electronic business card template in response to a trigger operation on the switch button;

[0036] The generating unit is further configured to, in response to a selection operation on a target electronic business card template, regenerate the electronic business card using the target electronic business card template.

[0037] Optionally, the device further comprises:

[0038] An attribute information updating unit, configured to change the object attribute information displayed in the electronic business card in response to a change operation of the user of the target account on the attribute content allowed to be displayed;

[0039] The generating unit is further configured to adjust at least one of the position and area of ​​each display module in the electronic business card based on the modified object attribute information, and regenerate the electronic business card.

[0040] Optionally, the device also includes: a third presentation unit, used to present an electronic business card in a picture format after generating an electronic business card for introducing the user, and at least present a save button for triggering the saving of the electronic business card in the picture format, and a share button for sharing the electronic business card in the picture format.

[0041] In a third aspect, an embodiment of the present application provides a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any one of the electronic business card production methods in the first aspect.

[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on a computer device, the computer program is used to enable the computer device to execute any one of the electronic business card production methods in the first aspect.

[0043] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; when a processor of a computer device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the computer device executes any one of the electronic business card production methods in the first aspect above.

[0044] The beneficial effects of this application are as follows:

[0045] In an embodiment of the present application, when a request to generate an electronic business card for a target account is triggered, object attribute information associated with the target account is obtained, and based on the object attribute information, attribute features of the object are extracted, and based on the attribute features of the object, predicted object description information and predicted display configuration information of the electronic business card to be generated are obtained, and then based on the predicted object description information and the predicted display configuration information of the electronic business card to be generated, the predicted object description information and the object attribute information are added to the electronic business card to generate an electronic business card for introducing the object to be used.

[0046] Compared with the personal introduction card in the related art that only contains the target account QR code and basic account information, the electronic business card generated in the embodiment of the present application not only contains object attribute information, but also contains object description information used to introduce the object to be used, enriching the display content of the electronic business card. When other objects receive the electronic business card, they can obtain more information about the object from the electronic business card, so that other objects can quickly determine whether to add the object as a friend based on the introduction of the object in the electronic business card, further reducing the operational cost of adding friends.

[0047] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0049] Figure 1 A schematic diagram of a personal introduction card of an object in the related art;

[0050] Figure 2A A schematic diagram of an application scenario in an embodiment of the present application;

[0051] Figure 2B This is another application scenario schematic diagram in an embodiment of the present application;

[0052] Figure 3 This is a flowchart of an implementation method of generating an electronic business card in an embodiment of the present application;

[0053] Figure 4 A schematic diagram of an interface for filling in object information for an object in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of an interface for selecting object information that is allowed to be displayed for an object in an embodiment of the present application;

[0055] Figure 6 Schematic diagram of the training process of the large language model in the initial training stage in the embodiment of the present application;

[0056] Figure 7 A schematic diagram of the matrix operation process in the multi-head self-attention mechanism layer in the initial training stage of the large language model in the embodiment of the present application;

[0057] Figure 8A schematic diagram of the internal structure of a decoder in a large language model in an embodiment of the present application;

[0058] Fig. 9 A schematic diagram of an electronic business card template that matches the style of the electronic business card to be generated in an embodiment of the present application;

[0059] Fig.10 A schematic diagram of an electronic business card template to be filled with information in an embodiment of the present application;

[0060] Fig.11 This is a schematic diagram of an electronic business card with a "cool and trendy" style in an embodiment of the present application;

[0061] Fig.12 A schematic diagram of another electronic business card of "magazine style" in the embodiment of the present application;

[0062] Fig.13 This is a schematic diagram of another electronic business card in the "magazine style" in the embodiment of the present application;

[0063] Fig.14 This is a schematic diagram of an electronic business card display interface in an embodiment of the present application;

[0064] Fig.15 A schematic diagram of an electronic business card template selection interface in an embodiment of the present application;

[0065] Fig.16 A schematic diagram of another electronic business card display interface in an embodiment of the present application;

[0066] Fig.17 This is a schematic diagram of another electronic business card display interface in an embodiment of the present application;

[0067] Fig.18 A schematic flow chart of a process of updating an electronic business card after an object changes object information in an embodiment of the present application;

[0068] Fig.19 A schematic flow chart of completing an interactive process on an electronic business card generation page to generate an electronic business card in an embodiment of the present application;

[0069] Fig. 20 This is a schematic flow chart of data interaction in a process of generating an electronic business card in an embodiment of the present application;

[0070] Fig.21 A schematic diagram of the structure of an electronic business card generating device in an embodiment of the present application;

[0071] Fig. 22 A schematic diagram of the structure of a first electronic device according to an embodiment of the present application;

[0072] Fig.23 It is a schematic diagram of the composition structure of the second electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0074] It will be understood that in the following specific implementations of the present application, the attribute content of the target account, object attribute information, operation behavior, behavior data information, and communication data such as sent messages, when the various embodiments of the present application are applied to specific products or technologies, relevant licenses or consents need to be obtained, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0075] The following is an introduction to some concepts involved in the embodiments of the present application.

[0076] Object profile card: refers to the profile information (for example, age, education, graduate school, hobbies, idols, etc.) that the object actively fills out according to the template provided by the platform when making friends on the Internet social software or other communication software. The object profile card can be displayed to other objects on the social software, allowing other objects to better understand their information, thereby promoting the formation and stickiness of relationship chains.

[0077] The following is a brief introduction to the design concept of the embodiment of the present application:

[0078] With the development of social network technology, instant messaging software has become an important tool for people to communicate. In various communication software, introduction cards can usually be generated for objects to facilitate mutual addition of friends.

[0079] An introduction card is an electronic business card used to represent the attributes of an account when an object makes friends online in an instant messaging software. It is usually used to display the object's image, share and attract the attention of other objects. The information it carries generally includes some account information of the object in the instant messaging software, such as "nickname", "avatar", interests and hobbies, photos, purpose of making friends, etc. It will also include the object's personal QR code, which is convenient for other objects to quickly understand themselves and add friends.

[0080] However, the introduction card in the related art only supports the generation of a single QR code that can be scanned to add friends, with the "nickname", "avatar" and account information of the displayed object. Figure 1 As shown, the personal introduction card generated in the related art only includes the QR code, "avatar", "nickname" (ABC), and account number (1234567890) of the target account. When the target receives this introduction card, based on the information displayed in the introduction card, it is not possible to accurately determine whether it wants to add the other party as a friend. If after adding the other party as a friend, it is found that the other party has different interests or hobbies from itself, it is necessary to delete the other party, which increases the complexity of the operation to a certain extent and brings inconvenience to the use process.

[0081] It can be seen that the information carried by the introduction card in the related art can only facilitate the objects to add each other as friends, but it is not enough for the objects to judge whether the other party is the friend they want to add.

[0082] In view of this, the embodiment of the present application provides a method, device, electronic device and medium for generating an electronic business card. When triggering an electronic business card generation request for a target account, the object attribute information associated with the target account is obtained, and based on the object attribute information, the attribute characteristics of the object are extracted, and according to the attribute characteristics of the object, the predicted object description information and the predicted display configuration information of the electronic business card to be generated are obtained, and then based on the predicted object description information and the predicted display configuration information of the electronic business card to be generated, the predicted object description information and the object attribute information are added to the electronic business card to generate an electronic business card for introducing the object to be used. Compared with the personal introduction card that only contains the target account QR code and basic account information in the related art, the electronic business card generated in the embodiment of the present application not only contains the object attribute information, but also contains the object description information for introducing the object to be used, enriching the display content of the electronic business card. When other objects receive the electronic business card, they can obtain more information about the object from the electronic business card, so that other objects can quickly determine whether to add the object as a friend based on the introduction of the object in the electronic business card, further reducing the operation cost of adding friends.

[0083] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.

[0084] like Figure 2A As shown, it is a schematic diagram of an application scenario of an embodiment of the present application. The application scenario diagram includes any terminal device 210 among multiple terminal devices and any server 220 among multiple servers. In this application scenario, the object can trigger the generation of its own electronic business card through a terminal device with a software application (for example, instant messaging software) client installed.

[0085] like Figure 2B As shown, it is a schematic diagram of another application scenario of an embodiment of the present application. The application scenario diagram includes any terminal device 210 among multiple terminal devices and any server 220 among multiple servers. In this application scenario, object A can trigger the generation of electronic business cards of other objects (for example, object C, not shown in the figure) through a terminal device installed with a software application (for example: instant messaging software) client, and send the generated electronic business card to object B, so that object B can add object C as a friend based on the electronic business card.

[0086] In the embodiment of the present application, the terminal device 210 includes but is not limited to mobile phones, tablet computers, laptop computers, desktop computers and other devices; various software clients can be installed on the terminal device, such as video clients and instant messaging software clients, etc. The client can be software, or a web page, applets, etc. The server 220 is the background service end of the software application. The server 220 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0087] It should be noted that the method for generating an electronic business card in the embodiment of the present application can be executed by the server 220 or by the terminal device 210, and the embodiment of the present application does not limit this.

[0088] by Figure 2A Taking the application scenario shown in as an example, when the object triggers an electronic business card generation request for the current login account in the instant messaging software client, that is, when it triggers the generation of its own electronic business card, the client responds to the electronic business card generation request, obtains the object attribute information associated with the current account from the local cache of the terminal device 210 or the server 220, performs word vector conversion on each attribute included in the object attribute information, obtains the corresponding word vector, and performs feature extraction on each obtained word vector to obtain the corresponding attribute feature; and based on the obtained attribute features, obtains the predicted object description information of the object and the predicted display configuration information of the electronic business card to be generated; finally, based on the predicted object description information and the predicted display configuration information, generates an electronic business card for introducing the object.

[0089] by Figure 2BTaking the application scenario shown in as an example, when object A triggers an electronic business card generation request for the target account (the account of object C) in the instant messaging software client, that is, when the generation of the electronic business card of object C is triggered, the server 220 responds to the electronic business card generation request, obtains the object attribute information associated with object C, performs word vector conversion on each attribute contained in the object attribute information, obtains the corresponding word vector, and performs feature extraction on each obtained word vector to obtain the corresponding attribute feature; and based on the obtained attribute features, obtains the predicted object description information of object C and the predicted display configuration information of the electronic business card to be generated; finally, based on the predicted object description information and the predicted display configuration information, generates an electronic business card for introducing object C, and the server 220 sends the electronic business card of object C to the terminal device of object A. At this time, object A can send the electronic business card of object C to object B.

[0090] In an optional implementation, the terminal device 210 and the server 220 may communicate with each other via a communication network.

[0091] In an optional implementation, the communication network is a wired network or a wireless network.

[0092] It should be noted that Figure 2A and 2B What is shown is just an example. In fact, the number and communication method of terminal devices and servers are not limited. When there are multiple servers, multiple servers can form a blockchain, and the server is a node on the blockchain, which is not specifically limited in the embodiments of the present application.

[0093] The following describes the method for generating an electronic business card provided by an exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this regard.

[0094] See also Figure 3 As shown, it is an implementation flow chart of a method for generating an electronic business card in an embodiment of the present application. The specific implementation process of the method is as follows S301-S304:

[0095] S301, in response to an electronic business card generation request triggered for a target account, obtaining object attribute information associated with the target account, the object attribute information including: attribute content allowed to be displayed by an object using the target account.

[0096] It should be noted that the electronic business card generation request triggered for the target account can be triggered by the user of the target account, such as the user of the target account triggering the generation of its own electronic business card, or it can be triggered by other objects other than the user of the target account, such as other objects triggering the generation of the target account's electronic business card for the target account.

[0097] The object attribute information of the target account may be the attribute content that the user of the target account is allowed to display, and the attribute content may be the object information input or filled in by the user of the target account.

[0098] In one example, if Figure 4 As shown, when the user registers an account in the software client, the software client can request the user to edit and complete the user information in the user information card interface. The user information may include but is not limited to: "Avatar", "Signature", "Nickname", "Gender", "Personal Tag", "Birthday", "Selected Photos", "Educational Background", etc.

[0099] In addition, after the user logs in to the software client with a registered account, he can enter the object information card interface through key or touch operation to edit the object information. After the object fills in or enters the object information, this part of the object information can be used as the object's attribute content, and the attribute content that the object allows to be displayed can be obtained as the object attribute information.

[0100] In the embodiment of the present application, a display flag can be set for each attribute content. After the user of the target account fills in the object information, the display flag can be used to select whether to display each attribute content.

[0101] In one example, if Figure 5 As shown, the user selects to allow display of attribute contents such as "avatar", "signature", "nickname", "gender", and "personality tag", and selects not to allow display of attribute contents such as "birthday", "selected photos", and "educational experience".

[0102] During specific implementation, when obtaining the object attribute information associated with the target account, if the request to generate an electronic business card for the target account is triggered by the object used by the target account, the object attribute information associated with the target account can be obtained from the local cache of the software client (if stored) or from the server; if the request to generate an electronic business card for the target object is triggered by other objects, the object attribute information associated with the target object can be obtained from the server.

[0103] Regarding the triggering method of the electronic business card generation request for the target account, the embodiment of the present application does not limit this. For example, it can be triggered by setting a button or by sliding on a specific page (such as the object profile card interface).

[0104] S302, respectively converting each attribute included in the object attribute information into a word vector to obtain a corresponding word vector, and performing feature extraction on each obtained word vector to obtain a corresponding attribute feature.

[0105] In specific implementation, before converting each attribute contained in the object attribute information into a word vector, each attribute contained in the object attribute information may also be subjected to word segmentation processing and stop word removal processing. After converting each attribute in the object attribute information into a word vector, the word vector corresponding to each attribute is obtained, and then feature extraction is performed on each obtained word vector to obtain the corresponding attribute feature. Among them, the word vector conversion can use algorithms such as Word2Vec and Glove, which are not limited in the embodiments of the present application.

[0106] It should be noted that after obtaining the word vectors corresponding to each attribute, they can be expressed in the form of a word vector matrix. Subsequently, the features of each word vector obtained can be extracted, and multiple decoders can be used to process the word vector matrix to obtain the corresponding attribute features. Among them, the decoder includes at least a multi-head attention mechanism layer, a feedforward layer, a residual connection layer, and a normalization layer.

[0107] S303: Based on the obtained attribute features, obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated.

[0108] In specific implementation, the predicted target sequence can be obtained by normalizing the word vector matrix through iterative processing of multiple decoders. The target sequence may include: predicted object description information of the user object and predicted display configuration information of the electronic business card to be generated. Among them, the predicted object description information of the user object can be a paragraph describing the user object, which is used to introduce the user object so that other objects can understand the user object more quickly through this predicted object description information. The predicted display configuration information of the electronic business card to be generated may include, but is not limited to, the style of the electronic business card to be generated, the color of the electronic business card to be generated, and the layout weights of different business card contents in the electronic business card to be generated.

[0109] In one example, for example, the object attribute information includes: favorite singer "XX", date of birth is 2003, gender is female, and the predicted object description information is "fashionable fairy fan of singer XX", and the predicted display configuration information is: style-"album style", color-"yellow", etc.

[0110] In actual applications, the predicted object description information of the object to be used and the predicted display configuration information of the electronic business card to be generated are obtained through the object attribute information associated with the target account. This can be achieved by pre-training a large language model. The training process of the large language model is explained below.

[0111] The large language model uses the Transformer architecture, which includes components such as multi-head self-attention mechanism, residual connection and position encoding to improve the performance of the model. When training the large language model, the pre-training + fine-tuning training method is used. Specifically, in the pre-training stage, the collected text data is used to train the large language model. In the fine-tuning stage, the collected object data is used as training data to fine-tune the parameters of the model generated by the pre-training stage to generate a large language model that meets the requirements.

[0112] The Transformer architecture used in the embodiment of the present application is composed of a self-attention mechanism and a feed-forward neural network. A trainable neural network is built by stacking Transformers. A model architecture of multiple decoders (decoder-only) is used in the embodiment of the present application. Each decoder is composed of a multi-head self-attention mechanism and a feed-forward neural network. Each decoder receives input from the previous decoder, processes the input through the self-attention mechanism and the feed-forward neural network, and finally outputs the representation result of the current layer.

[0113] During the pre-training phase:

[0114] In the embodiment of the present application, a large amount of text data can be collected from the Internet, covering various topics and languages. After cleaning and preprocessing, these text data are used as training data in the pre-training stage of the large language model. In the embodiment of the present application, common pre-processing techniques can also be used, including word segmentation and stop word removal, to process the collected text data to improve the quality of the training data. In the pre-training stage, the input and output of the training model are the same text.

[0115] like Figure 6 As shown, in the pre-training stage, a mask-based language modeling task is used for supervised learning. For the input text: Technology for Good..., it is represented by the matrix [w1, w2, w3, w4...], where wi represents the number of words in the input text, and a special start marker bos is added at the beginning. During training, the input text is first vectorized and converted into the corresponding word vector through the embedding mechanism to generate the corresponding word vector matrix h0 = [e1, e2, e3, e4...], which consists of token encoding and position information encoding. For the obtained word vector matrix h0, it is input into the Transformer layer to obtain the matrix of the next layer, and then iterative calculation is performed. The specific calculation formula is as follows:

[0116] hj = tansformer_block(hj-1) (1)

[0117] The tansformer_block consists of a multi-head self-attention layer, a feed forward layer, a residual connection layer and a normalization layer (Add&Norm).

[0118] For the multi-head attention mechanism layer, multi-head-self-attention is formed by combining multiple self-attentions. First, self-attention is introduced.

[0119] If the input of self-attention is represented by matrix X, then Figure 7 As shown, the linear transformation matrices WQ, WK, WV can be used to calculate Q, K, V. Each row of the matrices X, Q, K, V represents a word.

[0120] After obtaining the matrices Q, K, and V, we can calculate the output of self-attention. The specific calculation formula is as follows:

[0121]

[0122] Among them, d k is the number of columns of matrices Q and K, that is, the dimension of the vector. Formula (2) calculates the inner product of each row vector of matrices Q and K. In order to prevent the inner product from being too large, it is divided by d k The square root of Q multiplied by the transpose of K, the resulting matrix has n rows and columns, where n is the number of words in the input data. This matrix can represent the attention strength between words.

[0123] Multi-head-self-attention is formed by combining multiple self-attentions. For the output of multi-head-self-attention, the input matrix X is first passed to h different self-attentions, the output matrices of h self-attentions are calculated, and then the output matrices are connected and passed to a linear layer to obtain the final output of multi-head-self-attention. The details are as follows:

[0124] MultiHead(Q,K,V)=Concat(head1,head2,…,head h )WO (3)

[0125] head i =attention(QW i Q , KW i K , VW i V ) (4)

[0126] For the feedforward layer, the feedforward layer is a two-layer fully connected layer. The activation function of the first layer is Relu, and the second layer does not use an activation function. The corresponding formula is as follows:

[0127] max(0,XW1+b1)W2+b2 (5)

[0128] Where X is the model input, the dimension of the output matrix finally obtained by the feedforward layer is consistent with X, b1 and b2 are model parameters, and max is the maximum value function.

[0129] For the residual connection and normalization layer, it consists of two parts: the residual connection layer and the normalization layer, such as Figure 8 As shown, for the residual connection and normalization layer connected after the multi-head self-attention mechanism layer in the decoder, the calculation formula is as follows (6):

[0130] LayerNorm(X+MultiHeadAttention(X)) (6)

[0131] For the residual connection and normalization layer connected after the feed-forward layer in the decoder, the calculation formula is as follows (7):

[0132] LayerNorm(X+FeedForward(X)) (7)

[0133] Among them, the matrix X represents the input of the multi-head self-attention mechanism layer or the feedforward layer, and MultiHeadAttention(X) and FeedForward(X) represent the output.

[0134] During the model fine-tuning training phase:

[0135] In the embodiment of the present application, the fine-tuning training data of the large language model is artificially constructed, which consists of two parts: input and output. The input data includes virtual name, education background, work experience, personal hobbies and other object attribute information, which is randomly sampled and generated from a structured database, and the output data is the artificially constructed object description information and the display configuration information of the electronic business card (including: the style of the electronic business card, the color matching of the electronic business card, the layout weight of different business card contents in the electronic business card, etc.), which are used to fine-tune the training of the large language model.

[0136] During the model fine-tuning training phase, the output of the decoder is compared with the corresponding target sequence, that is, the artificially constructed output data, the cross entropy loss is calculated, and the model parameters are updated through the back-propagation algorithm until the loss function meets the predetermined constraints.

[0137] S304: Generate an electronic business card for introducing the usage object based on the predicted object description information and the predicted display configuration information.

[0138] In specific implementation, after obtaining the predicted object description information and the predicted display configuration information, the electronic business card template for the information to be filled in can be obtained based on the predicted display configuration information, and then the object attribute information and the predicted object description information are added to the electronic business card template for the information to be filled in, so as to generate an electronic business card for introducing the object to be used. Of course, the electronic business card also needs to include the QR code of the object to be used.

[0139] Among them, the predicted display configuration information includes: style (such as: "simple style", "album style", "trendy style", and "magazine style", etc.), color matching (such as red, yellow, green, mixed colors, etc.) and layout weights of different business card contents.

[0140] When obtaining an electronic business card template for information to be filled in based on the predicted display configuration information, first, based on the style, a matching electronic business card template is obtained, the electronic business card template includes the initial positions and initial areas of different business card content display modules, and then based on the layout weights of different business card contents, at least one of the initial positions and initial areas of each display module in the electronic business card template is adjusted to obtain the electronic business card template for information to be filled in.

[0141] It should be noted that each electronic business card style can be pre-matched to multiple electronic business card templates. Similarly, each electronic business card template may also be matched to different styles, which is not limited in the present application embodiment. In specific implementation, the electronic business card template can be matched based on the style of the electronic business card by adding a style tag to the electronic business card template.

[0142] In the electronic business card template, different business card content display modules, as well as the initial position and initial area of ​​the display modules are pre-defined. The display modules can be adjusted (such as deleted) according to the object attribute information that needs to be displayed in the electronic business card. At least one of the initial position and initial area of ​​each display module in the electronic business card can be adjusted based on the layout weights of different business card contents obtained in the predicted display configuration information to obtain an electronic business card template to be filled with information.

[0143] In one example, if Fig. 9 As shown, it is assumed that in the matched electronic business card template, a QR code display module, an "avatar" display module, a "nickname" display module, an "account" display module, a "birthday" display module, a predicted object description information display module, an interest and hobby display module, and of course, the initial position and initial area of ​​each display module are pre-defined.

[0144] If the acquired object attribute information does not include the object's birthday information and hobby information, that is, the object's birthday information and hobby information are not allowed to be displayed, then the "birthday" display module and hobby display module can be deleted in the electronic business card template.

[0145] At the same time, if the layout weights of different business card contents in the prediction display configuration information are: the description information of the prediction object accounts for 40%, then the initial area of ​​the description information display module of the prediction object needs to be adjusted so that it accounts for 40% of the entire template. At the same time, its initial position can also be adjusted. The adjusted template, such as Fig.10 As shown, Fig.10 The template shown in can be used as an electronic business card template to be filled with information.

[0146] After obtaining the electronic business card template with the information to be filled, fill the object attribute information, QR code and predicted object description information into the electronic business card template, and then draw and generate the electronic business card according to the color scheme in the predicted display information.

[0147] In one example, if Fig.11 As shown, Fig.11 A method for generating an electronic business card provided by an embodiment of the present application is shown. The generated electronic business card has a "trendy and cool" style. The information displayed in the electronic business card includes: "nickname" (Flying Qiuqiu), "account number" (1234567890), "label", "gender", "zodiac sign", "age", "province", "educational background", description information of the predicted object (I am an introverted little i who loves the second dimension and likes to travel in the world of games and jazz~) and a QR code.

[0148] In another example, if Fig.12As shown, Fig.12 A method for generating an electronic business card provided by an embodiment of the present application is shown. The generated electronic business card has a "magazine style" style, wherein the information displayed in the electronic business card includes: "avatar", "nickname" (Flying Qiuqiu), "account number" (1234567890), "zodiac sign", "age", "employment information", "province", description information of the predicted object, and a QR code.

[0149] In another example, Fig.13 As shown, Fig.13 A method for generating an electronic business card provided by an embodiment of the present application is shown. The generated electronic business card has a "magazine style" style. The information displayed in the electronic business card includes: "Avatar", "Nickname" (Flying Qiuqiu), "Account" (1234567890), "Zodiac sign", "Age", "Employment information", "Province", description information of the predicted object and a QR code.

[0150] By using the method for generating an electronic business card provided in the embodiment of the present application, the generated electronic business card not only carries more information, so that other objects can obtain more information about the object through the electronic business card, but also includes descriptive information for introducing the object, so that other objects can quickly determine whether to add the object as a friend based on the introduction of the object in the electronic business card. In addition, the electronic business card generated in the embodiment of the present application can also have different styles and color schemes, each style can provide a variety of different templates for objects to choose from, and the electronic business card can be rendered by color scheme, making the electronic business card more colorful and enhancing the interest of objects in sharing the electronic business card.

[0151] In order to obtain more accurate description information of the predicted object, in one embodiment, after obtaining the object attribute information associated with the target account, the embodiment of the present application can also obtain the behavioral data information of the user object based on the operational behavior of the user object using the target account, and then perform word vector conversion on each attribute and behavioral data information contained in the object attribute information to obtain the corresponding word vector, and perform feature extraction on each obtained word vector to obtain the corresponding attribute feature.

[0152] It should be noted that the operations of the user using the target account include but are not limited to: other objects followed by the user using the target account, the movies and TV shows played, the songs played, the clicks on various pushed content, and some settings made in the software client, etc.

[0153] In another embodiment, after obtaining the object attribute information associated with the target account, the embodiment of the present application can obtain the behavior data information of the user object based on the operation behavior of the user object using the target account, and then obtain the behavior attributes of the user object based on the obtained behavior data information, and then add the behavior attributes to the obtained object attribute information as a type of object attribute information.

[0154] In practical applications, based on the obtained behavioral data information, the behavioral attributes of the user can also be obtained through a large language model. Of course, other methods can also be used, and the embodiments of the present application do not limit this. Among them, the behavioral attributes of the user can be the user's dating preferences, social preferences, etc.

[0155] like Fig.14 As shown, after the electronic business card is generated, the embodiment of the present application may also present a switch button for switching the template used by the electronic business card, and in response to a trigger operation on the switch button, present at least one electronic business card template, such as Fig.15 As shown, multiple electronic business card templates are presented for the object to select, and different electronic business card templates can be previewed by sliding left and right. After the object selects the target electronic business card template and clicks the "OK" button, in response to the selection operation for the target electronic business card template, the electronic business card is regenerated using the target electronic business card template.

[0156] It should be noted that in the embodiment of the present application, the template of the electronic business card supports dynamic configuration, and the template can be added, deleted or adjusted online.

[0157] In other embodiments of the present application, an account change button for switching accounts can also be presented. In response to a trigger operation on the account change button, the requesting object selects the switched account from the multiple logged-in accounts presented, and changes the account information displayed in the electronic business card. Of course, the object attribute information in the electronic business card can also be synchronously changed to the object attribute information of the user of the switched account.

[0158] In practical applications, such as Fig.16 As shown, after generating the electronic business card, the embodiment of the present application can also present the electronic business card in picture format, and at least present a save button for triggering saving the electronic business card in picture format, and a share button for sharing the electronic business card in picture format.

[0159] In specific implementation, the coating data of the electronic business card can be obtained based on the off-screen rendering technology and the system screenshot capability of the terminal device, so as to intercept and save it in a picture format, and present the electronic business card in a picture format. The electronic business card presented in a picture format can be an electronic business card presented in a picture format directly after the electronic business card is generated, without the need for an object trigger, or it can be an electronic business card presented in a picture format triggered by an object through an operation, for example, by clicking a "share" button to trigger the presentation of an electronic business card in a picture format, which is not limited in the embodiments of the present application.

[0160] In addition, if Fig.17 As shown, in the electronic business card in picture format, a switch button for switching the template used by the electronic business card can also be presented to switch the template of the electronic business card and regenerate the electronic business card.

[0161] In actual applications, the embodiments of the present application can also change the object attribute information displayed in the electronic business card in response to the user of the target account changing the attribute content allowed to be displayed, and based on the changed object attribute information, adjust at least one of the position and area of ​​each display module in the electronic business card to regenerate the electronic business card to keep the electronic business card in the latest state.

[0162] In specific implementation, the object can control the display and hiding of certain object information in the object information card interface, such as hiding age. In this case, this change will be transmitted to the electronic business card, and the age will not be displayed in the electronic business card.

[0163] In the embodiment of the present application, by enriching the content of the electronic business card, the electronic business card of the object can carry more information in addition to the QR code, thereby stimulating the object to share his or her electronic business card and attracting more objects to add friends. The electronic business card generated in the embodiment of the present application is a social asset that is more conducive to communication and making friends, and helps to expand the new scale of the object's social relationship chain.

[0164] Combine the following Fig.18 , the process of updating the electronic business card after the object changes the object data in the electronic business card generation method provided in the embodiment of the present application is described in detail. Specifically including:

[0165] 1. The object enters the electronic business card display page in the client.

[0166] 2. The object clicks the "Edit Information" button to enter the object information card interface.

[0167] 3. Edit the object operation data and select the displayable data, that is, change the data or change the display status of the data, and reselect the displayable data and the non-displayable data.

[0168] 4. The object clicks the "Editing Complete" button.

[0169] 5. Edit the data and submit it to the data backend (such as a data storage server) for storage.

[0170] 6. The data is successfully returned to the background for editing and automatically returns to the electronic business card display page.

[0171] 7. The client notifies the front-end rendering module (the module for drawing the electronic business card) to update the object information data and redraw the generated electronic business card display.

[0172] Combine the following Fig.19 , the electronic business card generation method provided in the embodiment of the present application is described in detail on the completion interaction process of the electronic business card generation page. Specifically including:

[0173] Step 1901, the subject enters the electronic business card display page.

[0174] Step 1902, obtain the predicted display configuration information and predicted object description information of the electronic business card to be generated from the algorithm background. The algorithm background may be the large language model provided in the above embodiment of the present application, which may obtain the predicted display configuration information and predicted object description information of the electronic business card to be generated based on the object attribute information associated with the acquired target account.

[0175] Step 1903, obtain the status of the display flag from the object data card background, and obtain the object attribute information that is allowed to be displayed.

[0176] It should be noted that step 1902 and step 1903 may be performed simultaneously, or step 1902 may be performed first and then step 1903, or step 1903 may be performed first and then step 1902. This embodiment of the present application does not limit this.

[0177] Step 1904: based on the predicted display configuration information, obtain an electronic business card template for information to be filled.

[0178] Step 1905: Fill the electronic business card template with the object attribute information and predicted object description information that are allowed to be displayed.

[0179] Step 1906: Slide the object left or right to select a suitable electronic business card template, and draw and generate an electronic business card.

[0180] Step 1907, the subject clicks the share button to share the generated electronic business card.

[0181] Step 1908, generate an electronic business card in a picture format, and forward it to corresponding friends, groups, spaces, etc. through a background service. Of course, other application clients can also be called to forward it to other application clients.

[0182] Combine the following Fig. 20, the data processing process involved in the method for generating an electronic business card provided in the embodiment of the present application is described in detail. Specifically, it includes:

[0183] 1. The client requests basic object data from the data background. That is, after the object triggers the electronic business card generation request in the client, the client requests the object attribute information from the data background (such as the data storage server), that is, the attribute content that the object is allowed to display.

[0184] 2. The client receives the basic object data returned by the data background and obtains the object attribute information.

[0185] 3. The client requests recommended data from the algorithm background, that is, the client requests the algorithm background (such as the algorithm server) for prediction object description information and prediction display configuration information.

[0186] 4. The algorithm background runs the recommendation algorithm, using the trained large language model to obtain the predicted object description information and the predicted display configuration information of the electronic business card to be generated based on the object attribute information.

[0187] 5. The client receives the recommended data returned by the algorithm background and obtains the prediction object description information and prediction display configuration information.

[0188] 6. The client integrates and stores the data.

[0189] 7. The client provides the data to the front-end rendering module to request the front-end rendering module to render and draw the electronic business card.

[0190] 8. The front-end rendering module renders and draws the electronic business card based on the data provided by the client.

[0191] 9. After the front-end rendering module completes rendering and drawing of the electronic business card, it sends the electronic business card to the client.

[0192] 10. Display electronic business cards in the client.

[0193] Based on the same inventive concept, the present application also provides a device for generating an electronic business card. Fig.21 As shown, it is a schematic diagram of the structure of an electronic business card generation device 2100, which may include:

[0194] The acquisition unit 2101 is used to respond to the electronic business card generation request triggered for the target account, and acquire the object attribute information associated with the target account, wherein the object attribute information includes: the attribute content allowed to be displayed by the user object of the target account;

[0195] The first processing unit 2102 is used to perform word vector conversion on each attribute included in the object attribute information to obtain a corresponding word vector, and perform feature extraction on each obtained word vector to obtain a corresponding attribute feature;

[0196] The second processing unit 2103 is used to obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated based on the obtained attribute features;

[0197] The generating unit 2104 is used to generate an electronic business card for introducing the usage object based on the predicted object description information and the predicted display configuration information.

[0198] Optionally, the acquisition unit 2101 is further configured to:

[0199] After obtaining the object attribute information associated with the target account, based on the operation behavior of the user object using the target account, obtain the behavior data information of the user object;

[0200] The first processing unit 2102 is specifically configured to:

[0201] The attributes and behavior data information contained in the object attribute information are converted into word vectors respectively to obtain the corresponding word vectors.

[0202] Optionally, the acquisition unit 2101 is further configured to:

[0203] After obtaining the object attribute information associated with the target account, based on the operation behavior of the user object using the target account, obtain the behavior data information of the user object;

[0204] Based on the obtained behavior data information, obtain the behavior attributes of the user object;

[0205] Add behavior attributes to the acquired object attribute information.

[0206] Optionally, the generating unit 2104 is specifically configured to:

[0207] Based on the predicted display configuration information, an electronic business card template to be filled with information is obtained;

[0208] The object attribute information and the predicted object description information are added to the electronic business card template for information to be filled in, and an electronic business card for introducing the object to be used is generated.

[0209] Optionally, predict display configuration information, including: style, color scheme, and layout weights of different business card contents;

[0210] The generating unit 2104 is specifically used for:

[0211] Based on the style, a matching electronic business card template is obtained, wherein the electronic business card template includes initial positions and initial areas of different business card content display modules;

[0212] Based on the layout weights of different business card contents, at least one of the initial position and the initial area of ​​each display module in the electronic business card template is adjusted to obtain the electronic business card template to be filled with information;

[0213] The object attribute information and the predicted object description information are added to the electronic business card template to be filled with information, and the electronic business card for introducing the object is generated according to the color matching.

[0214] Optionally, the device further comprises:

[0215] The first presentation unit 2105 is used to present a switch button for switching the template used by the electronic business card;

[0216] The second presenting unit 2106 is used to present at least one electronic business card template in response to a trigger operation on the switch button;

[0217] The generating unit 2104 is further configured to, in response to a selection operation on a target electronic business card template, regenerate the electronic business card using the target electronic business card template.

[0218] Optionally, the device further comprises:

[0219] The attribute information updating unit 2107 is used to change the object attribute information displayed in the electronic business card in response to the user of the target account changing the attribute content allowed to be displayed;

[0220] The generating unit 2104 is further configured to adjust at least one of the position and area of ​​each display module in the electronic business card based on the modified object attribute information, and regenerate the electronic business card.

[0221] Optionally, the device also includes: a third presentation unit 2108, which is used to present the electronic business card in picture format after generating the electronic business card for introducing the user, and at least present a save button for triggering the saving of the electronic business card in picture format, and a share button for sharing the electronic business card in picture format.

[0222] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. The electronic device can be used to generate an electronic business card. In one embodiment, the electronic device can be a server, such as Figure 2A or Figure 2B In this embodiment, the structure of the electronic device can be as follows: Fig. 22 As shown, it includes a memory 2201 , a communication module 2203 and one or more processors 2202 .

[0223] The memory 2201 is used to store computer programs executed by the processor 2202. The memory 2201 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0224] The memory 2201 may be a volatile memory, such as a random-access memory (RAM); the memory 2201 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 2201 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2201 may be a combination of the above memories.

[0225] The processor 2202 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 2202 is used to implement the above-mentioned electronic business card generation method when calling the computer program stored in the memory 2201 .

[0226] The communication module 2203 is used to communicate with terminal devices and other servers.

[0227] The specific connection medium between the memory 2201, the communication module 2203 and the processor 2202 is not limited in the embodiment of the present application. Fig. 22 In the embodiment, the memory 2201 and the processor 2202 are connected via a bus 2204. The bus 2204 is connected to the processor 2202 via a bus 2204. Fig. 22 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. Bus 2204 can be divided into address bus, data bus, control bus, etc. For ease of representation, Fig. 22 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0228] The memory 2201 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the method for generating an electronic business card in the embodiment of the present application. The processor 2202 is used to execute the above-mentioned method for generating an electronic business card, such as Figure 3 shown.

[0229] In another embodiment, the electronic device may also be other electronic devices, such as Figure 2A or Figure 2B The terminal device 210 shown in FIG. 1 is a terminal device 210 shown in FIG. 1 . In this embodiment, the structure of the electronic device can be as follows: Fig.23 As shown, it includes: a communication component 2310, a memory 2320, a display unit 2330, a camera 2340, a sensor 2350, an audio circuit 2360, a Bluetooth module 2370, a processor 2380 and other components.

[0230] The communication component 2310 is used to communicate with the server. In some embodiments, a circuit wireless fidelity (Wireless Fidelity, WiFi) module may be included. The WiFi module belongs to a short-range wireless transmission technology. The electronic device can help users send and receive information through the WiFi module.

[0231] The memory 2320 can be used to store software programs and data. The processor 2380 executes various functions and data processing of the terminal device 210 by running the software programs or data stored in the memory 2320. The memory 2320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The memory 2320 stores an operating system that enables the terminal device 210 to run. In the present application, the memory 2320 can store an operating system and various application programs, and can also store code for executing the method for generating an electronic business card in the embodiment of the present application.

[0232] The display unit 2330 can also be used to display information input by the user or information provided to the user and a graphical user interface (GUI) of various menus of the terminal device 210. Specifically, the display unit 2330 may include a display screen 2332 disposed on the front of the terminal device 210. The display screen 2332 may be configured in the form of a liquid crystal display, a light emitting diode, etc. The display unit 2330 may be used to present an electronic business card in an embodiment of the present application.

[0233] The display unit 2330 can also be used to receive input digital or character information, and generate signal input related to user settings and function control of the terminal device 210. Specifically, the display unit 2330 may include a touch screen 2331 arranged on the front of the terminal device 210, which can collect user touch operations on or near it, such as clicking a button, dragging a scroll box, etc.

[0234] The touch screen 2331 can be covered on the display screen 2332, or the touch screen 2331 and the display screen 2332 can be integrated to realize the input and output functions of the terminal device 210, and the integrated touch screen can be referred to as a touch display screen. In this application, the display unit 2330 can display the application and the corresponding operation steps.

[0235] Camera 2340 can be used to capture static images, and the user can send the image taken by camera 2340 to the user of the other chat partner through the client. Camera 2340 can be one or more. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the processor 2380 to convert it into a digital image signal.

[0236] The terminal device may further include at least one sensor 2350, such as an acceleration sensor 2351, a distance sensor 2352, a fingerprint sensor 2353, and a temperature sensor 2354. The terminal device may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, and a motion sensor.

[0237] The audio circuit 2360, the speaker 2361, and the microphone 2362 can provide an audio interface between the user and the terminal device 210. The audio circuit 2360 can transmit the electrical signal converted from the received audio data to the speaker 2361, which is converted into a sound signal for output. The terminal device 210 can also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 2362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 2360 and converted into audio data, and then the audio data is output to the communication component 2310 to be sent to, for example, another terminal device 210, or the audio data is output to the memory 2320 for further processing.

[0238] The Bluetooth module 2370 is used to exchange information with other Bluetooth devices having Bluetooth modules through the Bluetooth protocol. For example, the terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smart watch) that also has a Bluetooth module through the Bluetooth module 2370 to exchange data.

[0239] The processor 2380 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal device and processes data by running or executing software programs stored in the memory 2320 and calling data stored in the memory 2320. In some embodiments, the processor 2380 may include one or more processing units; the processor 2380 may also integrate an application processor and a baseband processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the baseband processor mainly processes wireless communications. It is understandable that the above-mentioned baseband processor may not be integrated into the processor 2380. In the present application, the processor 2380 can run the operating system, application programs, user interface display and touch response, as well as the method for generating an electronic business card in the embodiment of the present application. In addition, the processor 2380 is coupled to the display unit 2330.

[0240] In some possible implementations, various aspects of the method for generating an electronic business card provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the method for generating an electronic business card according to various exemplary implementations of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 3 Follow the steps shown in .

[0241] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0242] The program product of the embodiment of the present application may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a computing device. However, the program product of the present application is not limited thereto. In the embodiment of the present application, the readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with a command execution system, device or device.

[0243] The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein the readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, apparatus, or device.

[0244] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0245] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user equipment, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0246] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0247] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0248] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0249] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program commands. These computer program commands can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the commands executed by the processor of the computer or other programmable data processing device generate commands for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0250] These computer program commands may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the commands stored in the computer readable memory produce an article of manufacture comprising a command device, the command device implementing the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0251] These computer program commands can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the commands executed on the computer or other programmable device provide the instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0252] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0253] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating an electronic business card, characterized in that: The method comprises: In response to an electronic business card generation request triggered for a target account, obtaining object attribute information associated with the target account, the object attribute information including: attribute content allowed to be displayed by an object using the target account; Performing word vector conversion on each attribute included in the object attribute information respectively to obtain a corresponding word vector, and performing feature extraction on each obtained word vector to obtain a corresponding attribute feature; Based on the obtained attribute features, obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated; An electronic business card for introducing the usage object is generated based on the prediction object description information and the prediction display configuration information.

2. The method according to claim 1, characterized in that After obtaining the object attribute information associated with the target account in response to the electronic business card generation request triggered for the target account, the method further includes: Based on the operation behavior of the user object using the target account, obtaining behavior data information of the user object; The performing word vector conversion on each attribute included in the object attribute information to obtain a corresponding word vector includes: The attributes contained in the object attribute information and the behavior data information are respectively converted into word vectors to obtain corresponding word vectors.

3. The method according to claim 1, characterized in that After obtaining the object attribute information associated with the target account in response to the electronic business card generation request triggered for the target account, the method further includes: Based on the operation behavior of the user object using the target account, obtaining behavior data information of the user object; Based on the obtained behavior data information, obtain the behavior attribute of the user object; The behavior attribute is added to the acquired object attribute information.

4. The method according to claim 1, characterized in that: The step of generating an electronic business card for introducing the usage object based on the prediction object description information and the prediction display configuration information includes: Based on the predicted display configuration information, obtaining an electronic business card template to be filled with information; The object attribute information and the predicted object description information are added to the electronic business card template of the information to be filled in, so as to generate an electronic business card for introducing the object of use.

5. The method according to claim 4, characterized in that The predicted display configuration information includes: style, color matching, and layout weights of different business card contents; The step of obtaining an electronic business card template to be filled with information based on the predicted display configuration information includes: Based on the style, a matching electronic business card template is obtained, wherein the electronic business card template includes initial positions and initial areas of different business card content display modules; Based on the layout weights of the different business card contents, at least one of the initial position and the initial area of ​​each display module in the electronic business card template is adjusted to obtain the electronic business card template to be filled with information; The step of adding the object attribute information and the predicted object description information to the electronic business card template of the information to be filled in, and generating an electronic business card for introducing the object to be used, comprises: The object attribute information and the predicted object description information are added to the electronic business card template of the information to be filled, and an electronic business card for introducing the object of use is generated according to the color matching drawing.

6. The method according to claim 4, characterized in that After generating an electronic business card for introducing the usage object based on the prediction object description information and the prediction display configuration information, the method further includes: Presenting a switch button for switching the template used by the electronic business card; In response to a trigger operation on the switch button, presenting at least one electronic business card template; In response to a selection operation on a target electronic business card template, the electronic business card is regenerated using the target electronic business card template.

7. The method according to any one of claims 4 to 6, characterized in that: After generating an electronic business card for introducing the usage object based on the prediction object description information and the prediction display configuration information, the method further includes: In response to a change operation of the user of the target account on the attribute content allowed to be displayed, changing the object attribute information displayed in the electronic business card; Based on the modified object attribute information, at least one of the position and area of ​​each display module in the electronic business card is adjusted to regenerate the electronic business card.

8. The method according to any one of claims 1 to 6, characterized in that After generating an electronic business card for introducing the usage object based on the prediction object description information and the prediction display configuration information, the method further includes: An electronic business card in a picture format is presented, and at least a save button for triggering saving of the electronic business card in the picture format and a share button for sharing the electronic business card in the picture format are presented.

9. A device for generating an electronic business card, characterized in that: include: An acquisition unit, configured to, in response to an electronic business card generation request triggered for a target account, acquire object attribute information associated with the target account, wherein the object attribute information includes: attribute content that is allowed to be displayed by an object using the target account; A first processing unit is used to perform word vector conversion on each attribute included in the object attribute information to obtain a corresponding word vector, and perform feature extraction on each obtained word vector to obtain a corresponding attribute feature; A second processing unit, configured to obtain predicted object description information of the usage object and predicted display configuration information of the electronic business card to be generated based on the obtained attribute features; A generating unit is used to generate an electronic business card for introducing the usage object based on the predicted object description information and the predicted display configuration information.

10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 1 to 8.

12. A computer program product, characterized in that The method comprises a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the steps of any one of the methods described in claims 1 to 8.