WO2021147455A1 - 消息处理方法、装置及电子设备 - Google Patents

消息处理方法、装置及电子设备 Download PDF

Info

Publication number
WO2021147455A1
WO2021147455A1 PCT/CN2020/126435 CN2020126435W WO2021147455A1 WO 2021147455 A1 WO2021147455 A1 WO 2021147455A1 CN 2020126435 W CN2020126435 W CN 2020126435W WO 2021147455 A1 WO2021147455 A1 WO 2021147455A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
comment message
comment
message
sending
Prior art date
Application number
PCT/CN2020/126435
Other languages
English (en)
French (fr)
Inventor
江泽锐
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Priority to JP2022542651A priority Critical patent/JP7467644B2/ja
Publication of WO2021147455A1 publication Critical patent/WO2021147455A1/zh
Priority to US17/863,254 priority patent/US11936605B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/21Monitoring or handling of messages
    • H04L51/212Monitoring or handling of messages using filtering or selective blocking
    • 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/06Message adaptation to terminal or network requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Definitions

  • the present disclosure relates to the field of data processing technology, and in particular, to a message processing method, device, and electronic equipment.
  • the embodiments of the present disclosure provide a message processing method, device, and electronic device, which at least partially solve the problems existing in the prior art.
  • embodiments of the present disclosure provide a message processing method, including:
  • the preset type of detection includes at least one of vocabulary detection, risk account detection, and model detection.
  • the preset type of detection is risk account detection
  • the step of performing a preset type of detection on the comment message includes:
  • the real-time frequency is greater than the preset frequency, it is determined that the sending terminal is an abnormal terminal, and it is determined that the comment message has not passed the risk account detection.
  • the preset type of detection is vocabulary detection
  • the step of performing a preset type of detection on the comment message includes:
  • the preset type of detection is model detection
  • the step of performing a preset type of detection on the comment message includes:
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the step of performing a preset type of detection on the comment message includes:
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the step of performing a preset type of detection on the comment message includes:
  • the method further includes:
  • the step of sending the indication information that the comment message fails the detection to the sending terminal includes:
  • embodiments of the present disclosure provide a message processing device, including:
  • the obtaining module is used to obtain the comment message sent by the sending terminal
  • the detection module is used to perform a preset type of detection on the comment message
  • the detection module is used to:
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the detection module is used for:
  • embodiments of the present disclosure also provide an electronic device, which includes:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the message in the foregoing first aspect or any implementation manner of the first aspect. Approach.
  • the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions, and the computer instructions are used to make the computer execute the first aspect or the first aspect described above.
  • a message processing method in any implementation of one aspect.
  • the embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes a computing program stored on a non-transitory computer-readable storage medium.
  • the computer program includes program instructions. When executed, the computer is caused to execute the message processing method in the foregoing first aspect or any implementation manner of the first aspect.
  • the message processing solution in the embodiment of the present disclosure includes: obtaining a comment message sent by a sending terminal; performing a preset type of detection on the comment message; if the comment message passes the detection, sending the comment message to the receiving terminal, So that the receiving terminal displays the comment message; if the comment message fails the detection, the comment message is not sent to the receiving terminal.
  • a detection and screening strategy for comment messages is added, the number of comment messages is reduced, the message processing solution is optimized, and the user experience is improved.
  • FIG. 1 is a schematic flowchart of a message processing method provided by an embodiment of the disclosure
  • FIG. 2 is a schematic flowchart of another message processing method provided by an embodiment of the present disclosure.
  • FIG. 3 is a schematic flowchart of another message processing method provided by an embodiment of the disclosure.
  • FIG. 4 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the disclosure.
  • FIG. 5 is a schematic diagram of an electronic device provided by an embodiment of the disclosure.
  • the embodiment of the present disclosure provides a message processing method.
  • the message processing method provided in this embodiment can be executed by a computing device, and the computing device can be implemented as software, or as a combination of software and hardware, and the computing device can be integrated in a server, a terminal device, and the like.
  • a message processing method provided by an embodiment of the present disclosure includes:
  • the application body may be a server, which is used to implement the processing process of the comment message sent by at least one client with which the server interacts.
  • the comment message involved here refers to user-generated content (User Generated Content, UGC for short) in scenarios such as live broadcast platforms.
  • UGC User Generated Content
  • the client that can send comment messages as the sending terminal and the client that can receive comment messages as the receiving terminal.
  • the same client can also have the functions of sending and receiving comment messages at the same time, that is, the same client can be both a sending terminal and a receiving terminal.
  • the sending terminal generates a comment message according to the user's input operation, and sends the generated comment message to the server.
  • the sending terminal may also send the identification information of the sending terminal or the identity information such as the avatar and nickname of the user of the sending terminal at the same time.
  • a preset type of detection algorithm is preset in the server, which is used to perform a preset type of detection on the received comment message, so as to determine whether the received comment message can be output and displayed.
  • the preset type of detection may include at least two of vocabulary detection, risk account detection, and model detection.
  • the vocabulary detection can be to detect whether there are sensitive words contained in the preset vocabulary, such as swear words, illegal vocabulary, and politically incorrect vocabulary, among all the vocabularies of the comment message. If the detection of the preset type is vocabulary detection, in step S102, the detection of the preset type of the comment message may include:
  • the server pre-stores a first vocabulary set, and the first vocabulary set contains multiple keywords that cannot appear in the comment message, such as swear words, illegal vocabulary, etc. Traverse the vocabulary in the comment message, and if at least one keyword corresponding to the first vocabulary set appears, it is determined that the comment message has not passed the vocabulary detection. For example, it is determined that the forbidden keyword is ABC. If a comment message is "We very much support ABC", it is determined that the forbidden keyword "ABC" exists in the comment message, and the comment message fails the vocabulary detection.
  • the threshold of the number of occurrences of keywords can also be limited. Only when the number of occurrences of the forbidden words in the comment message is equal to or more than the threshold, it is determined that the comment message has not passed the vocabulary detection.
  • model detection can detect whether prohibited words are implied in all vocabularies of the comment message. Model detection is mainly aimed at the situation where a prohibited keyword is intermittently arranged to avoid vocabulary detection. If the preset type of detection is model detection, the above step S102, performing the preset type of detection on the comment message may include:
  • the word segmentation algorithm and combination algorithm are pre-stored in the server, and a set of forbidden keywords for model detection is defined as a second vocabulary set.
  • a set of forbidden keywords for model detection is defined as a second vocabulary set.
  • the preset number for combined vocabulary can be set to 2 to 10 word segmentation units to achieve higher detection accuracy and avoid possible misjudgments caused by too long screening phrases.
  • the above-mentioned risk detection is to detect whether the sending terminal or the user who sends the comment message is a normal account. This type of detection is mainly aimed at the situation of automatic comments by robots. If the preset type of detection is risk account detection, in step S102, performing the preset type of detection on the comment message may include:
  • the real-time frequency is greater than the preset frequency, it is determined that the sending terminal is an abnormal terminal, and it is determined that the comment message has not passed the risk account detection.
  • Count the comments of normal sending terminals or users sending comment messages which is defined as a preset frequency.
  • the real-time frequency of the sending terminal is detected. If the implementation frequency of the sending terminal is greater than the preset frequency, it is determined that the sending terminal is an abnormal terminal such as a robot, and it is determined that the comment message sent by the sending terminal has not passed the risk account detection.
  • the comment message of the abnormal terminal can be rejected, or every time a comment message of the abnormal terminal is received, it is directly determined as failing the detection. .
  • the server After the server performs a preset type of detection on the received comment message, if it is determined that the received comment message passes the detection, it may send the comment message to the receiving terminal for display. Conversely, if the comment message fails the detection, the comment message will not be sent to the receiving terminal, and the comment message will not be displayed on the receiving terminal.
  • the receiving terminal here includes all clients that belong to the same live broadcast platform as the sending terminal and can receive comment messages, and the receiving terminal may include the sending terminal.
  • the server performs a preset type of detection on the comment message sent by the sending terminal, so as to screen out the detected comment messages and send them to the receiving terminal for display.
  • comment messages that cannot be displayed can be effectively filtered, the total amount of comment messages is reduced, the message processing scheme is optimized, and the client user experience is improved.
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the step of performing a preset type of detection on the comment message includes:
  • the preset types of detection include vocabulary detection, risk account detection, and model detection. As shown in Figure 2, the detection process is:
  • the server receives the comment message sent by the sending terminal, and the comment message involved refers to user-generated content such as comments and barrage in scenarios such as a live broadcast platform.
  • the sending terminal generates a comment message according to the user's input operation, and sends the generated comment message to the server.
  • the sending terminal may also send the identification information of the sending terminal or the identity information such as the avatar and nickname of the user of the sending terminal at the same time.
  • a preset type of detection algorithm is preset in the server, which is used to perform a preset type of detection on the received comment message, so as to determine whether the received comment message can be output and displayed.
  • the preset types of detection include vocabulary detection, risk account detection, and model detection.
  • the vocabulary detection can detect whether there are sensitive words contained in the preset vocabulary, such as swear words, illegal vocabulary, and politically incorrect vocabulary, among all the vocabularies of the comment message.
  • the comment message passes the vocabulary check, the next step of checking the comment message is continued, that is, risk account checking. Conversely, if the comment message fails the vocabulary test, it is directly determined that the comment message has not passed the test and cannot be displayed, and the subsequent risk account test process will not continue.
  • the comment message passes the model test, it can be determined that the comment message has passed the overall test; in the process, the comment message can be sent to the receiving terminal, and the receiving terminal can receive the comment message and display it.
  • each preset type of detection is performed on the comment message in turn. After one type of detection is passed, the next type of detection is performed. If the current type of detection is not passed, the comment is directly determined. If the message fails the detection, the comment message is no longer sent to the receiving terminal, so as to effectively reduce the detection process.
  • the sequence of the above-mentioned three or more types of detection can be exchanged and is not limited.
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the step of performing a preset type of detection on the comment message includes:
  • the preset types of detection include vocabulary detection, risk account detection, and model detection. As shown in Figure 3, the detection process is:
  • the sending terminal generates a comment message according to the user's input operation, and sends the generated comment message to the server.
  • the sending terminal may also send the identification information of the sending terminal or the identity information such as the avatar and nickname of the user of the sending terminal at the same time.
  • S302 Perform vocabulary check, risk account check, and model check on the comment message at the same time;
  • a preset type of detection algorithm is preset in the server, which is used to perform a preset type of detection on the received comment message, so as to determine whether the received comment message can be output and displayed.
  • the preset type of detection may include vocabulary detection, risk account detection, and model detection, and the vocabulary detection, risk account and model detection are performed on the comment message at the same time, so as to effectively reduce the time-consuming detection.
  • each preset type of detection is performed on the comment message at the same time, and the comment message is sent to the receiving terminal only when all three types of detection pass, which greatly reduces the detection time and improves This improves the timeliness of client comments and improves user experience.
  • the method may further include:
  • the step of sending the indication information indicating that the comment message has failed the detection to the sending terminal includes:
  • the solution after the comment message fails the detection is limited. If the server determines that the comment message has not passed the detection, it will send indication information that is only visible or not displayed by the sending terminal to inform the user of the sending terminal that the result of the failure detection is known, so that the content of the comment message can be adjusted.
  • an embodiment of the present disclosure also provides a message processing apparatus 40, including:
  • the obtaining module 401 is used to obtain the comment message sent by the sending terminal;
  • the detection module 402 is configured to perform a preset type of detection on the comment message
  • the detection module 402 may be used to:
  • the preset type of detection includes at least two of vocabulary detection, risk account detection, and model detection;
  • the detection module 402 can be used for:
  • the device shown in FIG. 4 can correspondingly execute the content in the foregoing method embodiment.
  • an electronic device 50 which includes:
  • At least one processor and,
  • a memory communicatively connected with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the message processing method in the foregoing method embodiment.
  • the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the message processing method in the foregoing method embodiment.
  • the embodiments of the present disclosure also provide a computer program product, the computer program product includes a calculation program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, The computer executes the message processing method in the foregoing method embodiment.
  • FIG. 5 shows a schematic structural diagram of an electronic device 50 suitable for implementing the embodiments of the present disclosure.
  • Electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (e.g. Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 5 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 50 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which can be loaded into a random access device according to a program stored in a read-only memory (ROM) 502 or from a storage device 508.
  • the program in the memory (RAM) 503 executes various appropriate actions and processing.
  • various programs and data required for the operation of the electronic device 50 are also stored.
  • the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCD), speakers, An output device 507 such as a vibrator; a storage device 508 such as a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication device 509 may allow the electronic device 50 to perform wireless or wired communication with other devices to exchange data.
  • the figure shows the electronic device 50 having various devices, it should be understood that it is not required to implement or have all of the illustrated devices. It may be implemented alternatively or provided with more or fewer devices.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above.
  • Computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein.
  • This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the foregoing computer-readable medium carries one or more programs, and when the foregoing one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the foregoing method embodiments.
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device can implement the solutions provided by the aforementioned method embodiments.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure can be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”

Abstract

本发明提供一种消息处理方法、装置及电子设备,属于计算机应用技术领域,该方法包括:获取发送终端发送的评论消息;对所述评论消息进行预设类型的检测;若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。通过本发明的方案,增设了对评论消息的检测和筛选策略,降低了评论消息的总量,优化了消息处理方案,提高了用户体验。

Description

消息处理方法、装置及电子设备
本申请要求于2020年01月20日提交中国专利局、申请号为CN202010065743.2、申请名称为“消息处理方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及数据处理技术领域,尤其涉及一种消息处理方法、装置及电子设备。
背景技术
随着计算机技术的发展,在视频播放、直播平台等实时平台中,用户实时参与评论的情况已日益普及。随着参与的用户数量的增多,用户评论的数量也增多。现有针对评论消息的处理方案为,接收用户发送的评论消息,直接将所接收的全部消息均显示在观众客户端,这样就导致评论内容繁杂,评论内容的质量无法保证,影响用户体验。
可见,现有的消息处理方案存在缺乏控评策略,导致用户体验较差的技术问题。
发明内容
有鉴于此,本公开实施例提供一种消息处理方法、装置及电子设备,至少部分解决现有技术中存在的问题。
第一方面,本公开实施例提供了一种消息处理方法,包括:
获取发送终端发送的评论消息;
对所述评论消息进行预设类型的检测;
若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。
根据本公开实施例的一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少一种。
根据本公开实施例的一种具体实现方式,若所述预设类型的检测为风险账户检测;
所述对所述评论消息进行预设类型的检测的步骤,包括:
采集所述发送终端的发送评论消息的实时频率;
若所述实时频率大于预设频率,则确定所述发送终端为异常终端,确定所述评论消息未通过风险账户检测。
根据本公开实施例的一种具体实现方式,若所述预设类型的检测为词表检测;
所述对所述评论消息进行预设类型的检测的步骤,包括:
判断所述评论消息中是否存在第一词汇集合中的至少一个关键字;
若所述评论消息中存在所述第一词汇集合中的至少一个关键字,则确定所述评论消息未通过词表检测;
和/或,
若所述预设类型的检测为模型检测;
所述对所述评论消息进行预设类型的检测的步骤,包括:
对所述评论消息进行切词处理,判断预设数量的相邻词组内是否存在预设第二词汇集合中的至少一个关键字;
若所述评论消息中存在所述第二词汇集合中的至少一个关键字,则确定所述评论消息未通过模型检测。
根据本公开实施例的一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述对所述评论消息进行预设类型的检测的步骤,包括:
依次对所述评论消息进行每个类型的检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
根据本公开实施例的一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述对所述评论消息进行预设类型的检测的步骤,包括:
同时对所述评论消息进行全部类型的并行检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
根据本公开实施例的一种具体实现方式,所述对所述评论消息进行预设类型的检测的步骤之后,所述方法还包括:
若所述评论消息未通过检测,则向所述发送终端发送评论消息未通过检测的指示信息。
根据本公开实施例的一种具体实现方式,所述向所述发送终端发送评论消息未通过检测的指示信息的步骤,包括:
向所述发送终端发送评论消息未通过检测且仅自己可见的指示信息;或者,
向所述发送终端发送评论消息未通过检测不能显示的指示信息。
第二方面,本公开实施例提供了一种消息处理装置,包括:
获取模块,用于获取发送终端发送的评论消息;
检测模块,用于对所述评论消息进行预设类型的检测;
发送模块,用于:
若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。
根据本公开实施例的一种具体实现方式,所述检测模块用于:
依次对所述评论消息进行每个类型的检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
根据本公开实施例的一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述检测模块用于:
同时对所述评论消息进行全部类型的并行检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
第三方面,本公开实施例还提供了一种电子设备,该电子设备包括:
至少一个处理器;以及,
与该至少一个处理器通信连接的存储器;其中,
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行,以使该至少一个处理器能够执行前述第一方面或第一方面的任一实现方式中的消息处理方法。
第四方面,本公开实施例还提供了一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述第一方面或第一方面的任一实现方式中的消息处理方法。
第五方面,本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括 存储在非暂态计算机可读存储介质上的计算程序,该计算机程序包括程序指令,当该程序指令被计算机执行时,使该计算机执行前述第一方面或第一方面的任一实现方式中的消息处理方法。
本公开实施例中的消息处理方案,包括:获取发送终端发送的评论消息;对所述评论消息进行预设类型的检测;若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。通过本公开的方案,增设了对评论消息的检测和筛选策略,降低了评论消息的数量,优化了消息处理方案,提高了用户体验。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本公开实施例提供的一种消息处理方法的流程示意图;
图2为本公开实施例提供的另一种消息处理方法的流程示意图;
图3为本公开实施例提供的另一种消息处理方法的流程示意图;
图4为本公开实施例提供的一种消息处理装置的结构示意图;
图5为本公开实施例提供的电子设备的示意图。
具体实施方式
下面结合附图对本公开实施例进行详细描述。
以下通过特定的具体实例说明本公开的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本公开的其他优点与功效。显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。本公开还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本公开的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
需要说明的是,下文描述在所附权利要求书的范围内的实施例的各种方面。应显 而易见,本文中所描述的方面可体现于广泛多种形式中,且本文中所描述的任何特定结构及/或功能仅为说明性的。基于本公开,所属领域的技术人员应了解,本文中所描述的一个方面可与任何其它方面独立地实施,且可以各种方式组合这些方面中的两者或两者以上。举例来说,可使用本文中所阐述的任何数目个方面来实施设备及/或实践方法。另外,可使用除了本文中所阐述的方面中的一或多者之外的其它结构及/或功能性实施此设备及/或实践此方法。
还需要说明的是,以下实施例中所提供的图示仅以示意方式说明本公开的基本构想,图式中仅显示与本公开中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。
另外,在以下描述中,提供具体细节是为了便于透彻理解实例。然而,所属领域的技术人员将理解,可在没有这些特定细节的情况下实践所述方面。
本公开实施例提供一种消息处理方法。本实施例提供的消息处理方法可以由一计算装置来执行,该计算装置可以实现为软件,或者实现为软件和硬件的组合,该计算装置可以集成设置在服务器、终端设备等中。
参见图1,本公开实施例提供的一种消息处理方法,包括:
S101,获取发送终端发送的评论消息;
本实施例提供的消息处理方法,其应用主体可以为服务器,用于实现服务器对与其交互的至少一个客户端发送的评论消息的处理过程。此处所涉及的评论消息是指直播平台等场景中,评论、弹幕等用户产生内容(User Generated Content,简称UGC)。定义能够发送评论消息的客户端为发送终端,能够接收评论消息的客户端为接收终端。需要说明的是,同一客户端也可以同时具备发送评论消息和接收评论消息的功能,即同一客户端可以既为发送终端又为接收终端。
本实施例中,发送终端根据用户的输入操作,生成评论消息,并将所生成的评论消息发送至服务器。当然,发送终端在向服务器发送评论消息时,还可以同时发送该发送终端的标识信息,或者发送终端的用户的头像、昵称等身份信息。
S102,对所述评论消息进行预设类型的检测;
服务器内预置有预设类型的检测算法,用于对所接收到的评论消息进行预设类型的检测,以便确定所接收到的评论消息是否能够输出显示。根据评论筛选需求,可选的,所述预设类型的检测可以包括词表检测、风险账户检测和模型检测中的至少两种。
其中,词表检测可以为检测评论消息的全部词汇中,是否存在预设词表中包含的 敏感词汇,例如脏话、违法词汇、政治倾向不正确的词汇等。若所述预设类型的检测为词表检测,上述步骤S102所述的,对所述评论消息进行预设类型的检测,可以包括:
判断所述评论消息中是否存在第一词汇集合中的至少一个关键字;
若所述评论消息中存在所述第一词汇集合中的至少一个关键字,则确定所述评论消息未通过词表检测。
服务器预先存储有第一词汇集合,该第一词汇集合包含了不能出现在评论消息中的多个关键字,例如脏话、违法词汇等。遍历所述评论消息中的词汇,若出现对应第一词汇集合中的至少一个关键字,则确定该评论消息未通过词表检测。举例来说,确定禁用关键字为ABC,若某评论消息为“我们非常支持ABC……”,则确定该评论消息中存在禁用关键字“ABC”,该评论消息未通过词表检测。当然,在部分场景中,也可以限制关键字出现的次数阈值,仅在评论消息中的禁用词汇出现的次数等于或者多于次数阈值时,确定该评论消息未通过词表检测。
另外,模型检测为可以为检测评论消息的全部词汇中,是否隐含了禁用词汇,模型检测主要针对将一个禁用关键词间断性的排布以躲避词表检测的情况。若所述预设类型的检测为模型检测,上述步骤S102所述的,对所述评论消息进行预设类型的检测,可以包括:
对所述评论消息进行切词处理,判断预设数量的相邻词组内是否存在预设第二词汇集合中的至少一个关键字;
若所述评论消息中存在所述第二词汇集合中的至少一个关键字,则确定所述评论消息未通过模型检测。
服务器内预先存储有切词算法和组合算法,以及针对模型检测的禁用关键字集合,定义为第二词汇集合。在将评论消息进行切词处理后,再判断相邻多个词组内是否存在禁用词汇,若存在,则确定评论消息未通过模型检测。举例来说,确定禁用关键字为ABC,若某评论消息为“我们非常支持和A的B是C的……”,则利用模型检测算法,筛选出该评论消息中间隔存在的禁用关键字“ABC”,该评论消息未通过模型检测。
用于组合词汇的预设数量,可以设置为2至10个切词单位,以达到较高的检测精度,且避免过长的筛选词组可能造成的误判。
上述的风险检测则为检测发送评论消息的发送终端或者用户是否为正常账户,此类型检测主要是针对机器人自动评论的情况。若所述预设类型的检测为风险账户检测,上述步骤S102所述的,对所述评论消息进行预设类型的检测,可以包括:
采集所述发送终端的发送评论消息的实时频率;
若所述实时频率大于预设频率,则确定所述发送终端为异常终端,确定所述评论消息未通过风险账户检测。
统计正常发送终端或者用户发送评论消息的评论,定义为预设频率。在接收到发送终端发送的评论消息,检测该发送终端的实时频率。若该发送终端的实施频率大于预设频率,则确定该发送终端为机器人等异常终端,并确定该发送终端发送的评论消息未通过风险账户检测。
当然,为减少针对异常终端的检测操作,若确定某发送终端为异常终端,即可以拒收该异常终端的评论消息,或者在每接收到该异常终端的评论消息时,直接确定为未通过检测。
S103,若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
S104,若所述评论消息未通过检测,则不向接收终端发送所述评论消息。
服务器在针对所接收到的评论消息进行预设类型的检测后,若确定所接收的评论消息通过检测,则可以将该评论消息发送到接收终端进行显示。反之,若评论消息未通过检测,则不向接收终端发送评论消息,评论消息也就不会在接收终端进行显示。需要说明的是,此处的接收终端包括与发送终端属于同一直播平台的全部能够接收评论消息的客户端,接收终端可以包括发送终端。
上述本发明实施例提供的消息处理方法,服务器通过对发送终端发出的评论消息进行预设类型的检测,以便筛选出通过检测的评论消息发送到接收终端进行显示。这样,可以有效过滤到不能显示的评论消息,降低了评论消息的总量,优化了消息处理方案,提高了客户端用户体验。
根据本公开实施例的另一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述对所述评论消息进行预设类型的检测的步骤,包括:
依次对所述评论消息进行每个类型的检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
本实施方式中,设定预设类型的检测包括词表检测、风险账户检测和模型检测这三种。如图2所示,检测过程为:
S201,获取发送终端发送的评论消息;
服务器接收发送终端发送的评论消息,所涉及的评论消息是指直播平台等场景中,评论、弹幕等用户产生内容。
本实施例中,发送终端根据用户的输入操作,生成评论消息,并将所生成的评论消息发送至服务器。当然,发送终端在向服务器发送评论消息时,还可以同时发送该发送终端的标识信息,或者发送终端的用户的头像、昵称等身份信息。
S202,对所述评论消息进行词表检测;
服务器内预置有预设类型的检测算法,用于对所接收到的评论消息进行预设类型的检测,以便确定所接收到的评论消息是否能够输出显示。本实施方式中,所述预设类型的检测包括词表检测、风险账户检测和模型检测。
词表检测可以为检测评论消息的全部词汇中,是否存在预设词表中包含的敏感词汇,例如脏话、违法词汇、政治倾向不正确的词汇等。
S203,若所述评论消息通过词表检测,对所述评论消息进行风险账户检测;
若所述评论消息通过词表检测,则继续对该评论消息进行下一步检测操作,即风险账户检测。反之,若评论消息未通过词表检测,则直接认定该评论消息未通过检测,不能显示,也不再继续后续的风险账户检测流程。
S204,若所述评论消息通过风险账户检测,对所述评论消息进行模型检测;
若所述评论消息通过风险账户检测,则继续对该评论消息进行模型检测。反之,若评论消息未通过模型检测,则直接认定该评论消息未通过检测,不能显示,也不再继续后续的风险账户检测流程。
S205,若所述评论消息通过模型检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息。
若评论消息通过模型检测,则可以认定该评论消息通过了此次整体的检测;流程,则可以向接收终端发送出所述评论消息,接收终端即可以接收该评论消息,并进行显示。
本实施方式中,依次对所述评论消息进行每个预设类型的检测,在通过一个类型的检测之后,才会进行下一个类型的检测,若没有通过当前类型的检测,则直接确定该评论消息未通过检测,不再向接收终端发送该评论消息,以有效缩减检测流程。当然,上述三种或者多种类型的检测的先后顺序可以进行调换,不作限定。
根据本公开实施例的另一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述对所述评论消息进行预设类型的检测的步骤,包括:
同时对所述评论消息进行全部类型的并行检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
本实施方式中,设定预设类型的检测包括词表检测、风险账户检测和模型检测这三种。如图3所示,检测过程为:
S301,获取发送终端发送的评论消息;
发送终端根据用户的输入操作,生成评论消息,并将所生成的评论消息发送至服务器。
当然,发送终端在向服务器发送评论消息时,还可以同时发送该发送终端的标识信息,或者发送终端的用户的头像、昵称等身份信息。
S302,对所述评论消息同时进行词表检测、风险账户检测和模型检测;
服务器内预置有预设类型的检测算法,用于对所接收到的评论消息进行预设类型的检测,以便确定所接收到的评论消息是否能够输出显示。
可选的,所述预设类型的检测可以包括词表检测、风险账户检测和模型检测,且这对该评论消息同时进行词表检测、风险账户和模型检测,以有效减少检测耗时。
S303,若所述评论消息通过全部类型的检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息。
本实施方式中,同时对所述评论消息进行每个预设类型的检测,在三种类型的检测均通过的情况下才会向接收终端发送该评论消息,极大程度地缩减检测时间,提高了客户端评论的及时性,提高用户体验。
此外,在上述实施例的基础上,根据本公开实施例的一种具体实现方式,所述对所述评论消息进行预设类型的检测的步骤之后,所述方法还可以包括:
若所述评论消息未通过检测,则向所述发送终端发送评论消息未通过检测的指示信息。
进一步的,所述向所述发送终端发送评论消息未通过检测的指示信息的步骤,包括:
向所述发送终端发送评论消息未通过检测且仅自己可见的指示信息;或者,
向所述发送终端发送评论消息未通过检测不能显示的指示信息。
本实施方式中,对评论消息未通过检测之后的方案作了限定。服务器若确定评论消息未通过检测,则会在该发送终端发送仅自己可见或者不能显示的指示信息,以告知发送终端的用户知晓未通过检测的结果,以便对评论消息的内容做出调整。
与上面的方法实施例相对应,参见图4,本公开实施例还提供了一种消息处理装置40,包括:
获取模块401,用于获取发送终端发送的评论消息;
检测模块402,用于对所述评论消息进行预设类型的检测;
发送模块403,用于:
若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。
根据本公开实施例的一种具体实现方式,所述检测模块402可以用于:
依次对所述评论消息进行每个类型的检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
根据本公开实施例的另一种具体实现方式,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
所述检测模块402可以用于:
同时对所述评论消息进行全部类型的并行检测;
若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
图4所示装置可以对应的执行上述方法实施例中的内容,本实施例未详细描述的部分,参照上述方法实施例中记载的内容,在此不再赘述。
参见图5,本公开实施例还提供了一种电子设备50,该电子设备包括:
至少一个处理器;以及,
与该至少一个处理器通信连接的存储器;其中,
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行,以使该至少一个处理器能够执行前述方法实施例中的消息处理方法。
本公开实施例还提供了一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述方法实施例中的消息处理方法。
本公开实施例还提供了一种计算机程序产品,该计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,该计算机程序包括程序指令,当该程序指令被计算机执行时,使该计算机执行前述方法实施例中的的消息处理方法。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备50的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备50可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有电子设备50操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备50与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种装置的电子设备50,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以 被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备能够实现上述方法实施例提供的方案。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备能够实现上述方法实施例提供的方案。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (13)

  1. 一种消息处理方法,其特征在于,包括:
    获取发送终端发送的评论消息;
    对所述评论消息进行预设类型的检测;
    若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
    若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。
  2. 根据权利要求1所述的方法,其特征在于,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少一种。
  3. 根据权利要求2所述的方法,其特征在于,若所述预设类型的检测为风险账户检测;
    所述对所述评论消息进行预设类型的检测的步骤,包括:
    采集所述发送终端的发送评论消息的实时频率;
    若所述实时频率大于预设频率,则确定所述发送终端为异常终端,确定所述评论消息未通过风险账户检测。
  4. 根据权利要求2或4所述的方法,其特征在于,若所述预设类型的检测为词表检测;
    所述对所述评论消息进行预设类型的检测的步骤,包括:
    判断所述评论消息中是否存在第一词汇集合中的至少一个关键字;
    若所述评论消息中存在所述第一词汇集合中的至少一个关键字,则确定所述评论消息未通过词表检测。
  5. 根据权利要求2至4中任一项所述的方法,其特征在于,若所述预设类型的检测为模型检测;
    所述对所述评论消息进行预设类型的检测的步骤,包括:
    对所述评论消息进行切词处理,判断预设数量的相邻词组内是否存在预设第二词汇集合中的至少一个关键字;
    若所述评论消息中存在所述第二词汇集合中的至少一个关键字,则确定所述评论消息未通过模型检测。
  6. 根据权利要求2至5中任一项所述的方法,其特征在于,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
    所述对所述评论消息进行预设类型的检测的步骤,包括:
    依次对所述评论消息进行每个类型的检测;
    若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
    若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
  7. 根据权利要求2至6中任一项所述的方法,其特征在于,所述预设类型的检测包括词表检测、风险账户检测和模型检测中的至少两种;
    所述对所述评论消息进行预设类型的检测的步骤,包括:
    同时对所述评论消息进行全部类型的并行检测;
    若所述评论消息通过全部类型的检测,则确定所述评论消息通过检测;
    若所述评论消息未通过全部类型的检测,则确定所述评论消息未通过检测。
  8. 根据权利要求7所述的方法,其特征在于,所述对所述评论消息进行预设类型的检测的步骤之后,所述方法还包括:
    若所述评论消息未通过检测,则向所述发送终端发送评论消息未通过检测的指示信息。
  9. 根据权利要求7或8所述的方法,其特征在于,所述向所述发送终端发送评论消息未通过检测的指示信息的步骤,包括:
    向所述发送终端发送评论消息未通过检测且仅自己可见的指示信息;或者,
    向所述发送终端发送评论消息未通过检测不能显示的指示信息。
  10. 一种消息处理装置,其特征在于,包括:
    获取模块,用于获取发送终端发送的评论消息;
    检测模块,用于对所述评论消息进行预设类型的检测;
    发送模块,用于:
    若所述评论消息通过检测,则向接收终端发送所述评论消息,以使所述接收终端显示所述评论消息;
    若所述评论消息未通过检测,则不向所述接收终端发送所述评论消息。
  11. 一种电子设备,其特征在于,所述电子设备包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行前述权利要求1-9中任一项所述的消息处理方法。
  12. 一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质存储计算机指令,该计算机指令用于使该计算机执行前述权利要求1-9中任一项所述的消息处理方法。
  13. 一种计算机程序产品,计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,计算机程序包括程序指令,当该程序指令被计算机执行时,使该计算机执行前述权利要求1-9中任一项所述的控件设置方法。
PCT/CN2020/126435 2020-01-20 2020-11-04 消息处理方法、装置及电子设备 WO2021147455A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2022542651A JP7467644B2 (ja) 2020-01-20 2020-11-04 メッセージ処理方法、装置及び電子機器
US17/863,254 US11936605B2 (en) 2020-01-20 2022-07-12 Message processing method, apparatus and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010065743.2 2020-01-20
CN202010065743.2A CN111327913B (zh) 2020-01-20 2020-01-20 消息处理方法、装置及电子设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/863,254 Continuation US11936605B2 (en) 2020-01-20 2022-07-12 Message processing method, apparatus and electronic device

Publications (1)

Publication Number Publication Date
WO2021147455A1 true WO2021147455A1 (zh) 2021-07-29

Family

ID=71170954

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/126435 WO2021147455A1 (zh) 2020-01-20 2020-11-04 消息处理方法、装置及电子设备

Country Status (4)

Country Link
US (1) US11936605B2 (zh)
JP (1) JP7467644B2 (zh)
CN (1) CN111327913B (zh)
WO (1) WO2021147455A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327913B (zh) 2020-01-20 2021-07-20 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备
CN112153407B (zh) * 2020-09-27 2021-10-26 北京达佳互联信息技术有限公司 直播间数据互动方法、相关装置及设备
CN112203103B (zh) * 2020-09-28 2023-05-02 北京字节跳动网络技术有限公司 消息处理方法、装置、电子设备及计算机可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164484A1 (en) * 2007-12-21 2009-06-25 Yahoo! Inc. Comment Filters for Real-Time Multimedia Broadcast Sessions
CN107832276A (zh) * 2017-10-19 2018-03-23 广东欧珀移动通信有限公司 评论处理方法及设备
CN109271768A (zh) * 2018-10-26 2019-01-25 Oppo广东移动通信有限公司 发布信息管理方法、装置、存储介质及终端
CN109977403A (zh) * 2019-03-18 2019-07-05 北京金堤科技有限公司 恶意评论信息识别方法及装置
CN110020057A (zh) * 2017-12-29 2019-07-16 中国移动通信集团陕西有限公司 一种垃圾评论信息识别方法及装置
CN110209795A (zh) * 2018-06-11 2019-09-06 腾讯科技(深圳)有限公司 评论识别方法、装置、计算机可读存储介质和计算机设备
CN111327913A (zh) * 2020-01-20 2020-06-23 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02288960A (ja) * 1989-02-27 1990-11-28 Hitachi Ltd 文書作成支援方法及びそのシステム
JP2002117135A (ja) 2000-08-02 2002-04-19 Masunaga Sogo Keikaku:Kk ウェブサイトセキュリティシステム
US7496628B2 (en) * 2003-02-25 2009-02-24 Susquehanna International Group, Llp Electronic message filter
US20070174045A1 (en) * 2006-01-25 2007-07-26 International Business Machines Corporation Automatic acronym expansion using pop-ups
JP4500285B2 (ja) 2006-03-02 2010-07-14 ヤフー株式会社 スパム除去方法
JP2008276355A (ja) 2007-04-26 2008-11-13 Kenji Matsumoto 関連情報表示システム
US9271129B2 (en) * 2008-08-05 2016-02-23 HeyWire, Inc. Mobile messaging hub enabling enterprise office telephone numbers
US20100083112A1 (en) * 2008-09-23 2010-04-01 International Business Machines Corporation Managing virtual universe avatar behavior ratings
US20110040576A1 (en) * 2009-08-11 2011-02-17 Microsoft Corporation Converting arbitrary text to formal medical code
US8353035B1 (en) * 2009-12-08 2013-01-08 Symantec Corporation Systems and methods for creating text signatures for identifying spam messages
EP2354967A1 (en) * 2010-01-29 2011-08-10 British Telecommunications public limited company Semantic textual analysis
JP2013088832A (ja) * 2011-10-13 2013-05-13 Sony Corp 情報処理装置、情報処理方法、および、プログラム
JP5775508B2 (ja) 2012-11-30 2015-09-09 株式会社Nttドコモ スパムアカウント抽出装置及びスパムアカウント抽出方法
WO2014128727A2 (en) * 2013-02-25 2014-08-28 Keypoint Technologies India Pvt. Ltd. Systems and methods for facilitating spotting of words and phrases
KR101524971B1 (ko) * 2014-02-11 2015-06-02 숭실대학교산학협력단 개인 성향 예측 방법 및 그 장치
US9485528B2 (en) * 2014-04-28 2016-11-01 Rovi Guides, Inc. Methods and systems for preventing users from terminating services based on use
US10216803B2 (en) * 2015-11-16 2019-02-26 Facebook, Inc. Ranking and filtering comments based on author and content
US9858336B2 (en) * 2016-01-05 2018-01-02 International Business Machines Corporation Readability awareness in natural language processing systems
JP2018022321A (ja) * 2016-08-03 2018-02-08 株式会社Candee サーバ、プログラム
US10572597B2 (en) * 2017-11-30 2020-02-25 International Business Machines Corporation Resolution of acronyms in question answering systems
US10928996B2 (en) * 2018-12-28 2021-02-23 Brandon Ly Baunach Systems, devices and methods for electronic determination and communication of location information
US20210133243A1 (en) * 2019-11-05 2021-05-06 Shaphron Technolabs Private Limited System for appreciating and ranking users in a social networking system and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090164484A1 (en) * 2007-12-21 2009-06-25 Yahoo! Inc. Comment Filters for Real-Time Multimedia Broadcast Sessions
CN107832276A (zh) * 2017-10-19 2018-03-23 广东欧珀移动通信有限公司 评论处理方法及设备
CN110020057A (zh) * 2017-12-29 2019-07-16 中国移动通信集团陕西有限公司 一种垃圾评论信息识别方法及装置
CN110209795A (zh) * 2018-06-11 2019-09-06 腾讯科技(深圳)有限公司 评论识别方法、装置、计算机可读存储介质和计算机设备
CN109271768A (zh) * 2018-10-26 2019-01-25 Oppo广东移动通信有限公司 发布信息管理方法、装置、存储介质及终端
CN109977403A (zh) * 2019-03-18 2019-07-05 北京金堤科技有限公司 恶意评论信息识别方法及装置
CN111327913A (zh) * 2020-01-20 2020-06-23 北京字节跳动网络技术有限公司 消息处理方法、装置及电子设备

Also Published As

Publication number Publication date
JP7467644B2 (ja) 2024-04-15
US20220353227A1 (en) 2022-11-03
CN111327913B (zh) 2021-07-20
US11936605B2 (en) 2024-03-19
JP2023510833A (ja) 2023-03-15
CN111327913A (zh) 2020-06-23

Similar Documents

Publication Publication Date Title
WO2021147455A1 (zh) 消息处理方法、装置及电子设备
WO2020181914A1 (zh) 手机号换绑验证方法、装置、设备及存储介质
WO2022095303A1 (zh) 用于车辆交互的方法、计算设备和计算机存储介质
CN110942031B (zh) 一种游戏画面异常的检测方法、装置、电子设备及存储介质
WO2021057595A1 (zh) 信息推送方法、装置、电子设备和计算机可读介质
US9154491B1 (en) Trust modeling
WO2021068634A1 (zh) 页面跳转方法、装置、电子设备及计算机可读存储介质
CN107404418B (zh) 互联网产品测试方法、装置、设备及存储介质
CN109618216B (zh) 显示视频加载状态标识的方法、装置、设备及存储介质
US20230124149A1 (en) Method and apparatus for establishing multimedia call, and electronic device
WO2021088794A1 (zh) 控件设置方法、装置、电子设备及交互系统
CN111722935A (zh) 页面端与原生端的通信方法、装置、电子设备及可读介质
CN110059064B (zh) 日志文件处理方法、装置和计算机可读存储介质
CN109634702B (zh) 一种信息提示的方法、装置、电子设备及可读介质
CN109491908B (zh) 页面检测方法、装置、电子设备和存储介质
US20240007591A1 (en) Method and apparatus of interaction video connection, electronic device, and storage medium
CN110674050B (zh) 内存越界检测方法、装置、电子设备及计算机存储介质
WO2023134559A1 (zh) 评论提示方法、装置、电子设备、存储介质和程序产品
CN114244700A (zh) 端口处理方法及装置、电子设备和计算机可读存储介质
CN111367590A (zh) 中断事件处理方法及其装置
CN116389819A (zh) 一种录制方法、装置、存储介质及电子设备
CN111367555B (zh) 断言的方法、装置、电子设备及计算机可读介质
CN116527284B (zh) 数据存储安全性确定方法、装置、设备及存储介质
CN109445873B (zh) 显示设置界面的方法和装置
CN114218556A (zh) 接入验证方法、装置、设备、计算机可读存储介质及产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20915719

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022542651

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20915719

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06-02-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20915719

Country of ref document: EP

Kind code of ref document: A1