[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112069377A - Session information data processing method, apparatus, computer equipment and storage medium - Google Patents

Session information data processing method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN112069377A
CN112069377A CN201910495142.2A CN201910495142A CN112069377A CN 112069377 A CN112069377 A CN 112069377A CN 201910495142 A CN201910495142 A CN 201910495142A CN 112069377 A CN112069377 A CN 112069377A
Authority
CN
China
Prior art keywords
session
processed
group
processing model
reserved
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910495142.2A
Other languages
Chinese (zh)
Inventor
苏平
颜铃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Technology
Original Assignee
Chongqing University of Technology
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 Chongqing University of Technology filed Critical Chongqing University of Technology
Priority to CN201910495142.2A priority Critical patent/CN112069377A/en
Publication of CN112069377A publication Critical patent/CN112069377A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/906Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • 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/216Handling conversation history, e.g. grouping of messages in sessions or threads

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of instant messaging, and provides a session information data processing method, a session information data processing device, a computer device and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining session data to be processed from a terminal, wherein the session data to be processed comprises attribute information of each session to be processed, inputting the session data to be processed into a session processing model, automatically classifying the sessions to be processed by the session processing model according to the attribute information of each session to be processed, obtaining a reserved session group and a deleted session group after classification, and finally deleting the sessions to be processed, of which the reservation time exceeds a preset time value, in the deleted session group by reserving the sessions to be processed in the reserved session group. A series of data processing processes of the device realize automatic clustering of sessions to be processed, and quickly realize automatic management of session interfaces and automatic cleaning of the sessions, so that the user experience is effectively improved, and the use efficiency of a chat tool is improved.

Description

会话信息数据处理方法、装置、计算机设备和存储介质Session information data processing method, apparatus, computer equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种会话信息数据处理方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, and in particular, to a method, apparatus, computer device and storage medium for processing session information data.

背景技术Background technique

随着计算机的不断发展,计算机给人们的生活带来了极大便利的同时,也潜移默化地改变着人们的生活交流习惯,人们越来越习惯借助于应用在终端上的即时通信工具进行交流,比如QQ、微信等聊天工具。终端用户在使用聊天工具时,通常存在一个联系人界面、会话界面、聊天界面,用户通过从联系人界面上选择联系人,产生该用户与该联系人进行交流的聊天界面,当用户退出聊天界面后,会话界面上会显示用户与该联系人的会话记录,下一次进行会话时,通过点击该会话记录,直接进入与该联系人的聊天界面。会话界面就是用于保存用户各种会话记录,提供一个快速聊天、查看消息的界面。传统的技术中,用户可自行选择需要删除的会话记录或通过清空会话列表的方式对会话列表进行管理,以及提高聊天工具的使用效率。With the continuous development of computers, while computers have brought great convenience to people's lives, they have also subtly changed people's living and communication habits. Such as QQ, WeChat and other chat tools. When a terminal user uses a chat tool, there is usually a contact interface, a conversation interface, and a chat interface. The user selects a contact from the contact interface to generate a chat interface for the user to communicate with the contact. When the user exits the chat interface After that, the conversation record of the user and the contact will be displayed on the conversation interface, and the next time a conversation is conducted, the chat interface with the contact can be directly entered by clicking on the conversation record. The conversation interface is used to save various conversation records of the user, and provide an interface for quick chatting and viewing messages. In the traditional technology, the user can choose the conversation record to be deleted or manage the conversation list by clearing the conversation list, and improve the usage efficiency of the chat tool.

然而,随着大数据、信息化时代的到来,会话界面上不仅仅包括各个用户之间会话记录,还包括各种信息的发送或接收记录,比如公众号推送记录、群消息会话记录、验证消息记录、联系人会话记录、新闻推送记录等。各种繁杂的信息记录显示在会话界面上,导致会话界面杂乱,现有的技术仍然需要用户手动对会话进行清理,导致用户体验不高,影响聊天工具的使用率。However, with the advent of the era of big data and informatization, the conversation interface includes not only the conversation records between various users, but also the sending or receiving records of various information, such as public account push records, group message session records, and verification messages. records, contact session records, news feed records, etc. Various complex information records are displayed on the conversation interface, resulting in a cluttered conversation interface. The existing technology still requires the user to manually clean up the conversation, resulting in poor user experience and affecting the usage rate of chat tools.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种会话信息数据处理方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a session information data processing method, apparatus, computer equipment and storage medium for the above technical problems.

一种会话信息数据处理方法,所述方法包括:A session information data processing method, the method comprising:

从终端获取待处理会话数据,所述待处理会话数据包括待处理会话的属性信息;其中,所述属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种;Acquire session data to be processed from the terminal, where the session data to be processed includes attribute information of the session to be processed; wherein the attribute information includes at least one of a session identifier, a session content attribute, a session category attribute, and a session object attribute;

将所述待处理会话数据输入会话处理模型中,以使所述会话处理模型根据所述属性信息对所述待处理会话进行分类,分类后得到保留会话组和删除会话组;Inputting the session data to be processed into a session processing model, so that the session processing model classifies the session to be processed according to the attribute information, and obtains a reserved session group and a deleted session group after the classification;

对所述终端发送会话处理指令,以使所述终端根据所述会话处理指令对所述保留会话组对应的待处理会话进行保留;对所述删除会话组对应的保留时间超过预设时间值的待处理会话进行删除。Send a session processing instruction to the terminal, so that the terminal reserves the pending session corresponding to the reserved session group according to the session processing instruction; Pending sessions are deleted.

在一个实施例中,所述会话处理模型的训练步骤包括:In one embodiment, the training step of the session processing model includes:

获取会话训练样本集,所述会话训练样本集中的会话训练样本携带有保留标记或删除标记;obtaining a session training sample set, where the session training samples in the session training sample set carry a reserved mark or a deletion mark;

将所述会话训练样本集输入初始会话处理模型中进行分类处理,分类处理后得到初始删除会话组和初始保留会话组;Inputting the session training sample set into the initial session processing model for classification processing, and obtaining an initial deletion session group and an initial reserved session group after the classification processing;

将所述初始保留会话组中的会话与所述保留标记对应的会话训练样本进行对比计算,得到第一相似度;Comparing the sessions in the initial reserved session group with the session training samples corresponding to the reserved marks to obtain a first similarity;

将所述初始删除会话组中的会话与所述删除标记对应的会话训练样本进行对比计算,得到第二相似度;Comparing and calculating the session in the initial deletion session group and the session training sample corresponding to the deletion mark to obtain a second similarity;

根据所述第一相似度和第二相似度对所述初始会话处理模型进行参数调整,直到所述初始会话处理模型满足收敛条件,得到所述会话处理模型。The parameters of the initial session processing model are adjusted according to the first similarity and the second similarity, until the initial session processing model satisfies the convergence condition, and the session processing model is obtained.

在一个实施例中,所述方法还包括:In one embodiment, the method further includes:

对所述会话处理模型进行在线学习;online learning of the conversation processing model;

通过学习实时更新所述会话处理模型,以使所述会话处理模型的分类处理策略符合当前用户的使用喜好。The session processing model is updated in real time through learning, so that the classification processing strategy of the session processing model conforms to the usage preference of the current user.

在一个实施例中,所述对所述会话处理模型进行在线学习的步骤包括:In one embodiment, the step of online learning of the conversation processing model includes:

获取历史操作数据;其中,所述历史操作数据包括当前操作对应的保留标识或删除标识、所述当前操作对应的当前会话的属性信息;Acquiring historical operation data; wherein, the historical operation data includes the retention identifier or deletion identifier corresponding to the current operation, and the attribute information of the current session corresponding to the current operation;

根据所述当前会话的属性信息、所述保留标识或删除标识对所述会话处理模型进行在线学习;online learning of the session processing model according to the attribute information of the current session, the reserved identifier or the deletion identifier;

以使所述会话处理模型通过判断所述待处理会话与所述当前会话的属性信息是否属于相同类型,若是属于相同类型,则将所述待处理会话分类到所述当前会话对应的所述保留会话组或删除会话组。So that the session processing model judges whether the attribute information of the session to be processed and the current session belong to the same type, and if they belong to the same type, the session to be processed is classified into the reservation corresponding to the current session. Session group or delete session group.

在一个实施例中,所述方法还包括:In one embodiment, the method further includes:

获取待分享对象信息;Get information about the object to be shared;

根据所述删除会话组和所述保留会话组生成待分享信息;generating information to be shared according to the deleted conversation group and the reserved conversation group;

根据所述待分享对象信息将待分享信息发送至待分享对象。The to-be-shared information is sent to the to-be-shared object according to the to-be-shared object information.

在一个实施例中,所述方法还包括:In one embodiment, the method further includes:

获取优先级信息;Get priority information;

根据会话标识和优先级信息对所述待处理会话进行排序;sorting the pending sessions according to session identification and priority information;

按照所述排序的顺序对所述待处理会话进行处理。The pending sessions are processed in the sorted order.

一种会话信息数据处理装置,所述装置包括:An apparatus for processing session information data, the apparatus comprising:

会话数据获取模块,用于从终端获取待处理会话数据,所述待处理会话数据包括待处理会话的属性信息;其中,所述属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中至少一种;A session data acquisition module, configured to acquire session data to be processed from the terminal, where the session data to be processed includes attribute information of the session to be processed; wherein the attribute information includes a session identifier, a session content attribute, a session category attribute, and a session object attribute at least one of them;

会话分类模块,用于将所述待处理会话数据输入会话处理模型中,以使所述会话处理模型根据所述属性信息对所述待处理会话进行分类,分类后得到保留会话组和删除会话组;A session classification module, configured to input the session data to be processed into a session processing model, so that the session processing model classifies the session to be processed according to the attribute information, and obtains a reserved session group and a deleted session group after classification ;

会话处理模块,用于对所述终端发送会话处理指令,以使所述终端根据所述会话处理指令对所述保留会话组对应的待处理会话进行保留;对所述删除会话组对应的保留时间超过预设时间值的待处理会话进行删除。a session processing module, configured to send a session processing instruction to the terminal, so that the terminal reserves the to-be-processed session corresponding to the reserved session group according to the session processing instruction; Pending sessions older than the preset time value are deleted.

在一个实施例中,所述装置所述装置还包括会话处理模型训练模块,所述会话处理模型训练模块包括:In one embodiment, the apparatus further includes a session processing model training module, and the session processing model training module includes:

样本获取单元,用于获取会话训练样本集,所述会话训练样本集中的会话训练样本携带有保留标记或删除标记;a sample acquisition unit, configured to acquire a session training sample set, where the session training samples in the session training sample set carry a retention mark or a deletion mark;

样本预处理单元,用于将所述会话训练样本集输入初始会话处理模型中进行分类处理,分类处理后得到初始删除会话组和初始保留会话组;a sample preprocessing unit, used for inputting the session training sample set into an initial session processing model for classification processing, and obtaining an initial deletion session group and an initial reserved session group after the classification processing;

第一相似度计算单元,用于将所述初始保留会话组中的会话与所述保留标记对应的会话训练样本进行对比计算,得到第一相似度;a first similarity calculation unit, configured to compare and calculate the session in the initial reserved session group and the session training sample corresponding to the reserved mark to obtain a first similarity;

第二相似度计算单元,用于将所述初始删除会话组中的会话与所述删除标记对应的会话训练样本进行对比计算,得到第二相似度;A second similarity calculation unit, configured to compare and calculate the session in the initially deleted session group and the session training sample corresponding to the deletion mark to obtain a second similarity;

参数调整单元,用于根据所述第一相似度和第二相似度对所述初始会话处理模型进行参数调整,直到所述初始会话处理模型满足收敛条件,得到所述会话处理模型。A parameter adjustment unit, configured to adjust parameters of the initial session processing model according to the first similarity and the second similarity, until the initial session processing model satisfies a convergence condition, and obtain the session processing model.

一种计算机设备,包括存储器和处理器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述各个方法实施例中的步骤。A computer device includes a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the steps in each of the foregoing method embodiments are implemented.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述各个方法实施例中的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in each of the foregoing method embodiments.

上述会话信息数据处理方法、装置、计算机设备和存储介质,通过从终端获取待处理会话数据,待处理会话数据包括每一条待处理会话的属性信息,然后将待处理会话数据输入会话处理模型中,会话处理模型根据各个待处理会话的属性信息对所述待处理会话进行自动分类,分类后得到保留会话组和删除会话组,最后通过对所述保留会话组中的待处理会话进行保留,对所述删除会话组中的保留时间超过预设时间值的待处理会话进行删除,由于会话处理模型是预先训练好的模型,能够对会话数据进行计算处理,实现对待处理会话进行自动聚类,从而通过本案的一系列的数据处理,整体上快速地实现对会话界面的自动化管理和对会话的自动清理,减少会话清理时间,从而有效提高用户体验度,提高聊天工具的使用效率。The above session information data processing method, device, computer equipment and storage medium, by acquiring the session data to be processed from the terminal, the session data to be processed includes the attribute information of each session to be processed, and then the session data to be processed is input into the session processing model, The session processing model automatically classifies the to-be-processed sessions according to the attribute information of each to-be-processed session. In the above-mentioned deletion session group, the to-be-processed sessions whose retention time exceeds the preset time value are deleted. Since the session processing model is a pre-trained model, the session data can be calculated and processed to realize automatic clustering of the to-be-processed sessions. The series of data processing in this case can quickly realize the automatic management of the conversation interface and the automatic clearing of the conversation as a whole, reducing the time for clearing the conversation, thereby effectively improving the user experience and improving the use efficiency of the chat tool.

附图说明Description of drawings

图1为一个实施例会话信息数据处理方法的应用场景图;1 is an application scenario diagram of a method for processing session information data according to an embodiment;

图2为一个实施例中会话信息数据处理方法的流程示意图;2 is a schematic flowchart of a method for processing session information data in one embodiment;

图3为一个实施例中会话处理模型的训练步骤的流程示意图;3 is a schematic flowchart of training steps of a session processing model in one embodiment;

图4为又一个实施例中会话信息数据处理方法的流程示意图;4 is a schematic flowchart of a method for processing session information data in yet another embodiment;

图5为另一个实施例中会话信息数据处理方法的流程示意图;5 is a schematic flowchart of a method for processing session information data in another embodiment;

图6为一个实施例中会话信息数据处理装置的结构框图;6 is a structural block diagram of an apparatus for processing session information data in one embodiment;

图7为一个实施例中会话信息数据处理装置的结构框图;7 is a structural block diagram of an apparatus for processing session information data in one embodiment;

图8为一个实施例中计算机设备的内部结构图。FIG. 8 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请提供的会话信息数据处理方法,可以应用于如图1所示的应用环境中。图1为一个实施例中会话信息数据处理方法运行的应用环境图。如图1所示,该应用环境包括终端110和服务器120。终端110和服务器120之间通过网络进行通信,通信网络可以是无线或者有线通信网络,例如IP网络、蜂窝移动通信网络等,其中终端和服务器的个数不限。The session information data processing method provided by this application can be applied to the application environment shown in FIG. 1 . FIG. 1 is an application environment diagram of the operation of the session information data processing method in one embodiment. As shown in FIG. 1 , the application environment includes a terminal 110 and a server 120 . Communication between the terminal 110 and the server 120 is performed through a network, and the communication network may be a wireless or wired communication network, such as an IP network, a cellular mobile communication network, etc., wherein the number of terminals and servers is not limited.

其中,终端110可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。服务器120通过从终端110获取待处理会话数据,待处理会话数据包括待处理会话的属性信息;服务器120将待处理会话数据输入会话处理模型中,以使会话处理模型根据属性信息对待处理会话进行分类,分类后得到保留会话组和删除会话组;服务器120对保留会话组中的待处理会话进行保留;服务器120对删除会话组中的保留时间超过预设时间值的待处理会话进行删除。由于会话处理模型是预先训练好的模型,能够对会话数据进行计算处理,实现对待处理会话进行自动聚类,从而通过本案的一系列的数据处理,整体上快速地实现对会话界面的自动化管理和对会话的自动清理,减少会话清理时间,从而有效提高用户体验。Wherein, the terminal 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The server 120 can be implemented by an independent server or a server cluster composed of multiple servers. The server 120 obtains the session data to be processed from the terminal 110, and the session data to be processed includes attribute information of the session to be processed; the server 120 inputs the session data to be processed into the session processing model, so that the session processing model classifies the session to be processed according to the attribute information , after classification, a reserved session group and a deleted session group are obtained; the server 120 retains the pending sessions in the retained session group; the server 120 deletes the pending sessions in the deleted session group whose retention time exceeds a preset time value. Since the session processing model is a pre-trained model, it can calculate and process session data and realize automatic clustering of the sessions to be processed, so that through a series of data processing in this case, the overall automatic management of the session interface can be quickly realized. The automatic clearing of the session reduces the session clearing time, thereby effectively improving the user experience.

在一个实施例中,如图2所示,提供了一种会话信息数据处理方法,以该方法应用于图1中的服务器120为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2 , a method for processing session information data is provided, and the method is applied to the server 120 in FIG. 1 as an example for description, including the following steps:

步骤210,从终端获取待处理会话数据,待处理会话数据包括待处理会话的属性信息;其中,属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种。Step 210: Obtain session data to be processed from the terminal, where the to-be-processed session data includes attribute information of the to-be-processed session; wherein the attribute information includes at least one of a session identifier, a session content attribute, a session category attribute, and a session object attribute.

具体地,服务器从终端获取待处理会话数据。待处理会话数据是指会话相关的数据,也就是终端上的即时通讯工具的会话界面上显示的每一条会话对应的属性信息。属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种。Specifically, the server obtains the session data to be processed from the terminal. The session data to be processed refers to session-related data, that is, attribute information corresponding to each session displayed on the session interface of the instant messaging tool on the terminal. The attribute information includes at least one of a session identifier, a session content attribute, a session type attribute, and a session object attribute.

进一步的,会话标识是指每一条会话的标识,可以是每个具体会话的会话名称,比如用户A与用户B进行聊天,在用户A的即时通信界面上会显示以用户B为会话名称的会话,其中用户B为会话名称也就是该会话的会话标识;比如用户A在一个聊天群C里聊天,即时通信界面上会显示以C为会话名称的会话,其中C为会话名称也就是该会话的会话标识。会话类别属性是指用于区别会话类型的属性信息,比如,会话类型包括公众号推送记录、群消息、验证消息记录、联系人会话、新闻推送记录中的至少一种。会话内容属性是指用于区别相同会话类型中不同会话内容的属性信息,比如,新闻推送记录这一会话类型可以包括不同内容的新闻,比如实时新闻、娱乐新闻、社会新闻。会话对象属性是用于区分即时通信工具上不同的用户。Further, the session ID refers to the ID of each session, which can be the session name of each specific session. For example, when user A chats with user B, the session with user B as the session name will be displayed on the instant messaging interface of user A. , where user B is the session name, that is, the session identifier of the session; for example, when user A chats in a chat group C, the session with C as the session name will be displayed on the instant messaging interface, where C is the session name, which is the session name. Session ID. The session category attribute refers to attribute information used to distinguish session types. For example, the session type includes at least one of official account push records, group messages, verification message records, contact sessions, and news push records. The session content attribute refers to attribute information used to distinguish different session contents in the same session type. For example, the session type of news feed record may include news of different contents, such as real-time news, entertainment news, and social news. Session object properties are used to distinguish different users on instant messaging tools.

步骤220,将待处理会话数据输入会话处理模型中,以使会话处理模型根据属性信息对待处理会话进行分类,分类后得到保留会话组和删除会话组。Step 220: Input the session data to be processed into the session processing model, so that the session processing model classifies the sessions to be processed according to the attribute information, and obtains the reserved session group and the deleted session group after the classification.

其中,会话处理模型是基于卷积神经网络(Convolutional Neural Networks,CNN)所形成的分类模型。具体地,服务器通过会话处理模型计算获取到的待处理会话数据,确定对待处理会话的分类策略,将待处理会话分为保留会话组和删除会话组两个部分。保留会话组和删除会话组是指一定范围内的会话集合。其中,保留会话组用于表示对该组内的会话进行保留,删除会话组用于表示对该组内的会话进行删除。Among them, the conversation processing model is a classification model formed based on Convolutional Neural Networks (CNN). Specifically, the server calculates the to-be-processed session data obtained through the session processing model, determines a classification strategy for the to-be-processed session, and divides the to-be-processed session into two parts: a reserved session group and a deleted session group. Retain Session Groups and Delete Session Groups refer to a collection of sessions within a certain range. The reserved session group is used to indicate that the sessions in the group are reserved, and the deletion of the session group is used to indicate that the sessions in the group are deleted.

步骤230,对终端发送会话处理指令,以使终端根据会话处理指令对保留会话组对应的待处理会话进行保留;对删除会话组对应的保留时间超过预设时间值的待处理会话进行删除。Step 230: Send a session processing instruction to the terminal, so that the terminal retains the pending session corresponding to the reserved session group according to the session processing instruction; delete the pending session whose retention time corresponding to the deleted session group exceeds a preset time value.

具体地,服务器根据分类得到的保留会话组和删除会话组对终端发送会话处理指令。会话处理指令用于指示终端对即时通信界面上的会话进行清理。具体地,终端根据会话处理指令对保留会话组中的待处理会话进行保留,服务器对删除会会话组中的保留时间超过预设时间值的待处理会话进行删除。其中,对于在删除会话组中的待处理会话可以有预设时间值的保留期,也就是保留一定时间后再进行删除。保留期可根据不同待处理会话的属性信息确定不同预设时间值。比如,验证消息记录可以设为保留24小时,新闻推送记录可以设为保留36小时,联系人可以设为保留一周等。Specifically, the server sends a session processing instruction to the terminal according to the reserved session group and the deleted session group obtained by classification. The session processing instruction is used to instruct the terminal to clear the session on the instant messaging interface. Specifically, the terminal reserves the to-be-processed sessions in the reserved session group according to the session processing instruction, and the server deletes the to-be-processed sessions in the deletion session group whose retention time exceeds a preset time value. Wherein, there may be a retention period of a preset time value for the to-be-processed sessions in the deletion session group, that is, they are retained for a certain period of time before deletion. The retention period can be determined with different preset time values according to attribute information of different sessions to be processed. For example, verification message records can be set to be kept for 24 hours, news feed records can be set to be kept for 36 hours, contacts can be set to be kept for a week, etc.

上述会话信息数据处理方法,通过实时获取待处理会话数据,并对待处理会话数据的一系列的数据处理,实时地对即时通信工具上生成新的待处理会话进行分类,对分类后的待处理会话的进行保留和删除处理,整体上快速地实现对会话界面的自动化管理和对会话的自动清理,减少会话清理时间,从而有效提高用户体验。The above session information data processing method, by acquiring the session data to be processed in real time, and processing a series of data processing of the session data to be processed, the new session to be processed generated on the instant messaging tool is classified in real time, and the classified session to be processed is classified in real time. It can retain and delete the session interface quickly as a whole, and automatically manage the session interface and automatically clean up the session, reduce the session cleaning time, and effectively improve the user experience.

在一个实施例中,如图3所示,对会话处理模型的训练步骤包括:In one embodiment, as shown in Figure 3, the training steps of the session processing model include:

步骤241,获取会话训练样本集,会话训练样本集中的会话训练样本携带有保留标记或删除标记。In step 241, a session training sample set is acquired, and the session training samples in the session training sample set carry a reserved mark or a deletion mark.

具体地,会话训练样本是用于训练会话处理模型的数据,数据包括会话训练样本的属性信息。训练的目的在于,使得训练后的会话处理模型能够准确快速地对输入的待处理会话进行分类处理,准确地输出分类结果。每一个会话训练样本中携带有保留标记或删除标记。Specifically, the session training samples are data used to train the session processing model, and the data includes attribute information of the session training samples. The purpose of the training is to enable the trained session processing model to accurately and quickly classify the input session to be processed, and to output the classification result accurately. Each session training sample carries a retention mark or deletion mark.

步骤242,将会话训练样本集输入初始会话处理模型中进行分类处理,分类处理后得到初始删除会话组和初始保留会话组。Step 242: Input the session training sample set into the initial session processing model for classification processing, and obtain an initial deleted session group and an initial reserved session group after the classification processing.

具体地,初始会话处理模型能够根据会话训练样本的属性信息对会话训练样本进行分类。也就是将会话训练样本集中的会话训练样本分类到为初始删除会话组或初始保留会话组。Specifically, the initial session processing model can classify the session training samples according to the attribute information of the session training samples. That is, the session training samples in the session training sample set are classified into the initial deletion session group or the initial reservation session group.

步骤243,将初始保留会话组中的会话与保留标记对应的会话训练样本进行对比计算,得到第一相似度。Step 243: Comparing the sessions in the initial reserved session group with the session training samples corresponding to the reserved marks to obtain a first similarity.

具体地,服务器将初始保留会话组中的会话与保留标记对应的会话训练样本进行对比计算,得到第一相似度。第一相似度用于反映分类到初始保留会话组中的会话与保留标记对应的会话训练样本的相似程度,可以通过对比计算两个会话的属性信息,计算两个会话的相似程度。Specifically, the server compares and calculates the session in the initial reserved session group with the session training sample corresponding to the reserved mark, to obtain the first similarity. The first similarity is used to reflect the similarity between the sessions classified into the initial reserved session group and the session training samples corresponding to the reserved marks. The similarity of the two sessions can be calculated by comparing and calculating the attribute information of the two sessions.

步骤244,将初始删除会话组中的会话与删除标记对应的会话训练样本进行对比计算,得到第二相似度。Step 244, compare and calculate the session in the initial deletion session group and the session training sample corresponding to the deletion mark to obtain a second similarity.

具体地,服务器将初始删除会话组中的会话与删除标记对应的会话训练样本进行对比计算,得到第二相似度。第二相似度用于反映分类到初始删除会话组中的会话与删除标记对应的会话训练样本的相似程度。在一个实施例中,可以通过对比计算两个会话的属性信息,计算两个会话的相似程度。Specifically, the server compares and calculates the session in the initially deleted session group with the session training sample corresponding to the deletion mark, to obtain the second similarity. The second degree of similarity is used to reflect the degree of similarity between the sessions classified into the initially deleted session group and the session training samples corresponding to the deletion marks. In one embodiment, the similarity of the two sessions may be calculated by comparing and calculating the attribute information of the two sessions.

步骤245,根据第一相似度和第二相似度对初始会话处理模型进行参数调整,直到初始会话处理模型满足收敛条件,得到会话处理模型。Step 245: Adjust parameters of the initial session processing model according to the first similarity and the second similarity, until the initial session processing model satisfies the convergence condition, and obtain the session processing model.

具体地,服务器根据第一相似度和第二相似度对初始会话处理模型进行参数调整,直到满足收敛条件,收敛条件可以是对会话的属性信息的相似度设置设置阀值,当相似度达到阀值时,满足收敛条件。Specifically, the server adjusts the parameters of the initial session processing model according to the first similarity and the second similarity until a convergence condition is met. The convergence condition may be setting a threshold for the similarity of the attribute information of the session. When the similarity reaches the threshold value, the convergence condition is satisfied.

在本实施例中,通过获取会话训练样本集,将会话训练样本集输入会话处理模型中进行训练,让会话处理模型能够准确的对会话进行分类处理,提高数据处理的准确性和有效性。In this embodiment, by acquiring the session training sample set and inputting the session training sample set into the session processing model for training, the session processing model can accurately classify and process the session, thereby improving the accuracy and effectiveness of data processing.

在一个实施例中,如图4所示,提供了一种会话信息数据处理方法,方法还包括:In one embodiment, as shown in FIG. 4, a method for processing session information data is provided, and the method further includes:

步骤250,对会话处理模型进行在线学习。Step 250, online learning is performed on the conversation processing model.

步骤260,通过学习实时更新会话处理模型,以使会话处理模型的分类处理策略符合当前用户的使用喜好。Step 260 , update the session processing model in real time by learning, so that the classification processing strategy of the session processing model conforms to the usage preference of the current user.

在本实施例中,服务器对会话处理模型进行在线学习,通过学习实时更新会话处理模型,让会话处理模型能够实时学习当前用户的操作会话处理习惯更新后的会话处理模型的分类处理策略符合当前用户的使用喜好。In this embodiment, the server learns the session processing model online, and updates the session processing model in real time by learning, so that the session processing model can learn the operation session processing habits of the current user in real time. The classification processing strategy of the updated session processing model conforms to the current user's usage preferences.

在一个实施例中,如图5所示,步骤250包括:In one embodiment, as shown in Figure 5, step 250 includes:

步骤251,获取历史操作数据。Step 251, obtaining historical operation data.

其中,历史操作数据包括当前操作对应的保留标识或删除标识、当前操作对应的当前会话的属性信息。Wherein, the historical operation data includes the reservation identifier or deletion identifier corresponding to the current operation, and attribute information of the current session corresponding to the current operation.

步骤252,根据所当前会话的属性信息、保留标识或删除标识对会话处理模型进行在线学习。Step 252: Perform online learning on the session processing model according to the attribute information of the current session, the reserved identifier or the deleted identifier.

步骤253,以使会话处理模型通过判断待处理会话与当前会话的属性信息是否属于相同类型,若是属于相同类型,则将待处理会话分类到当前会话对应的保留会话组或删除会话组。Step 253, so that the session processing model judges whether the attribute information of the to-be-processed session and the current session belong to the same type.

具体地,服务器从终端获取历史操作数据,历史操作数据是指当前用户通过点击操作对会话进行管理的历史数据,比如,删除、保留、置顶、关注、不关注,查看、忽略等。历史操作数据包括当前做操作对应的保留标识或删除标识以及当前操作对应的当前会话的属性信息。其中,服务器中存储有操作标识映射表,标识映射表中存储着历史操作数据中的各种操作对应一个保留标识或删除标识,比如,“删除”操作对应删除标识,“保留”操作对应保留标识,“置顶”、“关注”、“查看”等操作对应的保留标识,“不关注”、“忽略”等操作对应的删除标识。Specifically, the server obtains historical operation data from the terminal, and the historical operation data refers to the historical data that the current user manages the session through click operations, such as delete, retain, stick to the top, follow, ignore, view, ignore, etc. The historical operation data includes the retention flag or deletion flag corresponding to the current operation and the attribute information of the current session corresponding to the current operation. Among them, the server stores an operation identification mapping table, and the identification mapping table stores various operations in the historical operation data corresponding to a reserved identification or deletion identification. , the reserved flags corresponding to operations such as "Top", "Follow", and "View", and the deletion flags corresponding to operations such as "Don't Follow" and "Ignore".

具体地,服务器根据当前会话的属性信息、当前会话对应的保留标识或删除标识对会话处理模型进行在线学习,以使会话处理模型通过判断待处理会话与当前会话的属性信息是否属于相同类型,若是属于相同类型,则将待处理会话分类到当前会话对应的保留会话组或删除会话组。Specifically, the server performs online learning on the session processing model according to the attribute information of the current session and the corresponding reservation or deletion identifier of the current session, so that the session processing model can judge whether the attribute information of the to-be-processed session and the current session belong to the same type. If they belong to the same type, the pending sessions are classified into the reserved session group or the deleted session group corresponding to the current session.

在本实施例中,通过获取当前用户的历史操作数据对会话处理模型进行在线学习,让会话处理模型学习当前操作对应的当前会话的属性信息的特征和当前会话的操作方式,会话处理模型在下次对待处理会话进行分类处理时,会参照历史操作方式,综合判断将待处理会话分类至保留会话组还是删除会话组。由于是根据每个用户的历史操作数据进行在线学习,能够针对不同用户训练不同的会话处理模型,为用户提供个性化的会话处理凡方案,从而提高用户体验度。In this embodiment, the session processing model is learned online by acquiring the historical operation data of the current user, so that the session processing model learns the characteristics of the attribute information of the current session corresponding to the current operation and the operation mode of the current session. When classifying the to-be-processed session, it will refer to the historical operation mode to comprehensively judge whether to classify the to-be-processed session into the reserved session group or the deleted session group. Since the online learning is based on the historical operation data of each user, different session processing models can be trained for different users, providing users with personalized session processing solutions, thereby improving user experience.

在一个实施例中,提供一种会话信息数据处理方法,方法还包括:获取待分享对象信息;根据删除会话组和保留会话组生成待分享信息;根据待分享对象信息将待分享信息发送至待分享对象。In one embodiment, a method for processing session information data is provided, the method further comprising: acquiring information on objects to be shared; generating information to be shared according to the deleted session group and the retained session group; Who to share with.

具体地,服务器从终端获取待分享对象信息,根据待分享对象信息确定待分享对象。服务器根据会话处理模型对待处理会话数据分类处理得到的删除会话组和保留会话组生成待分享信息,并将待分享信息发送至待分享对象。其中待分享信息用于分享当前用户的会话界面上对会话的清理方式,也就是,当前用户对具有何种属性信息的会话进行删除或保留。Specifically, the server acquires the object information to be shared from the terminal, and determines the object to be shared according to the object information to be shared. The server generates information to be shared according to the deleted session group and the retained session group obtained by classifying the session data to be processed according to the session processing model, and sends the information to be shared to the object to be shared. The to-be-shared information is used to share the session cleaning method on the session interface of the current user, that is, the session with which attribute information the current user deletes or retains.

在本实施例中,通过根据删除会话组和保留会话组生成待分享消息,并发送至待分享对象,实现会话列表的分享和交互,实现用户与用户之间分享会话界面的管理方式,从而提高用户的体验度。In this embodiment, by generating a message to be shared according to the deleted conversation group and the reserved conversation group, and sending it to the object to be shared, the sharing and interaction of the conversation list is realized, and the management method of sharing the conversation interface between users is realized, thereby improving the user experience.

在一个实施例中,提供一种会话信息数据处理方法,方法还包括:获取优先级信息;根据会话标识和优先级信息对待处理会话进行排序;按照排序的顺序对待处理会话进行处理。In one embodiment, a method for processing session information data is provided, the method further includes: acquiring priority information; sorting the sessions to be processed according to the session identifier and the priority information; and processing the sessions to be processed according to the sorted order.

具体地,服务器从终端获取优先级信息,服务器根据待处理会话的会话标识和优先级信息,对待处理会话进行排序,并按照排序的顺序对待处理会话进行处理。其中,优先级信息可以是统计得到的会话生成时间,可以是统计得到的当前用户对待处理会话的点击次数。根据优先级信息和会话标识对待处理会话进行排序,按照排序顺序对待处理会话进行处理。在本实施例中,通过获取优先级信息,逐一对待处理会话进行处理,能够实现会话的优先处理,有效提高用户对会话的管理效率,从而提高用户的体验度。Specifically, the server obtains priority information from the terminal, and the server sorts the to-be-processed sessions according to the session identifier and priority information of the to-be-processed sessions, and processes the to-be-processed sessions according to the sorted order. The priority information may be the session generation time obtained by statistics, or the number of clicks of the session to be processed by the current user obtained by statistics. Sort the to-be-processed sessions according to the priority information and the session identifier, and process the to-be-processed sessions according to the sorting order. In this embodiment, by acquiring the priority information and processing the to-be-processed sessions one by one, the priority processing of the sessions can be implemented, and the user's management efficiency of the sessions can be effectively improved, thereby improving the user's experience.

应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-5 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIGS. 2-5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.

在一个实施例中,如图6所示,提供了一种会话信息数据处理装置,包括:会话数据获取模块310、会话分类模块320、会话处理模块330,其中:In one embodiment, as shown in FIG. 6, a session information data processing apparatus is provided, including: a session data acquisition module 310, a session classification module 320, and a session processing module 330, wherein:

会话数据获取模块310,用于从终端获取待处理会话数据,待处理会话数据包括待处理会话的属性信息;其中,属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种。The session data acquisition module 310 is configured to acquire session data to be processed from the terminal, the session data to be processed includes attribute information of the session to be processed; wherein the attribute information includes at least one of a session identifier, a session content attribute, a session category attribute, and a session object attribute. A sort of.

会话分类模块320,用于将待处理会话数据输入会话处理模型中,以使会话处理模型根据属性信息对待处理会话进行分类,分类后得到保留会话组和删除会话组。The session classification module 320 is configured to input the session data to be processed into the session processing model, so that the session processing model classifies the session to be processed according to the attribute information, and obtains the reserved session group and the deleted session group after classification.

会话处理模块330,用于对保留会话组中的待处理会话进行保留;还用于对删除会话组中的保留时间超过预设时间值的待处理会话进行删除。The session processing module 330 is configured to retain the to-be-processed sessions in the reserved session group; and is also configured to delete the to-be-processed sessions in the deletion session group whose retention time exceeds a preset time value.

在一个实施例中,所述装置还包括会话处理模型训练模块340,如图7示,会话处理模型训练模块340包括:In one embodiment, the apparatus further includes a session processing model training module 340, as shown in FIG. 7 , the session processing model training module 340 includes:

样本获取单元341,用于获取会话训练样本集,所述会话训练样本集中的会话训练样本携带有保留标记或删除标记。The sample obtaining unit 341 is configured to obtain a session training sample set, where the session training samples in the session training sample set carry a reserved mark or a deletion mark.

样本预处理单元342,用于将所述会话训练样本集输入初始会话处理模型中进行分类处理,分类处理后得到初始删除会话组和初始保留会话组。The sample preprocessing unit 342 is configured to input the session training sample set into an initial session processing model for classification processing, and obtain an initial deleted session group and an initial reserved session group after the classification processing.

第一相似度计算单元343,用于将所述初始保留会话组中的会话与所述保留标记对应的会话训练样本进行对比计算,得到第一相似度。The first similarity calculation unit 343 is configured to compare and calculate the session in the initial reserved session group and the session training sample corresponding to the reserved mark to obtain a first similarity.

第二相似度计算单元344,用于将所述初始删除会话组中的会话与所述删除标记对应的会话训练样本进行对比计算,得到第二相似度。The second similarity calculation unit 344 is configured to compare and calculate the session in the initially deleted session group and the session training sample corresponding to the deletion mark to obtain a second similarity.

参数调整单元345,用于根据所述第一相似度和第二相似度对所述初始会话处理模型进行参数调整,直到所述初始会话处理模型满足收敛条件,得到所述会话处理模型。A parameter adjustment unit 345, configured to adjust parameters of the initial session processing model according to the first similarity and the second similarity, until the initial session processing model satisfies a convergence condition, and obtain the session processing model.

在一个实施例中,所述装置还包括在线学习模块和模型更新模块,其中:In one embodiment, the apparatus further includes an online learning module and a model updating module, wherein:

所述在线学习模块,用于对会话处理模型进行在线学习。The online learning module is used for online learning of the conversation processing model.

所述更新单元模块,用于通过学习实时更新会话处理模型,以使会话处理模型的分类处理策略符合当前用户的使用喜好。The updating unit module is used to update the conversation processing model in real time through learning, so that the classification processing strategy of the conversation processing model conforms to the usage preference of the current user.

在一个实施例中,所述在线学习模块包括历史操作数据获取单元和在线学习单元,其中:In one embodiment, the online learning module includes a historical operation data acquisition unit and an online learning unit, wherein:

所述历史操作数据获取单元,用于获取历史操作数据;其中,历史操作数据包括当前操作对应的保留标识或删除标识、当前操作对应的当前会话的属性信息;The historical operation data acquisition unit is used to acquire historical operation data; wherein, the historical operation data includes the retention identifier or deletion identifier corresponding to the current operation, and the attribute information of the current session corresponding to the current operation;

所述在线学习单元,用于根据当前会话的属性信息、保留标识或删除标识对会话处理模型进行在线学习;以使会话处理模型通过判断待处理会话与当前会话的属性信息是否属于相同类型,若是属于相同类型,则将待处理会话分类到当前会话对应的保留会话组或删除会话组。The online learning unit is used for online learning of the session processing model according to the attribute information of the current session, the reservation mark or the deletion mark; so that the session processing model can judge whether the attribute information of the session to be processed and the current session belong to the same type, if If they belong to the same type, the pending sessions are classified into the reserved session group or the deleted session group corresponding to the current session.

在一个实施例中,所述装置还包括分享模块,所述分享模块用于获取待分享对象信息;还用于根据删除会话组和保留会话组生成待分享信息;还用于根据待分享对象信息将待分享信息发送至待分享对象。In one embodiment, the device further includes a sharing module, the sharing module is used to obtain the information of the object to be shared; it is also used to generate the information to be shared according to the deleted conversation group and the reserved conversation group; Send the information to be shared to the person to be shared.

在一个实施例中,所述装置还包括优先处理模块,所述优先处理模块用于获取优先级信息;还用于根据会话标识和优先级信息对待处理会话进行排序;还用于按照排序的顺序对待处理会话进行处理。In one embodiment, the apparatus further includes a priority processing module, the priority processing module is configured to obtain priority information; also used to sort the sessions to be processed according to the session identifier and the priority information; also used to sort the order Process the pending session.

关于会话信息数据处理装置的具体限定可以参见上文中对于会话信息数据处理装置的限定,在此不再赘述。上述会话信息数据处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the session information data processing apparatus, reference may be made to the above limitation on the session information data processing apparatus, which will not be repeated here. Each module in the above session information data processing apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储视频相关数据。如图8所示,网络接口旁的双向箭头用于表示该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种视频信息数据处理方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 8 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store video related data. As shown in FIG. 8 , the bidirectional arrow next to the network interface is used to indicate that the network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program implements a video information data processing method when executed by the processor.

本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机程序,该处理器执行计算机程序时实现以下步骤:从终端获取待处理会话数据,待处理会话数据包括待处理会话的属性信息;其中,属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种;将待处理会话数据输入会话处理模型中,以使会话处理模型根据属性信息对待处理会话进行分类,分类后得到保留会话组和删除会话组;对保留会话组中的待处理会话进行保留;对删除会话组中的保留时间超过预设时间值的待处理会话进行删除。In one embodiment, a computer device is provided, including a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program: acquiring session data to be processed from a terminal, and the session data to be processed includes Attribute information of the session to be processed; wherein the attribute information includes at least one of a session identifier, a session content attribute, a session category attribute, and a session object attribute; input the session data to be processed into the session processing model, so that the session processing model is based on the attribute The information is classified into the to-be-processed sessions, and the retained session group and the deleted session group are obtained after the classification; the pending sessions in the retained session group are retained; the pending sessions in the deleted session group whose retention time exceeds the preset time value are deleted.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:从终端获取待处理会话数据,待处理会话数据包括待处理会话的属性信息;其中,属性信息包括会话标识、会话内容属性、会话类别属性、会话对象属性中的至少一种;将待处理会话数据输入会话处理模型中,以使会话处理模型根据属性信息对待处理会话进行分类,分类后得到保留会话组和删除会话组;对保留会话组中的待处理会话进行保留;对删除会话组中的保留时间超过预设时间值的待处理会话进行删除。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: acquiring session data to be processed from a terminal, and the session data to be processed includes the session to be processed attribute information; wherein, the attribute information includes at least one of session identifier, session content attribute, session category attribute, and session object attribute; input the session data to be processed into the session processing model, so that the session processing model treats the processing according to the attribute information The sessions are classified, and after the classification, a reserved session group and a deleted session group are obtained; the pending sessions in the reserved session group are retained; and the pending sessions in the deleted session group whose retention time exceeds the preset time value are deleted.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)、DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A method of session information data processing, the method comprising:
acquiring session data to be processed from a terminal, wherein the session data to be processed comprises attribute information of a session to be processed; wherein, the attribute information comprises at least one of session identification, session content attribute, session category attribute and session object attribute;
inputting the session data to be processed into a session processing model so that the session processing model classifies the sessions to be processed according to the attribute information, and obtaining a reserved session group and a deleted session group after classification;
sending a session processing instruction to the terminal so that the terminal reserves the to-be-processed session corresponding to the reserved session group according to the session processing instruction; and deleting the to-be-processed session of which the retention time corresponding to the deleted session group exceeds a preset time value.
2. The method of claim 1, wherein the step of training the conversational processing model comprises:
acquiring a session training sample set, wherein session training samples in the session training sample set carry a reserved mark or a deleted mark;
inputting the session training sample set into an initial session processing model for classification processing, and obtaining an initial deleted session group and an initial reserved session group after the classification processing;
comparing and calculating the conversation in the initial reservation conversation group with the conversation training sample corresponding to the reservation label to obtain a first similarity;
comparing and calculating the session in the initial deletion session group with the session training sample corresponding to the deletion marker to obtain a second similarity;
and adjusting parameters of the initial session processing model according to the first similarity and the second similarity until the initial session processing model meets a convergence condition to obtain the session processing model.
3. The method of claim 1, further comprising:
performing online learning on the session processing model;
and updating the session processing model in real time through learning so as to enable the classification processing strategy of the session processing model to accord with the use preference of the current user.
4. The method of claim 3, wherein the step of learning the conversational processing model online comprises:
acquiring historical operation data; the historical operation data comprises a reserved identifier or a deleted identifier corresponding to the current operation and attribute information of the current session corresponding to the current operation;
performing online learning on the session processing model according to the attribute information of the current session and the reserved identifier or the deleted identifier;
and classifying the session to be processed into the reserved session group or the deleted session group corresponding to the current session by the session processing model by judging whether the attribute information of the session to be processed and the current session belong to the same type or not if the attribute information of the session to be processed and the current session belong to the same type.
5. The method of claim 1, further comprising:
acquiring information of an object to be shared;
generating information to be shared according to the deleted conversation group and the reserved conversation group;
and sending the information to be shared to the object to be shared according to the information of the object to be shared.
6. The method of claim 1, further comprising:
acquiring priority information;
sequencing the sessions to be processed according to the session identification and the priority information;
and processing the sessions to be processed according to the sorted sequence.
7. A session information data processing apparatus, characterized in that the apparatus comprises:
the session data acquisition module is used for acquiring session data to be processed from a terminal, wherein the session data to be processed comprises attribute information of a session to be processed; wherein, the attribute information comprises at least one of session identification, session content attribute, session category attribute and session object attribute;
the session classification module is used for inputting the session data to be processed into a session processing model so as to enable the session processing model to classify the session to be processed according to the attribute information, and a reserved session group and a deleted session group are obtained after classification;
the session processing module is used for sending a session processing instruction to the terminal so that the terminal reserves the to-be-processed session corresponding to the reserved session group according to the session processing instruction; and deleting the to-be-processed session of which the retention time corresponding to the deleted session group exceeds a preset time value.
8. The apparatus of claim 7, further comprising a session processing model training module, the session processing model training module comprising:
the system comprises a sample acquisition unit, a comparison unit and a comparison unit, wherein the sample acquisition unit is used for acquiring a session training sample set, and session training samples in the session training sample set carry a reserved mark or a deleted mark;
the sample preprocessing unit is used for inputting the session training sample set into an initial session processing model for classification processing, and an initial deleted session group and an initial reserved session group are obtained after the classification processing;
the first similarity calculation unit is used for comparing and calculating the conversation in the initial reserved conversation group with the conversation training sample corresponding to the reserved mark to obtain first similarity;
the second similarity calculation unit is used for comparing and calculating the sessions in the initial deletion session group with the session training samples corresponding to the deletion marks to obtain a second similarity;
and the parameter adjusting unit is used for adjusting the parameters of the initial session processing model according to the first similarity and the second similarity until the initial session processing model meets a convergence condition, so as to obtain the session processing model.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910495142.2A 2019-06-10 2019-06-10 Session information data processing method, apparatus, computer equipment and storage medium Pending CN112069377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910495142.2A CN112069377A (en) 2019-06-10 2019-06-10 Session information data processing method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910495142.2A CN112069377A (en) 2019-06-10 2019-06-10 Session information data processing method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112069377A true CN112069377A (en) 2020-12-11

Family

ID=73657897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910495142.2A Pending CN112069377A (en) 2019-06-10 2019-06-10 Session information data processing method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112069377A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022193977A1 (en) * 2021-03-16 2022-09-22 International Business Machines Corporation Dynamic determination of retention periods for digital content
CN115361433A (en) * 2022-07-27 2022-11-18 北京仁科互动网络技术有限公司 Session ending method and device based on blocking queue and electronic equipment
CN115633076A (en) * 2022-12-19 2023-01-20 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022193977A1 (en) * 2021-03-16 2022-09-22 International Business Machines Corporation Dynamic determination of retention periods for digital content
US20220300451A1 (en) * 2021-03-16 2022-09-22 International Business Machines Corporation Dynamic determination of retention periods for digital content
US11604760B2 (en) * 2021-03-16 2023-03-14 International Business Machines Corporation Dynamic determination of retention periods for digital content
GB2620514A (en) * 2021-03-16 2024-01-10 Ibm Dynamic determination of retention periods for digital content
GB2620514B (en) * 2021-03-16 2024-05-29 Ibm Dynamic determination of retention periods for digital content
CN115361433A (en) * 2022-07-27 2022-11-18 北京仁科互动网络技术有限公司 Session ending method and device based on blocking queue and electronic equipment
CN115633076A (en) * 2022-12-19 2023-01-20 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium
CN115633076B (en) * 2022-12-19 2023-03-14 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium

Similar Documents

Publication Publication Date Title
CN110162776B (en) Interactive message processing method, device, computer equipment and storage medium
WO2019114512A1 (en) Method and apparatus for customer service, electronic device, and computer readable storage medium
US11314790B2 (en) Dynamic field value recommendation methods and systems
CN110442790A (en) Recommend method, apparatus, server and the storage medium of multi-medium data
CN110996116B (en) Anchor information pushing method and device, computer equipment and storage medium
CN104717124B (en) A friend recommendation method, device and server
CN109582793A (en) Model training method, customer service system and data labeling system, readable storage medium storing program for executing
CN113283185B (en) Federal model training and client imaging method, device, equipment and medium
CN110362667A (en) Intelligent customer service method, apparatus, equipment and readable storage medium storing program for executing
CN109635838A (en) Face samples pictures mask method, device, computer equipment and storage medium
CN112069377A (en) Session information data processing method, apparatus, computer equipment and storage medium
CN104750745B (en) A kind of method and intelligent body of intelligent body processing information
WO2019019396A1 (en) Push result prediction method and apparatus, computer device and storage medium
US11308420B2 (en) Classification of members in a social networking service
CN105574538A (en) Classification model training method and apparatus
AU2017404119A1 (en) Random forest model training method, electronic apparatus and storage medium
CN114419501A (en) Video recommendation method, device, computer equipment and storage medium
CN112329843A (en) Call data processing method, device, equipment and storage medium based on decision tree
US20200202075A1 (en) Natural Language Processing Method and Apparatus
WO2019223380A1 (en) Multiple classifier-based method and device for making recommendation, and electronic device
CN112807697A (en) List generation method and device, electronic equipment and storage medium
CN111651666A (en) User theme recommendation method, device, computer equipment and storage medium
CN110516558A (en) Sample data acquisition method and device, computer equipment and storage medium
CN111967598A (en) Neural network compression method, device, equipment and computer readable storage medium
CN112231481A (en) Web site classification method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201211

WD01 Invention patent application deemed withdrawn after publication