CN111897441A - Expression adding method and device and electronic equipment - Google Patents

Expression adding method and device and electronic equipment Download PDF

Info

Publication number
CN111897441A
CN111897441A CN202010677353.0A CN202010677353A CN111897441A CN 111897441 A CN111897441 A CN 111897441A CN 202010677353 A CN202010677353 A CN 202010677353A CN 111897441 A CN111897441 A CN 111897441A
Authority
CN
China
Prior art keywords
user
expression
target expression
information
marker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010677353.0A
Other languages
Chinese (zh)
Inventor
孙大祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010677353.0A priority Critical patent/CN111897441A/en
Publication of CN111897441A publication Critical patent/CN111897441A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an expression adding method and device, and belongs to the technical field of expression processing. The method comprises the following steps: acquiring first text information input by a first user, wherein the first text information comprises at least one expression marker; and adding the target expression to the position corresponding to the target expression marker in the first text message. According to the method and the device, the appropriate expression can be automatically added, so that a user does not need to manually search the expression from the expression package, the time for the user to search the expression is saved, and the user experience is improved.

Description

Expression adding method and device and electronic equipment
Technical Field
The application belongs to the technical field of expression processing, and particularly relates to an expression adding method and device and electronic equipment.
Background
With the rapid development of the internet technology, more and more users can chat information through mobile electronic devices (such as mobile phones, tablet computers and the like), and in the process of chatting, some expressions are often inserted, so that the fun and topic of the chatting are improved, and the relationship between two people can be increased.
In the existing chat software, some commonly used expressions are usually set for a user to select, when an expression needs to be added in the process of inputting a section of text by the user, the user needs to switch to an expression preview interface, select the expression to be added from the expression preview interface, add the expression to the section of text and insert the expression into the section of text, then close the expression preview interface and continue inputting the text by the user, in the process, if the user needs to insert a plurality of expressions into the section of text, the user needs to frequently perform switching between the expression preview interface and the text input interface, and the operation is complicated.
Content of application
The embodiment of the application aims to provide an expression adding method, an expression adding device and electronic equipment, and the problem that an expression inserting method in the prior art is complex in operation can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an expression adding method, including:
acquiring first text information input by a first user, wherein the first text information comprises at least one expression marker;
and adding the target expression to the position corresponding to the target expression marker in the first text message.
In a second aspect, an embodiment of the present application provides an expression adding device, including:
the first information acquisition module is used for acquiring first text information input by a first user, wherein the first text information comprises at least one expression marker;
and the target expression adding module is used for adding the target expression to the position corresponding to the target expression marker in the first text message.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the expression adding method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the method for adding an expression according to the first aspect is implemented.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement the expression adding method according to the first aspect.
In the embodiment of the application, first text information input by a first user is obtained, the first text information comprises at least one expression marker, and a target expression is added to a position corresponding to the target expression marker in the first text information. According to the embodiment of the application, the expression marker is added by the user in the process of inputting the characters in advance, so that the switching between a text input interface and an expression preview interface is not needed in the process of inputting the characters by the user, the operation steps of inputting the expressions by the user are reduced, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an expression adding method according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of another expression adding method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an expression adding device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another expression adding device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The expression adding scheme provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an expression adding method provided in an embodiment of the present application is shown, and as shown in fig. 1, the expression adding method may specifically include the following steps:
step 101: the method comprises the steps of obtaining first text information input by a first user, wherein the first text information comprises at least one expression marker.
The method and the device for adding the expression to the user can be applied to scenes of automatically adding the appropriate expression to the user.
The first user is a user who performs text information input.
In some examples, the first user may be a user who inputs text during a conversation using chat software, for example, if a user a and a user B are chatting using preset chat software, the user a may be regarded as the first user, and the user B may be regarded as the second user; the user a may be the second user and the user B may be the first user.
In some examples, the first user may be a user who enters text in a scene other than the conversation scene, for example, user C enters a text comment while watching a video, and at this time, user C may be considered as the first user.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
The first character information is character information which is added with expression markers and input by a first user, and the first character information comprises at least one expression marker.
The expression marker is a marker added in the first text message by the first user and used for indicating that an expression is added. In this embodiment, the expression marker may be a marker added after a certain sentence of text information, that is, it means that an expression is added after the text information; the emotion marker may be two markers added before and after a certain sentence of text information, indicating that an emotion is added to the sentence of the conversation information, and the emotion is added after the sentence of the text information when the emotion is added, for example, the information input by the first user is "parent, on-mani, anchor O, watch movie bar together at night! Anchor O ", where" anchor O "means an emoticon marker.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
In the process of inputting the text information by the first user, whether the input text information contains the expression marker can be monitored through a monitoring program preset in the system, and if the input text information contains the expression marker, the text information input by the first user is used as the first text information, and the first text information input by the first user is acquired.
After the first text information input by the first user is acquired, step 102 is executed.
Step 102: and adding the target expression to the position corresponding to the target expression marker in the first text message.
The target expression is an expression that needs to be replaced with the target expression marker, and in this example, the target expression may be a smiling expression, a frustrating expression, a crying expression, or the like.
In some examples, the target expression may be an expression recommended by the system according to a relationship between the first user and the conversation user and context information associated with the first text information, for example, when the first text information is text information input when the first user has a conversation with another user, the target expression may be an expression automatically recommended by the system according to the relationship between the first user and the conversation user.
In some examples, the target expression may be an expression recommended by the system according to an input scene of the first text information, for example, a fear type expression may be recommended as the target expression when the first text information is text information input by the first user during watching a horror video.
It is to be understood that the above examples are only examples for better understanding of the technical solutions of the present embodiment, and are not to be taken as the only limitation to the present embodiment.
After the target expression recommended by the system is acquired, the target expression may be added to a position corresponding to the target expression marker, and specifically, the expression marker in the first text information is replaced by the target expression, for example, the first text information input by the first user is "kiss, on-dry and lamy, anchor O, watch movie bar | at night! The anchor point O 'represents an expression marker, the anchor point O can be replaced by the target expression after the target expression recommended by the system is obtained, and the obtained text information added with the target expression is' parent, army, target expression and movie bar | watched at night! Target expression ".
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
According to the expression adding method provided by the embodiment of the application, the first text information input by the first user is obtained, the first text information comprises at least one expression marker, and the target expression is added to the position corresponding to the target expression marker in the first text information. According to the embodiment of the application, the expression marker is added by the user in the process of inputting the characters in advance, so that the switching between a text input interface and an expression preview interface is not needed in the process of inputting the characters by the user, the operation steps of inputting the expressions by the user are reduced, and the use experience of the user is improved.
Referring to fig. 2, a flowchart illustrating steps of another expression adding method provided in the embodiment of the present application is shown, and as shown in fig. 2, the expression adding method may specifically include the following steps:
step 201: and acquiring a user relationship between the first user and the second user in a conversation process between the first user and the second user.
The embodiment of the application can be applied to a scene of automatically replacing the expression markers added by the user in the input text information in the conversation process of the user.
The first user and the second user refer to users who are using chat software to perform conversation (i.e. chat), for example, if a user a and a user B are using preset chat software to perform chat, the user a may be used as the first user, and the user B may be used as the second user; the user a may be the second user and the user B may be the first user.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
The user relationship refers to a relationship between a first user and a second user, such as a relative, a friend, a superior leader, a couple, and the like.
In the process that the first user and the second user are in a conversation, the user relationship between the first user and the second user can be obtained, and specifically, the intelligent system of the electronic device can query the real-name system by combining the remark information of the first user to the second user, the name of the second user and the mobile phone number to obtain the user relationship between the first user and the second user. Or, deducing the user relationship between the first user and the second user according to the remark information of the first user to the second user, the historical chat records and the current chat records of the first user and the second user, and the like. In particular, the detailed description may be combined with the following specific implementations.
In a specific implementation manner of this embodiment, the step 201 may include:
substep S1: and acquiring remark information corresponding to the second user and at least one of historical conversation information and current conversation information of the first user and the second user.
In this embodiment, the remark information is a remark added by the first user to the second user when the first user adopts the preset chat software to perform a conversation with the second user.
The historical conversation information refers to conversation information interacted between the first user and the second user in a conversation process in a historical period.
The current session information refers to session information interacted in the process of the current session of the first user and the second user.
When the user relationship between the first user and the second user needs to be determined, the remark information corresponding to the second user and at least one of the historical session information and the current session information of the first user and the second user may be obtained, and then substep S2 is performed.
Substep S2: determining a user relationship between the first user and the second user based on at least one of the remark information, the historical session information, and the current session information.
After obtaining the remark information corresponding to the second user and at least one of the historical session information and the current session information of the first user and the second user, the user relationship between the first user and the second user may be determined based on at least one of the remark information, the historical session information and the current session information.
Of course, without being limited thereto, in a specific implementation, the user relationship between the first user and the second user may also be obtained in other manners, and specifically, the user relationship may be determined according to a service requirement, which is not limited in this embodiment.
After obtaining the user relationship between the first user and the second user, step 202 is performed.
Step 202: the method comprises the steps of obtaining first text information input by a first user, wherein the first text information comprises at least one expression marker.
The first character information is character information which is added with expression markers and input by a first user, and the first character information comprises at least one expression marker.
The expression marker is a marker added in the first text message by the first user and used for indicating that an expression is added. In this embodiment, the expression marker may be a marker added after a certain sentence of text information, that is, it means that an expression is added after the text information; the emotion marker may be two markers added before and after a certain sentence of text information, indicating that an emotion is added to the sentence of the conversation information, and the emotion is added after the sentence of the text information when the emotion is added, for example, the information input by the first user is "parent, on-mani, anchor O, watch movie bar together at night! Anchor O ", where" anchor O "means an emoticon marker.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
In the process of inputting the text information by the first user, whether the input text information contains the expression marker can be monitored through a monitoring program preset in the system, and if the input text information contains the expression marker, the text information input by the first user is used as the first text information, and the first text information input by the first user is acquired.
After the first text information input by the first user is acquired, step 203 is executed.
Step 203: and acquiring first session information input by the first user and/or second session information sent by the second user, wherein the first session information is associated with the first text information.
The first session information is session information associated with the first text information and sent by the first user to the second user, for example, if other session information is input before the first user inputs the first text information, n (n is a positive integer greater than or equal to 1) pieces of session information before the first user inputs the first text information are used as the first session information associated with the first text information.
The second session information is session information associated with the first text information sent by the second user to the first user, and for example, when the session information sent by the second user is received before the first user inputs the first text information, m (m is a positive integer greater than or equal to 1) pieces of session information before the first text information sent by the second user are used as the second session information associated with the first text information.
After the first text information input by the first user is acquired, the first session information input by the first user and/or the second session information sent by the second user, which are associated with the first text information, may be acquired, and then step 204 is performed.
Step 204: and acquiring the initial expression matched with the user relationship.
The initial expression refers to an expression stored in advance for different user relationships. In this embodiment, a set of matched expressions may be stored in advance for different user relationships, and after the user relationship between the first user and the second user is obtained, the matched initial expression may be obtained according to the user relationship.
Step 205: and aiming at the target expression marker, screening the target expression from the initial expressions according to the first session information and/or the second session information.
The target expression marker is an expression marker which needs to be replaced by the target expression in the expression markers added in the first text information.
The target expression refers to a matched expression provided by the electronic equipment system for the user in combination with the first session information and/or the second session information.
After the initial expressions matched with the user relationship are obtained, the target expressions can be screened from the initial expressions by combining the first session information and/or the second session information, namely, the mood and the emotion which the first user and the second user want to express at the moment are deduced according to the first session information and/or the second session information, and the target session expressions which accord with the session scene are screened from the initial expressions by combining the two points.
After the target emoticon is screened from the initial emoticons according to the first session information and/or the second session information with respect to the target emoticon, step 206 is performed.
Step 206: and adding the target expression to the position corresponding to the target expression marker.
After the target expression recommended by the system is acquired, the target expression may be added to a position corresponding to the target expression marker, and specifically, the expression marker in the first text information is replaced by the target expression, for example, the first text information input by the first user is "kiss, on-dry and lamy, anchor O, watch movie bar | at night! The anchor point O 'represents an expression marker, the anchor point O can be replaced by the target expression after the target expression recommended by the system is obtained, and the obtained text information added with the target expression is' parent, army, target expression and movie bar | watched at night! Target expression ".
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
Optionally, in some embodiments of the present application, after the step 206, the following step 207 may be further included. The embodiment of the present application is not particularly limited to this.
Step 207: and displaying other expressions except the target expression in the initial expression in an expression recommendation list of a session interface.
After the target expression in the initial expression is replaced by the target expression marker in the first text message, other expressions except the target expression in the initial expression can be displayed in an expression recommendation list of a conversation interface, and when the target expression recommended by the system does not meet the requirements of the user, the user can select the needed expression from the expression recommendation list to replace the target expression added in the first text message.
Optionally, in some embodiments of the present application, after the step 206, the following steps 208 and 209 may also be included. The embodiment of the present application is not particularly limited to this.
Step 208: and after the first text message is sent out, generating the user relationship and the mapping relationship between the first text message and the target expression marker.
After the target expression is added to the corresponding position of the target expression marker and the first user sends the first text information added with the expression to the second user, a user relationship and a mapping relationship between the first text information and the target expression marker may be generated, as shown in table 1 below:
Figure BDA0002584540140000091
Figure BDA0002584540140000101
as shown in table 1, for the expressions automatically added by the system each time, when the user is satisfied with the expressions automatically added by the system, the first text information to which the expressions are added is directly sent, and at this time, the system can record the expressions corresponding to the contexts of the target expression markers in the database, recommend the expressions to the corresponding users as big data statistics, and intelligently fill the expression markers in appropriate scenes.
Step 209: and when receiving similar session information which is similar to the first character information and is sent to the second user by the first user, adding an expression marker in the similar session information according to the mapping relation.
The similar session information refers to session information which is sent by the first user to the second user and is similar to the session information to be sent in the subsequent process of the session between the first user and the second user, and when the similar session information sent by the first user to the second user is received, the expression marker corresponding to the similar session information can be generated according to the recorded mapping relation.
Optionally, in some embodiments of the present application, after the step 206 or the step 102, the following steps 210 and 211 may also be included. The embodiment of the present application is not particularly limited to this.
Step 210: after receiving an expression replacing operation corresponding to the target expression, determining a replacing expression corresponding to the target expression.
Step 211: and replacing the target expression in the first text message with the replaced expression.
In this embodiment, when the first user is not satisfied with the target emotion automatically added by the system, the target conversational emotion may be replaced.
The replacing operation means that when the target expression added by the system by the first user is not satisfied, the corresponding replacing operation can be executed on the target expression. In this embodiment, the replacing operation may be an operation of deleting the target expression by the first user, an operation of double-clicking the target expression by the first user, and the like, and specifically, may be determined according to a service requirement, which is not limited in this embodiment.
The replacement expression refers to an expression for replacing the target expression.
In this embodiment, the replacement expression may be an expression selected by the first user from the session recommendation list recommended by the system, for example, when the first user is unsatisfied with the target expression, the target session expression added in the first text message may be deleted, and one expression is selected from the expression recommendation list to replace the target expression, where the selected expression is a replacement expression.
The alternative expression may also be an expression added again by the system for the first user, for example, when the first user is not satisfied with the target expression automatically added by the system, the target expression may be double-clicked, and at this time, the system may recommend one expression for the user again as the alternative expression, and replace the target expression with the alternative expression.
The expression adding method provided by the embodiment of the application has the beneficial effects that the expression adding method has, and can also establish the association relationship between the session information and the expression markers, so that the expression markers are automatically added when the user subsequently inputs similar session information, manual addition by the user is not needed, and the use experience of the user is improved.
The expression adding method provided by the embodiment of the application has the beneficial effects that the expression adding method provided by the embodiment has, and can also save the mapping relation between the added expression markers and the user relation and the sent text information, automatically add the expression markers when the user is in conversation with the corresponding user and inputs the corresponding conversation information, recommend the corresponding expressions to add, and do not need the user to add the expression markers again, so that the use experience of the user can be further improved.
It should be noted that, in the expression adding method provided in the embodiment of the present application, the execution main body may be an expression adding device, or a control module used for executing the loading expression adding method. The expression adding device provided by the embodiment of the present application is described by taking an example in which the expression adding device executes a loaded expression adding method.
Referring to fig. 3, a schematic structural diagram of an expression adding apparatus provided in the embodiment of the present application is shown, and as shown in fig. 3, the expression adding apparatus 300 may specifically include the following modules:
a first information obtaining module 310, configured to obtain first text information input by a first user, where the first text information includes at least one expression marker;
and a target expression adding module 320, configured to add a target expression to a position corresponding to the target expression marker in the first text information.
According to the expression adding device provided by the embodiment of the application, the first character information input by the first user is obtained, the first character information comprises at least one expression marker, and the target expression is added to the position corresponding to the target expression marker in the first character information. According to the embodiment of the application, the expression marker is added by the user in the process of inputting the characters in advance, so that the switching between a text input interface and an expression preview interface is not needed in the process of inputting the characters by the user, the operation steps of inputting the expressions by the user are reduced, and the use experience of the user is improved.
Referring to fig. 4, a schematic structural diagram of another expression adding apparatus provided in the embodiment of the present application is shown, and as shown in fig. 4, the expression adding apparatus 400 may specifically include the following modules:
a user relationship obtaining module 410, configured to obtain a user relationship between the first user and the second user in a session between the first user and the second user;
a first information obtaining module 420, configured to obtain first text information input by a first user, where the first text information includes at least one expression marker;
a target expression adding module 430, configured to add a target expression to a position corresponding to the target expression marker in the first text message;
the expression display module 440 is configured to display other expressions in the initial expression except the target expression in an expression recommendation list of a session interface;
a mapping relationship generating module 450, configured to generate the user relationship and the mapping relationship between the first text information and the target expression marker after the first text information is sent out;
an expression marker adding module 460, configured to add an expression marker in similar session information according to the mapping relationship when receiving similar session information similar to the first text information and sent by the first user to the second user;
a substitute expression determining module 470, configured to determine a substitute expression corresponding to the target expression after receiving an expression substitute operation corresponding to the target expression;
and a target expression replacing module 480, configured to replace the target expression in the first text message with the replacement expression.
The target expression adding module 430 includes:
a session information acquiring unit 431, configured to acquire first session information input by the first user and/or second session information sent by the second user, where the first session information is associated with the first text information;
an initial expression obtaining unit 432, configured to obtain an initial expression matched with the user relationship;
a target expression screening unit 433, configured to, for the target expression marker, screen the target expression from the initial expressions according to the first session information and/or the second session information;
and a target expression adding unit 434, configured to add the target expression to a position corresponding to the target expression marker.
Optionally, the user relationship obtaining module 410 includes:
a remark information acquiring unit, configured to acquire remark information corresponding to the second user, and at least one of historical session information and current session information of the first user and the second user;
a user relationship determining unit, configured to determine a user relationship between the first user and the second user based on at least one of the remark information, the historical session information, and the current session information.
The expression adding device provided by the embodiment of the application has the advantages that the expression adding device provided by the embodiment has, the mapping relation between the added expression markers and the user relation and the sent text information can be stored, the expression markers are automatically added when the user is in conversation with the corresponding user and inputs corresponding conversation information, the corresponding expressions are recommended to be added, the user does not need to add the expression markers again, and therefore the use experience of the user can be further improved.
The expression adding device in the embodiment of the application may be a terminal, or may be a component, an integrated circuit, or a chip in the terminal. The terminal may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The expression adding device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The expression adding device provided in the embodiment of the application can implement each process implemented by the expression adding method in the method embodiments of fig. 1 to fig. 2, and is not described here again to avoid repetition.
Optionally, an electronic device is further provided in this embodiment of the present application, as shown in fig. 5, the electronic device 500 may include a processor 510, a memory 509, and a program or an instruction stored in the memory 509 and executable on the processor 510, where the program or the instruction, when executed by the processor 510, implements each process of the expression addition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 507 is configured to acquire first text information input by a first user, where the first text information includes at least one expression marker;
and the processor 510 is configured to add the target expression to a position corresponding to the target expression marker in the first text message.
According to the method and the device for processing the first character information, the first character information input by the first user is obtained, the first character information comprises at least one expression marker, and the target expression is added to the position corresponding to the target expression marker in the first character information. According to the embodiment of the application, the expression marker is added by the user in the process of inputting the characters in advance, so that the switching between a text input interface and an expression preview interface is not needed in the process of inputting the characters by the user, the operation steps of inputting the expressions by the user are reduced, and the use experience of the user is improved.
Optionally, the processor 510 is further configured to obtain a user relationship between the first user and the second user in a session process between the first user and the second user;
the processor 510 is further configured to obtain first session information input by the first user and associated with the first text information and/or second session information sent by the second user; acquiring an initial expression matched with the user relationship;
a processor 510, further configured to, for the target expression marker, filter out the target expression from the initial expressions according to the first session information and/or the second session information; and adding the target expression to the position corresponding to the target expression marker.
The processor 510 is further configured to obtain remark information corresponding to the second user, and at least one of historical session information and current session information of the first user and the second user;
a processor 510, further configured to determine a user relationship between the first user and the second user based on at least one of the remark information, the historical session information, and the current session information.
A display unit 506, configured to display other expressions in the initial expression except the target expression in an expression recommendation list of a session interface.
The processor 510 is further configured to generate the user relationship and the mapping relationship between the first text information and the target expression marker after the first text information is sent out; and when receiving similar session information which is similar to the first character information and is sent to the second user by the first user, adding an expression marker in the similar session information according to the mapping relation.
The processor 510 is further configured to determine, after receiving an expression replacement operation corresponding to the target expression, a replacement expression corresponding to the target expression; and replacing the target expression in the first text message with the replaced expression.
The embodiment of the application can also save the mapping relation between the added expression markers and the user relation and the sent text information, automatically add the expression markers when the user is in conversation with the corresponding user and inputs the corresponding conversation information, recommend the corresponding expressions to add, and do not need the user to add the expression markers again, thereby further improving the use experience of the user.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the expression adding method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the expression addition method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An expression adding method, characterized in that the method comprises:
acquiring first text information input by a first user, wherein the first text information comprises at least one expression marker;
and adding the target expression to the position corresponding to the target expression marker in the first text message.
2. The method of claim 1, prior to said obtaining the first textual information entered by the first user, further comprising:
acquiring a user relationship between the first user and the second user in a conversation process between the first user and the second user;
adding the target expression to the position corresponding to the target expression marker in the first text message comprises:
acquiring first session information input by the first user and/or second session information sent by the second user, wherein the first session information is related to the first text information;
acquiring an initial expression matched with the user relationship;
aiming at the target expression marker, screening the target expression from the initial expressions according to the first session information and/or the second session information;
and adding the target expression to the position corresponding to the target expression marker.
3. The method of claim 2, wherein obtaining the user relationship between the first user and the second user comprises:
acquiring remark information corresponding to the second user and at least one of historical session information and current session information of the first user and the second user;
determining a user relationship between the first user and the second user based on at least one of the remark information, the historical session information, and the current session information.
4. The method of claim 2, wherein after the adding the target expression to the position corresponding to the target expression marker, further comprising:
and displaying other expressions except the target expression in the initial expression in an expression recommendation list of a session interface.
5. The method of claim 2, wherein after the adding the target expression to the position corresponding to the target expression marker, further comprising:
after the first text message is sent out, generating the user relationship and a mapping relationship between the first text message and the target expression marker;
and when receiving similar session information which is similar to the first character information and is sent to the second user by the first user, adding an expression marker in the similar session information according to the mapping relation.
6. The method of claim 1, wherein after the adding the target expression to the position corresponding to the target expression marker in the first text message, the method further comprises:
after receiving an expression replacing operation corresponding to the target expression, determining a replacing expression corresponding to the target expression;
and replacing the target expression in the first text message with the replaced expression.
7. An expression adding apparatus, characterized in that the apparatus comprises:
the first information acquisition module is used for acquiring first text information input by a first user, wherein the first text information comprises at least one expression marker;
and the target expression adding module is used for adding the target expression to the position corresponding to the target expression marker in the first text message.
8. The apparatus of claim 7, further comprising:
a user relationship obtaining module, configured to obtain a user relationship between the first user and the second user in a session between the first user and the second user;
the target expression adding module comprises:
a session information acquiring unit, configured to acquire first session information input by the first user and associated with the first text information and/or second session information sent by the second user;
the initial expression obtaining unit is used for obtaining the initial expression matched with the user relationship;
the target expression screening unit is used for screening the target expression from the initial expressions according to the first session information and/or the second session information aiming at the target expression marker;
and the target expression adding unit is used for adding the target expression to the position corresponding to the target expression marker.
9. The apparatus of claim 8, wherein the user relationship obtaining module comprises:
a remark information acquiring unit, configured to acquire remark information corresponding to the second user, and at least one of historical session information and current session information of the first user and the second user;
a user relationship determining unit, configured to determine a user relationship between the first user and the second user based on at least one of the remark information, the historical session information, and the current session information.
10. The apparatus of claim 8, further comprising:
and the expression display module is used for displaying other expressions except the target expression in the initial expression in an expression recommendation list of a session interface.
CN202010677353.0A 2020-07-14 2020-07-14 Expression adding method and device and electronic equipment Pending CN111897441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010677353.0A CN111897441A (en) 2020-07-14 2020-07-14 Expression adding method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010677353.0A CN111897441A (en) 2020-07-14 2020-07-14 Expression adding method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111897441A true CN111897441A (en) 2020-11-06

Family

ID=73192711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010677353.0A Pending CN111897441A (en) 2020-07-14 2020-07-14 Expression adding method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111897441A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112462992A (en) * 2020-11-30 2021-03-09 北京搜狗科技发展有限公司 Information processing method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325254A (en) * 2000-03-10 2001-11-22 Matsushita Electric Ind Co Ltd Expression conversion method and expression conversion device
CN105656758A (en) * 2015-12-28 2016-06-08 广州酷狗计算机科技有限公司 Message transceiving method, device and system
CN105975563A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Facial expression recommendation method and apparatus
CN110019286A (en) * 2017-07-19 2019-07-16 中国移动通信有限公司研究院 A kind of expression recommended method and device based on user social contact relationship
CN110099159A (en) * 2018-01-29 2019-08-06 优酷网络技术(北京)有限公司 A kind of methods of exhibiting and client of chat interface
KR20190131355A (en) * 2018-05-16 2019-11-26 김진욱 Method for managing application of communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325254A (en) * 2000-03-10 2001-11-22 Matsushita Electric Ind Co Ltd Expression conversion method and expression conversion device
CN105656758A (en) * 2015-12-28 2016-06-08 广州酷狗计算机科技有限公司 Message transceiving method, device and system
CN105975563A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Facial expression recommendation method and apparatus
CN110019286A (en) * 2017-07-19 2019-07-16 中国移动通信有限公司研究院 A kind of expression recommended method and device based on user social contact relationship
CN110099159A (en) * 2018-01-29 2019-08-06 优酷网络技术(北京)有限公司 A kind of methods of exhibiting and client of chat interface
KR20190131355A (en) * 2018-05-16 2019-11-26 김진욱 Method for managing application of communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112462992A (en) * 2020-11-30 2021-03-09 北京搜狗科技发展有限公司 Information processing method and device, electronic equipment and medium
CN112462992B (en) * 2020-11-30 2022-07-19 北京搜狗科技发展有限公司 Information processing method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN113300938B (en) Message sending method and device and electronic equipment
CN106302996B (en) Message display method and device
CN108733666B (en) Server information pushing method, terminal information sending method, device and system
CN112039929A (en) File editing method and device and electronic equipment
CN113596555B (en) Video playing method and device and electronic equipment
CN113094143A (en) Cross-application message sending method and device, electronic equipment and readable storage medium
CN113938551B (en) Caching method and device, electronic equipment and storage medium
CN113285866B (en) Information sending method and device and electronic equipment
CN112187624B (en) Message reply method and device and electronic equipment
CN113965614A (en) Session creation method and device and electronic equipment
CN111897441A (en) Expression adding method and device and electronic equipment
CN108874673A (en) The test method and device of application program
CN111695008A (en) Message integration method and device
CN114666175B (en) Message processing method, device, electronic equipment and storage medium
CN112134987B (en) Information processing method and device and electronic equipment
CN113364915B (en) Information display method and device and electronic equipment
CN112565913B (en) Video call method and device and electronic equipment
CN114928585A (en) Message processing method and device, electronic equipment and readable storage medium
CN114239531A (en) Template recommendation method and device, electronic equipment and storage medium
CN114051009A (en) Message sending method and electronic equipment
CN110300048B (en) Audio message sending method, equipment and system based on instant messaging
CN112672088A (en) Video call method and device
CN105450510A (en) Friend management method, device and server for social network platform
CN111526084A (en) Information processing method, device, equipment and storage medium
CN111694999A (en) Information processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination