CN110635991A - Message processing method, message display method, storage medium, and computer device - Google Patents

Message processing method, message display method, storage medium, and computer device Download PDF

Info

Publication number
CN110635991A
CN110635991A CN201910872080.2A CN201910872080A CN110635991A CN 110635991 A CN110635991 A CN 110635991A CN 201910872080 A CN201910872080 A CN 201910872080A CN 110635991 A CN110635991 A CN 110635991A
Authority
CN
China
Prior art keywords
message
auxiliary
character
new message
content
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.)
Granted
Application number
CN201910872080.2A
Other languages
Chinese (zh)
Other versions
CN110635991B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910872080.2A priority Critical patent/CN110635991B/en
Publication of CN110635991A publication Critical patent/CN110635991A/en
Application granted granted Critical
Publication of CN110635991B publication Critical patent/CN110635991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a message processing method, a message display method, a storage medium and a computer device, wherein the message processing method comprises the following steps: receiving a new message sent by a message sender, and identifying the message type of the new message; when the message type comprises a Chinese character type and the new message meets the auxiliary character recognition condition, acquiring character content to be assisted and recognized from the character message content of the new message, wherein the character message content is the message content with the message type being the Chinese character type; acquiring auxiliary identification information corresponding to character content to be identified in an auxiliary manner; and sending the corresponding auxiliary identification information to the message communication party corresponding to the new message. The message display method comprises the following steps: sending a new message to a server or receiving a new message sent by the server; receiving auxiliary identification information returned by the server; and displaying the auxiliary identification information corresponding to the new message. By the method, the auxiliary identification information corresponding to the new message can be displayed at the terminal, and the user can be assisted in identifying the text content in the new message.

Description

Message processing method, message display method, storage medium, and computer device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message processing method, a message display method, a computer-readable storage medium, and a computer device.
Background
With the development of communication technology, more and more application software can be used for instant chat, and a user can communicate with friends through the applications to replace traditional communication modes such as telephone, short message or mail, so that more convenience is brought to the user; when instant chat is carried out on a terminal, characters corresponding to messages sent by double-sending of a session are usually displayed on terminal interfaces of a sender and a receiver; however, with the continuous development of technology, terminals are more and more popular, and users of terminals have covered all age stages; when a user of a low age or a user who is learning chinese characters uses a terminal to perform instant chat, the content of a message may not be recognized.
Disclosure of Invention
In view of the above, it is necessary to provide a message processing method, a message display method, a storage medium, and a computer device in order to solve the above technical problems.
A method of message processing, the method comprising:
receiving a new message sent by a message sender, and identifying the message type of the new message;
when the message type comprises a Chinese character type and the new message meets the auxiliary character recognition condition, acquiring character content to be assisted and recognized from character message content of the new message, wherein the character message content is the message content with the message type of the Chinese character type;
acquiring auxiliary identification information corresponding to the character content to be auxiliarily identified;
and sending the corresponding auxiliary identification information to a message communication party corresponding to the new message.
A method of displaying a message, the method comprising:
sending a new message to a server or receiving a new message sent by the server;
receiving auxiliary identification information returned by the server when the message type of the new message comprises a Chinese character type and the new message meets an auxiliary character recognition condition, wherein the auxiliary identification information corresponds to character content to be subjected to auxiliary recognition in character message content of the new message, and the character message content is the message content with the message type of the Chinese character type;
and correspondingly displaying the auxiliary identification information and the new message.
A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of the above-mentioned method.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above method.
According to the message processing method, the message display method, the storage medium and the computer equipment, the new message sent by the message receiver is detected and identified, when the message type of the new message is detected to comprise the Chinese character type and the new message meets the auxiliary character recognition condition, the character content to be recognized in the new message is acquired for recognition, and then the auxiliary recognition information acquired through recognition is sent to the message communication party corresponding to the new message. By the method, the auxiliary identification information corresponding to the new message can be displayed at the terminal, and the user can be assisted in identifying the text content in the new message.
Drawings
FIG. 1 is a diagram of an application environment of a message processing method in one embodiment;
FIG. 2 is a flow diagram that illustrates a method for message processing in one embodiment;
FIG. 3 (left) is a schematic diagram of an interface for enabling the assisted identification function in one embodiment;
FIG. 3 (right) is a diagram illustrating an interface of a message communication party with an assisted identification function enabled in one embodiment;
FIG. 4 is a flow chart illustrating a message processing method according to another embodiment;
FIG. 5 is a flowchart illustrating a message processing method according to another embodiment;
FIG. 6 is a flow diagram that illustrates a method for displaying messages, according to one embodiment;
FIG. 7 is a flowchart illustrating a message display method according to another embodiment;
FIG. 8 is a block diagram showing the structure of a message processing apparatus according to one embodiment;
FIG. 9 is a block diagram showing the construction of a message display apparatus in another embodiment;
FIG. 10 is a block diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram of an application environment of a message processing method in one embodiment. Referring to fig. 1, the message processing method is applied to a message processing system. The message processing system includes two or more terminals 110 and a server 120. The terminal 110 includes a message sender and a message receiver, and the terminal 110 and the server 120 are connected through a network. In some embodiments, the message processing method is applied to double chat, and the terminal 110 only includes one message sender and one message receiver; in other embodiments, the message processing method may be applied to multi-person chat, and the terminal 110 includes a message sender and a plurality of message receivers.
The server 120 receives a new message sent by a message sender, judges the message type of the new message, determines the text content needing auxiliary identification from the text content in the new message when the message type of the new message is determined to comprise the Chinese character type and the new message meets the auxiliary identification condition, identifies the text content to obtain auxiliary identification information, and sends the auxiliary identification information to the message communication party of the new message. The message communication party can be a message sending party and/or a message receiving party.
The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in FIG. 2, a message processing method is provided. The embodiment is mainly illustrated by applying the method to the server 120 in fig. 1. Referring to fig. 2, the message processing method specifically includes steps S210 to S240.
Step S210, receiving a new message sent by a message sender, and identifying the message type of the new message.
The message processing method in the embodiment occurs in the message transmission process between the terminals, and the new message is the message sent to the message receiver by the message sender through the server; after receiving the new message, the server identifies the message type of the new message; the message type represents the corresponding type in the content of the new message, and may be, for example, a text type message, an emotion type message or a voice type message, and the text type message may be classified into a chinese character type message, other language type messages, and the like.
Step S220, when the message type includes the Chinese character type and the new message meets the auxiliary character recognition condition, acquiring the character content to be assisted and recognized from the character message content of the new message. Wherein, the text message content is the message content with the message type of Chinese character.
In one embodiment, the server determines that the message type includes a Chinese character type, including: by matching the character content of the new message with the Chinese character database, if the obtained Chinese character matching result is that the Chinese character exists, the message type is considered to comprise the Chinese character type. In other embodiments, the message type of the new message may be determined in other ways as well.
In this embodiment, a new message whose message type includes a chinese character type is processed, so that when the server identifies the type of the received new message and determines that the new message includes the chinese character type, the next operation is performed: and judging whether the auxiliary literacy condition is met according to the new message.
The auxiliary literacy condition may be set according to an actual situation of the user, for example, in an embodiment, the auxiliary literacy condition may be set to determine whether the correspondent party of the new message starts the auxiliary recognition function; in another embodiment, the auxiliary literacy condition can be set as whether a rare word appears in the new message; alternatively, the auxiliary literacy condition can also be set as whether an auxiliary identification request initiated by the terminal is received, and the like. It is understood that the auxiliary literacy condition can be set as other conditions in different practical situations.
Further, taking as an example whether the auxiliary character learning condition is set as that whether the communication party corresponding to the new message starts the auxiliary recognition function, the server determines whether the new message meets the auxiliary character learning condition according to the communication party identifier, the session identifier and the like corresponding to the received new message; for example, in a specific embodiment, a record of whether each terminal has started the auxiliary recognition function is stored in advance in the server, and when a new message is received, it is determined that the corresponding receiver terminal has started the auxiliary recognition function according to the receiver identifier corresponding to the new message, and it is determined that the auxiliary recognition condition is satisfied; for another example, the server stores information of whether each terminal user and the conversation between each terminal user and friends thereof start the auxiliary recognition function in advance, and determines that the auxiliary recognition function is started in the conversation corresponding to the conversation identifier according to the new message conversation identifier, so that the requirement for auxiliary character recognition is met.
After determining that the new message meets the preset auxiliary character recognition condition, the server acquires the character content needing to be recognized from the character message content of the new message and records the character content as the character content to be recognized in an auxiliary way; in one embodiment, the text content to be assisted in recognition may be all text message content of the new message, or may be only partial text message content of the new message; it can be understood that the message type corresponding to the text content to be assisted and recognized acquired here is a chinese character type. Further, in one embodiment, the text content to be assisted in recognition can be determined from the text message content of the new message according to the assisted recognition condition satisfied by the new message.
In one embodiment, when the server determines that the auxiliary character recognition condition is met according to the communication party identifier and the session identifier of the new message, the character content to be recognized in an auxiliary manner can be all character contents of the character message content of the new message or part of character contents of the character message content of the new message; when the server judges that the rarely-used words in the new message meet the auxiliary word-identifying condition according to the detection, the character content to be identified in an auxiliary mode is part of the character content of the character message of the new message; when the server judges that the auxiliary recognition condition is met according to the received auxiliary recognition request initiated by the terminal, if the auxiliary recognition request initiated by the terminal carries the text message content of a part of new messages, the text message content to be recognized in an auxiliary mode is the text message content of the part of new messages; and if the auxiliary identification request initiated by the terminal carries all the text message contents of the new message, the text contents to be auxiliary identified are all the text message contents of the new message.
Step S230, acquiring auxiliary identification information corresponding to the text content to be auxiliary identified.
The auxiliary identification information may be used to assist the user in understanding the text message content in the new message, and in this embodiment, the auxiliary identification information is corresponding information obtained by the server performing an identification operation on the text content to be subjected to auxiliary identification; in step S220, the text content to be assisted and recognized is already obtained from the text message content of the new message, and in this embodiment, the server recognizes the text content to be assisted and recognized, that is, the auxiliary recognition information corresponding to the text content to be assisted and recognized can be obtained.
In one embodiment, the auxiliary identification information includes: the method comprises the steps that pinyin information corresponding to character contents to be assisted and recognized is obtained, namely after the character contents to be assisted and recognized are recognized by a server, pinyin information corresponding to the character contents to be assisted and recognized is obtained, and a user can know the pronunciation of the character contents to be assisted and recognized by checking the pinyin information; in another embodiment, the auxiliary identification information includes: the audio information corresponding to the text content to be assisted and identified, namely after the server identifies the text content to be assisted and identified, the audio information corresponding to the text content to be assisted and identified is obtained, and the user can know the pronunciation of the text content to be assisted and identified by playing the audio information.
Further, in an embodiment, the obtaining, by the server, auxiliary identification information corresponding to the text content to be auxiliarily identified includes: and respectively inputting the fields in the text content to be assisted and identified into a pinyin database for matching, acquiring the pinyin information matched with the fields in the text to be assisted and identified in the pinyin database when the matched pinyin information is found in the pinyin database, and arranging the pinyin information in the sequence corresponding to the text content to be assisted and identified to form the assisted and identified information (pinyin information). The single field in the text content to be assisted for identification may also be a word segment. In another embodiment, when the pinyin information matched with the text content to be assisted and recognized is found in the pinyin database, the pinyin pronunciation corresponding to the pinyin information matched with the text content to be assisted and recognized in the pinyin database in each field in the text content to be assisted and recognized is obtained and arranged according to the sequence corresponding to the text content to be assisted and recognized to form the assisted and recognized information (audio information).
In other embodiments, the server obtains the auxiliary identification information corresponding to the text content to be auxiliarily identified, or obtains the auxiliary identification information in other manners, for example, invoking a browser to implement: and inputting the character content to be assisted and identified into a browser to acquire the auxiliary identification information corresponding to the character content to be assisted and identified.
Step S240, sending the corresponding auxiliary identification information to the message communication party corresponding to the new message.
Wherein, the message communication side corresponding to the new message comprises: at least one of a sender of the new message and a receiver of the new message. Further, the corresponding auxiliary identification information is sent to the message communication party corresponding to the new message, which means that the auxiliary identification information corresponding to the text content to be identified in an auxiliary manner is sent to at least one of the terminal where the sender corresponding to the new message is located or the terminal where the message receiver is located, so that the auxiliary identification information is displayed on the terminal where the sender and/or the terminal where the receiver of the new message is located. In one embodiment, the receiver identification is a terminal identification of the message receiver and the sender identification is a terminal identification of the message sender.
In one embodiment, the message communication party to which the auxiliary identification information needs to be sent is determined according to the new message; for example, when the fact that the new message receiver needs to display the auxiliary identification information is determined according to the new message, the server sends the auxiliary identification information corresponding to the character content to be subjected to auxiliary identification to the message receiver of the new message; and if the fact that the new message sender and the new message receiver both need to display the auxiliary identification information is determined according to the new message, the server sends the auxiliary identification information corresponding to the character content to be subjected to auxiliary identification to the message receiver and the message sender of the new message.
According to the message processing method, the new message sent by the message receiver is detected and identified, when the message type of the new message is detected to comprise the Chinese character type and the new message meets the auxiliary character identifying condition, the character content to be subjected to auxiliary identification in the new message is acquired and identified, and then the auxiliary identification information obtained through identification is sent to the message communication party corresponding to the new message. By the method, the auxiliary identification information corresponding to the new message can be displayed at the terminal, and the user can be assisted in identifying the text content in the new message.
In one embodiment, the new message carries a communication party identifier, the communication party identifier corresponds to a message communication party, and when the auxiliary recognition function state corresponding to the communication party identifier is turned on, the new message is determined to meet the auxiliary character recognition condition. The communication party identification comprises at least one of a sender identification and a receiver identification; the sender identification corresponds to a message sender, and the receiver identification corresponds to a message receiver.
In one embodiment, the identifier of the communication party includes an identifier of the receiving party, that is, the new information carries a corresponding identifier of the receiving party; in this embodiment, when the server determines that the message type of the new message includes a chinese character type and determines that the state of the auxiliary recognition function corresponding to the receiving party is activated according to the receiving party identifier, it is determined that the new message satisfies the auxiliary character recognition condition. When detecting that the auxiliary identification function state of a receiver of the new message is started, the server determines that auxiliary character recognition conditions are met, and simultaneously determines all character message contents of the new message as character contents to be subjected to auxiliary identification; in this embodiment, after acquiring the auxiliary identification information corresponding to the text content to be auxiliarily identified, the server sends the auxiliary identification information corresponding to the text content to be auxiliarily identified to the message receiver corresponding to the new message.
In this embodiment, after receiving the auxiliary identification information, the terminal where the receiver is located displays the auxiliary identification information corresponding to the characters to be identified in the new message character message content; that is, when the user of the receiver of the new message views the new message, the user can see the new message and the auxiliary identification information, such as pinyin information, corresponding to the text content to be auxiliary-identified.
For example, in one particular embodiment, user 1 sends a new message "today is sunny" on terminal a to user 2 of terminal B. In this process, the sender of the new message is terminal a (user 1) and the receiver of the new message is terminal B (user 2). Taking the example that the terminal B starts the auxiliary identification function, and the server determines all the text message contents of the new message as the information to be identified for auxiliary: when the server receives the new message, firstly determining that the message type of the new message comprises a Chinese character type, then detecting that the auxiliary recognition function state corresponding to the receiver identification (identification of the terminal B) carried by the new message is started, judging that the auxiliary recognition condition is met, determining the new message 'today weather is clear' as the character content to be subjected to auxiliary recognition, and acquiring auxiliary recognition information corresponding to the 'today weather is clear', wherein the obtained auxiliary recognition information is pinyin as an example: "jinian tianqi q ing lang" and transmits the supplementary identification information to the receiving party (terminal B). When receiving the auxiliary identification information, the terminal B displays the auxiliary identification information in association with the new message, for example, the auxiliary identification information may be displayed as:
jin tian tian qi qing lang
today's weather is clear
In one embodiment, the message receiver terminal may receive the new message and the assistant identification information at the same time, or may receive the assistant identification information after receiving the new message.
In another embodiment, the correspondent identification includes a sender identification; similarly, when the server determines that the message type of the new message comprises a Chinese character type and determines that the state of the auxiliary identification function corresponding to the sender is opened according to the sender identification, all the text message contents of the new message are determined as text contents to be identified in an auxiliary mode, and after the auxiliary identification information corresponding to all the text message contents of the new message is acquired, the auxiliary identification information corresponding to the text contents to be identified in an auxiliary mode is sent to the message sender corresponding to the new message. Similarly, in this embodiment, when the user of the terminal where the sender is located views the new message, the user can see the new message and the auxiliary identification information corresponding to the text content to be identified in the new message, such as the pinyin information.
Further, in another embodiment, still taking the case that the terminal a and the terminal B mutually transmit messages, and the terminal B starts the auxiliary identification function, the user 2 of the terminal B replies the message after receiving the message "today is sunny" sent by the user 1 of the terminal a; at this time, user 1 of terminal a receives a new message sent by user 2 of terminal B, e.g., "yes, weather is good"; in this embodiment, terminal a is a message receiver, and terminal B is a message sender; when the server receives a new message, the server detects that the auxiliary identification function state corresponding to the message sender identification (the identification of the terminal B) is opened, and sends the auxiliary identification information obtained after identification to the message sender terminal B.
Similarly, in another embodiment, when the identifier of the communication party includes the identifier of the sending party and the identifier of the receiving party, if the server determines that the auxiliary identification function state corresponding to the identifier of the sending party and the auxiliary identification function state corresponding to the identifier of the receiving party are both already started, all the text contents of the new message are determined as text contents to be identified in an auxiliary manner, and after the auxiliary identification information corresponding to all the text contents of the new message is acquired, the auxiliary identification information corresponding to the text contents to be identified in an auxiliary manner is sent to the message sending party and the message receiving party corresponding to the new message. That is to say, in this embodiment, when the user of the terminal where the sender is located and the user of the terminal where the receiver is located view the new message, both the user can view the new message and the auxiliary identification information, such as pinyin information, corresponding to the text content to be auxiliary-identified.
It can be understood that the message processing method can also be used for multi-person chatting of three or more persons, the server receives a new message of the multi-person chatting, determines whether the auxiliary character recognition condition is met according to the communication party identifier of the new message, and determines the auxiliary identification information and the message communication party to which the auxiliary identification information needs to be sent. In this embodiment, the receiver identifier includes a plurality of identifiers. For example, when the server detects that the corresponding auxiliary identification function state exists in the receiver identifier corresponding to the new multi-user chat message and is opened, it is determined that the auxiliary character recognition condition is met, and at this time, the acquired auxiliary identification information is sent to the receiver corresponding to the receiver identifier of which the auxiliary identification function state is opened. Similarly, in the multi-person chat, if the auxiliary identification function state of the sender identifier is opened, the auxiliary identification information is sent to the message sender.
In the message processing method, the server sends the auxiliary identification information obtained by identification to the corresponding communication party for display according to the message communication party meeting the auxiliary character recognition condition; for the user, whether the auxiliary identification function is started or not can be selected according to needs, and after the auxiliary identification function is started by the user, the corresponding auxiliary identification information can be displayed on the terminal interface by the user in the information displayed on the terminal interface whether the information is a new information sent to the opposite side or a new information sent by the opposite side.
In one embodiment, the message processing method further includes: receiving the auxiliary identification function state sent by the terminal, and adjusting the auxiliary identification function state of the terminal identifier corresponding to the auxiliary identification function state into the received auxiliary identification function state; if the user requests to start the auxiliary identification function at the terminal S, the terminal adjusts the state of the auxiliary identification function to be started based on the request and sends the information that the state of the auxiliary identification function is started to the server; and when the server receives the information that the auxiliary identification function state of the terminal S sent by the terminal is started, the server adjusts the auxiliary identification state corresponding to the stored terminal identification of the terminal S to be started.
In another embodiment, after determining that the auxiliary recognition condition is satisfied according to the identifier of the communication party, the server obtains the text content to be assisted and recognized from the text message content of the new message, including: matching the text message content of the new message with the rarely-used word database to obtain a rarely-used word matching result; and when the rarely-used word matching result is that the rarely-used word exists, determining the rarely-used word matched as the character content to be assisted and recognized. It can be understood that the obtaining of the auxiliary identification information corresponding to the text content to be auxiliarily identified includes: and acquiring auxiliary identification information, such as pinyin, of the matched uncommon word. In the embodiment, after the terminal starts the auxiliary identification function, when the server detects that a rare word appears in a new message sent or received by the terminal as a message communication party, the rare word is identified to obtain auxiliary identification information and sent to the message communication party; the user selects to start the auxiliary identification function to obtain the auxiliary identification information corresponding to the uncommon word in the new message, so that the user can be helped to reduce communication obstacles.
In one embodiment, the new message carries a session identifier, and when the state of the auxiliary recognition function corresponding to the session identifier is turned on, the new message is determined to satisfy the auxiliary word recognition condition. The session identification is associated with a communication party identification, the communication party identification corresponds to a message communication party, the communication party identification comprises at least one of a sender identification and a receiver identification, the sender identification corresponds to a message sender, and the receiver identification corresponds to a message receiver.
Usually, when a terminal can perform messaging (chat) with other users and send messages with different users, a user will generate different sessions, and in this embodiment, the session identifier is used to distinguish the sessions between the user and different other users. The session identification is associated with the message sender and the message receiver.
In one embodiment, when detecting that the state of an auxiliary identification function corresponding to a session identifier carried by a new message is opened, a server determines that an auxiliary character recognition condition is met, in one embodiment, the server can send the auxiliary identification information obtained by identification to a message sender and a message receiver corresponding to the session identifier, that is, as long as the new message generated in the session is a message sent by a terminal a to a terminal B or a message sent by a terminal B to the terminal a, the corresponding auxiliary identification information is displayed on the terminal a and the terminal B; in another embodiment, the server may also only send the auxiliary identification information obtained by identification to the message recipient corresponding to the session identifier, that is, the new message generated in the session, regardless of the message sent by terminal a to terminal B or the message sent by terminal B to terminal a, only displays the corresponding auxiliary identification information on the message recipient.
In another embodiment, the new message not only carries the session identifier but also carries the identifier of the communication party of the message, and the server needs to determine the state of the corresponding auxiliary identification function according to the session identifier and the identifier of the communication party.
Further, in one embodiment, when the state of the auxiliary recognition function corresponding to the receiver identifier is already started in the session associated with the session identifier, it is determined that the new message satisfies the auxiliary character recognition condition; the server sends the obtained auxiliary identification information to a message receiver in the session of the new message; in another embodiment, when the state of the auxiliary identification function corresponding to the sender identifier is opened in the session associated with the session identifier, determining that the new message meets the auxiliary character recognition condition; the server sends the obtained auxiliary identification information to a message sender in a session of the new message; or, in another embodiment, when the state of the auxiliary identification function corresponding to the sender identifier is already started and the state of the auxiliary identification function corresponding to the receiver identifier is already started in the session associated with the session identifier, determining that the new message satisfies the auxiliary character recognition condition; and the server sends the obtained auxiliary identification information to a message sender and a message receiver of the new message.
For example, in a specific embodiment, it is assumed that only the user 1 opens the assistant recognition function at the terminal a in the session between the user 1 and the user 2, the user 1 at the terminal a sends a new message "weather is good today" to the user 2 at the terminal B, and when receiving the new message, the server acquires the session identifier, determines that the assistant recognition function corresponding to the sender identifier (the identifier of the terminal a) is opened in the session between the terminal a and the terminal B according to the session associated with the session identifier, and sends the assistant recognition information to the message sender (the terminal a). Assuming that only the user 2 opens the auxiliary identification function at the terminal B in the session between the user 1 and the user 2, the terminal a sends a new message to the terminal B, and when the server receives the new message, the server acquires the session identifier, determines that the auxiliary identification function corresponding to the identifier of the receiving party (the identifier of the terminal B) is opened in the session between the terminal a and the terminal B according to the session associated with the session identifier, and sends the auxiliary identification information to the message sending party (the terminal B). Assuming that the terminal a and the terminal B both have the assistant recognition function turned on in the session, the server transmits the assistant recognition information to the message sender (terminal a) and the message sender (terminal B). FIG. 3 (left) is a schematic interface diagram illustrating the turning on of the auxiliary identification function in one embodiment; the method specifically comprises the following steps: in the chat session between the user 1 and the user 2, the user 1 is provided with an interface schematic diagram for starting an auxiliary identification function; further, as shown in fig. 3 (right), an interface schematic diagram of the message communication party with the auxiliary identification function turned on in this embodiment is specifically: a schematic diagram of a chat session interface of the user 1 is displayed; in the example shown in fig. 3, user 1 displays the assistant recognition message in both the outgoing message and the received message in the chat interface with user 2.
It is to be understood that the server stores the states of the auxiliary recognition function corresponding to the session identifier and the communication party identifier in advance. In one embodiment, the method further comprises: receiving the auxiliary identification function state sent by the terminal, and adjusting the auxiliary identification function state of the session identifier corresponding to the auxiliary identification function state into the received auxiliary identification function state; if a user requests to start the auxiliary identification function in the session between the terminal S and the terminal A at the terminal S, the terminal adjusts the state of the auxiliary identification function corresponding to the session between the terminal S and the terminal A to be started based on the request, and sends the state of the started auxiliary identification function to the server; and when the server receives that the auxiliary identification function state of the session between the terminal S and the terminal A sent by the terminal is opened, the server adjusts the corresponding auxiliary identification state of the terminal S in the session associated with the session identifier of the terminal S and the session identifier of the terminal A to be opened information for storage.
It can be understood that the message processing method can also be applied to multi-person chatting, and the specific implementation manner is similar to that of two-person chatting, which is not described herein again.
In the message processing method of the above embodiment, whether the auxiliary character recognition condition is satisfied is determined by the session identifier carried by the new message and the identifier of the communication party corresponding to the session identifier, when the auxiliary character recognition condition is determined to be satisfied, the new message is subjected to auxiliary recognition, and the communication party needing to send the auxiliary recognition information is determined; for the user, which session or sessions the assistant recognition function is opened can be selected according to needs, and one user only displays assistant recognition information corresponding to the new message in the session with the assistant recognition function opened.
In one embodiment, after identifying the message type of the new message, as shown in fig. 4, the method further comprises the steps of: step S410, when the message type comprises a Chinese character type, matching the character message content of the new message with the uncommon character database to obtain a rarely-used character matching result; and step S420, when the rarely-used word exists in the rarely-used word matching result, judging that the new message meets the auxiliary word learning condition.
Further, after the server determines that the message type of the new message comprises a Chinese character type, matching the character message content of the new message with the rarely-used character database to acquire whether characters in the rarely-used character database exist in the character message content of the new message or not and acquire a rarely-used character matching result, and if so, considering that the rarely-used characters exist in the new message; in the embodiment, when the uncommon word is detected to exist in the new message, the auxiliary word learning condition is determined to be met.
In one embodiment, when the rarely-used word is present, the method further includes: the rarely-used words matched with the rarely-used word database are in the text message contents; in this embodiment, as shown in fig. 4, acquiring the text content to be assisted and recognized includes step S430, determining the rarely-used word as the text content to be assisted and recognized; the server identifies the uncommon word to obtain auxiliary identification information corresponding to the uncommon word, and step S440 sends the auxiliary identification information corresponding to the uncommon word to the message communication party. Specifically, the server sends the auxiliary identification information corresponding to the uncommon word to which one or more message communication parties, which can be determined according to the communication party identification.
In the message processing method in the above embodiment, whether the rarely-used word meets the auxiliary recognition condition is determined by recognizing whether the rarely-used word exists in the new message, and even if the terminal does not start the auxiliary recognition function, the server acquires the auxiliary recognition information corresponding to the rarely-used word and sends the auxiliary recognition information to the message communication party corresponding to the new message when detecting that the rarely-used word exists in the new message, so as to assist the user in recognizing the message content of the new message.
Further, in an embodiment, the user may select, according to the need of the user, a text content that needs auxiliary recognition during display, such as a rarely-used word, for example, the word "gulosity" is recognized by the user 1 as needing auxiliary recognition during display, but the word is not stored in the rarely-used word database in the server, and the user may initiate a word addition instruction to be identified for auxiliary recognition, so that the terminal initiates a word addition request to be identified for auxiliary recognition to the server according to the word addition instruction to be identified for auxiliary recognition, so that the server stores the word "gulp" in the corresponding database, thereby forming a unique personalized database to be identified for auxiliary recognition. Or the user considers that a certain word which can be subjected to auxiliary recognition during display does not need auxiliary recognition, or a removal request can be initiated to the server through the terminal, so that the server removes corresponding characters originally existing in the database corresponding to the terminal.
In this embodiment, the message processing method further includes: receiving a newly added request of characters to be assisted and recognized, acquiring the characters to be assisted and recognized and a terminal identification carried in the newly added request of the characters to be assisted and recognized, and storing the characters to be assisted and recognized into a personalized database to be assisted and recognized corresponding to the terminal identification. And receiving an auxiliary identification character removal request, acquiring auxiliary identification characters to be removed and a terminal identifier carried in the auxiliary identification character removal request, and removing the auxiliary identification characters to be removed from the personalized database to be identified in an auxiliary way, wherein the personalized database to be identified corresponds to the terminal identifier.
Further, in an embodiment, a universal uncommon word database may be used as a basis, and auxiliary identification words are removed or auxiliary identification words to be added are added according to a request (carrying a terminal identifier) of a user, so as to obtain a personalized database to be identified with assistance, which corresponds to the terminal identifier. It can be understood that, in this embodiment, the personalized database to be assisted in identification is established for different users, so as to provide assisted identification of different text contents for different users.
In another embodiment, the personalized to-be-assisted identification database can also be stored in correspondence with the user identifier, so that when a user logs in at different terminals, the user can obtain the assisted identification information meeting the self requirement from the personalized to-be-assisted identification database.
In one embodiment, a database to be assisted in identification corresponding to a user may be stored in a blockchain. The system related to the embodiment may be a distributed system formed by connecting a client, a plurality of nodes (any form of computing devices in an access network, such as servers and user terminals) through a network communication form. Taking a distributed system as an example of a blockchain, the distributed system is formed by a plurality of nodes (any form of computing devices in an access network, such as servers and user terminals) and a client, a Peer-To-Peer (P2P, Peer To Peer) network is formed between the nodes, and the P2P Protocol is an application layer Protocol operating on a Transmission Control Protocol (TCP). In a distributed system, any machine, such as a server or a terminal, can join to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer. The functions related to each node in the blockchain system include: routing for supporting communication between nodes. The Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, once a new Block is added into the Block chain, the new Block cannot be removed, and the recorded data submitted by the nodes in the Block chain system are recorded in the blocks; and the data stored in the block chain is difficult to be tampered; the auxiliary identification data corresponding to the user is stored in the block chain, so that the auxiliary identification data can be prevented from being tampered.
In one embodiment, the message processing method further includes: and when an auxiliary identification request initiated by a terminal is received, judging that an auxiliary character learning condition is met. The auxiliary identification request carries a communication party identifier, obtains the text content to be auxiliary identified from the text message content of the new message, and comprises the following steps: and acquiring the text content to be assisted and identified carried in the auxiliary identification request. And further, after acquiring auxiliary identification information corresponding to the character content to be assisted and identified, sending the auxiliary identification information to a communication party identifier carried in the auxiliary identification request. It can be understood that the text content to be assisted to be identified in this embodiment may be all text message content of the new message or may be partial text message content of the new message. In the embodiment, the user does not need to select whether to start the assistant recognition function in advance, but initiates the assistant recognition request to the server when the user considers that the assistant recognition of a new message is needed. For example, a user can initiate an auxiliary recognition character selection instruction after selecting the character content to be auxiliarily recognized on a current interface by long-time pressing of a screen and the like, the terminal initiates an auxiliary recognition request to the server after receiving the auxiliary recognition character selection instruction, and sends the terminal identifier and the character content to be auxiliarily recognized selected by the user to the server for auxiliary recognition.
In an embodiment of the present application, a message display method is further provided, and this embodiment is mainly illustrated by applying the method to the terminal 110 in fig. 1. Referring to fig. 5, the message display method includes steps S510 to S530.
Step S510, sending a new message to the server or receiving a new message sent by the server.
When the terminal is used as a message sender, the terminal sends a new message to the server, and when the terminal is used as a message receiver, the terminal receives the new message sent by the server.
Step S520, the receiving server returns the auxiliary identification information when the message type of the new message comprises the Chinese character type and the new message meets the auxiliary character learning condition. The auxiliary identification information corresponds to the character content to be auxiliary identified in the character message content of the new message, and the character message content is the message content with the message type of Chinese character.
In one embodiment, the server determines that the message type includes a Chinese character type, including: by matching the character message content of the new message with the Chinese character database, if the obtained Chinese character matching result is that the Chinese character exists, the message type is considered to comprise the Chinese character type.
The auxiliary literacy condition may be set according to an actual situation of the user, for example, in an embodiment, the auxiliary literacy condition may be set as whether the communication party of the new message starts an auxiliary recognition function; or, in another embodiment, the auxiliary word learning condition can also be set as whether a uncommon word appears in the new message; alternatively, the auxiliary literacy condition can also be set as whether an auxiliary identification request initiated by the terminal is received, and the like. It is understood that the auxiliary literacy condition can be set as other conditions in different practical situations.
Further, taking as an example whether the communication party of the new message starts the auxiliary recognition function or not with the auxiliary recognition condition set as the auxiliary recognition condition, the server determines whether the new message meets the auxiliary recognition condition or not according to the communication party identifier, the session identifier and the like corresponding to the received new message; for example, in a specific embodiment, the server pre-stores information whether each terminal has started the auxiliary identification function, and determines that the corresponding receiver terminal has started the auxiliary identification function according to the receiver identifier, and then determines that the auxiliary character recognition condition is satisfied; for another example, the server stores information about whether each user and the session between each user and each friend open the auxiliary recognition function in advance, and determines that the auxiliary recognition condition is satisfied when the session corresponding to the session identifier has opened the auxiliary recognition function according to the new message session identifier.
The auxiliary identification information is the character content to be identified in an auxiliary manner, which is obtained from the character message content of the new message by the server when the new message meets the auxiliary identification condition, and the auxiliary identification information is obtained by identifying the character content to be identified in the auxiliary manner. In one embodiment, the text content to be assisted for recognition comprises: and the rarely used words are matched with the rarely used word database in the text message contents of the new message. Or in another embodiment, the text content to be assisted to be recognized comprises: all words in the text message content.
Further, in an embodiment, when the server determines that the auxiliary character recognition condition is met according to the communication party identifier and the session identifier of the new message, the character content to be recognized in an auxiliary manner may be all character message content of the new message or part of character message content of the new message; when the server judges that the rarely-used words in the new message meet the auxiliary word-identifying condition according to the detection, the character content to be identified in an auxiliary mode is part of the character message content of the character message of the new message; when the server judges that the auxiliary recognition condition is met according to the received auxiliary recognition request initiated by the terminal, if the surface display in the auxiliary recognition request initiated by the terminal only needs to recognize the partial text message content of the new message, the text content to be recognized in an auxiliary manner is the partial text message of the new message (the partial text message content indicated in the auxiliary recognition request); and if the auxiliary identification request initiated by the terminal indicates that all the text message contents of the new message need to be identified, the text contents to be identified in an auxiliary manner are all the text message contents of the new message.
Step S530 is to display the auxiliary identification information in association with the new message.
After the terminal receives the auxiliary identification information, the auxiliary identification information corresponds to the character content to be auxiliarily identified, which is acquired from the new message, so that the auxiliary identification information and the character content to be auxiliarily identified in the new message are correspondingly displayed when the auxiliary identification information is displayed.
In one embodiment, as shown in fig. 6, the message display method further includes steps S610 to S630.
Step S610, when receiving the first auxiliary recognition function state change instruction, acquiring the terminal identifier of the terminal where the terminal is located.
And the auxiliary identification function state changing instruction is used for changing the auxiliary identification function state, and can change the auxiliary identification function state from on to off and also change the auxiliary identification function state from off to on. In this embodiment, taking the assisted identification function state of the terminal that is correspondingly changed by the assisted identification function state change instruction as an example, the assisted identification function state change instruction is recorded as a first assisted identification function state change instruction, and when the assisted identification function state change instruction is received, the terminal identifier of the terminal where the assisted identification function state change instruction is located is obtained.
And step S620, changing the auxiliary identification function state corresponding to the terminal identification according to the first auxiliary identification function state change instruction.
And step S630, sending the state of the auxiliary identification function corresponding to the changed terminal identification to a server.
After receiving a first auxiliary identification function state change instruction, the terminal changes an auxiliary identification function state corresponding to the terminal identifier, and uploads the changed auxiliary identification function state to a server for storage; therefore, the server can know whether the state of the auxiliary identification function corresponding to each terminal identifier is on or off.
Further, in one embodiment, the new message carries a correspondent identity; and when the state of the auxiliary identification function corresponding to the changed communication party identifier is started, the server judges that the new message meets the auxiliary character recognition condition.
In one embodiment, as shown in fig. 7, the message display method further includes:
step S710, when the session window receives the second auxiliary identification function state change instruction, acquiring a session identifier corresponding to the session window, where the session identifier is associated with a sender identifier and a receiver identifier, the sender identifier corresponds to a message sender, and the receiver identifier corresponds to a message receiver.
The second command for changing the state of the assisted recognition function is also used for changing the state of the assisted recognition function, which is the same as the first command for changing the state of the assisted recognition function, but in this embodiment, the second command for changing the state of the assisted recognition function is changed correspondingly to the state of the assisted recognition function in the session window. Generally speaking, the terminal can only change the state of the assisted identification function of the terminal, so the second assisted identification function state change instruction in this embodiment is used to change the state of the assisted identification function of the terminal in the current session window.
Step S720, according to the second assisted identification function state change instruction, changing the assisted identification function state corresponding to the session identifier.
And step S730, sending the state of the auxiliary identification function corresponding to the changed session identifier to a server.
For example, in a session window between a terminal a (user 1) and a terminal B (user 2), the user 1 wants to open the assisted recognition function state of the terminal a, and sends a second assisted recognition function state change instruction to enable the terminal to change the assisted recognition function state of the terminal in the session to open, and simultaneously sends the assisted recognition function state corresponding to the changed session identifier to the server, and the server stores the assisted recognition function state of the terminal a corresponding to the session identifier of the terminal a and the session identifier of the terminal B as open. It can be understood that, in this embodiment, if in the session windows of the terminal a (user 1) and the terminal B (user 2), the user 2 changes the state of the assisted recognition function of the terminal B to be on, and sends the state of the assisted recognition function corresponding to the changed session identifier to the server, at this time, the server stores the state of the assisted recognition function of the terminal B corresponding to the session identifier of the terminal a and the session identifier of the terminal B as being on.
Through the message display method, the user can select which session or sessions to start the auxiliary identification function according to needs, and the terminal only displays the auxiliary identification information in the sessions with the auxiliary identification function started.
Further, in one embodiment, the new message carries a session identifier; and when the auxiliary recognition function state corresponding to the session identifier is started, judging that the new message meets the auxiliary character recognition condition.
In one embodiment, the message display method further includes: receiving an auxiliary identification character selection instruction aiming at the new message, wherein the auxiliary identification character selection instruction comprises character message contents obtained by selection, and determining the character message contents as character contents to be subjected to auxiliary identification; sending an auxiliary identification request to a server, wherein the auxiliary identification request carries an identifier of the new message and character content to be subjected to auxiliary identification; in this embodiment, when receiving the auxiliary recognition request, the server determines that the new message satisfies the auxiliary recognition condition.
In this embodiment, the user does not need to select whether to start the assistant identification function in advance, but initiates an assistant identification request to the server when considering that there is a new message requiring assistant identification, so as to obtain the assistant identification information returned by the server. The method is generally used for requesting the server to assist the identification by selecting the text content to be assisted and identified by the user when the user thinks that the new message has the text message content which cannot be identified, such as uncommon words.
In another embodiment, in the above message display method, the server determines that the new message satisfies the auxiliary word learning condition when the message type includes a chinese character type and the rarely-used word exists as a result of matching the text message content of the new message with the rarely-used word database.
In the message display method, when the terminal sends a new message or receives the new message, the terminal receives the auxiliary identification information returned by the server when the condition is met, and the auxiliary identification information and the new message are correspondingly displayed on the terminal interface; therefore, the method can assist the user in identifying new message content, reduce communication obstacles and help the user to achieve the effect of strengthening literacy to a certain extent.
In a specific embodiment, taking whether the assisted identification function is started or not in the session window as an example, the flow of assisted identification performed by the server for a new message transmitted between terminals is as follows:
a terminal: an on-assist recognition function (# set _ msg _ help) is set in the session window.
In this embodiment, the assistant recognition function is set to be on in the conversation window, and all text messages (messages sent by the party to the other party and messages returned by the party to the other party) in the conversation window display assistant recognition information. The terminal interacts with the server to tell the server which user userid has set which session dialogID to start the auxiliary identification function (set _ msg _ help on).
A server: and communicating with the client to obtain which user has started the auxiliary identification function. (# sever _ msg _ hellp)
userid dialogID set_msg_help on&off
1 111 on
1 112 on
When the character message generated in the session with the auxiliary identification function started is generated, the characters in the message are automatically matched with the pinyin library, auxiliary identification information # output _ help _ msg corresponding to the character content to be auxiliary identified in the new message is acquired, and the auxiliary identification information is returned to the terminal.
The terminal receives the assistant identification information returned by the server, and displays the assistant identification information in association with the new message (# show _ msg _ help).
In another embodiment, the terminal does not start the auxiliary identification function, and when detecting that uncommon words exist in the new message, the server determines that the auxiliary identification condition is met, and returns the acquired auxiliary identification information corresponding to the uncommon words to the corresponding terminal (which may include a message sender and/or a message receiver) for display.
By the method, the functions of learning characters with assistance of pinyin and the like can be provided for the user, and communication obstacles are reduced; it is convenient to strengthen literacy and communication in communication.
FIGS. 2 and 4 are schematic flow diagrams illustrating a message processing method according to an embodiment; fig. 5-7 are flow diagrams illustrating a message display method according to one embodiment. It should be understood that although the various steps in the flowcharts of fig. 2, 4-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 4-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment of the present application, there is also provided a message processing apparatus, as shown in fig. 8, including: the device comprises a receiving module 810, a module 820 for acquiring the text content to be assisted identified, a module 830 for acquiring the assisted identification information, and a sending module 840. Wherein:
and the receiving module is used for receiving the new message sent by the message sending party and identifying the message type of the new message.
And the module for acquiring the character content to be assisted and identified is used for acquiring the character content to be assisted and identified from the character message content of the new message when the message type comprises the Chinese character type and the new message meets the assisted character identification condition, wherein the character message content is the message content with the message type being the Chinese character type.
And the auxiliary identification information acquisition module is used for acquiring auxiliary identification information corresponding to the character content to be subjected to auxiliary identification.
And the sending module is used for sending the corresponding auxiliary identification information to the message communication party corresponding to the new message.
In one embodiment, the new message carries a communication party identifier, the communication party identifier corresponds to a message communication party, the communication party identifier comprises a sender identifier and/or a receiver identifier, the sender identifier corresponds to a message sender, and the receiver identifier corresponds to a message receiver; in this embodiment, the module for acquiring the text content to be assisted and recognized is further configured to determine that the new message satisfies the assisted recognition condition when the state of the assisted recognition function corresponding to the identifier of the communication party is turned on.
In one embodiment, the new message carries a session identifier, the session identifier is associated with a sender identifier and a receiver identifier, the sender identifier corresponds to a message sender, and the receiver identifier corresponds to a message receiver; in this embodiment, the module for acquiring text content to be assisted and recognized is further configured to determine that the new message satisfies the assisted recognition condition when the state of the assisted recognition function corresponding to the session identifier is already enabled.
In one embodiment, the message processing apparatus further includes: the rarely-used word matching module is used for matching the word message content of the new message with the rarely-used word database when the message type comprises a Chinese character type to obtain a rarely-used word matching result; in this embodiment, the module for acquiring the text content to be assisted and recognized is further configured to determine that the new message satisfies the assisted word recognition condition when the rarely-used word exists in the rarely-used word matching result.
In one embodiment, the uncommon word matching results include: the rarely-used words matched with the rarely-used word database are in the text message contents; in this embodiment, the module for acquiring the text content to be assisted and recognized is further configured to determine the rarely-used matched word as the text content to be assisted and recognized.
In one embodiment, the module for acquiring the text content to be assisted and identified is configured to determine all the texts in the text message content as the text content to be assisted and identified. In another embodiment, the module for acquiring the text content to be identified auxiliarily is used for receiving the text content to be identified auxiliarily uploaded by the message sender or the message receiver.
According to the message processing device, the new message sent by the message receiver is detected and identified, when the message type of the new message is detected to comprise the Chinese character type and the new message meets the auxiliary character identifying condition, the character content to be identified in the new message is acquired and identified, and then the auxiliary identification information acquired by identification is sent to the message communication party corresponding to the new message. By the method, the auxiliary identification information corresponding to the new message can be displayed at the terminal, and the user can be assisted in identifying the text content in the new message.
In an embodiment of the present application, there is also provided a message display module, as shown in fig. 9, including: a new message processing module 910, an assisted recognition message receiving module 920, and a display module 930. Wherein:
and the new message processing module is used for sending a new message to the server or receiving the new message sent by the server.
And the auxiliary identification message receiving module is used for receiving the auxiliary identification information returned by the server when the message type of the new message comprises a Chinese character type and the new message meets the auxiliary character recognition condition, wherein the auxiliary identification information corresponds to the character content to be subjected to auxiliary identification in the character message content of the new message, and the character message content is the message content with the message type of the Chinese character type.
And the display module is used for correspondingly displaying the auxiliary identification information and the new message.
In one embodiment, the message display apparatus further includes:
and the first auxiliary identification function state change instruction receiving module is used for acquiring the terminal identifier of the terminal when receiving the first auxiliary identification function state change instruction.
And the auxiliary identification function state changing module is used for changing the auxiliary identification function state corresponding to the terminal identifier according to the first auxiliary identification function state changing instruction.
And the auxiliary identification function state sending module is used for sending the auxiliary identification function state corresponding to the changed terminal identifier to the server.
In one embodiment, the message display apparatus further includes:
and the second auxiliary identification function state change instruction receiving module is used for acquiring a session identifier corresponding to the session window when the session window receives the second auxiliary identification function state change instruction, wherein the session identifier is associated with a sender identifier and a receiver identifier, the sender identifier corresponds to a message sender, and the receiver identifier corresponds to a message receiver.
And the auxiliary identification function state changing module is also used for changing the auxiliary identification function state corresponding to the session identifier according to the second auxiliary identification function state changing instruction.
And the auxiliary identification function state sending module is also used for sending the auxiliary identification function state corresponding to the changed session identifier to the server.
In one embodiment, the message display apparatus further includes:
the auxiliary identification character selection instruction receiving module is used for receiving an auxiliary identification character selection instruction aiming at the new message, wherein the auxiliary identification character selection instruction comprises character contents obtained by selection, and the character contents are determined as character contents to be identified in an auxiliary mode; and sending an auxiliary identification request to the server, wherein the auxiliary identification request carries the identification of the new message and the character content to be identified in an auxiliary manner. In this embodiment, when receiving the auxiliary recognition request, the server determines that the new message satisfies the auxiliary recognition condition.
In the message display device, when the terminal sends a new message or receives the new message, the terminal receives the auxiliary identification information returned by the server when the condition is met, and the auxiliary identification information and the new message are correspondingly displayed on a terminal interface; therefore, the method can assist the user in identifying the text content of the new message, reduce communication obstacles and help the user to achieve the effect of strengthening literacy to a certain extent.
FIG. 10 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 110 or the server 120 in fig. 1. As shown in fig. 10, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a message processing method, a message display method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform a message processing method and a message display method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the message processing apparatus and the message display apparatus provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 10. The memory of the computer device can store various program modules forming the message processing device and the message display device, such as a receiving module, a to-be-assisted recognized text content acquiring module, an assisted recognition information acquiring module and a sending module shown in fig. 8; further shown in fig. 9 are a new message processing module, an assisted identification message receiving module, and a display module. The computer program constituted by the respective program modules causes the processor to execute the steps in the message processing method and the message display method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 10 may receive a new message sent by a message sender through a receiving module in the message processing apparatus shown in fig. 8, and identify a message type of the new message. When the message type comprises a Chinese character type and the new message meets the auxiliary character recognition condition, the computer equipment can acquire the character content to be assisted and recognized from the character message content of the new message through the character content to be assisted and recognized acquisition module, wherein the character message content is the message content with the message type being the Chinese character type. The computer equipment can obtain auxiliary identification information corresponding to the character content to be auxiliarily identified through the auxiliary identification information acquisition module. The computer device can send the corresponding auxiliary identification information to the message communication party corresponding to the new message through the sending module.
For another example, the computer device shown in fig. 10 may transmit a new message to the server or receive a new message transmitted by the server through the new message processing module shown in fig. 9. The computer equipment can receive the auxiliary identification information returned by the server when the message type of the new message comprises the Chinese character type and the new message meets the auxiliary character recognition condition through the auxiliary identification message receiving module, wherein the auxiliary identification information corresponds to the character content to be subjected to auxiliary identification in the character message content of the new message, and the character message content is the message content with the message type of the Chinese character type. The computer device may display the auxiliary identification information corresponding to the new message through the display module.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, causing the processor to perform the steps of the message processing method and the message display method described above. Here, the steps of the message processing method and the message display method may be steps in the message processing method and the message display method of the above embodiments.
In one embodiment, a computer readable storage medium is provided, which stores a computer program that, when executed by a processor, causes the processor to perform the steps of the message processing method and the message display method described above. Here, the steps of the message processing method and the message display method may be steps in the message processing method and the message display method of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method of message processing, comprising:
receiving a new message sent by a message sender, and identifying the message type of the new message;
when the message type comprises a Chinese character type and the new message meets the auxiliary character recognition condition, acquiring character content to be assisted and recognized from character message content of the new message, wherein the character message content is the message content with the message type of the Chinese character type;
acquiring auxiliary identification information corresponding to the character content to be auxiliarily identified;
and sending the corresponding auxiliary identification information to a message communication party corresponding to the new message.
2. The method of claim 1, wherein the new message carries a correspondent identifier, wherein the correspondent identifier corresponds to the message correspondent, wherein the correspondent identifier comprises a sender identifier and/or a receiver identifier, wherein the sender identifier corresponds to the message sender, and the receiver identifier corresponds to the message receiver;
and when the auxiliary identification function state corresponding to the communication party identification is started, judging that the new message meets an auxiliary character recognition condition.
3. The method of claim 1, wherein the new message carries a session identifier, the session identifier is associated with a sender identifier and a receiver identifier, the sender identifier corresponds to the message sender, and the receiver identifier corresponds to the message receiver;
and when the auxiliary recognition function state corresponding to the session identifier is started, judging that the new message meets an auxiliary character recognition condition.
4. The method of claim 1, after identifying the message type of the new message, further comprising:
when the message type comprises a Chinese character type, matching the character message content of the new message with a rarely-used character database to obtain a rarely-used character matching result;
and when the rarely-used word matching result is that the rarely-used word exists, judging that the new message meets the auxiliary word learning condition.
5. The method of claim 4, wherein when the rarely used word matching result is the existence of the rarely used word, the rarely used word matching result comprises: in the text message contents, the rarely-used words are matched with the rarely-used word database;
acquiring character contents to be assisted and recognized, comprising the following steps:
and determining the matched uncommon word as the character content to be identified in an auxiliary manner.
6. The method according to any one of claims 1 to 3, wherein the obtaining of the text content to be assisted and recognized comprises:
determining all characters in the character message content of the new message as character content to be assisted and identified;
or receiving the text content to be assisted and identified uploaded by the message sender or the message receiver.
7. The method according to any one of claims 1 to 5, wherein the auxiliary identification information comprises: the pinyin information corresponding to the text content to be assisted and identified, or the assisted and identified information, includes: and audio information corresponding to the text content to be assisted and identified.
8. A method of displaying a message, the method comprising:
sending a new message to a server or receiving a new message sent by the server;
receiving auxiliary identification information returned by the server when the message type of the new message comprises a Chinese character type and the new message meets an auxiliary character recognition condition, wherein the auxiliary identification information corresponds to character content to be subjected to auxiliary recognition in character message content of the new message, and the character message content is the message content with the message type of the Chinese character type;
and correspondingly displaying the auxiliary identification information and the new message.
9. The method of claim 8, further comprising:
when a first auxiliary recognition function state change instruction is received, acquiring a terminal identifier of a terminal where the terminal is located;
according to the first auxiliary identification function state changing instruction, changing an auxiliary identification function state corresponding to the terminal identification;
and sending the changed auxiliary identification function state corresponding to the terminal identification to the server.
10. The method of claim 8, further comprising:
when a session window receives a second auxiliary identification function state change instruction, acquiring a session identifier corresponding to the session window, wherein the session identifier is associated with a sender identifier and a receiver identifier, the sender identifier corresponds to the message sender, and the receiver identifier corresponds to the message receiver;
according to the second auxiliary identification function state changing instruction, changing an auxiliary identification function state corresponding to the session identifier;
and sending the changed auxiliary identification function state corresponding to the session identifier to the server.
11. The method of claim 8, further comprising:
receiving an auxiliary identification character selection instruction aiming at the new message, wherein the auxiliary identification character selection instruction comprises character contents obtained by selection, and determining the character contents as the character contents to be subjected to auxiliary identification; sending an auxiliary identification request to the server, wherein the auxiliary identification request carries the identification of the new message and the text content to be subjected to auxiliary identification;
and when the server receives the auxiliary identification request, judging that the new message meets an auxiliary character recognition condition.
12. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 11.
13. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 11.
CN201910872080.2A 2019-09-16 2019-09-16 Message processing method, message display method, storage medium, and computer device Active CN110635991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872080.2A CN110635991B (en) 2019-09-16 2019-09-16 Message processing method, message display method, storage medium, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872080.2A CN110635991B (en) 2019-09-16 2019-09-16 Message processing method, message display method, storage medium, and computer device

Publications (2)

Publication Number Publication Date
CN110635991A true CN110635991A (en) 2019-12-31
CN110635991B CN110635991B (en) 2022-04-19

Family

ID=68971409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872080.2A Active CN110635991B (en) 2019-09-16 2019-09-16 Message processing method, message display method, storage medium, and computer device

Country Status (1)

Country Link
CN (1) CN110635991B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201860365U (en) * 2010-05-26 2011-06-08 康佳集团股份有限公司 Mobile phone device for deaf-mute
US20150012600A1 (en) * 2013-07-08 2015-01-08 International Business Machines Corporation Indicating in an electronic message whether a user has previously accessed content provided by a resource
CN104536570A (en) * 2014-12-29 2015-04-22 广东小天才科技有限公司 Information processing method and device of intelligent watch
CN105681167A (en) * 2016-01-29 2016-06-15 深圳市泰比特科技有限公司 Children smartwatch and wechat client talkback method
CN107483736A (en) * 2017-08-23 2017-12-15 广东小天才科技有限公司 A kind of message treatment method and device of instant messaging application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201860365U (en) * 2010-05-26 2011-06-08 康佳集团股份有限公司 Mobile phone device for deaf-mute
US20150012600A1 (en) * 2013-07-08 2015-01-08 International Business Machines Corporation Indicating in an electronic message whether a user has previously accessed content provided by a resource
CN104536570A (en) * 2014-12-29 2015-04-22 广东小天才科技有限公司 Information processing method and device of intelligent watch
CN105681167A (en) * 2016-01-29 2016-06-15 深圳市泰比特科技有限公司 Children smartwatch and wechat client talkback method
CN107483736A (en) * 2017-08-23 2017-12-15 广东小天才科技有限公司 A kind of message treatment method and device of instant messaging application program

Also Published As

Publication number Publication date
CN110635991B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
EP3306867B1 (en) Auto-response method, apparatus and device, and computer-readable storage medium
US8086686B2 (en) Persisting a group in an instant messaging application
US20160359779A1 (en) Electronic Communication System
US11470023B2 (en) Session initiation method and device
US11050685B2 (en) Method for determining candidate input, input prompting method and electronic device
US10541951B2 (en) Enhancing network messaging with a real-time, interactive representation of current messaging activity of a user's contacts and associated contacts
KR20200142577A (en) Group chat initiation method based on shared document, device for same, and storage medium
US9362773B2 (en) Method and apparatus for determination of a non-charging operation
CN105577504B (en) Method and device for establishing communication channel
WO2018166367A1 (en) Real-time prompt method and device in real-time conversation, storage medium, and electronic device
CN110569127B (en) Virtual resource transferring, sending and obtaining method and device
CN112929253B (en) Virtual image interaction method and device
CN109286554B (en) Social function unlocking method and device in social application
CN111641554B (en) Message processing method and device and computer readable storage medium
CN110635991B (en) Message processing method, message display method, storage medium, and computer device
CN110620672B (en) Multi-person session data processing method and device, computer equipment and storage medium
CN105933417B (en) Consultation method and device
CN109165197B (en) File processing method, terminal and server
KR101986153B1 (en) System and method for communication service using webtoon identification technology
CN113420230A (en) Matching consultation pushing method based on group chat, related device, equipment and medium
CN112306596A (en) Information interaction method and device and electronic equipment
CN108153822A (en) A kind of correlating method and device, terminal and readable storage medium storing program for executing
US11792243B2 (en) System and method for conducting multi-session user interactions
CN115801957A (en) Voice switching method and device, electronic equipment and medium
CN113691595A (en) Interactive interface generation method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant