Lawyer recommendation method, device, equipment and storage medium based on data analysis
Through methods based on data analysis, word segmentation processing and comprehensive score calculation, the problems of low efficiency and insufficient accuracy of existing lawyer recommendation methods are solved, achieving more efficient and accurate lawyer recommendation, improving user experience and case winning rate.
Patent Information
- Application Number
- CN202111272466.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-10-29
AI Technical Summary
The existing lawyer recommendation method consumes a lot of manpower and material resources, has low processing efficiency, and the recommendation results obtained lack objectivity. The accuracy of lawyer recommendation is low and cannot effectively adapt to the needs of users.
Using a method based on data analysis, by receiving the lawyer recommendation request input by the user, the case information is segmented, matched with historical cases, and the comprehensive score of the lawyer is calculated to automatically and intelligently recommend the most suitable lawyer. This method includes word segmentation processing, case matching score calculation, lawyer evaluation score calculation and comprehensive score ranking to determine target recommended lawyers.
It improves the accuracy and applicability of lawyer recommendations, reduces users' communication costs, improves the efficiency and accuracy of users finding lawyers, improves user experience, and is conducive to improving the case winning rate.
Smart Images

Figure CN114003705B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to a lawyer recommendation method, apparatus, computer equipment and storage medium based on data analysis. Background Art
[0002] With the continuous advancement of the construction of a legal country, more and more legal case documents are published on the China Judgment Documents Network, making individuals and various groups and organizations pay more and more attention to using legal weapons to protect their own rights and interests. However, due to the standardization and strictness of laws and regulations, it is difficult for non-legal professionals to truly apply laws and regulations to protect their rights. Therefore, they hope to be able to use legal practitioners, especially the best lawyer teams or individuals to provide professional legal services, so as to truly use the law to maintain and protect their own legitimate rights.
[0003] In order to better provide targeted services to users who need to seek legal services, suitable lawyers should be selected based on the actual case and user needs, that is, matching lawyers should be found and recommended to users based on the user's case description. The existing lawyer matching recommendation method is usually based on the statistics of the lawyer's historical caseload, the social reputation of the lawyer or law firm, and other subjective factors. After manual analysis and processing, lawyers are recommended to users. This recommendation method consumes a lot of manpower and material resources, has low processing efficiency, and the recommendation results lack objectivity. The accuracy of lawyer recommendations is low and cannot be well adapted to user needs. Summary of the invention
[0004] The main purpose of this application is to provide a lawyer recommendation method, device, computer equipment and storage medium based on data analysis, aiming to solve the technical problems that the existing lawyer recommendation method consumes a lot of manpower and material resources, has low processing efficiency, lacks objectivity in the recommendation results, and has low accuracy in lawyer recommendations.
[0005] This application proposes a lawyer recommendation method based on data analysis, which includes the following steps:
[0006] Receive a lawyer recommendation request input by a user, perform word segmentation processing on the case information carried in the lawyer recommendation request, and obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words;
[0007] The first word segmentation set is matched based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0008] Filtering out a target case matching score greater than a preset matching score threshold from all the case matching scores, and acquiring a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes a plurality;
[0009] Obtaining a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0010] Calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score;
[0011] Calculate the comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0012] A target recommended lawyer is determined from the first lawyers based on the comprehensive score, and the target recommended lawyer is pushed to the user.
[0013] Optionally, the lawyer recommendation request also carries user information, and before the step of performing word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set, the step includes:
[0014] Obtaining the user information carried in the lawyer recommendation request, and determining whether the legal user list contains designated user information that is identical to the user information;
[0015] If the designated user information is included, a palm print image and a palm blood vessel image of the user's palm are acquired based on a preset 3D camera; wherein the 3D camera is a camera including structured light, time of flight and binocular structure;
[0016] Based on the palm recognition model, feature extraction and feature fusion processing are performed on the palm print image and the palm blood vessel image to obtain palm feature information;
[0017] Acquire designated palm feature information corresponding to the designated user information from a preset palm feature database;
[0018] Comparing the palm feature vector with the designated palm feature information to determine whether the palm feature vector and the designated palm feature information are the same feature information;
[0019] If the characteristic information is the same, a processing instruction is generated to perform word segmentation processing on the case information carried in the lawyer recommendation request.
[0020] Optionally, the step of performing matching processing on the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed includes:
[0021] Obtaining a second word segmentation set corresponding to a first historical case in the case information word library; wherein the first historical case is any one of all the historical cases;
[0022] Calculate the similarity between the first word segmentation set and the second word segmentation set by using a preset first calculation formula;
[0023] The similarity is used as a case matching score between the case to be processed and the first historical case.
[0024] Optionally, the step of performing matching processing on the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed includes:
[0025] Obtaining a third word segmentation set corresponding to a second historical case in the case information word library; wherein the second historical case is any one of all the historical cases;
[0026] For each word in the first word segmentation set, generating a matching result between the word and each word in the third word segmentation set based on a preset parallel computing instruction; wherein the matching result includes a successful match or a failed match;
[0027] Obtaining a first number of successfully matched matching results;
[0028] Obtain a second number of all words included in the first word segmentation set;
[0029] calculating a quotient of the first quantity and the second quantity;
[0030] The quotient is used as a case matching score between the case to be processed and the second historical case.
[0031] Optionally, the step of calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers includes:
[0032] Obtain designated lawyer information corresponding to a second lawyer; wherein the second lawyer is any one of all the first lawyers;
[0033] Obtain a preset interval weight score table;
[0034] Based on the interval weight score, query the weight score corresponding to each of the designated lawyer information;
[0035] Based on the weighted score, a preset second calculation formula is called to generate an evaluation score corresponding to the second lawyer.
[0036] Optionally, the step of calculating a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score includes:
[0037] Obtaining a designated evaluation score of a third lawyer; wherein the third lawyer is any one of all the first lawyers;
[0038] Finding a designated historical case corresponding to the third lawyer from all the target historical cases;
[0039] Obtaining a specified case matching score between the pending case and the specified historical case;
[0040] Calculating the product of the specified evaluation score and the specified case matching score;
[0041] The product is taken as the comprehensive score of the third lawyer.
[0042] Optionally, the step of determining a target recommended lawyer from the first lawyers based on the comprehensive score includes:
[0043] Filter out a first comprehensive score greater than a preset comprehensive score threshold from all the comprehensive scores;
[0044] Sorting the first comprehensive scores in descending order of value to obtain a corresponding sorting result;
[0045] Starting from the first comprehensive score ranked first in the sorting results, a preset number of second comprehensive scores are obtained in sequence;
[0046] Based on the second comprehensive score, selecting a fourth lawyer corresponding to the second comprehensive score from all the first lawyers;
[0047] The fourth lawyer is used as the target recommended lawyer.
[0048] The present application also provides a lawyer recommendation device based on data analysis, including:
[0049] A first processing module is used to receive a lawyer recommendation request input by a user, and perform word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words;
[0050] A second processing module is used to match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0051] A screening module, used to screen out a target case matching score greater than a preset matching score threshold from all the case matching scores, and obtain a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes multiple;
[0052] A first acquisition module is used to acquire a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0053] A first calculation module, configured to calculate the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score;
[0054] A second calculation module, configured to calculate a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0055] A determination module is used to determine a target recommended lawyer from the first lawyers based on the comprehensive score and push the target recommended lawyer to the user.
[0056] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0057] The present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0058] The lawyer recommendation method, device, computer device and storage medium based on data analysis provided in this application have the following beneficial effects:
[0059] The lawyer recommendation method, device, computer equipment and storage medium based on data analysis provided in the present application, after receiving the lawyer recommendation request input by the user, will first perform word segmentation processing on the case information of the pending case carried in the lawyer recommendation request to obtain a first word segmentation set, and then match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the pending case, and obtain a target case matching score greater than a preset threshold from all the historical cases, and screen out the first lawyer corresponding to the target historical case from all the lawyers, and then calculate the evaluation score of each of the first lawyers based on the preset lawyer information, and subsequently calculate the comprehensive score of each first lawyer based on the target case matching score and the evaluation score, and finally determine the target recommended lawyer from the first lawyers based on the comprehensive score, and push the target recommended lawyer to the user. Through this application, the target recommended lawyer can be determined automatically and intelligently based on the case information and lawyer information of the case to be processed, which effectively improves the accuracy and applicability of lawyer recommendations, reduces the user's communication costs, improves the efficiency and accuracy of users' search for lawyers, improves the user experience, and is conducive to achieving an increase in the case winning rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a flowchart of a lawyer recommendation method based on data analysis according to an embodiment of the present application;
[0061] Figure 2 It is a structural diagram of a lawyer recommendation device based on data analysis according to an embodiment of the present application;
[0062] Figure 3 It is a schematic diagram of the structure of a computer device according to an embodiment of the present application.
[0063] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0066] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0067] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0068] Reference Figure 1 , a lawyer recommendation method based on data analysis in one embodiment of the present application includes:
[0069] S10: receiving a lawyer recommendation request input by a user, performing word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words;
[0070] S20: performing matching processing on the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0071] S30: Filtering out a target case matching score greater than a preset matching score threshold from all the case matching scores, and acquiring a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes a plurality;
[0072] S40: Obtaining a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0073] S50: Calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score;
[0074] S60: Calculate the comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0075] S70: Determine a target recommended lawyer from the first lawyers based on the comprehensive score, and push the target recommended lawyer to the user.
[0076] As described in the above steps S10 to S70, the execution subject of the present method embodiment is a lawyer recommendation device based on data analysis. In practical applications, the above lawyer recommendation device based on data analysis can be implemented through a virtual device, such as software code, or can be implemented through a physical device with relevant execution code written or integrated, and can interact with the user through a keyboard, mouse, remote control, touchpad or voice control device. The lawyer recommendation device based on data analysis in this embodiment can effectively improve the accuracy and applicability of lawyer recommendations, reduce the user's communication costs, improve the efficiency and accuracy of users looking for lawyers, and improve the user experience.
[0077] Specifically, first, a lawyer recommendation request input by a user is received, and the case information carried in the lawyer recommendation request is segmented to obtain a corresponding first segmentation set. Among them, the lawyer recommendation request is a request triggered by a user for obtaining recommended lawyer information corresponding to the case to be processed. The lawyer recommendation request carries at least the case information of the case to be processed, and may also carry the user information of the user. The case information is text information related to legal issues, has a specific field, and can help lawyers understand the case. Specifically, the case information can be any legal document involving legal issues or having legal effect, such as an indictment, an appeal, a reply, a contract, an agreement, or the like, or it can be the case information that the user knows about himself input in natural language. The case information can be information in a text format, such as a Word format. In addition, the first segmentation set includes multiple words. Among them, existing segmentation tools, such as the ICTCLAS segmentation tool, the jieba segmentation tool, etc., can be used to segment the case information, that is, retain nouns, verbs, and noun-verbs, and delete duplicate words to obtain a first segmentation set including multiple words. Then, the first word segmentation set is matched based on the preset case information word library to obtain the case matching score between each historical case and the case to be processed. The case information word library stores word segmentation sets corresponding to each of the historical cases. In addition, there is no limitation on the method of generating the case matching score between each historical case and the case to be processed. For example, the similarity between the first word segmentation set and the word segmentation set corresponding to each of the historical cases can be calculated by using the preset first calculation formula, and the obtained similarity can be used as the case matching score between the corresponding case to be processed and each historical case. Alternatively, the corresponding case matching score can also be calculated based on the number of successful matches of the word segmentation set corresponding to each of the historical cases in the first word segmentation set, and so on.
[0078] Then, a target case matching score greater than a preset matching score threshold is screened out from all the case matching scores, and a target historical case corresponding to the target case matching score is obtained from all the historical cases. Among them, the number of the target historical cases includes multiple. There is no specific limitation on the value of the matching score threshold, which can be set according to actual needs. By screening out a target case matching score greater than a preset matching score threshold from the case matching score, all historical cases are preliminarily screened to obtain the corresponding target historical case, so that only the first lawyer corresponding to the target historical case needs to be further screened later, that is, only the lawyer information of the first lawyer needs to be calculated and processed, and all lawyer information does not need to be calculated and processed, which effectively reduces the amount of data processing and improves the intelligence and processing efficiency of data processing. After obtaining the target historical case, the first lawyer corresponding to the target historical case is obtained. Among them, one target historical case corresponds to one first lawyer, that is, one target historical case is handled by one first lawyer, and the target historical case has a one-to-one correspondence with the first lawyer. In addition, in addition to storing the word sets corresponding to each of the historical cases, the case information word library can further store lawyer information corresponding to each of the historical cases, so the first lawyer corresponding to the target historical case can be queried from the case information word library.
[0079] Subsequently, the evaluation score of each first lawyer is calculated based on the lawyer information of the first lawyer. Among them, the lawyer information may include at least years of practice, cooperation time, personal history score, case handling convenience score and law firm score. In addition, the evaluation score corresponding to the first lawyer can be quickly generated through the preset interval weight score table and the second calculation formula. The specific calculation implementation process will be further described in the subsequent specific embodiments, which will not be repeated here. After obtaining the evaluation score, the comprehensive score of each first lawyer is calculated based on the target case matching score and the evaluation score. Specifically, after obtaining the designated evaluation score of any first lawyer, the designated case corresponding to the first lawyer can be found from all the target historical cases, and the designated case matching score between the pending case and the designated case is obtained, and then the comprehensive score of the first lawyer is generated by calculating the product between the designated evaluation score and the designated case matching score. Finally, based on the comprehensive score, the target recommended lawyer is determined from the first lawyer, and the target recommended lawyer is pushed to the user. Specifically, after obtaining the comprehensive score of each first lawyer, the first comprehensive score greater than a preset comprehensive score threshold can be screened out from the comprehensive scores, and then the lawyers corresponding to multiple second comprehensive scores with the largest preset values can be selected from the second comprehensive scores as the corresponding target recommended lawyers.
[0080] After receiving the lawyer recommendation request input by the user, this embodiment will first perform word segmentation processing on the case information of the pending case carried in the lawyer recommendation request to obtain a first word segmentation set, and then match the first word segmentation set based on the preset case information word library to obtain the case matching score between each historical case and the pending case, and obtain the target case matching score greater than the preset threshold from all the historical cases, and screen out the first lawyer corresponding to the target historical case from all lawyers, and then calculate the evaluation score of each first lawyer based on the preset lawyer information, and then calculate the comprehensive score of each first lawyer based on the target case matching score and the evaluation score, and finally determine the target recommended lawyer from the first lawyer based on the comprehensive score, and push the target recommended lawyer to the user. Through this embodiment, the target recommended lawyer can be automatically and intelligently determined according to the case information and lawyer information of the pending case, which effectively improves the accuracy and applicability of lawyer recommendations, reduces the communication cost of users, improves the efficiency and accuracy of users looking for lawyers, improves the user experience, and is conducive to improving the case winning rate.
[0081] Furthermore, in an embodiment of the present application, before the above step S10, the following steps are included:
[0082] S100: Obtaining user information carried in the lawyer recommendation request, and determining whether the legal user list contains designated user information that is the same as the user information;
[0083] S101: If the designated user information is included, obtaining a palm print image and a palm blood vessel image of the user based on a preset 3D camera; wherein the 3D camera is a camera including structured light, time of flight and binocular structure;
[0084] S102: performing feature extraction and feature fusion processing on the palm print image and the palm blood vessel image based on the palm recognition model to obtain palm feature information;
[0085] S103: Acquire designated palm feature information corresponding to the designated user information from a preset palm feature database;
[0086] S104: Compare the palm feature vector with the designated palm feature information to determine whether the palm feature vector and the designated palm feature information are the same feature information;
[0087] S105: If the characteristic information is the same, a processing instruction is generated to perform word segmentation processing on the case information carried in the lawyer recommendation request.
[0088] As described in the above steps S100 to S105, the lawyer recommendation request also carries user information. After executing the step of segmenting the case information carried in the lawyer recommendation request to obtain the corresponding first segmentation set, it may also include an identity authentication process for the user. Only after the user passes the identity authentication, the lawyer recommendation request will be responded to later to ensure the standardization of the processing of the lawyer recommendation request. Specifically, first obtain the user information carried in the lawyer recommendation request, and determine whether the legal user list contains the designated user information that is the same as the user information. Among them, the legal user list is a list that is pre-created and stored with user information of legal users. The user information may include the user's name information or ID information, etc. If the designated user information is included, the palm print image and palm blood vessel image of the user's palm are obtained based on a preset 3D camera. Among them, the palm print image may be a palm print infrared image, and the palm blood vessel image may be a palm blood vessel infrared image. A 3D camera is pre-set in the device, and the palm of the user can be photographed by the 3D camera to collect and obtain the palm print infrared image and palm blood vessel infrared image of the user's palm. 3D cameras include structured light, TOF (Time of flight) and binocular structures. Among them, the distance measurement method of TOF type cameras is active, which directly measures the distance based on the flight time of light. The distance measurement method of binocular type cameras is passive, which indirectly calculates the distance based on image feature point matching and triangulation. The distance measurement method of structured light type cameras is active, which is based on active projection of known codes. By instructing the user to place the palm within the shooting range of the 3D camera, the 3D camera shoots the palm, so that the user's palm print image and palm blood vessel image can be collected. Then, based on the palm recognition model, feature extraction and feature fusion processing are performed on the palm print image and palm blood vessel image to obtain palm feature information. Among them, according to the convolutional neural network model, multiple palm images can be used as training samples and the convolutional neural network model can be trained to obtain the palm recognition model. A convolutional neural network is a feedforward neural network, and its basic structure includes two layers. One is a feature extraction layer, in which the input of each neuron is connected to the local receiving field of the previous layer, and the local features are extracted; the other is a feature mapping layer, in which each computing layer of the network is composed of multiple feature maps, and each feature mapping layer is a plane, and the weights of all neurons on the plane are equal. In addition, the specific training and generation process of the palm recognition model can refer to the training process of the existing convolutional neural network model, and will not be elaborated on here. Specifically, the palm print image and the palm blood vessel image can be input into the palm recognition model, and the palm recognition model can be used to perform convolution operation and feature extraction on the palm print image and the palm blood vessel image to obtain the surface texture features of the palm print image and the palm vein distribution features of the palm blood vessel image.Then, the surface texture feature is fused with the palm vein distribution feature to obtain a fused feature vector, i.e., the palm feature information. Since the palm print and the venous blood vessel distribution will not change greatly due to factors such as age, they have good robustness, which is conducive to the subsequent comparison processing of the palm feature vector obtained by combining multiple feature vectors with the designated palm feature information corresponding to the designated user information stored in the palm feature database, so as to effectively and accurately obtain the identity authentication result of the user. Then, the designated palm feature information corresponding to the designated user information is obtained from the preset palm feature database. Finally, the palm feature vector is compared with the designated palm feature information to determine whether the palm feature vector and the designated palm feature information are the same feature information. Among them, the existing similarity algorithm can be used to calculate the similarity between the palm feature vector and the designated palm feature information. If the calculated similarity is greater than the preset similarity threshold, it is determined that the two are the same feature information. If it is less than the preset similarity threshold, it is determined that the two are different feature information. In addition, there is no specific limitation on the value of the similarity threshold, which can be set according to actual needs. If the characteristic information is the same, it is determined that the identity authentication of the user has passed, and a processing instruction for word segmentation of the case information carried in the lawyer recommendation request is generated. Among them, when the processing instruction is generated, the subsequent device will perform word segmentation processing on the case information carried in the lawyer recommendation request according to the processing instruction. If the characteristic information is not the same, it is determined that the identity authentication has not passed, and the subsequent response to the lawyer recommendation request will be restricted. In this embodiment, the user's identity authentication processing is implemented by adopting multiple identity authentication methods such as name list comparison and palm feature comparison, which effectively improves the accuracy and reliability of identity authentication, avoids adverse consequences caused by responding to lawyer recommendation requests input by illegal users, and only when the user passes the identity authentication, will the received lawyer recommendation request be further responded to to generate corresponding recommended lawyer information, which effectively improves the intelligence and security of lawyer recommendation request processing.
[0089] Furthermore, in one embodiment of the present application, the above step S20 includes:
[0090] S200: Obtain a second word segmentation set corresponding to a first historical case in the case information word library; wherein the first historical case is any one of all the historical cases;
[0091] S201: Calculate the similarity between the first word segmentation set and the second word segmentation set by using a preset first calculation formula;
[0092] S202: Using the similarity as a case matching score between the case to be processed and the first historical case.
[0093] As described in the above steps S200 to S202, the step of matching the first segmentation set based on the preset case information word library to obtain the case matching score between each historical case and the case to be processed may specifically include: first obtaining the second segmentation set corresponding to the first historical case in the case information word library. Wherein, the first historical case is any one of all the historical cases. In addition, the case information word library stores segmentation sets corresponding to each of the historical cases, and the case name or case number of each historical case can be pre-set as the set name or set index of the segmentation set of the historical case, so as to establish a mapping relationship between the historical case and the segmentation set in the case information word library. Then, the similarity between the first segmentation set and the second segmentation set is calculated by the preset first calculation formula. Wherein, let Y be the first segmentation set, E be the second segmentation set corresponding to the first historical case, Y={Y1,Y2,…,Y m}, m is the number of words contained in Y, Y1,Y2,Y m are the 1st, 2nd, and mth participles in Y respectively, E={E1,E2,…,E n}, n is the number of words contained in E, E1, E2, E n are the 1st, 2nd, and nth participles in E. Specifically, the first calculation formula can be used Calculate the similarity between Y and E, sim(Y i , E j ) can be calculated and generated by a preset semantic model (such as the skip-gram model in Word2vec), i=1, 2, ..., n, j=1, 2, .., n. Finally, the similarity is used as the case matching score between the pending case and the first historical case. In this embodiment, the case matching score between each historical case and the pending case can be quickly generated by calling the first preset formula, which effectively improves the efficiency of generating the case matching score, and is conducive to the subsequent calculation of the comprehensive score of the first lawyer based on the obtained case matching score, and then based on the comprehensive score, accurately achieves the target recommended lawyer that matches the lawyer recommendation request input by the user, thereby improving the intelligence and accuracy of the lawyer recommendation.
[0094] Furthermore, in one embodiment of the present application, the above step S20 includes:
[0095] S210: Obtain a third word segmentation set corresponding to a second historical case in the case information word library; wherein the second historical case is any one of all the historical cases;
[0096] S211: for each word in the first word segmentation set, respectively generate a matching result between the word and each word in the third word segmentation set based on a preset parallel computing instruction; wherein the matching result includes a matching success or a matching failure;
[0097] S212: Obtaining a first number of successfully matched matching results;
[0098] S213: Obtain a second number of all words included in the first word segmentation set;
[0099] S214: Calculate a quotient of the first quantity and the second quantity;
[0100] S215: Using the quotient as a case matching score between the case to be processed and the second historical case.
[0101] As described in the above steps S210 to S215, the step of matching the first word segmentation set based on the preset case information word library to obtain the case matching score between each historical case and the case to be processed may specifically include: first obtaining the third word segmentation set corresponding to the second historical case in the case information word library. Wherein, the second historical case is any one of all the historical cases. Then, for each word in the first word segmentation set, the matching result of the word and each word in the third word segmentation set is generated respectively based on the preset parallel computing instruction. Wherein, the matching result includes a successful match or a failed match. The parallel computing instruction may specifically be a single instruction multiple data (SIMD) instruction, which uses the parallel computing capability of the parallel computing instruction to simultaneously generate the matching result of each word in the first word segmentation set and each word in the third word segmentation set, which can effectively improve the processing rate of word matching, and thus improve the generation rate of matching results. In addition, generating a matching result between words means calculating the similarity between the words. If the similarity between the two words is greater than a preset similarity threshold, the matching result of the two words is determined to be a successful match, and if the similarity between the two words is less than a preset similarity threshold, the matching result of the two words is determined to be a failed match. Then, a first number of matching results that are successfully matched is obtained. And a second number of all words included in the first word segmentation set is obtained. Subsequently, the quotient of the first number and the second number is calculated. Finally, the quotient is used as the case matching score between the case to be processed and the second historical case. For example, if the first word segmentation set includes 10 word segmentations, the third word segmentation set includes 20 word segmentations, and there are 8 word segmentations in the third word segmentation set that are successfully matched with the first word segmentation set, then the case matching score between the case to be processed and the second historical case can be calculated to be 8 / 10=0.8. In this embodiment, after the case information is segmented and a first segmentation set is obtained, the first segmentation set is intelligently matched with the segmentation set corresponding to each historical case in the case information vocabulary, and then a case matching score between each historical case and the case information is quickly generated based on the obtained matching result, thereby effectively improving the efficiency of generating the case matching score, facilitating the subsequent calculation of the comprehensive score of the first lawyer based on the obtained case matching score, and then accurately achieving the target recommended lawyer that matches the lawyer recommendation request input by the user based on the comprehensive score, thereby improving the intelligence and accuracy of the lawyer recommendation.
[0102] Furthermore, in an embodiment of the present application, the above step S50 includes:
[0103] S500: Acquire designated lawyer information corresponding to a second lawyer; wherein the second lawyer is any one of all the first lawyers;
[0104] S501: Obtaining a preset interval weight score table;
[0105] S502: Querying the weight scores corresponding to each piece of designated lawyer information based on the interval weight scores;
[0106] S503: Based on the weight score, call a preset second calculation formula to generate an evaluation score corresponding to the second lawyer.
[0107] As described in the above steps S500 to S503, the step of calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyer may specifically include: first obtaining the designated lawyer information corresponding to the second lawyer. Wherein, the second lawyer is any one of all the first lawyers. Then obtain a preset interval weight score table. And query the weight scores corresponding to each of the designated lawyer information based on the interval weight score. Wherein, the interval weight score table is a pre-created weight score that stores information intervals corresponding to different lawyer information. In addition, the lawyer information includes at least years of practice, cooperation time, personal history score, case handling convenience score and law firm score, and may also include the number of cases handled, case handling time, lawyer winning rate, etc. The cooperation time refers to the cooperation time with the company where the user is located, the personal history score refers to the expert score, and the law firm score refers to the professional score of the law firm where the lawyer is located. For example, if the lawyer information includes years of practice, cooperation time, personal history score, case handling convenience score, and law firm score. The weight score for the interval of less than 1 year of practice is 1 point, the weight score for the interval of 1-2 years of practice is 2 points, the weight score for the interval of 3-5 years of practice is 5 points, and the weight score for the interval of more than 5 years of practice is 10 points. The weight score for the interval of less than 1 year of cooperation is 1 point, the weight score for the interval of 1-3 years of cooperation is 3 points, the weight score for the interval of 3-5 years of cooperation is 5 points, and the weight score for the interval of more than 5 years of cooperation is 10 points. The weight score for the interval of 0-5 points of personal history score is 3 points, the weight score for the interval of 6-8 points of personal history score is 5 points, and the weight score for the interval of 9-10 points of personal history score is 10 points. The calculation method of the case handling convenience score can be: if the lawyer's case handling area includes the city where the user is located, the case handling convenience score is 1, and the corresponding weight score is 1; if the lawyer's case handling area does not include the city where the user is located, the case handling convenience score is 0, and the corresponding weight score is 0. The corresponding weight score for a law firm score in the range of 0-5 points is 3 points, the corresponding weight score for a law firm score in the range of 6-8 points is 5 points, and the corresponding weight score for a law firm score in the range of 9-10 points is 10 points. Finally, based on the weight score, call the preset second calculation formula to generate an evaluation score corresponding to the second lawyer. Specifically, the second calculation formula can be S1 is the evaluation score, Q i is the weight score, k=1, 2, ..., p. Alternatively, the second calculation formula may also be S2=[X1X2X l ...X t ][R1R2R l ...R t ] T, S2 is the evaluation score, X l is the designated lawyer information, l = 1, 2, ..., t, [X1X2X l ...X t ] is the vector of designated lawyer information, R l is the weight score, l = 1, 2, ..., t, [R1R2R l ...R t ] T is the transpose of the weight score vector. In this embodiment, after obtaining the lawyer information of any first lawyer, the evaluation score corresponding to the first lawyer can be quickly generated through the preset interval weight score table and the second calculation formula, which effectively ensures the generation efficiency and accuracy of the evaluation score, and is conducive to the subsequent calculation of the comprehensive score of the first lawyer based on the obtained case matching score, and then accurately achieves the target recommended lawyer that matches the lawyer recommendation request input by the user based on the comprehensive score, thereby improving the intelligence and accuracy of the lawyer recommendation.
[0108] Furthermore, in an embodiment of the present application, the above step S60 includes:
[0109] S600: Obtaining a designated evaluation score of a third lawyer; wherein the third lawyer is any one of all the first lawyers;
[0110] S601: Find a designated historical case corresponding to the third lawyer from all the target historical cases;
[0111] S602: Obtaining a designated case matching score between the case to be processed and the designated historical case;
[0112] S603: Calculate the product of the specified evaluation score and the specified case matching score;
[0113] S604: Using the product as the comprehensive score of the third lawyer.
[0114] As described in the above steps S600 to S604, the step of calculating the comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score may specifically include: first, obtaining the designated evaluation score of the third lawyer. The third lawyer is any one of all the first lawyers. Then, the designated historical case corresponding to the third lawyer is found from all the target historical cases. Each historical case in the case information word library corresponds to a lawyer, and a data table storing the mapping relationship between historical cases and lawyers can be pre-created in the case information word library, so that the designated historical case corresponding to the third lawyer can be obtained by querying the data table. Then, the designated case matching score between the case to be processed and the designated historical case is obtained. Subsequently, the product between the designated evaluation score and the designated case matching score is calculated. Finally, the product is used as the comprehensive score of the third lawyer. In this embodiment, after obtaining the designated evaluation score of any first lawyer, that is, the third lawyer, by finding the designated case corresponding to the third lawyer from all the target historical cases, and obtaining the designated case matching score between the pending case and the designated case, the comprehensive score of the fourth lawyer can be quickly generated by calculating the product of the designated evaluation score and the designated case matching score, and then based on the comprehensive score, the target recommended lawyer that matches the lawyer recommendation request input by the user is accurately achieved, thereby improving the intelligence and accuracy of the lawyer recommendation.
[0115] Furthermore, in an embodiment of the present application, the above step S70 includes:
[0116] S700: Filtering out a first comprehensive score greater than a preset comprehensive score threshold from all the comprehensive scores;
[0117] S701: sorting the first comprehensive scores in descending order of values to obtain a corresponding sorting result;
[0118] S702: Starting from the first comprehensive score ranked first in the sorting result, a preset number of second comprehensive scores are acquired in sequence;
[0119] S703: Based on the second comprehensive score, select a fourth lawyer corresponding to the second comprehensive score from all the first lawyers;
[0120] S704: The fourth lawyer is used as the target recommended lawyer.
[0121] As described in the above steps S700 to S704, the step of determining the target recommended lawyer from the first lawyer based on the comprehensive score may specifically include: first, screening out a first comprehensive score greater than a preset comprehensive score threshold from all the comprehensive scores. Wherein, the value of the comprehensive score threshold is not limited and can be set according to actual needs. Then, the first comprehensive scores are sorted in order from large to small values to obtain a corresponding sorting result. Then, starting from the first comprehensive score ranked first in the sorting result, a preset number of second comprehensive scores are obtained in sequence. Wherein, the value of the preset number is not limited and can be set according to actual needs, for example, the preset number can be set and generated by the user, or automatically generated by the device based on historical data experience, etc. Subsequently, based on the second comprehensive score, a fourth lawyer corresponding to the second comprehensive score is screened out from all the first lawyers. Finally, the fourth lawyer is used as the target recommended lawyer. Wherein, after the target recommended lawyer is determined, the generated target recommended lawyer can be displayed on the current interface of the client to complete the process of pushing the target recommended lawyer to the user. In this embodiment, after obtaining the comprehensive score of each first lawyer, the first comprehensive score that is greater than the comprehensive score threshold is first screened out from the comprehensive scores, and a preset number of second comprehensive scores with the largest values are intelligently selected from the second comprehensive scores, and then the lawyer corresponding to the second comprehensive score is obtained as the corresponding target recommended lawyer, so as to accurately achieve the target recommended lawyer that matches the lawyer recommendation request input by the user, thereby improving the intelligence and accuracy of the lawyer recommendation.
[0122] The lawyer recommendation method based on data analysis in the embodiment of the present application can also be applied to the blockchain field, such as storing the above-mentioned comprehensive score and other data on the blockchain. By using the blockchain to store and manage the above-mentioned comprehensive score, the security and non-tamperability of the above-mentioned comprehensive score can be effectively guaranteed.
[0123] The above-mentioned blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0124] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.
[0125] Reference Figure 2 In one embodiment of the present application, a lawyer recommendation device based on data analysis is also provided, including:
[0126] The first processing module 1 is used to receive a lawyer recommendation request input by a user, and perform word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes multiple words;
[0127] The second processing module 2 is used to match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0128] A screening module 3 is used to screen out a target case matching score greater than a preset matching score threshold from all the case matching scores, and obtain a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes multiple;
[0129] A first acquisition module 4 is used to acquire a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0130] A first calculation module 5, configured to calculate the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, cooperation duration, personal history score, case handling convenience score and law firm score;
[0131] A second calculation module 6, configured to calculate a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0132] A determination module 7 is used to determine a target recommended lawyer from the first lawyers based on the comprehensive score, and push the target recommended lawyer to the user.
[0133] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0134] Furthermore, in an embodiment of the present application, the lawyer recommendation request also carries user information, and the lawyer recommendation device based on data analysis includes:
[0135] A second acquisition module is used to acquire the user information carried in the lawyer recommendation request, and determine whether the legal user list contains designated user information that is the same as the user information;
[0136] A third acquisition module is used to acquire a palm print image and a palm blood vessel image of the user's palm based on a preset 3D camera if the designated user information is included; wherein the 3D camera is a camera including structured light, time of flight and binocular structure;
[0137] A third processing module is used to perform feature extraction and feature fusion processing on the palm print image and the palm blood vessel image based on the palm recognition model to obtain palm feature information;
[0138] A fourth acquisition module, used for acquiring designated palm feature information corresponding to the designated user information from a preset palm feature database;
[0139] A comparison module, used for comparing the palm feature vector with the specified palm feature information, and determining whether the palm feature vector and the specified palm feature information are the same feature information;
[0140] A generation module is used to generate a processing instruction for performing word segmentation processing on the case information carried in the lawyer recommendation request if the feature information is the same.
[0141] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0142] Furthermore, in one embodiment of the present application, the second processing module 2 includes:
[0143] A first acquisition unit is used to acquire a second segmentation set corresponding to a first historical case in the case information word library; wherein the first historical case is any one of all the historical cases;
[0144] A first calculation unit, configured to calculate the similarity between the first word segmentation set and the second word segmentation set by using a preset first calculation formula;
[0145] The first determining unit is configured to use the similarity as a case matching score between the case to be processed and the first historical case.
[0146] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0147] Furthermore, in one embodiment of the present application, the second processing module 2 includes:
[0148] A second acquisition unit is used to acquire a third segmentation set corresponding to a second historical case in the case information word library; wherein the second historical case is any one of all the historical cases;
[0149] A first generating unit, configured to generate, for each word in the first word segmentation set, a matching result between the word and each word in the third word segmentation set based on a preset parallel computing instruction; wherein the matching result includes a matching success or a matching failure;
[0150] A third acquisition unit, used to acquire a first number of successfully matched matching results;
[0151] A fourth acquisition unit, configured to acquire a second number of all words included in the first word segmentation set;
[0152] a second calculating unit, configured to calculate a quotient of the first quantity and the second quantity;
[0153] The second determining unit is used to use the quotient as a case matching score between the case to be processed and the second historical case.
[0154] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0155] Furthermore, in one embodiment of the present application, the first calculation module 5 includes:
[0156] A fifth obtaining unit is used to obtain designated lawyer information corresponding to a second lawyer; wherein the second lawyer is any one of all the first lawyers;
[0157] A sixth acquisition unit, used to acquire a preset interval weight score table;
[0158] A query unit, configured to query the weight scores corresponding to the designated lawyer information based on the interval weight scores;
[0159] The second generating unit is used to call a preset second calculation formula to generate an evaluation score corresponding to the second lawyer based on the weight score.
[0160] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0161] Furthermore, in one embodiment of the present application, the second calculation module 6 includes:
[0162] a seventh obtaining unit, configured to obtain a designated evaluation score of a third lawyer; wherein the third lawyer is any one of all the first lawyers;
[0163] A search unit, used to search for a designated historical case corresponding to the third lawyer from all the target historical cases;
[0164] An eighth acquisition unit, configured to acquire a designated case matching score between the case to be processed and the designated historical case;
[0165] A third calculation unit, used to calculate the product of the specified evaluation score and the specified case matching score;
[0166] The third determining unit is used to use the product as the comprehensive score of the third lawyer.
[0167] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0168] Furthermore, in an embodiment of the present application, the above-mentioned determination module 7 includes:
[0169] A first screening unit, configured to screen out a first comprehensive score greater than a preset comprehensive score threshold from all the comprehensive scores;
[0170] A sorting unit, used to sort the first comprehensive scores in descending order of values to obtain a corresponding sorting result;
[0171] A ninth acquisition unit, configured to sequentially acquire a preset number of second comprehensive scores starting from the first comprehensive score ranked first in the sorting result;
[0172] A second screening unit is used to screen out a fourth lawyer corresponding to the second comprehensive score from all the first lawyers based on the second comprehensive score;
[0173] The fourth determining unit is used to select the fourth lawyer as the target recommended lawyer.
[0174] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the lawyer recommendation method based on data analysis in the aforementioned implementation method, and will not be repeated here.
[0175] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface, a display screen, an input device and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a storage medium and an internal memory. The storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium. The database of the computer device is used to store case information, user information, palm print images, palm blood vessel images, a first segmentation set, case matching scores, evaluation scores and comprehensive scores. The network interface of the computer device is used to communicate with an external terminal through a network connection. The display screen of the computer device is an indispensable graphic output device in the computer, which is used to convert digital signals into optical signals so that text and graphics are displayed on the screen of the display screen. The input device of the computer device is the main device for information exchange between the computer and the user or other devices, and is used to transmit data, instructions and certain sign information to the computer. When the computer program is executed by the processor, a lawyer recommendation method based on data analysis is implemented.
[0176] The processor executes the steps of the lawyer recommendation method based on data analysis:
[0177] A first processing module is used to receive a lawyer recommendation request input by a user, and perform word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words;
[0178] A second processing module is used to match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0179] A screening module, used to screen out a target case matching score greater than a preset matching score threshold from all the case matching scores, and obtain a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes multiple;
[0180] A first acquisition module is used to acquire a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0181] A first calculation module, configured to calculate the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score;
[0182] A second calculation module, configured to calculate a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0183] A determination module is used to determine a target recommended lawyer from the first lawyers based on the comprehensive score and push the target recommended lawyer to the user.
[0184] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application scheme, and does not constitute a limitation on the devices and computer equipment to which the present application scheme is applied.
[0185] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a lawyer recommendation method based on data analysis is implemented, specifically:
[0186] A first processing module is used to receive a lawyer recommendation request input by a user, and perform word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words;
[0187] A second processing module is used to match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases;
[0188] A screening module, used to screen out a target case matching score greater than a preset matching score threshold from all the case matching scores, and obtain a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes multiple;
[0189] A first acquisition module is used to acquire a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer;
[0190] A first calculation module, configured to calculate the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score;
[0191] A second calculation module, configured to calculate a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score;
[0192] A determination module is used to determine a target recommended lawyer from the first lawyers based on the comprehensive score and push the target recommended lawyer to the user.
[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in the present application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0194] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0195] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A lawyer recommendation method based on data analysis, characterized in that: include: Receive a lawyer recommendation request input by a user, perform word segmentation processing on the case information carried in the lawyer recommendation request, and obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words; The first word segmentation set is matched based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases; Filtering out a target case matching score greater than a preset matching score threshold from all the case matching scores, and acquiring a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes a plurality; Obtaining a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer; Calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score; Calculate the comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score; Determine a target recommended lawyer from the first lawyers based on the comprehensive score, and push the target recommended lawyer to the user; The step of performing matching processing on the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed includes: Obtaining a second word segmentation set corresponding to a first historical case in the case information word library; wherein the first historical case is any one of all the historical cases; Calculate the similarity between the first word segmentation set and the second word segmentation set by using a preset first calculation formula; Using the similarity as a case matching score between the case to be processed and the first historical case; The step of performing matching processing on the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed includes: Obtaining a third word segmentation set corresponding to a second historical case in the case information word library; wherein the second historical case is any one of all the historical cases; For each word in the first word segmentation set, generating a matching result between the word and each word in the third word segmentation set based on a preset parallel computing instruction; wherein the matching result includes a successful match or a failed match; Obtaining a first number of successfully matched matching results; Obtain a second number of all words included in the first word segmentation set; calculating a quotient of the first quantity and the second quantity; Using the quotient as a case matching score between the case to be processed and the second historical case; The step of calculating the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers includes: Obtain designated lawyer information corresponding to a second lawyer; wherein the second lawyer is any one of all the first lawyers; Obtain a preset interval weight score table; Based on the interval weight score, query the weight score corresponding to each of the designated lawyer information; Based on the weighted score, calling a preset second calculation formula to generate an evaluation score corresponding to the second lawyer; The step of calculating the comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score includes: Obtaining a designated evaluation score of a third lawyer; wherein the third lawyer is any one of all the first lawyers; Finding a designated historical case corresponding to the third lawyer from all the target historical cases; Obtaining a specified case matching score between the pending case and the specified historical case; Calculating the product of the specified evaluation score and the specified case matching score; The product is taken as the comprehensive score of the third lawyer.
2. The lawyer recommendation method based on data analysis according to claim 1, characterized in that: The lawyer recommendation request also carries user information. Before the step of performing word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set, the method includes: Obtain the user information carried in the lawyer recommendation request, and determine whether the legal user list contains designated user information that is identical to the user information; If the designated user information is included, obtaining a palm print image and a palm blood vessel image of the user based on a preset 3D camera; Based on the palm recognition model, feature extraction and feature fusion processing are performed on the palm print image and the palm blood vessel image to obtain palm feature information; Acquire designated palm feature information corresponding to the designated user information from a preset palm feature database; Comparing the palm feature information with the designated palm feature information to determine whether the palm feature information and the designated palm feature information are the same feature information; If the characteristic information is the same, a processing instruction is generated to perform word segmentation processing on the case information carried in the lawyer recommendation request.
3. The lawyer recommendation method based on data analysis according to claim 1, characterized in that: The step of determining a target recommended lawyer from the first lawyers based on the comprehensive score comprises: Filter out a first comprehensive score greater than a preset comprehensive score threshold from all the comprehensive scores; Sorting the first comprehensive scores in descending order of value to obtain a corresponding sorting result; Starting from the first comprehensive score ranked first in the sorting results, a preset number of second comprehensive scores are obtained in sequence; Based on the second comprehensive score, selecting a fourth lawyer corresponding to the second comprehensive score from all the first lawyers; The fourth lawyer is used as the target recommended lawyer.
4. A lawyer recommendation device based on data analysis, used to execute the method described in any one of claims 1 to 3, characterized in that: include: A first processing module is used to receive a lawyer recommendation request input by a user, and perform word segmentation processing on the case information carried in the lawyer recommendation request to obtain a corresponding first word segmentation set; wherein the first word segmentation set includes a plurality of words; A second processing module is used to match the first word segmentation set based on a preset case information word library to obtain a case matching score between each historical case and the case to be processed; wherein the case information word library stores word segmentation sets corresponding to each of the historical cases; A screening module, used to screen out a target case matching score greater than a preset matching score threshold from all the case matching scores, and obtain a target historical case corresponding to the target case matching score from all the historical cases; wherein the number of the target historical cases includes multiple; A first acquisition module is used to acquire a first lawyer corresponding to the target historical case; wherein one target historical case corresponds to one first lawyer; A first calculation module, configured to calculate the evaluation score of each of the first lawyers based on the lawyer information of the first lawyers; wherein the lawyer information at least includes years of practice, duration of cooperation, personal history score, case handling convenience score and law firm score; A second calculation module, configured to calculate a comprehensive score of each of the first lawyers based on the target case matching score and the evaluation score; A determination module is used to determine a target recommended lawyer from the first lawyers based on the comprehensive score and push the target recommended lawyer to the user.
5. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
