CN113792135A - Data processing method and device, electronic equipment and storage medium - Google Patents
Data processing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113792135A CN113792135A CN202110296842.6A CN202110296842A CN113792135A CN 113792135 A CN113792135 A CN 113792135A CN 202110296842 A CN202110296842 A CN 202110296842A CN 113792135 A CN113792135 A CN 113792135A
- Authority
- CN
- China
- Prior art keywords
- text content
- monitoring
- instant chat
- chat text
- target keyword
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 29
- 238000012544 monitoring process Methods 0.000 claims abstract description 194
- 238000012545 processing Methods 0.000 claims abstract description 43
- 238000000034 method Methods 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 2
- 238000010606 normalization Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 14
- 208000001613 Gambling Diseases 0.000 description 6
- 230000004044 response Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000505 pernicious effect Effects 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/117—Tagging; Marking up; Designating a block; Setting of attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Machine Translation (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The data processing method comprises the following steps: monitoring and acquiring instant chat text content input in real time, and matching the instant chat text content with a monitoring word stock; if the target keywords contained in the instant chat text content are matched in the monitoring word stock, performing identification processing on the target keywords; acquiring a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content; and responding to the sending operation, and sending the replaced instant chat text content. The technical scheme of the embodiment of the disclosure can help correct errors in the text content of the instant chat and improve the normalization and the accuracy of the text content of the instant chat.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, a data processing apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of the internet, instant chat tools are more and more diversified, and users can communicate with other users in an instant manner through the instant chat tools, but in order to purify the network environment, the content of the instant chat needs to be monitored.
At present, in a related scheme for monitoring content of instant chat, the content of instant chat is mainly monitored through monitoring software contained in a monitoring platform such as a control console, a matched local client and an instant chat tool; however, whether the instant chat content of the user is monitored through the monitoring platform or the monitoring software of the instant chat tool, the hysteresis of monitoring the instant chat content exists; therefore, the timeliness of monitoring the instant chat content is poor, and the control range of the instant chat text content is small.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a data processing method, a data processing apparatus, an electronic device, and a computer-readable storage medium, so as to overcome the problems of poor timeliness and a small control range of monitoring of instant chat content at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, including: monitoring and acquiring instant chat text content input in real time, and matching the instant chat text content with a monitoring word stock; if the target keywords contained in the instant chat text content are matched in the monitoring word stock, performing identification processing on the target keywords to obtain identified target keywords; acquiring a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content; and responding to the sending operation, and sending the replaced instant chat text content to finish the processing of the instant chat text content.
In some example embodiments of the present disclosure, based on the foregoing, the method further includes: if a abandon replacement instruction is received, carrying out label cancellation processing on the identified target keywords to obtain the restored instant chat text content; and responding to the sending operation, and sending the restored instant chat text content.
In some example embodiments of the present disclosure, based on the foregoing, the method further includes: and starting network monitoring of the sent instant chat text content when the sending operation is detected.
In some example embodiments of the present disclosure, based on the foregoing, the method further includes: setting a keyword and a replacement candidate word corresponding to the keyword based on a preset chat object; and adding the keywords and the replacement candidate words corresponding to the keywords into the monitoring word stock to update the monitoring word stock.
In some example embodiments of the present disclosure, based on the foregoing solution, the monitoring word stock includes a general monitoring word stock and a non-general monitoring word stock, and the monitoring real-time input instant chat text content and matching the instant chat text content with the monitoring word stock includes: when detecting that the monitoring word stock corresponding to the target keyword is the non-general monitoring word stock, generating a first control for increasing the general monitoring word stock; and responding to the clicking operation of the first control, and matching the instant chat text content with the general monitoring word stock and the non-general monitoring word stock.
In some example embodiments of the present disclosure, based on the foregoing scheme, the obtaining a replacement candidate word corresponding to the target keyword from the monitoring thesaurus, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content includes: generating a second control for triggering the replacement instruction; and responding to the triggering operation of the second control, acquiring a replacement candidate word corresponding to the identified target keyword, and replacing the target keyword with the replacement candidate word to obtain the replaced instant chat text content.
In some example embodiments of the present disclosure, based on the foregoing scheme, the obtaining a replacement candidate word corresponding to the target keyword from the monitoring thesaurus, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content includes: when the identified target keyword is detected, acquiring a replacement candidate list corresponding to the target keyword in the preset monitoring word stock; and responding to the selection operation of the replacement candidate list, determining a target replacement candidate word corresponding to the target keyword, and replacing the target keyword with the target replacement candidate word to obtain the replaced instant chat text content.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including: the matching module is used for monitoring and acquiring the real-time input instant chat text content and matching the instant chat text content with the monitoring word stock; the identification module is used for identifying the target keywords contained in the instant chat text content if the target keywords are matched with the monitoring word stock to obtain the identified target keywords; the replacing module is used for acquiring a replacing candidate word corresponding to the target keyword from the monitoring word stock, and replacing the identified target keyword by the replacing candidate word if a replacing instruction is received to obtain a replaced instant chat text content; and the sending module is used for responding to the sending operation and sending the replaced instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the data processing apparatus includes a cancellation identifier module, where the cancellation identifier module is configured to perform cancellation identifier processing on the identified target keyword if a abandon replacement instruction is received, so as to obtain a restored instant chat text content; and responding to the sending operation, and sending the restored instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the data processing apparatus further includes a network monitoring module, where the network monitoring module is configured to detect the sending operation and start network monitoring on the sent instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the data processing apparatus further includes a monitoring word stock updating module, where the monitoring word stock updating module is configured to set a keyword and a candidate replacement word corresponding to the keyword based on a preset chat object; and adding the keywords and the replacement candidate words corresponding to the keywords into the monitoring word stock to update the monitoring word stock.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the matching module further includes a first control generating unit, where the first control generating unit is configured to generate a first control for increasing the general monitoring thesaurus when it is detected that the monitoring thesaurus corresponding to the target keyword is the non-general monitoring thesaurus; and responding to the clicking operation of the first control, and matching the instant chat text content with the general monitoring word stock and the non-general monitoring word stock.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the replacement module further includes a second control generating unit, where the second control generating unit is configured to generate a second control for triggering the replacement instruction; and responding to the triggering operation of the second control, acquiring a replacement candidate word corresponding to the identified target keyword, and replacing the target keyword with the replacement candidate word to obtain the replaced instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the replacement module further includes a selection unit, where the selection unit is configured to, when the identified target keyword is detected, obtain a replacement candidate list corresponding to the target keyword in the preset monitoring lexicon; and responding to the selection operation of the replacement candidate list, determining a target replacement candidate word corresponding to the target keyword, and replacing the target keyword with the target replacement candidate word to obtain the replaced instant chat text content.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory having computer readable instructions stored thereon which, when executed by the processor, implement the data processing method of any one of the above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data processing method according to any one of the above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the data processing method in the example embodiment of the disclosure, the instant chat text content input in real time is monitored, and the instant chat text content is matched with the monitored word stock; if the target keywords contained in the instant chat text content are matched in the monitoring word stock, performing identification processing on the target keywords to obtain identified target keywords; acquiring a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content; and responding to the sending operation, and sending the replaced instant chat text content. On one hand, the instant chat text content is monitored in real time on the input side, and the instant chat text content is not monitored after being sent out, so that the timeliness of monitoring the instant chat text content is improved, and the control range of the instant chat text content is also improved; on the other hand, the controllability and the accuracy of the instant chat text content are improved by matching the monitoring word stock with the instant chat text content; on the other hand, the replacement candidate words corresponding to the target keywords can be obtained from the monitoring word bank, and the target keywords after the identification are replaced by the replacement candidate words, so that the replacement efficiency of the text content of the instant chat is improved, and the burden of thinking of the user for replacing the candidate words is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a schematic diagram of a data processing method according to some embodiments of the present disclosure;
FIG. 2 schematically illustrates a schematic diagram of a flow of monitoring thesaurus updates, according to some embodiments of the present disclosure;
FIG. 3 schematically illustrates a diagram of a structure for monitoring thesaurus updates, according to some embodiments of the present disclosure;
FIG. 4 schematically illustrates a flow of an instant chat text content matching process with a monitoring thesaurus according to some embodiments of the present disclosure;
FIG. 5 schematically illustrates a structural diagram of a matching module for instant chat text content, in accordance with some embodiments of the present disclosure;
FIG. 6 schematically illustrates a schematic diagram of a flow of target keyword replacement, according to some embodiments of the present disclosure;
FIG. 7 schematically illustrates a structural diagram of an alternate module for instant chat text content, in accordance with some embodiments of the present disclosure;
FIG. 8 schematically illustrates a schematic of another flow of target keyword replacement, according to some embodiments of the present disclosure;
FIG. 9 schematically illustrates a structural schematic of another target keyword replacement, according to some embodiments of the present disclosure;
FIG. 10 schematically illustrates a schematic diagram of a data processing apparatus according to some embodiments of the present disclosure;
FIG. 11 schematically illustrates a structural schematic of a computer system of an electronic device, in accordance with some embodiments of the present disclosure;
fig. 12 schematically illustrates a schematic diagram of a computer-readable storage medium, according to some embodiments of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
Furthermore, the drawings are merely schematic illustrations and are not necessarily drawn to scale. The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
In the present exemplary embodiment, a data processing method is first provided, and the data processing method may be applied to a terminal device, such as an electronic device like a mobile phone or a computer, and may also be applied to a server. Fig. 1 schematically illustrates a schematic diagram of a data processing method flow, according to some embodiments of the present disclosure. Referring to fig. 1, the data processing method may include the steps of:
step S110, monitoring instant chat text content input in real time, and matching the instant chat text content with a monitoring word stock;
step S120, if the target keywords contained in the instant chat text content are matched in the monitoring word stock, carrying out identification processing on the target keywords to obtain identified target keywords;
step S130, obtaining a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content;
step S140, responding to the sending operation, sending the replaced instant chat text content to complete the processing of the instant chat text content.
According to the data processing method in the embodiment of the example, on one hand, the instant chat text content is monitored in real time on the input side, and the instant chat text content is not monitored after being sent out, so that the timeliness of monitoring the instant chat text content is improved, and the control range of the instant chat text content is also improved; on the other hand, the controllability and the accuracy of the instant chat text content are improved by matching the monitoring word stock with the instant chat text content; on the other hand, the replacement candidate words corresponding to the target keywords can be obtained from the monitoring word bank, and the target keywords after the identification are replaced by the replacement candidate words, so that the replacement efficiency of the text content of the instant chat is improved, and the burden of thinking of the user for replacing the candidate words is reduced.
Next, taking the terminal device executing the method as an example, the data processing method in the present exemplary embodiment will be further described.
In step S110, the instant chat text content input in real time is monitored and acquired, and the instant chat text content is matched with the monitoring word stock.
In an example embodiment of the present disclosure, the monitoring word bank may refer to a word bank for monitoring whether there are wrongly written or mispronounced words and sensitive words in the instant chat text content, for example, the monitoring word bank may be a user-defined word bank, or a word bank carried by an instant chat tool, and of course, the monitoring word bank may also be another type of word bank for monitoring whether there are wrongly written or mispronounced words, sensitive words, and sensitive sentences in the instant chat text content, which is not particularly limited in this example embodiment.
For example, the method includes monitoring and acquiring the instant chat text content input by the user in the text input area of the instant chat tool, for example, when the user inputs a certain word on the input side, monitoring and acquiring the word, and performing matching processing on the word and the monitoring lexicon, or inputting a certain complete sentence by the user, but the complete sentence is not sent to the chat object, monitoring and acquiring the whole sentence and the monitoring lexicon, and performing matching processing to monitor whether the instant chat text content has a word which does not accord with legal provisions or is prohibited by the chat object.
The state of the instant chat text content input by the user can be detected, when the instant chat text content is detected to be input and not sent, the instant text content is matched with the monitoring word bank, and further wrongly written characters, sensitive words and sensitive sentences in the instant chat text content can be detected, and the wrongly written characters, the sensitive words and the sensitive sentences in the instant chat text content are highlighted to remind the user of the place where the instant chat text content has problems. Therefore, the user can adjust the characters, words and sentences highlighted in the instant chat text content.
In step S120, if the target keyword included in the content of the instant chat text is matched with the monitoring thesaurus, performing identification processing on the target keyword to obtain an identified target keyword.
In an example embodiment of the present disclosure, the target keyword may refer to a keyword existing in the instant chat text content and matching the monitoring thesaurus, for example, the target keyword may be an error-prone keyword matching the monitoring thesaurus in the instant chat text content, or a keyword related to a sensitive topic matching the monitoring thesaurus in the instant chat text content, and of course, the target keyword may also be another type of keyword existing in the instant chat text content and matching the monitoring thesaurus, which is not particularly limited in this example.
For example, in a network environment, words which are not compliant with legal requirements and are more extreme are all sensitive words, such as the instant chat text content is: "I want to gamble in the next year"; due to the fact that the word 'gambling' exists in the monitoring word bank, when 'gambling' exists in the instant chat text content input by the user, the 'gambling' becomes a target keyword in the instant chat text content, further, the gambling is highlighted to remind the user that the 'gambling' in the instant chat text content 'i want to gamble in the next year' has a problem, further, the user can notice that the problem of misspelling of 'gambling' exists in the instant chat text content, and further, the instant chat text content can be modified to 'i want to gamble in the next year'.
When it is detected that a target keyword matched with the monitoring word stock exists in the instant chat text content, the target keyword in the instant chat text content can be highlighted, for example, the target keyword can be highlighted in a striking color (red), the target keyword can be highlighted in a flashing manner, the target keyword can be displayed in a bold type, and of course, the target keyword can be identified in other manners, such as adding underlines or wavy lines below the target keyword; furthermore, the identified target keywords can be obtained, and the user can actively modify the target keywords and can replace the target keywords by monitoring the replacement words in the word bank.
In step S130, a replacement candidate word corresponding to the target keyword is obtained from the monitoring word stock, and if a replacement instruction is received, the identified target keyword is replaced by the replacement candidate word, so as to obtain a replaced instant chat text content.
In an example embodiment of the present disclosure, the candidate word to be replaced may refer to a candidate word used for replacing the target keyword in the monitored word library, for example, the candidate word to be replaced may be a candidate word having the same word meaning as the target keyword, may also be a candidate word having the same pronunciation as the target keyword, and may also be a candidate word having a similar word shape to the target keyword, and of course, the candidate word to be replaced may also be a candidate word in another form corresponding to the target keyword, such as an ancient meaning candidate word after performing word meaning conversion on the target keyword, and may also be a current meaning candidate word after performing word meaning conversion on the target keyword, which is not particularly limited in this example.
For example, if the sensitive word is "toilet" in a restaurant, the "toilet" is the target keyword, and the candidate replacement words corresponding to the target keyword include "toilet", "washroom", "east can"; when a replacing instruction of the target keyword is received, the target keyword can be replaced by replacing the candidate words, and further, the replaced instant chat text content can be obtained.
Sensitive words and replacement candidate words corresponding to the sensitive keywords can be set in a monitoring word bank in advance, and a first replacement candidate word corresponding to each sensitive word in the monitoring word bank is set as a default replacement candidate word; after the situation that keywords which are the same as the sensitive words in the monitoring word bank exist in the instant chat text content is monitored, a user can automatically replace the target keywords with default replacement candidate words by clicking a control for confirming the replacement of the target keywords; meanwhile, the incidence relation between the sensitive words and the replacement candidate words can be pre-established so that when a user clicks the target keyword or moves the cursor to the target keyword, a replacement candidate list corresponding to the target keyword is automatically popped up, and then the user can select the replacement words of the target keyword from the replacement candidate list, so that the replaced instant chat text content is obtained; the association relationship may refer to a mapping relationship between a target keyword and a candidate replacement list corresponding to the target keyword, for example, the association relationship may be a mapping relationship for calling the candidate replacement list corresponding to the target keyword based on the target keyword, the management relationship may also be a position relationship for displaying the candidate replacement list corresponding to the target keyword based on the target keyword, of course, the association relationship may also be another mapping relationship between the target keyword and the candidate replacement list corresponding to the target keyword, which is not particularly limited in this embodiment.
In step S140, in response to the sending operation, the replaced instant chat text content is sent to complete the processing of the instant chat text content.
In an example embodiment of the present disclosure, the instant chat text content may refer to text content input based on an input area of an instant chat tool, for example, the instant chat text content may be short text information, may also be a text document, and of course, may also be other text content, which is not particularly limited in this example embodiment.
Before sending the replaced instant chat text content, the instant chat text content can be preliminarily monitored through the monitoring word bank, after the target keyword is identified and processed, the target keyword is replaced by the replacement candidate word to obtain the replaced instant chat text content, and the risk that the instant chat tool is forbidden in a certain time after the instant chat text content containing the target keyword (sensitive word) is sent can be effectively reduced by sending the replaced instant chat text content.
The replaced instant chat text content can be sent by clicking a sending control of an input area of the instant chat tool through a mouse, and the replaced instant chat text content can also be sent by clicking a shortcut key of sending information of the input area in the instant chat tool; because the chat text content is monitored by the input end of the instant chat text content before the replaced instant chat text content is sent, the user can replace the target keyword by replacing the candidate word to obtain the replaced instant chat text content, thereby avoiding the error input of the instant chat text content and improving the accuracy of the instant chat text content.
In an example embodiment of the present disclosure, after a target keyword in an instant chat text content is marked to obtain a marked instant chat text content, if a abandon replacement instruction is received, a cancel identification process may be performed on the marked target keyword to obtain a restored instant chat text content; and responding to the sending operation, and sending the restored instant chat text content.
The abandoning and replacing instruction may be an instruction for controlling not to replace the target keyword in the instant chat text content, for example, the abandoning and replacing instruction may be an instruction corresponding to a blank area of the instant chat text content input area clicked by the user, or an instruction for the user to cancel the marking processing of the target keyword by himself, and of course, the abandoning and replacing instruction may also be an instruction for controlling not to replace the target keyword in the instant chat text content, which is not particularly limited in this embodiment.
Due to different chat objects, target keywords corresponding to the instant chat text content are different; for example, a user a does a mobile phone sales work in a company B, names of other mobile phone manufacturers in an instant chat tool in the company may be target keywords, and further, in the process of monitoring instant chat text content input by an input side in real time, the monitoring word stock detects names of other mobile phone manufacturers, and identifies the names of the mobile phone manufacturers in the instant chat text content, but the user a does not replace the identified target keywords in the instant chat text content, and can also send edited instant chat text content, and after sending the instant chat text content, the instant chat text content between the user a and other users can be monitored through a network.
The method can obtain the restored instant chat text content by detecting whether a abandoning and replacing instruction is received or not, and if the abandoning and replacing instruction is received, canceling the mark of the marked target keyword in the instant chat text content to further respond to the sending operation of the restored instant chat text content and send the restored instant text content to other users.
In an example embodiment of the present disclosure, network monitoring of the transmitted instant chat text content may be initiated by detecting a transmission operation of the instant chat text content when the transmission operation of the instant chat text content is detected.
The instant chat text content can be replaced instant chat text content or restored instant chat text content; the monitoring of the instant chat text content can be realized in an intranet monitoring mode and an extranet monitoring mode.
The instant chat text content can be preliminarily monitored through the input end of the monitoring word stock for the instant chat text content, when the sending operation of the instant chat text content is detected, the network monitoring of the instant chat text content can be started, the monitoring range of the instant chat text content is expanded, and the monitoring precision of the instant chat text content is also improved.
Fig. 2 schematically illustrates a schematic diagram of a flow of monitoring thesaurus updates, according to some embodiments of the present disclosure. Referring to fig. 2, the monitoring thesaurus update may include the following steps:
in step S210, setting a keyword and a candidate replacement word corresponding to the keyword based on a preset chat object;
in step S220, the keyword and the candidate replacement word corresponding to the keyword are added to the monitoring lexicon, so as to update the monitoring lexicon.
Wherein, the keyword may refer to a sensitive word that needs to be avoided for the chat object, for example, when the chat object is a pupil, the keyword may be a word related to commodity marketing such as rush, second kill, exempt from order, etc.; when the chat object is a competitor, the keyword may be a word related to the client information, such as a client name, a contact information, and the like, and of course, the keyword may also be other sensitive words that need to be avoided for the chat object, which is not particularly limited in this embodiment.
For example, when the keyword is a killer second, the candidate word corresponding to the keyword may be in a bidding mode, and when the keyword is a customer name, the candidate word corresponding to the keyword may be a friend, and certainly, one or more alternative candidate words corresponding to the keyword may be used.
Preferably, the instant chat tool can periodically store the sensitive words preset by each client and the replacement candidate words corresponding to the sensitive words, when the same sensitive words are detected to appear in the instant chat text content of the client, the candidate words corresponding to the sensitive words can be automatically added into a monitoring word bank preset by a user, and when a replacement instruction is received, the replacement candidate words corresponding to target keywords (sensitive words) can be obtained from the monitoring word bank, so that the reusability of the sensitive words and the replacement candidate words is improved, and the convenience of the user in modifying the instant chat text content is also improved.
The method comprises the steps of determining keywords and replacement candidate words corresponding to the keywords aiming at a chat object, adding the keywords and the replacement candidate words corresponding to the keywords into a preset increase monitoring word bank, increasing the number of sensitive words and the number of the replacement candidate words in the monitoring word bank, and further updating the monitoring word bank in real time to improve the comprehensiveness of the monitoring word bank.
Fig. 3 schematically illustrates a schematic diagram of a structure for monitoring thesaurus updates, according to some embodiments of the present disclosure. Referring to fig. 3, the monitoring thesaurus update module 300 includes: a cancel module 310, a complete module 320, an instant chat text content input module 330, a add module 340, and a history target keyword display module 350.
The canceling module 310 may be configured to cancel an update operation on a monitored thesaurus, the completing module 320 may be configured to store the update operation on the monitored thesaurus, the instant chat text content input module 330 may be configured to input a text message in an instant chat process, or may be configured to transmit a text document, and the like, the adding module 340 may be configured to add a target keyword, and the history target keyword display module 350 may be configured to display a history target keyword, or may be configured to delete a displayed history target keyword.
The user can delete the historical target keywords as required, and can also immediately add new target keywords to the monitoring word stock, so that the monitoring word stock is immediately updated.
Fig. 4 schematically illustrates a flow of an instant chat text content matching process with a monitoring thesaurus according to some embodiments of the present disclosure. Referring to fig. 4, the process of matching the instant chat text content with the monitoring thesaurus may include the following steps:
in step S410, when it is detected that the monitoring word stock corresponding to the target keyword is the non-general monitoring word stock, generating a first control for adding the general monitoring word stock;
in step S420, in response to the click operation on the first control, the instant chat text content is matched with the general monitoring word stock and the non-general monitoring word stock.
The general monitoring thesaurus may refer to a monitoring thesaurus suitable for most chat objects, for example, the general monitoring thesaurus may be a monitoring thesaurus for correcting wrongly written characters, or a monitoring thesaurus for avoiding pernicious, violent, false content related, and the like, of course, the general monitoring thesaurus may also be a monitoring thesaurus suitable for most chat objects and containing contents in other aspects, which is not particularly limited in this embodiment.
The non-general monitoring lexicon may refer to a monitoring lexicon applicable to a specific chat object, for example, when the chat object is a colleague, the non-general monitoring lexicon may be a word including a foul personality, and when the chat object is a child, the non-general monitoring lexicon may be a word including a foul, and of course, the non-general monitoring lexicon may also be a monitoring lexicon applicable to other chat objects, which is not particularly limited in this embodiment.
For example, the user a may set a non-general monitoring thesaurus containing words of profanity and personality such as fool, white, horse fart and the like for the colleague B, or may set a general monitoring thesaurus containing words of complaints about companies such as a spam company and the like for corporate chat; in the process of chatting with colleagues, the universal monitoring word stock and the non-universal monitoring word stock can be used simultaneously to purify the instant chat environment of the company.
Aiming at different chat objects or chat occasions, a general monitoring word bank and a non-general monitoring word bank which contain different target keywords and replacement candidate words corresponding to the target keywords can be set; in the process of instant chat, the universal monitoring word stock and the non-universal monitoring word stock can be selected to be used for monitoring the instant chat text content at the same time, so that the effect of filtering the content with poor influence in the instant chat text content is improved, and the instant chat experience of a user is improved.
FIG. 5 schematically illustrates a structural diagram of a matching module for instant chat text content, in accordance with some embodiments of the present disclosure. Referring to fig. 5, the matching module 500 for the text content of the instant chat includes: the system comprises a cancellation module 510, an instant chat text content input module 520, a first control touch module 530 and a history target keyword display module 540.
The cancelling module 510 may be configured to cancel the touch operation on the first control; the completing module 520 may be used for inputting text messages in the process of instant chat, or transmitting text documents, etc. by the instant chat text content input module 520; the first control touch module 530 may be configured to match the instant chat text content with the non-generic monitoring word stock and the generic monitoring word stock at the same time; the historical target keyword presentation module 540 may be used to present target keywords and also to delete target keywords for presentation.
In the process of monitoring the real-time input of the instant chat text content, the non-universal monitoring word stock and the universal monitoring word stock are used for simultaneously monitoring the instant chat text content and replacing target keywords in the instant chat text content, so that the monitoring strength of the instant chat text content is improved.
FIG. 6 schematically illustrates a schematic of a flow of target keyword replacement, according to some embodiments of the present disclosure. Referring to fig. 6, the target keyword replacement may include the following steps:
in step S610, generating a second control for triggering the replacement instruction;
in step S620, in response to the triggering operation on the second control, a replacement candidate word corresponding to the identified target keyword is obtained, and the target keyword is replaced with the replacement candidate word, so as to obtain the replaced instant chat text content.
The second control may refer to a component having an interaction function, for example, the second control may be a button that can be touched or a window that can be clicked, and of course, the second control may also be another form of component having an interaction function, which is not limited in this embodiment.
The target keywords in the monitoring word stock and the default replacement candidate words corresponding to the target keywords can be bound, and when the target keywords appear in the content of the instant chat text, the monitoring word stock can automatically call the default replacement candidate words corresponding to the target keywords; after the user performs touch operation on the second control, the target keyword can be automatically replaced by the default replacement candidate word, one-key replacement of the target keyword is achieved, and replacement efficiency of the target keyword is improved.
Figure 7 schematically illustrates a structural diagram of an alternate module for instant chat text content, in accordance with some embodiments of the present disclosure. Referring to fig. 7, an alternative module 700 for instant chat text content includes: a return module 710, an instant chat text content input module 720, a second control module 730, and a system keyboard module 740.
Wherein the returning module 710 can be used for exiting the instant chat interface with the chat object; the instant chat text content input module 720 may be used to input text messages during an instant chat process, or may be used to transmit text documents, etc.; the second control module 730 may be used to confirm the replacement target keyword (trigger the replacement instruction); system keyboard module 740 can be used to spell instant chat text content.
For example, if a user a and a co-worker B input an instant chat text content in the process of instant chat, i.e. i feel that the co-worker C is a horseshoe essence, and a target keyword 'horseshoe essence' matching the instant chat text content exists in the universal monitoring word stock, the target keyword 'horseshoe essence' is identified and processed; furthermore, the rear end calls a default replacement candidate word "mildews" corresponding to "masopi", when touch operation of a user on the second control is detected, the target keyword "masopi" is immediately replaced by "mildews", so that replaced instant chat text content "I think that the colleague C is mildewed" is obtained, time and energy are not needed for the user to think to replace the "masopi" with other words which have the same meaning but are more prosperous, the replacement efficiency of the instant chat text content is improved, and the use experience of the user on the instant chat tool is also improved.
FIG. 8 schematically illustrates a schematic of another flow of target keyword replacement, according to some embodiments of the present disclosure. Referring to fig. 8, the target keyword replacement may include the following steps:
in step S810, when the identified target keyword is detected, obtaining a replacement candidate list corresponding to the target keyword in the preset monitoring word stock;
in step S820, in response to the selection operation on the candidate replacement list, a target candidate replacement word corresponding to the target keyword is determined, and the target keyword is replaced with the target candidate replacement word, so as to obtain a replaced instant chat text content.
The replacement candidate list may be a list for recording replacement candidate words corresponding to the target keyword, for example, the replacement candidate list may be a list for recording synonyms corresponding to the target keyword, or may also be a list for recording words with the same font as the target keyword, of course, the replacement candidate list may also be a list for recording other types of replacement candidate words corresponding to the target keyword, such as replacement candidate words with the same pronunciation as the target keyword, where there may be a plurality of replacement candidate words corresponding to the target keyword in the replacement candidate list, which is not particularly limited in this embodiment.
The target keywords and the alternative candidate lists corresponding to the target keywords can be displayed in an associated mode through establishing the association relationship between the target keywords and the alternative candidate lists corresponding to the target keywords, so that the alternative candidate lists corresponding to the target keywords can be displayed when the target keywords in the instant chat text content are detected, the target alternative candidate words corresponding to the target keywords are determined based on the selection operation of the user on the alternative candidate words in the alternative candidate lists, the target keywords are replaced by the target alternative candidate words, the autonomous selectivity of the user is improved, and the use experience of the user on the instant chat tool is further improved.
FIG. 9 schematically illustrates a structural schematic of another target keyword replacement, according to some embodiments of the present disclosure. Referring to fig. 9, the target keyword replacement module 900 includes: a cancellation module 910, an instant chat text content input module 920, a history replacement candidate word presentation module 930, and an addition module 940.
The canceling module 910 may be configured to cancel a replacement operation on a target keyword, and also may be configured to cancel adding a new replacement candidate word to the target keyword; the instant chat text content input module 920 may be used to input text messages during an instant chat process, or may be used to transmit text documents, etc.; the history replacement candidate word presentation module 930 may be configured to present a history replacement candidate word corresponding to the target keyword, and may also be configured to replace the target keyword with a selected target replacement candidate word; an adding module 940 may be used to add new replacement candidate words for the target keyword.
By establishing the incidence relation between the target keyword and the replacement candidate list corresponding to the target keyword, when the target keyword is monitored to exist in the instant chat text content, the replacement candidate list corresponding to the target keyword can be automatically displayed, and then a user can select the target replacement candidate word from the replacement candidate list to replace the target keyword, so that the target keyword after replacement can be obtained.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, in the present exemplary embodiment, a data processing apparatus is also provided. Referring to fig. 10, the data processing apparatus 1000 includes: a matching module 1010, an identification module 1020, a replacement module 1030, and a sending module 1040. Wherein: the matching module 1010 is used for monitoring instant chat text content input in real time and matching the instant chat text content with a monitoring word stock; an identification module 1020, configured to, if a target keyword included in the content of the instant chat text is matched in the monitoring thesaurus, perform identification processing on the target keyword to obtain an identified target keyword; a replacing module 1030, configured to obtain a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replace the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content; the sending module 1040 is configured to send the replaced instant chat text content in response to the sending operation.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the data processing apparatus 1000 includes a cancellation identifier module, where the cancellation identifier module is configured to perform cancellation identifier processing on the identified target keyword if a abandon replacement instruction is received, so as to obtain a restored instant chat text content; and responding to the sending operation, and sending the restored instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing solution, the data processing apparatus 1000 further includes a network monitoring module, where the network monitoring module is configured to detect the sending operation and start network monitoring on the sent instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the data processing apparatus 1000 further includes a monitoring word stock updating module, where the monitoring word stock updating module is configured to set a keyword and a candidate replacement word corresponding to the keyword based on a preset chat object; and adding the keywords and the replacement candidate words corresponding to the keywords into the monitoring word stock to update the monitoring word stock.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the matching module 1010 further includes a first control generating unit, where the first control generating unit is configured to generate a first control for adding the general monitoring thesaurus when it is detected that the monitoring thesaurus corresponding to the target keyword is the non-general monitoring thesaurus; and responding to the clicking operation of the first control, and matching the instant chat text content with the general monitoring word stock and the non-general monitoring word stock.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the replacing module 1030 further includes a second control generating unit, where the second control generating unit is configured to generate a second control for triggering the replacing instruction; and responding to the triggering operation of the second control, acquiring a replacement candidate word corresponding to the identified target keyword, and replacing the target keyword with the replacement candidate word to obtain the replaced instant chat text content.
In an exemplary embodiment of the present disclosure, based on the foregoing scheme, the replacing module 1030 further includes a selecting unit, where the selecting unit is configured to, when the identified target keyword is detected, obtain a replacement candidate list corresponding to the target keyword in the preset monitoring lexicon; and responding to the selection operation of the replacement candidate list, determining a target replacement candidate word corresponding to the target keyword, and replacing the target keyword with the target replacement candidate word to obtain the replaced instant chat text content.
The specific details of each module of the data processing apparatus have been described in detail in the corresponding data processing method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the data processing device are mentioned, this division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the data processing method is also provided.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1100 according to such an embodiment of the disclosure is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 11, electronic device 1100 is embodied in the form of a general purpose computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting different system components (including the memory unit 1120 and the processing unit 1110), and a display unit 1140.
Wherein the storage unit stores program code that is executable by the processing unit 1110 to cause the processing unit 1110 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of the present specification. For example, the processing unit 1110 may execute step S110 shown in fig. 1, monitor and acquire instant chat text content input in real time, and perform matching processing on the instant chat text content and the monitored word stock; step S120, if the target keywords contained in the instant chat text content are matched in the monitoring word stock, carrying out identification processing on the target keywords to obtain identified target keywords; step S130, obtaining a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content; step S140, responding to the sending operation, sending the replaced instant chat text content to complete the processing of the instant chat text content.
The storage unit 1120 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)1121 and/or a cache memory unit 1122, and may further include a read-only memory unit (ROM) 1123.
The storage unit 1120 may also include a program/utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any devices (e.g., router, modem, etc.) that enable the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 1150. Also, the electronic device 1100 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1160. As shown, the network adapter 1160 communicates with the other modules of the electronic device 1100 over the bus 1130. It should be appreciated that although not shown in FIG. 11, other hardware and/or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 12, a program product 1200 for implementing the above-described data processing method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A data processing method, comprising:
monitoring and acquiring instant chat text content input in real time, and matching the instant chat text content with a monitoring word stock;
if the target keywords contained in the instant chat text content are matched in the monitoring word stock, performing identification processing on the target keywords to obtain identified target keywords;
acquiring a replacement candidate word corresponding to the target keyword from the monitoring word stock, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content;
and responding to the sending operation, and sending the replaced instant chat text content to finish the processing of the instant chat text content.
2. The data processing method of claim 1, wherein the method further comprises:
if a abandon replacement instruction is received, carrying out label cancellation processing on the identified target keywords to obtain the restored instant chat text content;
and responding to the sending operation, and sending the restored instant chat text content.
3. A data processing method according to claim 1 or 2, characterized in that the method further comprises:
and starting network monitoring of the sent instant chat text content when the sending operation is detected.
4. The data processing method of claim 1, wherein the method further comprises:
setting a keyword and a replacement candidate word corresponding to the keyword based on a preset chat object;
and adding the keywords and the replacement candidate words corresponding to the keywords into the monitoring word stock to update the monitoring word stock.
5. The data processing method of claim 1, wherein the monitoring lexicon comprises a general monitoring lexicon and a non-general monitoring lexicon, and the monitoring and obtaining of the instant chat text content input in real time and matching the instant chat text content with the monitoring lexicon comprise:
when detecting that the monitoring word stock corresponding to the target keyword is the non-general monitoring word stock, generating a first control for increasing the general monitoring word stock;
and responding to the clicking operation of the first control, and matching the instant chat text content with the general monitoring word stock and the non-general monitoring word stock.
6. The data processing method of claim 1, wherein the obtaining of the replacement candidate word corresponding to the target keyword from the monitoring thesaurus, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content comprises:
generating a second control for triggering the replacement instruction;
and responding to the triggering operation of the second control, acquiring a replacement candidate word corresponding to the identified target keyword, and replacing the target keyword with the replacement candidate word to obtain the replaced instant chat text content.
7. The data processing method of claim 1, wherein the obtaining of the replacement candidate word corresponding to the target keyword from the monitoring thesaurus, and if a replacement instruction is received, replacing the identified target keyword with the replacement candidate word to obtain a replaced instant chat text content comprises:
when the identified target keyword is detected, acquiring a replacement candidate list corresponding to the target keyword in the preset monitoring word stock;
and responding to the selection operation of the replacement candidate list, determining a target replacement candidate word corresponding to the target keyword, and replacing the target keyword with the target replacement candidate word to obtain the replaced instant chat text content.
8. A data processing apparatus, comprising:
the matching module is used for monitoring the instant chat text content input in real time and matching the instant chat text content with the monitoring word stock;
the identification module is used for identifying the target keywords contained in the instant chat text content if the target keywords are matched with the monitoring word stock to obtain the identified target keywords;
the replacing module is used for acquiring a replacing candidate word corresponding to the target keyword from the monitoring word stock, and replacing the identified target keyword by the replacing candidate word if a replacing instruction is received to obtain a replaced instant chat text content;
and the sending module is used for responding to the sending operation and sending the replaced instant chat text content.
9. An electronic device, comprising:
a processor; and
a memory having stored thereon computer readable instructions which, when executed by the processor, implement a data processing method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the data processing method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110296842.6A CN113792135A (en) | 2021-03-19 | 2021-03-19 | Data processing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110296842.6A CN113792135A (en) | 2021-03-19 | 2021-03-19 | Data processing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113792135A true CN113792135A (en) | 2021-12-14 |
Family
ID=78876857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110296842.6A Pending CN113792135A (en) | 2021-03-19 | 2021-03-19 | Data processing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113792135A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114817447A (en) * | 2022-05-07 | 2022-07-29 | 北京有竹居网络技术有限公司 | Text processing method, device, storage medium, electronic equipment and system |
CN114911993A (en) * | 2022-05-31 | 2022-08-16 | 上海华客信息科技有限公司 | Customer marking method, system, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516915A (en) * | 2012-06-27 | 2014-01-15 | 百度在线网络技术(北京)有限公司 | Method, system and device for replacing sensitive words in call process of mobile terminal |
CN104317781A (en) * | 2014-11-14 | 2015-01-28 | 移康智能科技(上海)有限公司 | Sensitive word editor |
CN104504091A (en) * | 2014-12-26 | 2015-04-08 | 新疆卡尔罗媒体科技有限公司 | Uygur language sensitive word filtration system |
CN108563965A (en) * | 2018-03-29 | 2018-09-21 | 广东欧珀移动通信有限公司 | Character input method and device, computer readable storage medium, terminal |
CN110751950A (en) * | 2019-10-25 | 2020-02-04 | 武汉森哲地球空间信息技术有限公司 | Police conversation voice recognition method and system based on big data |
CN111400484A (en) * | 2020-03-20 | 2020-07-10 | 支付宝(杭州)信息技术有限公司 | Keyword extraction method and system |
-
2021
- 2021-03-19 CN CN202110296842.6A patent/CN113792135A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516915A (en) * | 2012-06-27 | 2014-01-15 | 百度在线网络技术(北京)有限公司 | Method, system and device for replacing sensitive words in call process of mobile terminal |
CN104317781A (en) * | 2014-11-14 | 2015-01-28 | 移康智能科技(上海)有限公司 | Sensitive word editor |
CN104504091A (en) * | 2014-12-26 | 2015-04-08 | 新疆卡尔罗媒体科技有限公司 | Uygur language sensitive word filtration system |
CN108563965A (en) * | 2018-03-29 | 2018-09-21 | 广东欧珀移动通信有限公司 | Character input method and device, computer readable storage medium, terminal |
CN110751950A (en) * | 2019-10-25 | 2020-02-04 | 武汉森哲地球空间信息技术有限公司 | Police conversation voice recognition method and system based on big data |
CN111400484A (en) * | 2020-03-20 | 2020-07-10 | 支付宝(杭州)信息技术有限公司 | Keyword extraction method and system |
Non-Patent Citations (1)
Title |
---|
傅明建;: "一种基于Java Web的敏感词过滤方法研究与实现", 智能计算机与应用, no. 04, 28 August 2017 (2017-08-28) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114817447A (en) * | 2022-05-07 | 2022-07-29 | 北京有竹居网络技术有限公司 | Text processing method, device, storage medium, electronic equipment and system |
CN114911993A (en) * | 2022-05-31 | 2022-08-16 | 上海华客信息科技有限公司 | Customer marking method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102313473B1 (en) | Provides command bundle suggestions for automated assistants | |
US9524291B2 (en) | Visual display of semantic information | |
US20220247700A1 (en) | Interactive chatbot for multi-way communication | |
US10679008B2 (en) | Knowledge base for analysis of text | |
KR102297394B1 (en) | Automated assistant invocation of appropriate agent | |
KR101781557B1 (en) | Method and system for facilitating text input | |
US10460029B2 (en) | Reply information recommendation method and apparatus | |
US10229108B2 (en) | System and method for adaptive spell checking | |
US10826856B2 (en) | Automated generation of prompts and analyses of user responses to the prompts to determine an entity for an action and perform one or more computing actions related to the action and the entity | |
KR20210150622A (en) | User-progammable automated assistant | |
CN109565461B (en) | Generating output for presentation in response to user interface input, wherein the input and/or output comprises chat language | |
US20220100961A1 (en) | Automatic out of scope transition for chatbot | |
US10019672B2 (en) | Generating responses to electronic communications with a question answering system | |
US11531821B2 (en) | Intent resolution for chatbot conversations with negation and coreferences | |
WO2002073331A2 (en) | Natural language context-sensitive and knowledge-based interaction environment for dynamic and flexible product, service and information search and presentation applications | |
US11651242B2 (en) | Generating answers to text input in an electronic communication tool with a question answering system | |
CN108073675B (en) | Autonomously providing search results for subsequent inclusion in a session assistant context | |
EP4252140A2 (en) | Out-of-domain data augmentation for natural language processing | |
CN110268472B (en) | Detection mechanism for automated dialog system | |
US20240135116A1 (en) | Data augmentation and batch balancing for training multi-lingual model | |
CN112153206A (en) | Contact person matching method and device, electronic equipment and storage medium | |
CN113792135A (en) | Data processing method and device, electronic equipment and storage medium | |
CN114981885A (en) | Alphanumeric sequence biasing for automatic speech recognition | |
EP2673687A2 (en) | Visual display of semantic information | |
WO2019035373A1 (en) | Information processing device, information processing method, and program |
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 |