Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN115687766A - Case retrieval push method and device, storage medium and electronic equipment - Google Patents
[go: Go Back, main page]

CN115687766A - Case retrieval push method and device, storage medium and electronic equipment - Google Patents

Case retrieval push method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115687766A
CN115687766A CN202211358807.3A CN202211358807A CN115687766A CN 115687766 A CN115687766 A CN 115687766A CN 202211358807 A CN202211358807 A CN 202211358807A CN 115687766 A CN115687766 A CN 115687766A
Authority
CN
China
Prior art keywords
case
historical
retrieved
target
pushed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211358807.3A
Other languages
Chinese (zh)
Other versions
CN115687766B (en
Inventor
高芷乔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211358807.3A priority Critical patent/CN115687766B/en
Publication of CN115687766A publication Critical patent/CN115687766A/en
Application granted granted Critical
Publication of CN115687766B publication Critical patent/CN115687766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a case retrieval pushing method and related equipment. The method comprises the following steps: acquiring text data to be retrieved of a case to be retrieved; processing the text data to be retrieved through the case element recognition model to obtain target element characteristics of each element of the case to be retrieved; acquiring historical element characteristics of each element of a plurality of historical cases, and acquiring the current pushed times; updating a retrieval model based on the pushed times, and comparing the target element characteristics of the case to be retrieved with the historical element characteristics of each historical case through the updated retrieval model so as to determine an initial pushed case sequence from the plurality of historical cases; and determining a target pushing case sequence of the case to be retrieved according to the initial pushing case sequence so as to push and display the historical cases in the target pushing case sequence. The method can realize implicit feedback of the result generated by the retrieval model, so that the case retrieval pushed result is more accurate, and the personalized retrieval requirement of a user can be met.

Description

案件检索推送方法及装置、存储介质及电子设备Case retrieval push method and device, storage medium and electronic equipment

技术领域technical field

本公开涉及计算机技术领域,尤其涉及一种案件检索推送方法及装置、存储介质及电子设备。The present disclosure relates to the field of computer technology, and in particular to a case retrieval and push method and device, a storage medium, and electronic equipment.

背景技术Background technique

随着网络技术的发展,历史案件的裁判文书大多可公开在网上进行查询检索,开展类案检索工作可以保证类案裁判标准统一。With the development of network technology, most of the judgment documents of historical cases can be publicly searched and retrieved on the Internet, and the search of similar cases can ensure the uniform judgment standards of similar cases.

相关技术中,通常是相关人员基于经验从网络上搜寻与待检索案件有相似之处的历史案件,效率较低且准确性差。In the related technology, usually relevant personnel search for historical cases similar to the case to be retrieved from the Internet based on experience, which is low in efficiency and poor in accuracy.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

发明内容Contents of the invention

本公开的目的在于提供一种案件检索推送方法、装置、电子设备及存储介质,以提升类案检索结果的效率和准确性。The purpose of the present disclosure is to provide a case retrieval push method, device, electronic equipment and storage medium to improve the efficiency and accuracy of similar case retrieval results.

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or in part, be learned by practice of the present disclosure.

根据本公开的一个方面,提供一种案件检索推送方法,包括:获取待检索案件的待检索文本数据;通过案件要素识别模型处理待检索文本数据,得到待检索案件的各要素的目标要素特征;获取多个历史案件的各要素的历史要素特征,并获取当前的已推送次数;基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列;根据初始推送案件序列确定待检索案件的目标推送案件序列,以将目标推送案件序列中的历史案件进行推送展示。According to one aspect of the present disclosure, there is provided a case retrieval push method, including: obtaining the text data to be retrieved of the case to be retrieved; processing the text data to be retrieved through a case element recognition model to obtain the target element features of each element of the case to be retrieved; Obtain the historical element characteristics of each element of multiple historical cases, and obtain the current number of pushes; update the retrieval model based on the number of pushes, and use the updated retrieval model to use the target element characteristics of the case to be retrieved and the historical element characteristics of each historical case Perform comparison processing to determine the initial push case sequence from multiple historical cases; determine the target push case sequence of the cases to be retrieved according to the initial push case sequence, so as to push and display the historical cases in the target push case sequence.

在本公开一个实施例中,基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列,包括:基于已推送次数更新检索模型中各要素的当前权重值;根据当前权重值对目标要素特征和各个历史要素特征进行相似度计算,得到待检索案件与各个历史案件之间的相似度;根据相似度对多个历史案件进行排序,得到多个历史案件的排序结果;将排序结果中前预设数量的历史案件确定为初始推送案件序列。In one embodiment of the present disclosure, the retrieval model is updated based on the number of push times, and the updated retrieval model is used to compare the target element features of the case to be retrieved with the historical element features of each historical case to determine from multiple historical cases The initial pushed case sequence includes: updating the current weight value of each element in the retrieval model based on the number of push times; calculating the similarity between the target element features and each historical element feature based on the current weight value, and obtaining the relationship between the case to be retrieved and each historical case. The similarity between multiple historical cases is sorted according to the similarity to obtain the sorting result of multiple historical cases; the historical cases of the previous preset number in the sorting result are determined as the initial push case sequence.

在本公开一个实施例中,基于已推送次数更新检索模型中各要素的当前权重值,包括:若已推送次数等于0,则将各要素对应的当前权重值均确定为预设权重值;若已推送次数大于0,则获取最近一次推送中的用户行为反馈数据,以及获取最近一次推送中检索模型中使用的各要素的历史权重值;根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值。In an embodiment of the present disclosure, updating the current weight value of each element in the retrieval model based on the number of push times includes: if the number of push times is equal to 0, then determining the current weight value corresponding to each element as a preset weight value; if If the number of push times is greater than 0, get the user behavior feedback data in the latest push, and get the historical weight value of each element used in the retrieval model in the latest push; update the historical weight value according to the user behavior feedback data to get The current weight value for each feature.

在本公开一个实施例中,获取最近一次推送中的用户行为反馈数据,包括:获取用户针对最近一次推送的目标推送案件序列中各目标历史案件的浏览时长,以及获取预设的时长阈值;根据时长阈值将浏览时长转化为行为反馈值;根据各目标历史案件的行为反馈值确定各目标历史案件的用户行为反馈数据。In one embodiment of the present disclosure, obtaining the user behavior feedback data in the latest push includes: obtaining the user's browsing time for each target historical case in the target push case sequence of the latest push, and obtaining a preset duration threshold; according to The duration threshold converts the browsing time into a behavior feedback value; the user behavior feedback data of each target historical case is determined according to the behavior feedback value of each target historical case.

在本公开一个实施例中,根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值,包括:获取最近一次推送的目标推送案件序列中各目标历史案件与待检索案件之间的相似度,以组成环境数据,并以历史权重作为动作数据;对环境数据、动作数据以及用户行为反馈数据进行合并处理,得到输入数据;将输入数据输入至训练好的深度强化学习模型中,输出得到各要素的当前权重值。In an embodiment of the present disclosure, the historical weight value is updated according to the user behavior feedback data to obtain the current weight value of each element, including: obtaining the relationship between each target historical case and the case to be retrieved in the target push case sequence pushed last time The similarity between them is used to form the environmental data, and the historical weight is used as the action data; the environmental data, action data and user behavior feedback data are merged to obtain the input data; the input data is input into the trained deep reinforcement learning model , the output gets the current weight value of each element.

在本公开一个实施例中,多个历史案件包括第一案件;要素包括第一要素;其中,根据当前权重值对目标要素特征和各个历史要素特征进行相似度计算,得到待检索案件与各个历史案件之间的相似度,包括:采用相似度算法,对待检索案件的第一要素的目标要素特征和第一案件的第一要素的历史要素特征进行相似度计算,得到待检索案件和第一案件之间关于第一要素的要素相似度,从而得到待检索案件和第一案件之间关于各要素的要素相似度;根据各要素的当前权重值及相应的要素相似度进行加权计算,得到待检索案件与第一案件之间的相似度。In one embodiment of the present disclosure, the multiple historical cases include the first case; the elements include the first element; wherein, according to the current weight value, the similarity calculation is performed on the characteristics of the target element and the characteristics of each historical element, and the case to be retrieved and each historical element are obtained. The similarity between cases includes: using a similarity algorithm to calculate the similarity between the target element characteristics of the first element of the case to be retrieved and the historical element characteristics of the first element of the first case, and obtain the case to be retrieved and the first case The element similarity between the first element and the element similarity between the case to be retrieved and the first case are obtained; the weighted calculation is performed according to the current weight value of each element and the corresponding element similarity to obtain the element similarity between the case to be retrieved and the first case. The similarity between the case and the first case.

在本公开一个实施例中,根据初始推送案件序列确定待检索案件的目标推送案件序列,包括:若已推送次数等于0,则以初始推送案件序列作为目标推送案件序列;若已推送次数大于0,则获取最近一次推送的历史推送案件序列,根据历史推送案件序列和初始推送案件序列确定目标推送案件序列。In one embodiment of the present disclosure, determining the target push case sequence of the case to be retrieved according to the initial push case sequence includes: if the number of push cases is equal to 0, then use the initial push case sequence as the target push case sequence; if the push count is greater than 0 , then obtain the latest pushed historical push case sequence, and determine the target push case sequence according to the historical push case sequence and the initial push case sequence.

在本公开一个实施例中,案件检索推送方法还包括:获取多个历史案件的历史文本数据;通过案件要素识别模型处理各个历史文本数据,得到各个历史案件的历史要素特征;将历史案件的历史文本数据及其历史要素特征对应存储至案件数据库;以及方法中,获取多个历史案件的历史要素特征,包括:从案件数据库中获取多个历史案件的历史要素特征。In an embodiment of the present disclosure, the case retrieval push method further includes: acquiring historical text data of multiple historical cases; processing each historical text data through a case element recognition model to obtain the historical element characteristics of each historical case; The text data and its historical element features are correspondingly stored in the case database; and in the method, acquiring the historical element features of multiple historical cases includes: acquiring the historical element features of multiple historical cases from the case database.

在本公开一个实施例中,要素特征包括以下至少一个:法律关系特征、核心事实特征和举证情况特征。In an embodiment of the present disclosure, the element features include at least one of the following: legal relationship features, core fact features, and evidentiary circumstances features.

根据本公开的另一个方面,提供一种案件检索推送装置,包括:According to another aspect of the present disclosure, a case retrieval push device is provided, including:

获取模块,用于获取待检索案件的待检索文本数据;处理模块,用于通过案件要素识别模型处理待检索文本数据,得到待检索案件的各要素的目标要素特征;获取模块还用于获取多个历史案件的各要素的历史要素特征,并获取当前的已推送次数;处理模块还用于基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列;推送模块,用于根据初始推送案件序列确定待检索案件的目标推送案件序列,以将目标推送案件序列中的历史案件进行推送展示。The acquisition module is used to obtain the text data to be retrieved of the case to be retrieved; the processing module is used to process the text data to be retrieved through the case element recognition model to obtain the target element characteristics of each element of the case to be retrieved; the acquisition module is also used to obtain multiple The historical element characteristics of each element of a historical case, and obtain the current number of pushes; the processing module is also used to update the retrieval model based on the number of pushes, and use the updated retrieval model to treat the target element characteristics of the case to be retrieved and each historical case. Historical element features are compared to determine the initial push case sequence from multiple historical cases; the push module is used to determine the target push case sequence of the case to be retrieved according to the initial push case sequence, so as to push the target push case sequence Push display of historical cases.

根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述的案件检索推送方法。According to yet another aspect of the present disclosure, 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 above-mentioned case retrieval and push method is implemented.

根据本公开的再一个方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述的案件检索推送方法。According to still another aspect of the present disclosure, there is provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions to Execute the above case retrieval push method.

本公开的实施例所提供的案件检索推送方法,能够先确定待检索案件的目标要素特征以及获取到各个历史案件的历史要素特征,然后基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,其中基于已推送次数更新检索模型,可以实现对检索模型生成结果的隐式反馈,使得案件检索推送的结果更加精准,更能满足用户的个性化检索需求。The case retrieval and push method provided by the embodiments of the present disclosure can first determine the target element characteristics of the cases to be retrieved and obtain the historical element characteristics of each historical case, then update the retrieval model based on the number of push times, and treat the case with the updated retrieval model The target element features of the retrieved cases are compared with the historical element features of each historical case, and the retrieval model is updated based on the number of push times, which can realize the implicit feedback of the results generated by the retrieval model, making the results of case retrieval push more accurate and more efficient. Can meet the user's personalized search needs.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Apparently, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.

图1示出了可以应用本公开实施例的案件检索推送方法的示例性系统架构的示意图;FIG. 1 shows a schematic diagram of an exemplary system architecture to which the case retrieval push method according to an embodiment of the present disclosure can be applied;

图2示出了本公开一个实施例的案件检索推送方法的流程图;FIG. 2 shows a flow chart of a case retrieval push method according to an embodiment of the present disclosure;

图3示出了本公开一个实施例的案件检索推送方法中确定目标推送案件序列的流程图;FIG. 3 shows a flow chart of determining a target push case sequence in a case search and push method according to an embodiment of the present disclosure;

图4示出了本公开一个实施例的案件检索推送方法中通过更新后的检索模型从所述多个历史案件中确定出初始推送案件序列的流程图;Fig. 4 shows a flow chart of determining an initial pushed case sequence from the plurality of historical cases through an updated retrieval model in the case retrieval push method according to an embodiment of the present disclosure;

图5示出了本公开一个实施例的案件检索推送方法中进行相似度计算的流程图;FIG. 5 shows a flow chart of similarity calculation in a case retrieval push method according to an embodiment of the present disclosure;

图6示出了本公开一个实施例的案件检索推送方法的示意图;FIG. 6 shows a schematic diagram of a case retrieval push method according to an embodiment of the present disclosure;

图7示出了本公开一个实施例的案件检索推送方法中的功能模块实现示意图;Fig. 7 shows a schematic diagram of implementing functional modules in a case retrieval push method according to an embodiment of the present disclosure;

图8示出了本公开一个实施例的案件检索推送装置700的框图;和FIG. 8 shows a block diagram of a case retrieval push device 700 according to an embodiment of the present disclosure; and

图9示出了本公开实施例中一种案件检索推送计算机设备的结构框图。Fig. 9 shows a structural block diagram of a case retrieval push computer device in an embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor means and/or microcontroller means.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

图1示出了可以应用本公开实施例的案件检索推送方法的示例性系统架构的示意图。Fig. 1 shows a schematic diagram of an exemplary system architecture to which the case search and push method of the embodiment of the present disclosure can be applied.

如图1所示,该系统架构可以包括服务器101、网络102和客户端103。网络102用以在客户端103和服务器101之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture may include a server 101 , a network 102 and a client 103 . The network 102 is used as a medium for providing a communication link between the client 103 and the server 101 . Network 102 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

在示例性实施例中,与服务端101进行数据传输的客户端103可以包括但不限于智能手机、台式计算机、平板电脑、笔记本电脑、智能音箱、数字助理、AR(Augmented Reality,增强现实)设备、VR(Virtual Reality,虚拟现实)设备、智能可穿戴设备等类型的电子设备。可选的,电子设备上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux系统、windows系统等。In an exemplary embodiment, the client 103 that performs data transmission with the server 101 may include, but not limited to, smart phones, desktop computers, tablet computers, notebook computers, smart speakers, digital assistants, and AR (Augmented Reality, Augmented Reality) devices , VR (Virtual Reality, virtual reality) equipment, smart wearable equipment and other types of electronic equipment. Optionally, the operating system running on the electronic device may include but not limited to Android system, IOS system, linux system, windows system and so on.

服务器101可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器。在一些实际应用中,服务器101也可以是网络平台的服务器,网络平台例如可以是交易平台、直播平台、社交平台或者音乐平台等,本公开实施例对此不作限定。其中,服务器可以是一台服务器,也可以是多台服务器形成的集群,本公开对于服务器的具体架构不做限定。The server 101 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and big data and artificial intelligence platforms. In some practical applications, the server 101 may also be a server of a network platform. The network platform may be, for example, a transaction platform, a live broadcast platform, a social platform, or a music platform, which is not limited in this embodiment of the present disclosure. Wherein, the server may be one server, or may be a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the server.

在示例性实施例中,服务器101用于实现案件检索推送方法的过程可以是:服务器101获取待检索案件的待检索文本数据;服务器101通过案件要素识别模型处理待检索文本数据,得到待检索案件的各要素的目标要素特征;服务器101获取多个历史案件的各要素的历史要素特征,并获取当前的已推送次数;服务器101基于已推送次数,通过检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列;服务器101根据初始推送案件序列确定待检索案件的目标推送案件序列,以将目标推送案件序列中的历史案件进行推送展示。In an exemplary embodiment, the process by which the server 101 implements the push method for case retrieval may be as follows: the server 101 acquires the text data to be retrieved of the case to be retrieved; the server 101 processes the text data to be retrieved through the case element recognition model to obtain the case to be retrieved The target element features of each element; the server 101 obtains the historical element features of each element of multiple historical cases, and obtains the current number of pushes; the server 101 uses the search model based on the number of pushes, and the target element features of the case to be retrieved and each The historical element features of the historical cases are compared to determine the initial push case sequence from multiple historical cases; the server 101 determines the target push case sequence of the case to be retrieved according to the initial push case sequence, so as to push the target push case sequence Push display of historical cases.

此外,需要说明的是,图1所示的仅仅是本公开提供的案件检索推送方法的一种应用环境。图1中的客户端、网络和服务器的数目仅仅是示意性的,根据实际需要,可以具有任意数目的客户端、网络和服务器。In addition, it should be noted that what is shown in FIG. 1 is only an application environment of the case retrieval push method provided by the present disclosure. The numbers of clients, networks, and servers in FIG. 1 are only illustrative, and there may be any number of clients, networks, and servers according to actual needs.

为了使本领域普通人员更好地理解本公开的技术方案,下面将结合附图及实施例对本公开示例实施例中的案件检索推送方法的各个步骤进行更详细的说明。In order to enable ordinary persons in the art to better understand the technical solution of the present disclosure, the steps of the case retrieval and push method in the exemplary embodiment of the present disclosure will be described in more detail below with reference to the drawings and embodiments.

图2示出了本公开一个实施例的案件检索推送方法的流程图。本公开实施例提供的方法可以由如图1所示的服务器或客户端中执行,但本公开并不限定于此。Fig. 2 shows a flow chart of a case retrieval push method according to an embodiment of the present disclosure. The method provided by the embodiment of the present disclosure may be executed by the server or the client as shown in FIG. 1 , but the present disclosure is not limited thereto.

在下面的举例说明中,以服务器101为执行主体进行示例说明。In the following illustrations, the server 101 is used as an execution subject for illustration.

如图2所示,本公开实施例提供的案件检索推送方法可以包括以下步骤:As shown in Figure 2, the case retrieval push method provided by the embodiment of the present disclosure may include the following steps:

步骤S201,获取待检索案件的待检索文本数据。Step S201, acquiring the text data to be retrieved of the case to be retrieved.

待检索案件可以是涉及诉讼等的事件,待检索案件待检索文本数据可以是用于描述待检索案件的文本文件或裁判文书。The case to be retrieved may be an event involving litigation, etc., and the text data to be retrieved may be a text file or a judgment document used to describe the case to be retrieved.

步骤S203,通过案件要素识别模型处理待检索文本数据,得到待检索案件的各要素的目标要素特征。In step S203, the text data to be retrieved is processed through the case element recognition model to obtain the target element features of each element of the case to be retrieved.

在一些实施例中,要素特征包括以下至少一个:法律关系特征、核心事实特征和举证情况特征。其中,案件要素识别模型可以是预先训练好的,可用于从文本中提取预设的要素信息,并将要素信息转化为要素特征;在一些实际应用中,要素特征可以是文字化的信息。In some embodiments, the element features include at least one of the following: legal relationship features, core fact features, and evidentiary circumstances features. Among them, the case element recognition model can be pre-trained, which can be used to extract preset element information from the text, and convert the element information into element features; in some practical applications, element features can be written information.

举例而言,案件要素识别模型中可以使用规则匹配、深度学习等信息抽取方法进行要素特征的识别提取;例如,对于规则匹配的方式,可以设置关键字(如“事实”等),直接从裁判文书中识别出关键字,然后提取关键字周围一定范围内的信息,再从中确定要素特征。对于深度学习的方式,可以使用一些序列标注的算法或模型进行要素特征的提取。For example, information extraction methods such as rule matching and deep learning can be used in the case element recognition model to identify and extract element features; Identify the keywords in the document, then extract the information within a certain range around the keywords, and then determine the characteristics of the elements. For deep learning, some sequence labeling algorithms or models can be used to extract feature features.

步骤S205,获取多个历史案件的各要素的历史要素特征,并获取当前的已推送次数。Step S205, acquiring the historical element features of each element of multiple historical cases, and acquiring the current number of pushed times.

在一些实际应用中,对于一个案件可以进行多次检索计算进行推送,已推送次数可以认为是已展示给用户进行查看的次数。In some practical applications, a case can be retrieved and calculated multiple times to be pushed, and the number of times pushed can be regarded as the number of times it has been displayed to the user for viewing.

在一些实施例中,在获取多个历史案件的各要素的历史要素特征之前,案件检索推送方法还可以包括:获取多个历史案件的历史文本数据;通过案件要素识别模型处理各个历史文本数据,得到各个历史案件的历史要素特征;将历史案件的历史文本数据及其历史要素特征对应存储至案件数据库。其中,历史文本数据可以是历史案件的判决文书等信息。In some embodiments, before obtaining the historical element features of each element of multiple historical cases, the case retrieval push method may further include: obtaining historical text data of multiple historical cases; processing each historical text data through a case element recognition model, The historical element characteristics of each historical case are obtained; the historical text data of the historical case and its historical element characteristics are correspondingly stored in the case database. Wherein, the historical text data may be information such as judgment documents of historical cases.

基于此,步骤S205可以进一步包括:从上述构建好的案件数据库中获取多个历史案件的历史要素特征。Based on this, step S205 may further include: obtaining historical element features of multiple historical cases from the above-mentioned constructed case database.

步骤S207,基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列。Step S207: Update the retrieval model based on the number of pushed times, compare the target element features of the case to be retrieved with the historical element features of each historical case through the updated retrieval model, and determine the initial push case sequence from multiple historical cases .

本步骤中,可以根据待检索案件的目标要素特征和各个历史案件的历史要素特征,结合已推送次数来计算待检索案件和各个历史案件之间的相似度,进而确定出初始推送案件序列。其中,可以根据已推送次数确定用户行为反馈数据进而基于用户行为反馈数据对检索模型进行更新,实现用户行为对检索模型生成结果的隐式反馈,也即可以根据用户的隐式反馈动态调整输出的检索结果,使得案件检索推送的结果更加精准,更能满足用户的个性化检索需求。In this step, the similarity between the case to be retrieved and each historical case can be calculated according to the target element characteristics of the case to be retrieved and the historical element characteristics of each historical case, combined with the number of pushed times, and then the initial push case sequence can be determined. Among them, the user behavior feedback data can be determined according to the number of pushes, and then the retrieval model can be updated based on the user behavior feedback data, so as to realize the implicit feedback of user behavior on the results generated by the retrieval model, that is, the output can be dynamically adjusted according to the user's implicit feedback The search results make the results of the case search and push more accurate, and can better meet the personalized search needs of users.

步骤S209,根据初始推送案件序列确定待检索案件的目标推送案件序列,以将目标推送案件序列中的历史案件进行推送展示。Step S209, determine the target push case sequence of the cases to be retrieved according to the initial push case sequence, so as to push and display the historical cases in the target push case sequence.

在一些实施例中,根据初始推送案件序列确定待检索案件的目标推送案件序列,包括:若已推送次数等于0,则以初始推送案件序列作为目标推送案件序列;若已推送次数大于0,则获取最近一次推送的历史推送案件序列,根据历史推送案件序列和初始推送案件序列确定目标推送案件序列。In some embodiments, determining the target pushed case sequence of the case to be retrieved according to the initial pushed case sequence includes: if the number of times pushed is equal to 0, then using the initial pushed case sequence as the target pushed case sequence; if the number of times pushed is greater than 0, then Obtain the latest pushed history push case sequence, and determine the target push case sequence according to the historical push case sequence and the initial push case sequence.

其中,已推送次数等于0可以理解为此前还未进行推送过,当前是第一次为待检索案件进行检索结果的推送,那么可以直接将计算获得的初始推送案件序列作为目标推送案件序列进行推送。已推送次数大于0可以理解为此前已进行推送展示过,可以结合上一次的历史推送案件序列与此次计算出的初始推送案件序列来确定最终用于展示的目标推送案件序列。Among them, the number of pushes equal to 0 can be understood as no push has been made before, and it is the first time to push the search results for the case to be retrieved, so the initial push case sequence obtained by calculation can be directly pushed as the target push case sequence . If the number of pushed cases is greater than 0, it can be understood that it has been pushed and displayed before, and the final target pushed case sequence for display can be determined by combining the previous historical pushed case sequence and the calculated initial pushed case sequence this time.

其中,根据历史推送案件序列和初始推送案件序列确定目标推送案件序列,可以是根据两个序列确定各序列中待展示案件的数量及相对顺序,再进行交叉重组以获得目标推送案件序列。Among them, determining the target push case sequence according to the historical push case sequence and the initial push case sequence may be to determine the number and relative order of cases to be displayed in each sequence according to the two sequences, and then perform cross-recombination to obtain the target push case sequence.

在一些实际应用中,还可以获取上一次推送中用户点击过的历史案件,若初始推送案件序列中存在用户点击过的历史案件,则可以先将用户点击过的历史案件剔除掉,再确定目标推送案件序列,这样可以保证每次推送中的案件都是用户未点击浏览过的,进而可以提升用户的浏览检索效率。In some practical applications, the historical cases clicked by the user in the last push can also be obtained. If there are historical cases clicked by the user in the initial push case sequence, the historical cases clicked by the user can be deleted first, and then the target can be determined. Push the case sequence, which can ensure that the cases in each push are not clicked and browsed by the user, which can improve the user's browsing and retrieval efficiency.

在又一些实际应用中,也可以设置删除不看指定案件的功能或保留展示指定案子的功能,以满足用户的个性化检索需求。In some other practical applications, it is also possible to set the function of deleting the specified case or retaining the function of displaying the specified case, so as to meet the user's personalized search needs.

图3示出了本公开一个实施例的案件检索推送方法中确定目标推送案件序列的流程图,图3示出的是已推送次数大于0的情况,如图3所示,包括历史推送案件序列301、初始推送案件序列302和目标推送案件序列303;其中假设了历史推送案件序列301中案件的数量为4,初始推送案件序列302中案件的数量为4;则可以先从历史推送案件序列301中确定排序靠前的两个案件组成的子序列,接着从初始推送案件序列302中确定排序靠前的两个案件组成的子序列,然后将这两个子序列中的案子按各自的相对顺序交叉重组,得到一个新的序列,即目标推送案件序列303。Fig. 3 shows a flow chart of determining the target push case sequence in the case retrieval and push method according to an embodiment of the present disclosure. Fig. 3 shows the case where the number of pushes has been greater than 0, as shown in Fig. 3 , including the historical push case sequence 301. The initial push case sequence 302 and the target push case sequence 303; where it is assumed that the number of cases in the history push case sequence 301 is 4, and the number of cases in the initial push case sequence 302 is 4; then the history push case sequence 301 can be pushed first Determine the subsequence composed of the top two cases in , then determine the subsequence composed of the top two cases from the initial push case sequence 302 , and then cross the cases in the two subsequences according to their respective relative orders Recombine to obtain a new sequence, that is, the target push case sequence 303 .

通过本公开提供的案件检索推送方法,可以先确定待检索案件的目标要素特征以及获取到各个历史案件的历史要素特征,然后基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,其中基于已推送次数更新检索模型,可以实现对检索模型生成结果的隐式反馈,使得案件检索推送的结果更加精准,更能满足用户的个性化检索需求。Through the case retrieval push method provided in this disclosure, the target element characteristics of the case to be retrieved and the historical element characteristics of each historical case can be obtained first, and then the retrieval model is updated based on the number of pushes, and the updated retrieval model is used to retrieve the case. The characteristics of the target elements are compared with the characteristics of the historical elements of each historical case, and the retrieval model is updated based on the number of times it has been pushed, which can realize the implicit feedback of the results generated by the retrieval model, making the results of case retrieval and push more accurate and more satisfying for users personalized search needs.

图4示出了本公开一个实施例的案件检索推送方法中通过更新后的检索模型从所述多个历史案件中确定出初始推送案件序列的流程图,如图4所示,在一些实施例中,步骤S207可以进一步包括以下步骤。Fig. 4 shows a flow chart of determining the initial pushing case sequence from the multiple historical cases through the updated retrieval model in the case retrieval pushing method according to an embodiment of the present disclosure. As shown in Fig. 4 , in some embodiments , step S207 may further include the following steps.

步骤S401,基于已推送次数更新检索模型中各要素的当前权重值。Step S401, updating the current weight value of each element in the retrieval model based on the number of pushed times.

举例而言,在一些实施例中,若已推送次数等于0,则将各要素对应的当前权重值均确定为预设权重值;若已推送次数大于0,则获取最近一次推送中的用户行为反馈数据,以及获取最近一次推送中检索模型中使用的各要素的历史权重值;根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值。For example, in some embodiments, if the number of push times is equal to 0, the current weight value corresponding to each element is determined as the preset weight value; if the number of push times is greater than 0, the user behavior in the latest push is obtained Feedback data, and obtain the historical weight value of each element used in the retrieval model in the latest push; update the historical weight value according to the user behavior feedback data to obtain the current weight value of each element.

其中,已推送次数等于0可以理解为此前还未进行推送过,当前是第一次为待检索案件计算待推送案件,那么可以认为此次各要素的重要程度相当,则可以将各要素对应的当前权重值均确定为预设权重值,例如都设置为1。而在已推送次数大于0的情况下,可以获取最近一次推送中的用户行为反馈数据以更新检索模型。Among them, the number of push times equal to 0 can be understood as no push has been made before, and it is the first time to calculate the cases to be pushed for the cases to be retrieved, so it can be considered that the importance of each element is equivalent this time, and the corresponding elements can be The current weight values are all determined as preset weight values, for example, they are all set to 1. In the case that the number of push times is greater than 0, the user behavior feedback data in the latest push can be obtained to update the retrieval model.

在已推送次数大于0的情况下,在一些实施例中获取最近一次推送中的用户行为反馈数据的过程可以是:获取用户针对最近一次推送的目标推送案件序列中各目标历史案件的浏览时长,以及获取预设的时长阈值;根据时长阈值将浏览时长转化为行为反馈值;根据各目标历史案件的行为反馈值确定各目标历史案件的用户行为反馈数据。In the case that the number of pushes has been greater than 0, in some embodiments, the process of obtaining the user behavior feedback data in the latest push may be: obtaining the user’s browsing time for each target historical case in the target push case sequence of the latest push, And obtain a preset duration threshold; convert the browsing duration into a behavior feedback value according to the duration threshold; determine the user behavior feedback data of each target historical case according to the behavior feedback value of each target historical case.

在一些实际应用中,用户行为反馈数据R可以是如下形式:In some practical applications, the user behavior feedback data R can be in the following form:

R={(Hi,Ti),...},i∈[1,...,N];其中,N为输出的案件结果数量;Hi表示第i个案件的点击状态,通常可以将“点击”设为1、将“未点击”设为0;Ti表示用户在第i个案件浏览的时长,例如可以设为4种状态:0为未浏览,1为短时浏览(如浏览时长通常设定在(0,3]分钟),2为中时浏览(如浏览时长通常设定在(3,10]分钟),3为长时浏览(如浏览时长通常设定大于10分钟);其中,浏览时长的状态设定可以根据实际情况进行调节。其中,Ti可以看作是第i个历史案件的行为反馈值,(Hi,Ti)则可以看作是第i个历史案件的用户行为反馈数据。R={(Hi,Ti),...}, i∈[1,...,N]; where, N is the number of output case results; Hi represents the click status of the i-th case, usually " Set "click" to 1, set "not click" to 0; Ti indicates the duration of the user's browsing in the i-th case, for example, it can be set to 4 states: 0 is not browsed, 1 is short-term browsed (such as the browsing time is usually Set at (0,3] minutes), 2 is medium-time browsing (such as browsing time is usually set at (3,10] minutes), 3 is long-time browsing (such as browsing time is usually set to be greater than 10 minutes); among them , the state setting of browsing time can be adjusted according to the actual situation. Among them, Ti can be regarded as the behavior feedback value of the i-th historical case, and (Hi,Ti) can be regarded as the user behavior feedback of the i-th historical case data.

在一些实施例中,根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值的过程可以是:获取最近一次推送的目标推送案件序列中各目标历史案件与待检索案件之间的相似度,以组成环境数据,并以历史权重作为动作数据;对环境数据、动作数据以及用户行为反馈数据进行合并处理,得到输入数据;将输入数据输入至训练好的深度强化学习模型中,输出得到各要素的当前权重值。In some embodiments, the process of updating the historical weight value according to the user behavior feedback data to obtain the current weight value of each element may be: obtaining the relationship between each target historical case and the case to be retrieved in the target push case sequence pushed last time The similarity between them is used to form the environmental data, and the historical weight is used as the action data; the environmental data, action data and user behavior feedback data are merged to obtain the input data; the input data is input into the trained deep reinforcement learning model , the output gets the current weight value of each element.

在一些实际应用中,可以设定环境数据s为当前输出给用户的所有检索案件结果的相似度分布s=[(si1,si2,...,siE),...],i∈[1,...,N],动作a可以为当前检索模型相似度计算公式中采用的权重分布a=(w1,w2,...,wE),其中N为输出的类案结果数量,E为当前业务场景设定的要素数量。In some practical applications, the environment data s can be set as the similarity distribution s=[(s i1 ,s i2 ,...,s iE ),...],i ∈[1,...,N], the action a can be the weight distribution a=(w 1 ,w 2 ,...,w E ) used in the similarity calculation formula of the current retrieval model, where N is the output class The number of case results, and E is the number of elements set in the current business scenario.

然后可以将上述(s,a,R)进行合并处理后输入到线下已训练完毕的深度强化学习模型中,输出得到更新后的权重,即a′=(w1′,w2′,...,wE′).Then the above (s, a, R) can be merged and input to the deep reinforcement learning model that has been trained offline, and the output will be the updated weight, that is, a′=(w 1 ′,w 2 ′,. .., w E ').

步骤S403,根据当前权重值待检索案件的目标要素特征和各个历史案件的历史要素特征进行相似度计算,得到待检索案件与各个历史案件之间的相似度。Step S403, according to the current weight value of the target element features of the case to be retrieved and the historical element features of each historical case, the similarity calculation is performed to obtain the similarity between the case to be retrieved and each historical case.

图5示出了本公开一个实施例的案件检索推送方法中进行相似度计算的流程图。如图5所示,在一些实施例中,多个历史案件中可以包括第一案件;要素中可以包括第一要素;基于此,步骤S403可以包括以下步骤。Fig. 5 shows a flow chart of similarity calculation in the case retrieval push method according to an embodiment of the present disclosure. As shown in FIG. 5 , in some embodiments, the multiple historical cases may include the first case; the elements may include the first element; based on this, step S403 may include the following steps.

步骤S501,采用相似度算法,对待检索案件的第一要素的目标要素特征和第一案件的第一要素的历史要素特征进行相似度计算,得到待检索案件和第一案件之间关于第一要素的要素相似度;从而得到待检索案件和第一案件之间关于各要素的要素相似度。其中,所述相似度算法包括以下至少之一:欧氏距离算法和余弦算法。Step S501, using the similarity algorithm to calculate the similarity between the target element features of the first element of the case to be retrieved and the historical element features of the first element of the first case, and obtain the relationship between the case to be retrieved and the first element about the first element The element similarity of each element; thus the element similarity of each element between the case to be retrieved and the first case is obtained. Wherein, the similarity algorithm includes at least one of the following: Euclidean distance algorithm and cosine algorithm.

步骤S503,根据各要素的当前权重值及相应的要素相似度进行加权计算,得到待检索案件与第一案件之间的相似度。Step S503, perform weighted calculation according to the current weight value of each element and the corresponding element similarity, and obtain the similarity between the case to be retrieved and the first case.

接着使用形同方式,可以得到待检索案件与各个历史案件之间的相似度。Then, using the same method, the similarity between the case to be retrieved and each historical case can be obtained.

步骤S405,根据相似度对多个历史案件进行排序,得到多个历史案件的排序结果。Step S405, sort the multiple historical cases according to the similarity, and obtain the sorting results of the multiple historical cases.

步骤S407,将排序结果中前预设数量的历史案件确定为初始推送案件序列。其中,预设数量的值可以根据实际情况或用户需求进行设定。Step S407, determining the first preset number of historical cases in the sorting results as the initial pushing case sequence. Wherein, the value of the preset quantity can be set according to the actual situation or user's requirement.

需要注意的是,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It should be noted that the above-mentioned figures are only schematic illustrations of the processing included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not imply or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be executed synchronously or asynchronously in multiple modules, for example.

图6示出了本公开一个实施例的案件检索推送方法的示意图,如图6所示,包括以下步骤:Fig. 6 shows a schematic diagram of a case retrieval and pushing method according to an embodiment of the present disclosure, as shown in Fig. 6 , including the following steps:

步骤1,将历史案件文书601输入案件要素识别模型602,使用案件要素识别模型602从历史案件文书601中抽取出将历史案件文书601的案件要素603;Step 1, input the historical case document 601 into the case element recognition model 602, and use the case element recognition model 602 to extract the case element 603 of the historical case document 601 from the historical case document 601;

步骤2,将步骤1中产生的案件要素603与对应文书(即历史案件文书601)存储至检数据库606中;Step 2, storing the case elements 603 and corresponding documents (that is, historical case documents 601) generated in step 1 into the search database 606;

步骤3,将待检索的检索案例604输入案件要素识别模型602,使用案件要素识别模型602从检索案例604中抽取出检索案例604的案件要素605;其中,在步骤1和步骤3中使用案件要素识别模型602抽取案件要素的方法可以是:根据类案检索这一业务场景定义E种要素,要素可以包括但不限于核心事实、法律关系、争议性法律问题等,并分别使用规则匹配、深度学习等信息抽取方法进行识别提取;Step 3, input the retrieval case 604 to be retrieved into the case element recognition model 602, and use the case element recognition model 602 to extract the case element 605 of the retrieval case 604 from the retrieval case 604; wherein, in step 1 and step 3, use the case element The method for the identification model 602 to extract case elements can be: define E elements according to the business scenario of similar case retrieval, and the elements can include but not limited to core facts, legal relations, controversial legal issues, etc. and other information extraction methods for identification and extraction;

步骤4,将步骤3中的案件要素605与步骤2中的数据库606中的数据共同输入至检索模型607中,对检索案例604和各个历史案件文书601进行相似度计算,以对历史案件文书601进行检索召回排序;其中,在第一次进行相似度计算时,检索模型607中的与各要素对应的权重是相同的;Step 4, input the case element 605 in step 3 and the data in the database 606 in step 2 into the retrieval model 607, and calculate the similarity between the retrieval case 604 and each historical case document 601, so that the historical case document 601 Retrieval and recall sorting; wherein, when the similarity calculation is performed for the first time, the weights corresponding to each element in the retrieval model 607 are the same;

具体地,步骤4中涉及的检索模型607可以计算检索案例604与所有历史案件文书601之间的相似度分数,并将分数排序靠前的案例输出给用户;其中,相似度分数初始计算方式见公式:

Figure BDA0003921460830000121
其中se为检索案例和被检索案例关于第e个要素的相似度计算得分,we为第e个要素的权重,se的具体计算方式包括但不限于计算两个字符串之间的欧氏距离、基于词向量计算cosine距离等;Specifically, the retrieval model 607 involved in step 4 can calculate the similarity score between the retrieval case 604 and all historical case documents 601, and output the cases with the highest scores to the user; where, the initial calculation method of the similarity score is shown in formula:
Figure BDA0003921460830000121
Among them, s e is the similarity calculation score between the retrieval case and the retrieved case on the e-th element, w e is the weight of the e-th element, and the specific calculation method of s e includes but is not limited to calculating the Euclidean value between two strings. Cosine distance, calculation of cosine distance based on word vector, etc.;

步骤5,在首次展示结果时,将步骤4中产生的排序靠前的N个类案结果输出给用户;Step 5, when the results are displayed for the first time, output the top N similar case results generated in step 4 to the user;

步骤6,用户对步骤5中的结果进行做出浏览点击行为609,进而产生一种隐式反馈;Step 6, the user browses and clicks on the result in step 5 609, thereby generating an implicit feedback;

步骤7,隐式反馈传递至agent模块610,进而采用深度强化学习算法DQN对检索模型607进行更新;其中,具体可以是更新检索模型607中各个要素的权重;Step 7, the implicit feedback is passed to the agent module 610, and then the retrieval model 607 is updated by using the deep reinforcement learning algorithm DQN; wherein, specifically, the weight of each element in the retrieval model 607 can be updated;

步骤8,使用更新后的检索模型607重新计算检索结果,即重新对历史案件进行排序;Step 8, using the updated retrieval model 607 to recalculate the retrieval results, that is, to reorder the historical cases;

步骤9,可以将步骤8中的新结果与步骤4中产生的结果交叉结合,并过滤掉用户之前已点击的案例,再度输出给用户;In step 9, the new results in step 8 can be cross-combined with the results generated in step 4, and the cases that the user has clicked before are filtered out and output to the user again;

步骤10,重复6、7、8、9步骤,直至用户结束浏览检索结果。Step 10, repeat steps 6, 7, 8, and 9 until the user finishes browsing the retrieval results.

图7示出了本公开一个实施例的案件检索推送方法中的功能模块实现示意图,如图7所示,包括:要素抽取模块701、检索模块702、结果输出模块703和强化学习模块704;Fig. 7 shows a schematic diagram of the implementation of functional modules in the case retrieval push method according to an embodiment of the present disclosure. As shown in Fig. 7, it includes: element extraction module 701, retrieval module 702, result output module 703 and reinforcement learning module 704;

其中,要素抽取模块701可以将案件文书抽取出类案需要的几项基本识别要素;检索模块702可以将待检索的案例要素在历史案件文书案例要素中检索,并将相似度高的前项结果输出;结果输出模块703可以将检索模块中输出的结果对用户进行展示,并记录用户的点击状态浏览时长等隐式反馈;强化学习模块704可以利用用户的隐式反馈动态调整检索模块。Among them, the element extraction module 701 can extract several basic identification elements needed for similar cases from the case documents; the retrieval module 702 can retrieve the case elements to be retrieved from the case elements of the historical case documents, and retrieve the previous results with high similarity Output: The result output module 703 can display the results output from the retrieval module to the user, and record implicit feedback such as the user's click status and browsing time; the reinforcement learning module 704 can use the user's implicit feedback to dynamically adjust the retrieval module.

图8示出了本公开一个实施例的案件检索推送装置800的框图;如图8所示,包括:Fig. 8 shows a block diagram of a case retrieval push device 800 according to an embodiment of the present disclosure; as shown in Fig. 8 , it includes:

获取模块801,用于获取待检索案件的待检索文本数据;处理模块802,用于通过案件要素识别模型处理待检索文本数据,得到待检索案件的各要素的目标要素特征;获取模块801还用于获取多个历史案件的各要素的历史要素特征,并获取当前的已推送次数;处理模块802还用于基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列;推送模块803,用于根据初始推送案件序列确定待检索案件的目标推送案件序列,以将目标推送案件序列中的历史案件进行推送展示。The acquisition module 801 is used to acquire the text data to be retrieved of the case to be retrieved; the processing module 802 is used to process the text data to be retrieved through the case element recognition model to obtain the target element features of each element of the case to be retrieved; the acquisition module 801 also uses To obtain the historical element features of each element of a plurality of historical cases, and obtain the current number of pushes; the processing module 802 is also used to update the retrieval model based on the number of pushes, and use the updated retrieval model to obtain the target element features and The historical element features of each historical case are compared to determine the initial push case sequence from multiple historical cases; the push module 803 is used to determine the target push case sequence of the case to be retrieved according to the initial push case sequence, so as to push the target Push the historical cases in the case sequence for push display.

通过本公开提供的案件检索推送装置,可以先确定待检索案件的目标要素特征以及获取到各个历史案件的历史要素特征,然后基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,其中基于已推送次数更新检索模型,可以实现对检索模型生成结果的隐式反馈,使得案件检索推送的结果更加精准,更能满足用户的个性化检索需求。Through the case retrieval and push device provided in this disclosure, it is possible to first determine the target element characteristics of the case to be retrieved and obtain the historical element characteristics of each historical case, and then update the retrieval model based on the number of push times, and use the updated retrieval model to retrieve the case. The characteristics of the target elements are compared with the characteristics of the historical elements of each historical case, and the retrieval model is updated based on the number of times it has been pushed, which can realize the implicit feedback of the results generated by the retrieval model, making the results of case retrieval and push more accurate and more satisfying for users personalized search needs.

在一些实施例中,处理模块802基于已推送次数更新检索模型,通过更新后的检索模型对待检索案件的目标要素特征和各个历史案件的历史要素特征进行比对处理,以从多个历史案件中确定出初始推送案件序列,包括:基于已推送次数更新检索模型中各要素的当前权重值;根据当前权重值对目标要素特征和各个历史要素特征进行相似度计算,得到待检索案件与各个历史案件之间的相似度;根据相似度对多个历史案件进行排序,得到多个历史案件的排序结果;将排序结果中前预设数量的历史案件确定为初始推送案件序列。In some embodiments, the processing module 802 updates the retrieval model based on the number of times it has been pushed, and compares the target element features of the case to be retrieved with the historical element features of each historical case through the updated retrieval model, so as to extract from multiple historical cases Determine the initial push case sequence, including: update the current weight value of each element in the retrieval model based on the number of pushes; calculate the similarity between the target element features and each historical element feature according to the current weight value, and obtain the case to be retrieved and each historical case. The similarity between multiple historical cases is sorted according to the similarity to obtain the sorting results of multiple historical cases; the previous preset number of historical cases in the sorting results are determined as the initial push case sequence.

在一些实施例中,处理模块802基于已推送次数更新检索模型中各要素的当前权重值,包括:若已推送次数等于0,则将各要素对应的当前权重值均确定为预设权重值;若已推送次数大于0,则获取模块801获取最近一次推送中的用户行为反馈数据,以及获取最近一次推送中检索模型中使用的各要素的历史权重值;处理模块802根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值。In some embodiments, the processing module 802 updates the current weight value of each element in the retrieval model based on the number of push times, including: if the number of push times is equal to 0, then determining the current weight value corresponding to each element as a preset weight value; If the number of pushes has been greater than 0, the acquisition module 801 obtains the user behavior feedback data in the latest push, and obtains the historical weight value of each element used in the retrieval model in the latest push; The weight values are updated to get the current weight values for each feature.

在一些实施例中,获取模块801获取最近一次推送中的用户行为反馈数据,包括:获取用户针对最近一次推送的目标推送案件序列中各目标历史案件的浏览时长,以及获取预设的时长阈值;根据时长阈值将浏览时长转化为行为反馈值;根据各目标历史案件的行为反馈值确定各目标历史案件的用户行为反馈数据。In some embodiments, the obtaining module 801 obtains the user behavior feedback data in the latest push, including: obtaining the user's browsing time for each target historical case in the target push case sequence of the latest push, and obtaining a preset duration threshold; The browsing time is converted into a behavior feedback value according to the duration threshold; the user behavior feedback data of each target historical case is determined according to the behavior feedback value of each target historical case.

在一些实施例中,处理模块802根据用户行为反馈数据对历史权重值进行更新,以得到各要素的当前权重值,包括:获取模块801获取最近一次推送的目标推送案件序列中各目标历史案件与待检索案件之间的相似度,以组成环境数据,并以历史权重作为动作数据;处理模块802对环境数据、动作数据以及用户行为反馈数据进行合并处理,得到输入数据;将输入数据输入至训练好的深度强化学习模型中,输出得到各要素的当前权重值。In some embodiments, the processing module 802 updates the historical weight value according to the user behavior feedback data to obtain the current weight value of each element, including: the obtaining module 801 obtains the target historical case and The similarity between the cases to be retrieved is used to form the environmental data, and the historical weight is used as the action data; the processing module 802 merges the environmental data, action data and user behavior feedback data to obtain the input data; input the input data to the training In a good deep reinforcement learning model, the output gets the current weight value of each element.

在一些实施例中,多个历史案件包括第一案件;要素包括第一要素;其中,处理模块802根据当前权重值对目标要素特征和各个历史要素特征进行相似度计算,得到待检索案件与各个历史案件之间的相似度,包括:采用相似度算法,对待检索案件的第一要素的目标要素特征和第一案件的第一要素的历史要素特征进行相似度计算,得到待检索案件和第一案件之间关于第一要素的要素相似度,从而得到待检索案件和第一案件之间关于各要素的要素相似度;根据各要素的当前权重值及相应的要素相似度进行加权计算,得到待检索案件与第一案件之间的相似度。In some embodiments, the multiple historical cases include the first case; the elements include the first element; wherein, the processing module 802 calculates the similarity between the target element feature and each historical element feature according to the current weight value, and obtains the case to be retrieved and each The similarity between historical cases includes: using a similarity algorithm to calculate the similarity between the target element feature of the first element of the case to be retrieved and the historical element feature of the first element of the first case, and obtain the case to be retrieved and the first element The element similarity of the first element between the cases, so as to obtain the element similarity of each element between the case to be retrieved and the first case; carry out weighted calculation according to the current weight value of each element and the corresponding element similarity, and obtain the to-be-retrieved case The similarity between the retrieved case and the first case is retrieved.

在一些实施例中,推送模块803根据初始推送案件序列确定待检索案件的目标推送案件序列,包括:若已推送次数等于0,则以初始推送案件序列作为目标推送案件序列;若已推送次数大于0,则获取最近一次推送的历史推送案件序列,根据历史推送案件序列和初始推送案件序列确定目标推送案件序列。In some embodiments, the push module 803 determines the target push case sequence of the case to be retrieved according to the initial push case sequence, including: if the push count is equal to 0, then use the initial push case sequence as the target push case sequence; if the push count is greater than 0, the latest push history push case sequence is obtained, and the target push case sequence is determined according to the history push case sequence and the initial push case sequence.

在一些实施例中,获取模块801还用于:获取多个历史案件的历史文本数据;处理模块802还用于:通过案件要素识别模型处理各个历史文本数据,得到各个历史案件的历史要素特征;将历史案件的历史文本数据及其历史要素特征对应存储至案件数据库;以及获取模块801获取多个历史案件的历史要素特征,包括:从案件数据库中获取多个历史案件的历史要素特征。In some embodiments, the acquisition module 801 is also used to: acquire historical text data of multiple historical cases; the processing module 802 is also used to: process each historical text data through a case element recognition model to obtain the historical element features of each historical case; The historical text data of historical cases and their historical element features are correspondingly stored in the case database; and the acquisition module 801 acquires the historical element features of multiple historical cases, including: acquiring the historical element features of multiple historical cases from the case database.

在一些实施例中,要素特征包括以下至少一个:法律关系特征、核心事实特征和举证情况特征。In some embodiments, the element features include at least one of the following: legal relationship features, core fact features, and evidentiary circumstances features.

图8实施例的其它内容可以参照上述其它实施例。Other content of the embodiment in FIG. 8 may refer to the above-mentioned other embodiments.

所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present invention can be implemented as systems, methods or program products. Therefore, various aspects of the present invention can be embodied in the following forms, that is: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as "circuit", "module" or "system".

图9示出本公开实施例中一种案件检索推送计算机设备的结构框图。需要说明的是,图示出的电子设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Fig. 9 shows a structural block diagram of a case retrieval push computer device in an embodiment of the present disclosure. It should be noted that the electronic device shown in the figure is only an example, and should not impose any limitation on the functions and application scope of the embodiments of the present invention.

下面参照图9来描述根据本发明的这种实施方式的电子设备900。图9显示的电子设备900仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。An electronic device 900 according to this embodiment of the present invention is described below with reference to FIG. 9 . The electronic device 900 shown in FIG. 9 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.

如图9所示,电子设备900以通用计算设备的形式表现。电子设备900的组件可以包括但不限于:上述至少一个处理单元910、上述至少一个存储单元920、连接不同系统组件(包括存储单元920和处理单元910)的总线930。As shown in FIG. 9, electronic device 900 takes the form of a general-purpose computing device. Components of the electronic device 900 may include but not limited to: at least one processing unit 910 , at least one storage unit 920 , and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910 ).

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元910执行,使得所述处理单元910执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元910可以执行如图2中所示的方法。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 910, so that the processing unit 910 executes various exemplary methods according to the present invention described in the "Exemplary Methods" section of this specification. Implementation steps. For example, the processing unit 910 may execute the method as shown in FIG. 2 .

存储单元920可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)9201和/或高速缓存存储单元9202,还可以进一步包括只读存储单元(ROM)9203。The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and/or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

存储单元920还可以包括具有一组(至少一个)程序模块9205的程序/实用工具9204,这样的程序模块9205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, Implementations of networked environments may be included in each or some combination of these examples.

总线930可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.

电子设备900也可以与一个或多个外部设备1000(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备900交互的设备通信,和/或与使得该电子设备900能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口950进行。并且,电子设备900还可以通过网络适配器960与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器960通过总线930与电子设备900的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备900使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 900 can also communicate with one or more external devices 1000 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 900, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 950 . Moreover, the electronic device 900 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 960 . As shown, the network adapter 960 communicates with other modules of the electronic device 900 through the bus 930 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.

在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a program product capable of implementing the above-mentioned method in this specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section above in this specification.

根据本发明实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。According to the program product for implementing the above method according to the embodiment of the present invention, it may adopt a portable compact disk read-only memory (CD-ROM) and include program codes, and may run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may reside on any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider). business to connect via the Internet).

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。In addition, although steps of the methods of the present disclosure are depicted in the drawings in a particular order, there is no requirement or implication that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above implementations, those skilled in the art can easily understand that the example implementations described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiments of the present disclosure.

根据本公开的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例的各种可选实现方式中提供的方法。According to an aspect of the present disclosure there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the methods provided in various optional implementation manners of the foregoing embodiments.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.

Claims (12)

1. A case retrieval pushing method is characterized by comprising the following steps:
acquiring text data to be retrieved of a case to be retrieved;
processing the text data to be retrieved through a case element identification model to obtain target element characteristics of each element of the case to be retrieved;
acquiring historical element characteristics of each element of a plurality of historical cases, and acquiring the current pushed times;
updating a retrieval model based on the pushed times, and comparing the target element characteristics of the case to be retrieved with the historical element characteristics of each historical case through the updated retrieval model to determine an initial pushed case sequence from the plurality of historical cases;
and determining a target pushing case sequence of the case to be retrieved according to the initial pushing case sequence so as to push and display the historical cases in the target pushing case sequence.
2. The method as claimed in claim 1, wherein updating a retrieval model based on the pushed times, and comparing the target element features of the case to be retrieved with the historical element features of each historical case through the updated retrieval model to determine an initial pushed case sequence from the plurality of historical cases comprises:
updating the current weight value of each element in the retrieval model based on the pushed times;
according to the current weight value, similarity calculation is carried out on the target element characteristics and the historical element characteristics to obtain the similarity between the case to be retrieved and each historical case;
sequencing the plurality of historical cases according to the similarity to obtain sequencing results of the plurality of historical cases;
and determining the previous preset number of historical cases in the sequencing result as the initial push case sequence.
3. The method of claim 2, wherein updating the current weight values of the elements in the search model based on the pushed times comprises:
if the pushed times are equal to 0, determining the current weight values corresponding to the elements as preset weight values;
if the pushed times are larger than 0, user behavior feedback data in the latest pushing is obtained, and historical weight values of all elements used in the retrieval model in the latest pushing are obtained; and updating the historical weight value according to the user behavior feedback data to obtain the current weight value of each element.
4. The method of claim 3, wherein obtaining the user behavior feedback data in the last push comprises:
acquiring the browsing duration of each target historical case in a target pushing case sequence pushed by a user for the last time, and acquiring a preset duration threshold;
converting the browsing duration into a behavior feedback value according to the duration threshold;
and determining the user behavior feedback data of each target history case according to the behavior feedback value of each target history case.
5. The method of claim 3, wherein updating the historical weight values according to the user behavior feedback data to obtain current weight values of the elements comprises:
acquiring similarity between each target historical case in a target pushing case sequence which is pushed for the last time and the case to be retrieved to form environment data, and taking the historical weight as action data;
merging the environment data, the action data and the user behavior feedback data to obtain input data;
and inputting the input data into a trained deep reinforcement learning model, and outputting to obtain the current weight value of each element.
6. The method of claim 2, wherein said plurality of historical cases includes a first case; the element comprises a first element; wherein, according to the current weight value, performing similarity calculation on the target element feature and each historical element feature to obtain the similarity between the case to be retrieved and each historical case, and the method comprises the following steps:
performing similarity calculation on the target element characteristics of the first element of the case to be retrieved and the historical element characteristics of the first element of the first case by adopting a similarity calculation method to obtain the element similarity of the first element between the case to be retrieved and the first case, so as to obtain the element similarity of each element between the case to be retrieved and the first case;
and performing weighting calculation according to the current weight value of each element and the corresponding element similarity to obtain the similarity between the case to be retrieved and the first case.
7. The method of claim 1, wherein determining a target push case sequence of the case to be retrieved from the initial push case sequence comprises:
if the pushed times are equal to 0, taking the initial pushed case sequence as the target pushed case sequence;
and if the pushed times are larger than 0, acquiring a historical pushed case sequence pushed for the last time, and determining the target pushed case sequence according to the historical pushed case sequence and the initial pushed case sequence.
8. The method of any of claims 1-7, further comprising:
acquiring historical text data of the plurality of historical cases;
processing each historical text data through the case element recognition model to obtain the historical element characteristics of each historical case;
correspondingly storing the historical text data of the historical case and the historical element characteristics thereof to a case database;
in the method, acquiring the historical element characteristics of a plurality of historical cases comprises the following steps: and acquiring historical element characteristics of the plurality of historical cases from the case database.
9. The method according to any one of claims 1-7, wherein the feature characteristics include at least one of: legal relations characteristics, core facts characteristics, and proof cases characteristics.
10. A case retrieval pushing device is characterized by comprising:
the acquisition module is used for acquiring text data to be retrieved of the case to be retrieved;
the processing module is used for processing the text data to be retrieved through a case element identification model to obtain target element characteristics of each element of the case to be retrieved;
the acquisition module is also used for acquiring the historical element characteristics of each element of a plurality of historical cases and acquiring the current pushed times;
the processing module is also used for updating a retrieval model based on the pushed times, and comparing the target element characteristics of the case to be retrieved with the historical element characteristics of each historical case through the updated retrieval model so as to determine an initial pushed case sequence from the plurality of historical cases;
and the pushing module is used for determining a target pushing case sequence of the case to be retrieved according to the initial pushing case sequence so as to push and display the historical cases in the target pushing case sequence.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a case retrieval pushing method according to any one of claims 1 to 9.
12. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the case retrieval pushing method of any one of claims 1 to 9.
CN202211358807.3A 2022-11-01 2022-11-01 Case search and push method and device, storage medium and electronic device Active CN115687766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211358807.3A CN115687766B (en) 2022-11-01 2022-11-01 Case search and push method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211358807.3A CN115687766B (en) 2022-11-01 2022-11-01 Case search and push method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115687766A true CN115687766A (en) 2023-02-03
CN115687766B CN115687766B (en) 2025-04-01

Family

ID=85047399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211358807.3A Active CN115687766B (en) 2022-11-01 2022-11-01 Case search and push method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115687766B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304116A (en) * 2023-03-03 2023-06-23 联仁健康医疗大数据科技股份有限公司 Data retrieval method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106471534A (en) * 2014-02-04 2017-03-01 德克·海尔宾 Interaction Support Processor
US20170214701A1 (en) * 2016-01-24 2017-07-27 Syed Kamran Hasan Computer security based on artificial intelligence
CN110009373A (en) * 2019-03-07 2019-07-12 平安科技(深圳)有限公司 Complain methods of exhibiting, device, computer equipment and the storage medium of part
CN110647631A (en) * 2018-06-25 2020-01-03 阿里巴巴集团控股有限公司 Method and device, storage medium and processor recommended in the case
EP3907684A1 (en) * 2020-05-05 2021-11-10 IHS Kurumsal Teknoloji Hizmetleri Anonim Sirketi System and method for fraud tracking and process management
CN113868391A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Knowledge graph-based legal document generation method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106471534A (en) * 2014-02-04 2017-03-01 德克·海尔宾 Interaction Support Processor
US20170214701A1 (en) * 2016-01-24 2017-07-27 Syed Kamran Hasan Computer security based on artificial intelligence
CN110647631A (en) * 2018-06-25 2020-01-03 阿里巴巴集团控股有限公司 Method and device, storage medium and processor recommended in the case
CN110009373A (en) * 2019-03-07 2019-07-12 平安科技(深圳)有限公司 Complain methods of exhibiting, device, computer equipment and the storage medium of part
EP3907684A1 (en) * 2020-05-05 2021-11-10 IHS Kurumsal Teknoloji Hizmetleri Anonim Sirketi System and method for fraud tracking and process management
CN113868391A (en) * 2021-09-27 2021-12-31 平安国际智慧城市科技股份有限公司 Knowledge graph-based legal document generation method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴旭 等: "面向机构知识库结构化数据的文本相似度评价算法", 《信息网络安全》, 31 May 2015 (2015-05-31), pages 1 - 4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116304116A (en) * 2023-03-03 2023-06-23 联仁健康医疗大数据科技股份有限公司 Data retrieval method and device

Also Published As

Publication number Publication date
CN115687766B (en) 2025-04-01

Similar Documents

Publication Publication Date Title
US10650102B2 (en) Method and apparatus for generating parallel text in same language
CN114780727A (en) Text classification method and device based on reinforcement learning, computer equipment and medium
WO2022174496A1 (en) Data annotation method and apparatus based on generative model, and device and storage medium
CN117312641B (en) Methods, devices, equipment and storage media for intelligent information acquisition
US10579655B2 (en) Method and apparatus for compressing topic model
CN113128431B (en) Video clip retrieval method, device, medium and electronic equipment
US20180365209A1 (en) Artificial intelligence based method and apparatus for segmenting sentence
CN108628830A (en) A kind of method and apparatus of semantics recognition
WO2022052744A1 (en) Conversation information processing method and apparatus, computer-readable storage medium, and device
CN112084752B (en) Sentence tagging method, device, equipment and storage medium based on natural language
CN111241106B (en) Approximation data processing method, device, medium and electronic equipment
CN108256070A (en) For generating the method and apparatus of information
CN114416990B (en) Method, device and electronic device for constructing object relationship network
US20210004406A1 (en) Method and apparatus for storing media files and for retrieving media files
CN111368551A (en) Method and device for determining event subject
CN111008213A (en) Method and apparatus for generating language conversion model
CN116795947A (en) Document recommendation method, device, electronic equipment and computer readable storage medium
CN112699272B (en) Information output method, device and electronic equipment
CN112328896B (en) Methods, devices, electronic devices and media for outputting information
CN115687766B (en) Case search and push method and device, storage medium and electronic device
CN111639164A (en) Question-answer matching method and device of question-answer system, computer equipment and storage medium
CN113343664B (en) Method and device for determining matching degree between image and text
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN114707057B (en) Methods, apparatuses, media, and program products for generating graph embedding vectors.
CN114612699B (en) A method and device for processing image data

Legal Events

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