CN113051289A - French retrieval method, device, equipment and storage medium - Google Patents

French retrieval method, device, equipment and storage medium Download PDF

Info

Publication number
CN113051289A
CN113051289A CN202110263123.4A CN202110263123A CN113051289A CN 113051289 A CN113051289 A CN 113051289A CN 202110263123 A CN202110263123 A CN 202110263123A CN 113051289 A CN113051289 A CN 113051289A
Authority
CN
China
Prior art keywords
legal
retrieval
law
target
result page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110263123.4A
Other languages
Chinese (zh)
Inventor
张国良
赵军臣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lulian Oriental Culture Communication Co ltd
Original Assignee
Beijing Lulian Oriental Culture Communication Co 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 Beijing Lulian Oriental Culture Communication Co ltd filed Critical Beijing Lulian Oriental Culture Communication Co ltd
Priority to CN202110263123.4A priority Critical patent/CN113051289A/en
Publication of CN113051289A publication Critical patent/CN113051289A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a legal item retrieval method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information; determining a retrieved target law bar according to the retrieval description information; and returning retrieval result page data to the client according to the target law so that the client displays the content of the target law on a retrieval result page according to the retrieval result page data, wherein the retrieval result page data comprises the content of the target law. The method and the device take the specific law as a retrieval unit, display the retrieved content list of the related target law for the user, enable the user to directly obtain the related law without traversing a large number of laws and regulations, effectively improve the retrieval efficiency, save the energy of the user, reduce the time cost and further improve the user experience.

Description

French retrieval method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for retrieving a legal provision.
Background
With the continuous improvement of people's legal consciousness and the rapid development of internet technology, the demand of inquiring laws and regulations through the internet is continuously increased, and in order to meet the demand of people, a plurality of laws and regulations inquiry application programs, such as great north law treasure, law intention, no action, Westlaw, LexisNexis and the like, appear in the current market, and when a user needs to inquire which law or regulation, convenience is provided for the user.
However, the existing legal and legal inquiry application program usually takes the legal and legal names as the retrieval object, that is, when the user retrieves, the obtained legal and legal names include the list of the retrieval key words, when the user only knows the problem of the user and does not know which laws or regulations to inquire, and even does not know which laws or regulations the applicable laws belong to, the retrieval efficiency by using the existing inquiry method is low, and often, for example, the sea needle is used, the desired result cannot be obtained.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for retrieving a legal provision, and aims to solve the problems of low retrieval efficiency and the like in the prior art.
In a first aspect, an embodiment of the present invention provides a legal item retrieval method, including:
receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information;
determining a retrieved target law bar according to the retrieval description information;
and returning retrieval result page data to the client according to the target law so that the client displays the content of the target law on a retrieval result page according to the retrieval result page data, wherein the retrieval result page data comprises the content of the target law.
In a second aspect, an embodiment of the present invention provides a legal item retrieval method, including:
acquiring retrieval description information input by a user in response to a first operation of the user;
sending a retrieval request to a server according to the retrieval description information so that the server returns retrieval result page data according to the retrieval description information, wherein the retrieval request comprises the retrieval description information;
receiving retrieval result page data returned by the server, wherein the retrieval result page data comprises the content of a target legal provision;
and displaying the content of the target legal provision on a retrieval result page according to the retrieval result page data.
In a third aspect, an embodiment of the present invention provides a law enforcement retrieval device, including:
the first receiving module is used for receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information;
the first processing module is used for determining a retrieved target law bar according to the retrieval description information and generating retrieval result page data according to the target law bar, wherein the retrieval result page data comprises the content of the target law bar;
and the first sending module is used for returning the retrieval result page data to the client so that the client can display the content of the target legal provision on the retrieval result page according to the retrieval result page data.
In a fourth aspect, an embodiment of the present invention provides a french search apparatus, including:
the acquisition module is used for responding to a first operation of a user to acquire retrieval description information input by the user;
the second sending module is used for sending a retrieval request to a server according to the retrieval description information so as to enable the server to return retrieval result page data according to the retrieval description information, wherein the retrieval request comprises the retrieval description information;
the second receiving module is used for receiving retrieval result page data returned by the server, wherein the retrieval result page data comprises the content of a target legal provision;
and the display module is used for displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: the system comprises a first memory, a first transceiver and at least one first processor;
the first processor, the first memory and the first transceiver are interconnected through a circuit;
the first memory stores computer-executable instructions; the first transceiver is used for receiving a retrieval request sent by a client;
the at least one first processor executing the computer-executable instructions stored by the first memory causes the at least one first processor to perform the method as set forth in the first aspect above and in various possible designs of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a terminal, including: a second memory, a second transceiver and at least one second processor;
the second processor, the second memory and the second transceiver are interconnected through a circuit;
the second memory stores computer-executable instructions; the second transceiver is used for sending a retrieval request to a server;
the at least one second processor executing the computer-executable instructions stored by the second memory causes the at least one second processor to perform the method as set forth above in the second aspect and various possible designs of the second aspect.
In a seventh aspect, the embodiments of the present invention provide a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to the first aspect and various possible designs of the first aspect is implemented, or the method according to the second aspect and various possible designs of the second aspect is implemented.
According to the law bar retrieval method, the device, the equipment and the storage medium provided by the embodiment of the invention, the specific law bar is taken as a retrieval unit, retrieval is carried out according to the retrieval description information of the user, the retrieved content list of the related target law bar is displayed for the user, so that the user can directly obtain the related law bar without traversing a large number of laws and regulations, the retrieval efficiency is effectively improved, the energy of the user is saved, the time cost is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a legal entry retrieval method according to an embodiment of the present invention;
fig. 2 is an exemplary diagram of a search result page according to an embodiment of the present invention;
fig. 3 is another exemplary diagram of a search result page according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a search result page according to another exemplary embodiment of the present invention;
FIG. 5 is an exemplary illustration of a legal viewing page provided in accordance with an embodiment of the present invention;
FIG. 6 is an exemplary diagram of a download options page provided in accordance with an embodiment of the present invention;
FIG. 7 is a diagram of an association data structure ER according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram illustrating an overall flow of a system for French retrieval according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a French retrieving method according to another embodiment of the invention;
FIG. 10 is an exemplary diagram of a search results page provided by another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a french search apparatus according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a french search apparatus according to another embodiment of the present invention;
fig. 13 is a schematic diagram illustrating an architecture of a french search system according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
With the above figures, certain embodiments of the invention have been illustrated and described in more detail below. The drawings and the description are not intended to limit the scope of the inventive concept in any way, but rather to illustrate it by those skilled in the art with reference to specific embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following examples, "plurality" means two or more unless specifically limited otherwise.
The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
An embodiment of the present invention provides a law enforcement retrieval method, which is used for retrieving laws and regulations in various laws and regulations. The execution subject of this embodiment is a legal retrieval device, and the device may be disposed in an electronic device, where the electronic device may be a server or other computer devices that can be implemented, and the server may be a single server or a server cluster, and may be specifically set according to actual requirements.
As shown in fig. 1, a schematic flow chart of the legal entry retrieval method provided in this embodiment is shown, where the method includes:
step 101, receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information.
Specifically, when a user has a legal search requirement, the user can log in the search system of the invention through the search client, enter a search page, input corresponding search description information in a search input box of the search page, wherein the search description information can be a keyword, a keyword combination or a segment of description content thought by the user, click a similar button such as "search", and after the client obtains the click operation of the user, the client obtains the search description information input by the user, carries the search description information in a search request and sends the search request to the server, and a legal search device arranged in the server can obtain the search request, and further can respond to the search request.
Optionally, the retrieval description information may also be a user voice input, the client converts the user voice into a text as the retrieval description information, or the client sends the user voice as the retrieval description information to the server, and then the server converts the user voice into the text, which may be specifically set according to actual requirements.
And step 102, determining the retrieved target law according to the retrieval description information.
Specifically, the server receives the retrieval request, may determine a retrieval keyword according to the retrieval description information, and determines, based on the retrieval keyword, the preset keyword, and an association relationship between the preset keyword and the law, that the law related to the retrieval keyword is used as a target law, thereby forming retrieval result page data, where the retrieval result page data may include retrieval result page layout information to be displayed (for example, the retrieval result page is divided into several display areas, what each display area displays, how to display specifically, and the like, which may be set specifically according to actual requirements), display content information and other related information, display content information such as content of the target law, and content of the target law may include a serial number of the target law and specific content of the law, for example, content of the target law is: the twelfth item, which is the work produced by the adaptation, translation, annotation and arrangement of the existing work, has the copyright owned by the person who has the adaptation, translation, annotation and arrangement, but the copyright of the original work cannot be infringed when the copyright is exercised. The target law may be one or more than one, specifically, the target law is multiple according to a matching condition between the search keyword and the preset keyword and a change in an association relationship between the matched preset keyword and the law, for example, the search keyword is "copyright", the keyword is also matched in the preset keyword, and many laws include the keyword.
Optionally, determining the retrieved target law bar according to the retrieval description information may also be to select a part of law bars from the retrieved law bars as the target law bar according to a preset screening condition, for example, 200 law bars are retrieved according to the determined retrieval keyword, and 50 law bars may be screened out as the target law bar according to one or a combination of factors such as matching degree, timeliness, efficacy state, click rate, level, and the like, which may be specifically set according to actual requirements, which is not limited in this embodiment.
Specifically, if the retrieval description information is a certain keyword, the keyword can be used as the retrieval keyword, if the retrieval description information is a keyword combination, the retrieval description information can be segmented, the segmented keyword is used as the retrieval keyword, if the retrieval description information is a segment of description content, the retrieval description information can be segmented first, the segmentation result is cleaned according to a preset cleaning rule, stop words, useless words and the like are removed, and the rest words are used as the retrieval keyword.
The preset keywords and the incidence relation between the preset keywords and the law need to be obtained in advance, and specifically, related law and regulation files can be collected and stored in advance, the law in the files is extracted and stored, the law attribute information such as law identification information, creation time and other attribute information can be set, the law is further segmented and cleaned, keywords corresponding to the content of the law are obtained as the preset keywords, the incidence relation between each preset keyword and the law is recorded, the incidence relation between the preset keywords and the law can include which law the preset keywords appear in, the word frequency of the preset keywords appear in, the position of the preset keywords appear in, the offset and other related information, and the incidence relation between each law and the law can also be recorded, and the incidence relation between the law and the law can include which law or regulation the law belongs to, and the attribute information of the belonged law and regulation, for example, the release time, the effective time, the effectiveness state and other related information, or the association relationship of preset keywords, law and laws and regulations (the form of the specific association relationship can be set according to actual requirements) is directly recorded, so that data support is provided for user retrieval; identification information (such as legal name) and attribute information of the legal can be extracted and recorded and stored, wherein the attribute information can comprise one or more of release date, effective date, release mechanism, effectiveness state (effective and ineffective) and other information of the legal; the law and regulation can be laws or regulations, namely the retrieved law in the invention can be a law in the laws or a law in the laws, and can be specifically set according to actual requirements.
Optionally, the preset keywords may be stored in a keyword library, the extracted legal provision may be stored in a legal provision library, laws or regulations may be stored in a legal and regulation library, the association relationship may be stored in a database according to a preset data structure, and the specific storage mode may be set according to actual requirements.
And 103, returning retrieval result page data to the client according to the target law so that the client displays the content of the target law on a retrieval result page according to the retrieval result page data, wherein the retrieval result page data comprises the content of the target law.
Specifically, after the server forms the retrieval result page data, the server may send the retrieval result page data to the client, and the client may display the content of the target law in the retrieval result page according to the retrieval result page data.
Optionally, the name of the legal regulation to which the target law belongs may be displayed below (or above, or in other relevant areas) the content of the target law according to the actual requirement, and the attribute information or part of the attribute information of the legal regulation may be displayed below or behind the name of the legal regulation, which may be specifically set according to the actual requirement.
Optionally, the search keyword in the displayed target french can be highlighted.
For example, as shown in fig. 2, an exemplary schematic diagram of a retrieval result page provided by this embodiment is provided, where a displayed target law takes only a part as an example, a specific display quantity and a specific display mode may be set according to actual requirements, where the retrieval description information takes a key phrase of translation + copyright as an example, and the determined retrieval key words are translation and copyright, where this is only an exemplary display mode, and in an actual application, a specific display mode and a specific style may be set according to actual requirements.
According to the law bar retrieval method provided by the embodiment, the specific law bar is taken as a retrieval unit, retrieval is carried out according to the retrieval description information of the user, the content list of the retrieved related target law bar is displayed for the user, the user does not need to traverse a large number of laws and regulations, the related law bar can be directly obtained, the retrieval efficiency is effectively improved, the energy of the user is saved, the time cost is reduced, and the user experience is improved.
As an implementable manner, in order to facilitate the user to know which law or regulation the target law belongs to, the retrieval result page data further includes legal regulation identification information and attribute information to which each target law belongs; correspondingly, returning retrieval result page data to the client according to the target law so that the client displays the content of the target law on the retrieval result page according to the retrieval result page data, and the method comprises the following steps: and returning retrieval result page data to the client according to the target law so that the client displays the content of the target law, legal and legal identification information and attribute information of the target law on a retrieval result page according to the retrieval result page data.
Specifically, when the user searches, the user may further obtain the target laws and regulations to which each target law belongs and the attribute information of each target laws and regulations based on the association relationship between the laws and regulations, or directly obtain the target laws and regulations related to each search keyword and the attribute information of the target laws and regulations to which each target law belongs based on the association relationship between the preset keyword-law and regulations, to form search result page data, so that the display content information includes the content of the target laws and regulations as well as the identification information and the attribute information of the laws and regulations to which the target laws and regulations belong, which laws and regulations the corresponding laws and regulations belong, and the release date, release mechanism, effectiveness status and other attributes of the laws and regulations to which the target laws and regulations belong are immediately known to the user, for example, the names of the laws and regulations to which the target laws and regulations belong are displayed under the content of the target laws, the attribute information or part of the attribute information of the laws and regulations is shown below or behind the names of the laws and regulations, and the attribute information or part of the attribute information can be specifically set according to actual requirements.
Exemplarily, as shown in fig. 3, another exemplary schematic diagram of the search result page provided for this embodiment shows names and attribute information of laws and regulations to which the target law belongs under the target law.
By displaying the identification information and the attribute information of the laws and regulations to which the target law rules belong while displaying the target law rule content list, a user can conveniently know which laws or regulations the target law rules belong to and attributes of release dates, effective dates, release mechanisms, effectiveness states and the like of the laws and regulations to which the target law rules belong, and user experience is further improved.
Further, in order to facilitate the user to view the specific content of the legal regulation to which the target law is subordinate, a function of viewing the specific content of the legal regulation is also provided, that is, the method further includes:
receiving a viewing request of a first legal rule to which a first target legal rule belongs, wherein the viewing request is sent by a client; and returning the legal regulation viewing page data to the client according to the viewing request so that the client displays the content of the first legal regulation on the legal regulation viewing page according to the legal regulation viewing page data, wherein the legal regulation viewing page data comprises the content of the first legal regulation.
Specifically, the first target law may be any one of the target laws and regulations displayed on the search result page, when the user browses the search result page, if the user wants to view the whole content of the laws and regulations (referred to as the first laws and regulations) to which the first target law belongs, the user may click the first laws and regulations name displayed under the first target law on the search result page, the client obtains a click operation (referred to as a first operation) of the user, obtains identification information of the first laws and regulations, sends the identification information of the first laws and regulations to the server in a viewing request, the server receives the viewing request of the first laws and regulations to which the first target law and regulations belong sent by the client, obtains the identification information of the first laws and regulations from the viewing request, and obtains the whole content data of the first laws and regulations from the laws and regulations repository according to the identification information of the first laws and regulations, and forming legal regulation viewing page data and returning the legal regulation viewing page data to the client, wherein the client displays the content of the first legal regulation on the legal regulation viewing page according to the legal regulation viewing page data, and the user can conveniently view the whole content.
By providing the function of clicking and checking the whole content of the laws and regulations for the user, the user can further conveniently know the specific content of the laws and regulations to which the target laws and regulations belong, and the user experience is further improved.
As another implementable manner, in order to accurately and effectively retrieve the target law, on the basis of the foregoing embodiment, optionally, determining the retrieved target law according to the retrieval description information specifically includes:
determining a retrieval keyword according to the retrieval description information; matching the search keywords with preset keywords to obtain a matching result, wherein the matching result comprises the matched preset keywords; and determining the retrieved target law bar according to the matching result and the pre-obtained incidence relation between the preset keywords and the law bar.
Specifically, since the retrieval description information input by the user may not be an accurate keyword, such as a keyword combination or a segment, and the situation that the retrieval result may not be found may occur when the retrieval description information is directly used as the retrieval keyword, the retrieval keyword needs to be determined according to the retrieval description information, so as to improve the accuracy of the retrieval keyword, and further improve the accuracy of the retrieval result, specifically, if the retrieval description information is a certain keyword, the keyword may be used as the retrieval keyword, such as a copyright; if the retrieval description information is a keyword combination, the retrieval description information can be segmented, the segmented keywords are used as retrieval keywords, for example, when a user inputs copyright + translation, the segmentation is two retrieval keywords of copyright and translation, if the retrieval description information is a segment of description content, the retrieval description information can be segmented firstly, segmentation results are cleaned according to a preset cleaning rule, stop words, useless words and the like such as 'yes', 'no', 'o' and the like are removed, and the rest words are used as the retrieval keywords.
After the search keywords are determined, the search keywords may be matched with preset keywords to obtain matching results, where the matching results may include the matched preset keywords, and a specific matching manner may be matching based on a distance between word vectors, or matching in other implementable manners, which is not limited in this embodiment; the matched preset keywords may be referred to as target preset keywords, and the retrieved target law is determined according to the incidence relation between the target preset keywords and the preset keyword law obtained in advance, for example, if the target preset keywords are "copyright" and "translation", the law in which "copyright" and "translation" are both associated (or a part of laws are screened according to a certain screening rule) is used as the target law.
The retrieval description information is subjected to word segmentation and other processing to determine the retrieval keywords, the target law is further determined based on the retrieval keywords and the incidence relation between the preset keywords and the law, which are obtained in advance, and the accuracy of the retrieval result is effectively improved.
Further, in order to enable the user to conveniently view the most relevant legal rules, the target legal rules may be sorted, that is, after the target legal rules are determined, the method may further include:
obtaining the scores of all target legal items; sequencing the target rules according to the scores of the target rules to obtain the sequenced target rules; correspondingly, the returned retrieval result page data comprise the contents of the ordered target french items, the client displays the contents of the target french items in the retrieval result page according to the ordering according to the retrieval result page data, and the retrieval result page data comprise the contents of the ordered target french items.
Specifically, the scoring of each target law may be determined by considering at least one of the matching degree of the search keyword in each target law, the word frequency of the search keyword, the timeliness (release time, effective time) of the laws and regulations to which each target law belongs, the effectiveness state, and other related factors, and the specific scoring rule may be determined by any implementable manner in the prior art, which is not limited in this embodiment, for example, for the matching degree, a completely matched law is preferred, if the matching degree is the same, the release time is the latest preferred, for the effectiveness state, effective preference, poor failure, and the like, and the specific sorting rule may be set according to actual requirements; after the scores of the target rules are determined, the target rules can be arranged in a descending order according to the scores to obtain the ordered target rules.
For example, for each target law, multiple factors can be considered comprehensively, a certain weight is set for each factor, and the weight of each factor is added to serve as the score of each target law.
In order to further facilitate the user, in another embodiment, a legal provision and a legal rule downloading function are provided for the user, that is, the method further comprises:
receiving a downloading request sent by a client, wherein the downloading request comprises legal information to be downloaded and/or legal and legal information to be downloaded; and returning the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded to the client according to the downloading request.
Specifically, a download entry may be set in the retrieval result page, the user selects a target law bar to be downloaded, and clicks "download", the client may obtain target law bar information selected by the user as the law bar information to be downloaded, or the user may select all target law bars to be downloaded as the law bar information to be downloaded through a full selection option, the law bar information to be downloaded may be identification information of the law bar to be downloaded, such as a unique identification set for each law bar in advance, the unique identification may be set according to actual requirements, such as numbering legal regulations, and the legal regulation number and the law bar number are used together as identification information of each law bar, for example, the number of the copyright law bar of the people's republic of china is 0012, and the identification information of the 10 th bar is 00120010; during displaying, a selection frame may be set in front of each target french, the selection frame is associated with the identification information of the target french correspondingly, and when a user selects the selection frame, the client may obtain the identification information of the target french corresponding to the selection frame as the information of the french to be downloaded. After the client acquires the legal item information to be downloaded, the legal item information to be downloaded is carried in the downloading request and is sent to the server, the server acquires the corresponding legal item to be downloaded according to the legal item information to be downloaded, writes the corresponding legal item to be downloaded into the file to be downloaded and returns the file to the client, and a user can store the file to be downloaded locally and check the file in real time.
Illustratively, as shown in fig. 4, a further exemplary diagram of a search result page provided for this embodiment is provided.
The legal and legal information to be downloaded can be downloaded by clicking a legal and legal check page by a user, the client acquires the legal and legal information to be downloaded by the user as the legal and legal information to be downloaded, the legal and legal information to be downloaded is carried in a downloading request and is sent to the server, the legal and legal information to be downloaded can be identification information of the legal and legal to be downloaded, the server can acquire the whole content of the corresponding legal and legal to be written in a file to be downloaded according to the legal and legal information to be downloaded, the file to be downloaded is sent to the client after the writing is finished, and the file to be downloaded can be stored locally by the user so as to be checked in real time. Illustratively, as shown in fig. 5, an exemplary schematic diagram of a law and regulation viewing page provided for the present embodiment is provided.
Or, when the user clicks 'download' on the retrieval result page, the user can enter the download option page, the user can select whether to download the laws and regulations to which the laws and regulations to be downloaded belong at the same time on the download option page, if so, the client can acquire the identification information of the target laws and regulations to be downloaded by the user as the information of the laws and regulations to be downloaded, and the identification information of the laws and regulations to which the laws and regulations to be downloaded belong is taken as the information of the laws and regulations to be downloaded, so that the user only needs to provide once download content under the condition that different laws and regulations belong to the same law and regulation; or, all legal rules lists related to the target law may be provided for the user in the download option page for the user to select, the user may select the legal rules to be downloaded, the law to be downloaded and the legal rules to be downloaded may be written into different files to be downloaded, and named separately, or written into the same file, which may be specifically set according to actual requirements, and this embodiment is not limited.
Illustratively, as shown in fig. 6, an exemplary diagram of a download option page provided for the present embodiment is provided.
In order to provide more and more retrievable legal provisions for users, the invention also provides a function of uploading legal and legal documents in real time and carrying out legal provision batch processing, and the method specifically comprises the following steps:
acquiring a legal and legal document to be processed; carrying out law and regulation file to be processed with law and regulation extraction processing to obtain extracted laws and regulations; performing word segmentation processing on the extracted law entry to obtain a keyword as a preset keyword; and establishing the incidence relation between each preset keyword and the law and the incidence relation between the law and the laws and regulations.
Specifically, relevant personnel can collect relevant legal and legal regulation files as legal and legal regulation files to be processed, the legal and legal regulation files can be uploaded to the server through the client, the server can obtain the legal and legal regulation files to be processed, and for each legal and legal regulation file, the law and regulation files can be extracted to obtain extracted laws and regulations; the specific extraction rules can be set according to the specific content and actual requirements of the legal documents.
For example, taking a law document as an example, the law document may be read, and the law is extracted according to the law feature that each law has a word "the first bar" at the beginning, which may specifically include:
(1) defining a pointer for recording the position of the current legal provision in units of paragraphs, and setting the pointer as the position of the beginning of the file by default.
(2) When the first paragraph with the French feature is encountered, the pointer is moved to the start position of the paragraph.
(3) And continuing reading the content, and intercepting the text content of the pointer to the current position as a French when the next paragraph with a French feature or other interruption marks is encountered.
(4) And moving the pointer to the initial position of the current paragraph, and repeating the above processes until the file is completely read, so as to obtain the extracted French fries.
After the french fries are extracted, word segmentation can be carried out on each french fries, keywords in the french fries are extracted as preset keywords, and can set up the keyword label for every preset keyword, such as set up keyword ID, and can record the creation time and other relevant information of the preset keyword, the keyword extraction rule can be set up according to the actual demand, such as can adopt the word segmentation mode that can be realized arbitrarily in the prior art to segment the French sentence, obtain the word after splitting, since the split words may contain many useless words, such as stop words "of", "having", "o", etc., the split words may be cleaned to obtain cleaned words, the cleaned words can be used as preset keywords, and part-of-speech tagging can be performed before word segmentation, so that the part-of-speech of the keywords can be recorded, and the word segmentation can be specifically set according to actual requirements.
Optionally, in practical application, the word segmentation and the law bar extraction are not in a sequence, or the word segmentation may be performed first, then the law bar is extracted, and then the incidence relation between the preset keyword obtained by the word segmentation and the law bar is determined, which may be specifically set according to practical requirements.
After the keywords of the law are extracted as the preset keywords, the incidence relation between each preset keyword and the law and the incidence relation between the law and laws and regulations can be established.
The association relationship between the preset keyword and the law may include which law or regulation the law appears in, and attribute information of the law, such as release time, effective time, effectiveness state, and other related information.
Optionally, the incidence relation of the preset keyword-law may also be directly established, and the form of the specific incidence relation may be set according to actual requirements.
In practical application, a data model may be established, where the data model includes a legal and legal rule base, a legal item base, a preset keyword base, and a connection between the legal and legal rule bases, and as shown in fig. 7, for example, an association relationship data structure ER Diagram provided in this embodiment is provided, where the ER Diagram is also called an E-R Diagram, and is an entity-connection Diagram (entity relationship Diagram), and a manner of representing entity types, attributes, and connections is provided.
In practical application, preset keywords can be synchronized into an ES (distributed document database), and an inverted index based on the preset keywords is established, so that a corresponding target law and an associated legal rule can be quickly obtained based on the search keywords during searching.
In practical application, a database storing various data can be selected according to actual requirements, for example, a MySQL database can be used to store all complete data such as preset keywords, legal provisions, laws and regulations, and an ES database can be used to store field contents to be retrieved, such as preset keyword fields, ID fields of the corresponding legal provisions, ID fields of laws and regulations and the like, and specifically, the database can be set according to actual requirements, and part of contents can be loaded into a memory to improve retrieval speed; FileStorage is adopted to store legal and legal documents.
By uploading legal and legal rules documents in real time, extracting the law rules, and extracting the keywords in the law rules to enrich the preset keyword library, the law rule library and the legal and legal rules library, more and more retrievable law rules can be provided for users, new legal and legal rules can be brought in conveniently in real time, retrieval service can be provided for the users better, and user experience is further improved.
In order to more clearly illustrate the technical solution of the present invention, the following describes the overall process of the law enforcement retrieval system according to an exemplary embodiment, as shown in fig. 8, a schematic block diagram of the overall process of the law enforcement retrieval system provided in this embodiment is provided, where the law and regulation documents take the law and regulation documents as examples, and the detailed process of the system is as follows:
1. the server receives and stores the rule file uploaded by the client, and records attribute information of the rule file, such as release date, effective date, release mechanism, effectiveness state and the like in a rule library.
2. And the server performs law extraction processing on the uploaded law files, stores the extracted laws into a law bank, and records the relation between each law and laws.
3. The server divides the extracted french items into words to obtain a keyword set (namely a preset keyword set), stores the keyword set into a keyword library (namely a preset keyword library), and simultaneously records the relation between each preset keyword and the french item.
4. The server synchronizes preset keywords to the ES and constructs an inverted index based on the preset keywords.
5. When the server receives the search request, the word combination needing to be searched is segmented to obtain the final keyword content needing to be searched (namely the search keyword).
6. And the server searches based on the search keywords and arranges the searched target legal items in a descending order by taking the scores as a reference to obtain a final ordered target legal item list.
7. And the server acquires detailed regulation information from the regulation library aiming at the ordered target regulations, assembles the detailed regulation information into structured data and returns the structured data to the client.
8. When a downloading request sent by a client is received, content information needing to be downloaded (namely legal information to be downloaded and/or legal and legal information to be downloaded) is obtained, the content to be downloaded is written into a file to be downloaded in batches, and the file to be downloaded is returned to the client after the content to be downloaded is written.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present invention is not limited thereto.
According to the law retrieval method provided by the embodiment, the identification information and the attribute information of the laws and regulations to which each target law belongs are displayed while the target law content list is displayed, so that a user can conveniently know which laws or regulations the target laws and regulations belong to and the attributes of the release date, the effective date, the release mechanism, the effectiveness state and the like of the laws and regulations to which the target laws and regulations belong, and the user experience is further improved; by providing the function of clicking and checking the whole content of the laws and regulations for the user, the user can further conveniently know the specific content of the laws and regulations to which the target laws and regulations belong, and the user experience is further improved; the retrieval description information is subjected to word segmentation and other processing to determine retrieval keywords, and a target law is further determined based on the retrieval keywords and the incidence relation between preset keywords and the law, which are obtained in advance, so that the accuracy of a retrieval result is effectively improved; and the target legal provision is sorted based on the scores and displayed according to the sorting, so that the user can conveniently check the most relevant legal provision, and the user experience is further improved.
In the above, the law enforcement retrieval method implemented by the server is described further below.
A further embodiment of the present invention provides a method for retrieving a legal entry, where an execution main body of the embodiment is a legal entry retrieval device, the legal entry retrieval device is a client of a legal entry retrieval system, and the device may be set in a terminal, and the terminal may be a mobile phone, a personal PC, a tablet, or the like, and may be specifically set according to actual requirements.
As shown in fig. 9, a schematic flow chart of the legal entry retrieval method provided in this embodiment is shown, where the method includes:
step 301, retrieving description information input by a user is obtained in response to a first operation of the user.
Step 302, sending a retrieval request to the server according to the retrieval description information so that the server returns the retrieval result page data according to the retrieval description information, wherein the retrieval request comprises the retrieval description information.
Step 303, receiving the retrieval result page data returned by the server, wherein the retrieval result page data includes the content of the target french.
And 304, displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data.
Specifically, the first operation may refer to that the user clicks a similar button such as "search" after inputting corresponding search description information in a search input box of the search page, or inputs information such as "determination" and "search" after inputting the search description information by voice, the client acquires the search description information input by the user after acquiring the first operation of the user, and sends the search description information to the server by carrying the search description information in a search request, the specific operation of the server is described in the above embodiment, which is not described herein again, the client receives search result page data returned by the server, and displays the content of the target provision on the search result page according to the search result page data, and the specific display mode may be set according to actual needs.
Optionally, the search keyword related to the target french article may be highlighted, for example, the search keyword is "copyright", and for the searched target french article, when the content of the target french article is displayed, the "copyright" keyword in the target french article is highlighted, which may be specifically set according to actual requirements.
It should be noted that the specific operation of the client is described in detail in the interaction process between the foregoing embodiment and the server (see the foregoing embodiment specifically), and the same technical effect can be achieved, which is not described herein again.
In order to make the technical solution of the present invention clearer, the method provided by the above embodiment is further described in a supplementary manner in another embodiment of the present invention
As an implementable manner, in order to facilitate the user to know which law or regulation the target law belongs to, the retrieval result page data further includes legal regulation identification information and attribute information to which each target law belongs; correspondingly, the method for displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data comprises the following steps: and displaying the content of the target law, the legal regulation identification information and the attribute information of the target law according to the retrieval result page data on the retrieval result page.
Further, in order to facilitate the user to view the specific content of the legal regulation to which the target law is subordinate, the method further comprises the following steps:
sending a viewing request of a first legal regulation to which a first target regulation that the user wants to view belongs to a server in response to a second operation of the user; receiving legal regulation viewing page data returned by the server, wherein the legal regulation viewing page data comprises the content of a first legal regulation; and displaying the content of the first law and regulation on the law and regulation viewing page according to the law and regulation viewing page data.
Specifically, the second operation may be that the user clicks the name of the first law and law which the first target law belongs to and is displayed under the first target law on the retrieval result page, the identification information of the first law and law at the client is carried in the viewing request and sent to the server, and the specific operation and interaction process of the server and the client are referred to in the above embodiment and are not described herein again.
Further, in order to make a user clearly know which laws and regulations are retrieved when browsing the whole content of the laws and regulations, the content of the first laws and regulations is displayed on the laws and regulations viewing page according to the laws and regulations viewing page data may specifically include:
and highlighting the legal content belonging to the target legal item in the first legal and legal content.
Specifically, the client may determine, according to the legal regulation information to which each target regulation belongs, a target regulation belonging to the first legal regulation in each target regulation, and highlight the target regulation belonging to the first legal regulation in a preset display manner when the legal regulation viewing page is displayed.
Further, in order to enable a user to conveniently view the most relevant legal items, the retrieval result page data comprises the contents of the ordered target legal items; correspondingly, the method for displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data comprises the following steps: and displaying the content of the target legal provision in the retrieval result page according to the retrieval result page data and the sequence.
In order to further facilitate the user and improve the user experience, the method further comprises:
responding to a third operation of the user, and sending a downloading request to the server, wherein the downloading request comprises legal information to be downloaded and/or legal and regulatory information to be downloaded; and receiving and storing the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded, which are returned by the server.
Specifically, the third operation may be an operation in which the user selects a target bar to be downloaded on the search result page and clicks a "download" button, and the selection of the target bar to be downloaded may be a selection of a part of the target bars or a selection of all the target bars; the third operation may also be an operation of clicking a "download" button on a legal or legal viewing page by a user, or may also be any other implementable triggering manner, which may be specifically set according to actual requirements, and this embodiment is not limited; for the specific operation and interaction process of the client and the server, reference is made to the above embodiments, which are not described herein again.
Optionally, the third operation may also be an operation of clicking "download all law article lists", "download all laws and regulations" and the like on the retrieval result page by the user, the third operation may also be an operation of selecting a target law article to be downloaded and clicking "download accurate law article list", the third operation may also be an operation of entering an accurate law article selection page to select and "determine" after clicking "download accurate laws and regulations", a specific page display mode may be set according to actual requirements, and this embodiment is not limited; the downloading of all legal provisions shows that all searched target legal provision contents are downloaded, the downloading of the accurate legal provision list shows that a user selects part of target legal provisions required by the user to download, the downloading of all legal provisions shows that the user wants to download all the contents of legal provisions related to the target legal provisions, and the downloading of the accurate legal provisions shows that the user selects part of the legal provisions required by the user to download. Exemplarily, as shown in fig. 10, an exemplary diagram of a search result page provided for the present embodiment is provided.
In order to be able to provide more retrievable french items for the user, the method further comprises:
responding to the fourth operation of the user, and acquiring a to-be-processed legal and legal document to be uploaded by the user; and sending the legal and legal documents to be processed to a server so that the server establishes the incidence relation between the preset keywords and the laws and regulations and the incidence relation between the laws and regulations according to the legal and legal documents to be processed.
Specifically, the fourth operation may be an operation of adding a related legal document to a document uploading page by a related person and clicking an "uploading" button, or may be any other implementable triggering operation, and this embodiment is not limited; for the specific operation and interaction process of the client and the server, reference is made to the above embodiments, which are not described herein again.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present invention is not limited thereto.
Regarding the method in the present embodiment, the specific operations of the respective steps have been described in detail in the embodiment of the server-side method, and the same technical effects can be achieved, and will not be described in detail herein.
Next, a law enforcement search device provided on the server side will be described.
Still another embodiment of the present invention provides a law enforcement retrieval device, configured to execute the method of the server-side embodiment.
As shown in fig. 11, is a schematic structural diagram of the french search device provided in this embodiment. The apparatus 50 comprises: a first receiving module 51, a first processing module 52 and a first transmitting module 53.
The first receiving module is used for receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information; the first processing module is used for determining a retrieved target law bar according to the retrieval description information and generating retrieval result page data according to the target law bar, wherein the retrieval result page data comprises the content of the target law bar; and the first sending module is used for returning the retrieval result page data to the client so that the client can display the content of the target legal provision on the retrieval result page according to the retrieval result page data.
Specifically, a user operates a trigger client at a client to send a retrieval request to a law enforcement retrieval device, a first receiving module of the law enforcement retrieval device receives the retrieval request and then sends the retrieval request to a first processing module, the first processing module determines a retrieved target law according to retrieval description information, generates retrieval result page data according to the target law and sends the retrieval result page data to a first sending module, and the first sending module sends the retrieval result page data to the client for display.
The specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and the same technical effect can be achieved, and will not be described in detail herein.
As an implementable manner, in order to facilitate the user to know which law or regulation the target law belongs to, the retrieval result page data further includes legal regulation identification information and attribute information to which each target law belongs; correspondingly, the retrieval result page data returned to the client by the first sending module comprises the content of the target law, the legal regulation identification information and the attribute information to which the target law belongs, and the client can display the content of the target law, the legal regulation identification information and the attribute information to which the target law belongs on the retrieval result page according to the retrieval result page data.
Further, in order to facilitate the user to view the specific content of the laws and regulations to which the target law is subordinate, the first receiving module may be further configured to receive a viewing request of the first laws and regulations to which the first target law is subordinate, where the viewing request is sent by the client; the first processing module is further used for generating legal law viewing page data according to the viewing request, and the legal law viewing page data comprises the content of the first legal law; the first sending module is further used for returning the law and regulation viewing page data to the client, so that the client displays the content of the first law and regulation on the law and regulation viewing page according to the law and regulation viewing page data.
Specifically, the user can click the name of the first law and regulation to which the first target law shown on the retrieval result page belongs, the client is triggered to send the viewing request to the law and regulation retrieval device, the first processing module can receive the viewing request, law and regulation viewing page data are generated according to the viewing request and sent to the first sending module, and the first sending module returns the law and regulation viewing page data to the client.
In order to accurately and effectively retrieve the target law bar, the first processing module may further include a determination sub-module, a matching sub-module and a processing sub-module.
The determining submodule is used for determining a retrieval keyword according to the retrieval description information; the matching sub-module is used for matching the search keywords with preset keywords to obtain matching results, and the matching results comprise the matched preset keywords; and the processing sub-module is used for determining the retrieved target law bar according to the matching result and the pre-obtained incidence relation between the preset keywords and the law bar.
Further, in order to enable a user to conveniently and quickly check the most relevant legal items, the first processing module may further include a sorting submodule, which is configured to obtain scores of the target legal items; sequencing the target rules according to the scores of the target rules to obtain the sequenced target rules; correspondingly, the retrieval result page data returned to the client by the first sending module includes the content of the ordered target French fries, and the client can display the content of the target French fries in the retrieval result page according to the retrieval result page data and the ordering, so that the user can firstly see the most desired French fries, and the user experience is further improved.
In order to further improve the user experience, as another implementable manner, the first receiving module is further configured to receive a download request sent by the client, where the download request includes legal provision information to be downloaded and/or legal provision information to be downloaded; the first processing module is also used for acquiring legal content corresponding to the legal information to be downloaded and/or legal content corresponding to the legal information to be downloaded according to the downloading request; the first sending module is further used for returning the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded to the client.
In order to provide download service of more legal rules for users, the device also has the function of batch processing legal and legal regulation files, and particularly, the first receiving module is also used for acquiring the legal and legal regulation files to be processed; the first processing module is also used for carrying out law and regulation extraction processing on the legal regulation file to be processed to obtain extracted laws and regulations; the first processing module is also used for carrying out word segmentation processing on the extracted law entry to obtain a keyword as a preset keyword; the first processing module is also used for establishing the incidence relation between each preset keyword and the law and the incidence relation between the law and the laws and regulations.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present invention is not limited thereto.
The specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and the same technical effect can be achieved, and will not be described in detail herein.
The server-side law enforcement search device is described in detail above, and the terminal-side law enforcement search device is described in further detail below.
Still another embodiment of the present invention provides a law enforcement retrieval device for performing the method of the client-side embodiment, which may be disposed in a terminal.
As shown in fig. 12, it is a schematic structural diagram of the french search device provided in this embodiment. The apparatus 70 comprises: an acquisition module 71, a second sending module 72, a second receiving module 73, and a display module 74.
The acquisition module is used for responding to a first operation of a user to acquire retrieval description information input by the user; the second sending module is used for sending a retrieval request to the server according to the retrieval description information, wherein the retrieval request comprises the retrieval description information; the second receiving module is used for receiving retrieval result page data returned by the server, and the retrieval result page data comprises the content of the target legal provision; and the display module is used for displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data.
Specifically, a user triggers an acquisition module of the law bar retrieval device at a client through a first operation to acquire retrieval description information input by the user and send the retrieval description information to a second sending module, the second sending module sends a retrieval request to a server according to the retrieval description information, a second receiving module receives retrieval result page data returned by the server and sends the retrieval result page data to a display module, and the display module can display the content of a target law bar on a retrieval result page according to the retrieval result page data.
The specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and the same technical effect can be achieved, and will not be described in detail herein.
As an implementable manner, in order to facilitate the user to know which law or regulation the target law belongs to, the retrieval result page data further includes legal regulation identification information and attribute information to which each target law belongs; correspondingly, the display module is specifically used for displaying the content of the target law bar, the legal regulation identification information to which the target law bar belongs and the attribute information on the retrieval result page according to the retrieval result page data.
Further, in order to facilitate the user to view the specific content of the laws and regulations to which the target law is attributed, the second sending module is further configured to send, to the server, a viewing request of the first laws and regulations to which the first target law, which the user wants to view, is attributed in response to a second operation of the user; the second receiving module is further used for receiving legal law and regulation viewing page data returned by the server, and the legal law and regulation viewing page data comprises the content of the first legal regulation; and the display module is also used for displaying the content of the first law and regulation on the law and regulation viewing page according to the law and regulation viewing page data.
Further, in order to enable the user to conveniently see which legal bars are the retrieved target legal bars when viewing the whole content of the legal rules, the display module is further configured to highlight the content of the legal bars belonging to the target legal bars in the first legal rule content.
As another implementable manner, in order to enable a user to conveniently and quickly view the most relevant french fries, the retrieval result page data includes the contents of the ordered target french fries; correspondingly, the display module is specifically used for displaying the content of the target legal provision in the retrieval result page according to the retrieval result page data and the sequence.
As another implementable manner, in order to enable the user to view the retrieved target law and related legal and regulatory contents at any time, the second sending module is further configured to send a download request to the server in response to a third operation of the user, where the download request includes information of the law and/or legal and regulatory information to be downloaded; the second receiving module is further used for receiving and storing the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded, which are returned by the server.
As another implementable manner, in order to provide more and more retrievable legal rules for the user and continuously enrich the legal rule base, the obtaining module is further configured to respond to a fourth operation of the user and obtain a to-be-processed legal and regulatory file to be uploaded by the user; the second sending module is further used for sending the legal and legal documents to be processed to the server, so that the server establishes the incidence relation between the preset keywords and the laws and regulations and the incidence relation between the laws and regulations according to the legal and legal documents to be processed.
It should be noted that the respective implementable modes in the embodiment may be implemented individually, or may be implemented in combination in any combination without conflict, and the present invention is not limited thereto.
The specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and the same technical effect can be achieved, and will not be described in detail herein.
In some embodiments, the module division may also be performed in other manners, for example, as shown in fig. 13, which is an architectural diagram of the law enforcement retrieval system provided in this embodiment. The system architecture mainly comprises a display layer, an interface layer, a business layer, a data processing layer and a database layer, and the system can be operated on a Linux system and can also be set to be operated on other systems according to actual requirements.
The display layer provides a retrieval inlet and a display of a retrieval result after retrieval, provides a download inlet and can selectively download required contents; the interface layer is a bridge for the communication between the service layer and the display layer, and in practical application, the communication between the service layer and the display layer can be established through a DRF (Django REST framework) framework; the business layer is a control center of the system and mainly comprises a flow control module and a downloading module; the process control module is used for controlling the system operation process, division of labor and file storage; the downloading module is used for sorting the corresponding content to be downloaded into the file to be downloaded according to a downloading request sent by the client on the display layer and returning the content to be downloaded to the client; the data processing layer is a system core and mainly comprises a law article extracting module, a word segmentation module, a data model module, a sequencing module, an indexing module and an information perfecting module; the law provision extraction module is used for reading law and regulation files and extracting laws and regulations; the word segmentation module is used for carrying out word segmentation processing on the content of the law bar and extracting keywords in the law bar as preset keywords; the data model module is used for establishing a data model which comprises a law and regulation library, a preset keyword library and a relation among the law and regulation library, the preset keyword library and the three; the ranking module is used for calculating scores of target rules of the retrieval results based on various factors, wherein the scoring factors include but are not limited to word frequency (correlation) of keywords, release date, effective date and effectiveness state of the legal rules, and the results after ranking are finally obtained by ranking in descending order of the scores; the index module is used for synchronizing the preset keywords to the ES so as to realize the reverse index based on the preset keywords; the information perfecting module is used for perfecting data retrieved from the ES, and the data retrieved from the ES is incomplete because the ES stores the inverted index relation based on the preset keywords, so that complete information of the legal provision and the legal regulation is required to be searched from a legal provision library and a legal regulation library to perfect a retrieval result, and complete data which can be displayed by a client side is formed; the database layer may include MySQL for storing all complete data, ES (elastic search) for storing field contents to be retrieved and loading part of the contents into a memory, and FileStorage for storing legal and legal documents.
Still another embodiment of the present invention provides an electronic device, configured to execute the method provided in the server-side embodiment. The electronic device may be a server or other implementable computer device.
As shown in fig. 14, is a schematic structural diagram of the electronic device provided in this embodiment. The electronic device 80 includes: a first memory 81, a first transceiver 82 and at least one first processor 83.
The first processor, the first memory and the first transceiver are interconnected through a circuit; the first memory stores computer execution instructions; the first transceiver is used for receiving a retrieval request sent by a terminal; the at least one first processor executes computer-executable instructions stored in the first memory to cause the at least one first processor to perform a method as provided in any of the server-side embodiments above.
Specifically, a user logs in a client page through a terminal, the client is triggered to send a retrieval request to the electronic device on the client page, the first transceiver receives the retrieval request sent by the terminal and sends the retrieval request to the first processor, and the first processor reads and executes a computer execution instruction stored in the first memory, so that the method provided by any one of the above server-side embodiments is implemented.
The electronic equipment can be applied to any law retrieval application scene, provides retrieval service taking laws as retrieval units for users, enables the users to conveniently obtain and check the law content most relevant to the retrieval key words, does not need to traverse laws or regulation files to read laws to find required laws, effectively improves the retrieval efficiency of the users, saves the time cost and energy of the users, and improves the user experience.
It should be noted that the electronic device of this embodiment can implement the method provided in any of the server-side embodiments described above, and can achieve the same technical effect, which is not described herein again.
Yet another embodiment of the present invention provides a terminal, configured to execute the method provided in the client-side embodiment.
As shown in fig. 15, a schematic structural diagram of the terminal provided in this embodiment is shown. The terminal 90 includes:
a second memory 91, a second transceiver 92 and at least one second processor 93.
The second processor, the second memory and the second transceiver are interconnected through a circuit; the second memory stores computer execution instructions; a second transceiver for sending a retrieval request to a server; the at least one second processor executes the computer-executable instructions stored by the second memory to cause the at least one second processor to perform the method as provided by any of the client-side embodiments above.
It should be noted that the terminal of this embodiment can implement the method provided by any of the above client-side embodiments, and can achieve the same technical effect, which is not described herein again.
Yet another embodiment of the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the method provided in any one of the above embodiments is implemented. It should be noted that the computer-readable storage medium of this embodiment can implement the method provided in any of the above embodiments, and can achieve the same technical effects, which are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (19)

1. A legal entry retrieval method is characterized by comprising the following steps:
receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information;
determining a retrieved target law bar according to the retrieval description information;
and returning retrieval result page data to the client according to the target law so that the client displays the content of the target law on a retrieval result page according to the retrieval result page data, wherein the retrieval result page data comprises the content of the target law.
2. The method according to claim 1, wherein the search result page data further includes legal and legal identification information and attribute information to which each target law belongs;
the returning of the retrieval result page data to the client according to the target law so that the client displays the content of the target law on the retrieval result page according to the retrieval result page data comprises:
and returning retrieval result page data to the client according to the target law so that the client displays the content of the target law, and legal regulation identification information and attribute information to which the target law belongs on a retrieval result page according to the retrieval result page data.
3. The method of claim 2, further comprising:
receiving a viewing request of a first legal rule to which a first target legal rule belongs, wherein the viewing request is sent by a client;
and returning legal regulation viewing page data to the client according to the viewing request so that the client displays the content of the first legal regulation on a legal regulation viewing page according to the legal regulation viewing page data, wherein the legal regulation viewing page data comprises the content of the first legal regulation.
4. The method of claim 1, wherein the determining the retrieved target law from the retrieval description information comprises:
determining a retrieval keyword according to the retrieval description information;
matching the search keywords with preset keywords to obtain a matching result, wherein the matching result comprises the matched preset keywords;
and determining the retrieved target law bar according to the matching result and the pre-obtained incidence relation between the preset keywords and the law bar.
5. The method of claim 4, wherein after determining the retrieved target law bar according to the matching result and the pre-obtained association relationship between the preset keyword and the law bar, the method further comprises:
obtaining the scores of all target legal items;
sequencing the target rules according to the scores of the target rules to obtain the sequenced target rules;
the returning of the retrieval result page data to the client according to the target law so that the client displays the content of the target law on a retrieval result page according to the retrieval result page data, wherein the retrieval result page data comprises the content of the target law, and comprises the following steps:
and returning retrieval result page data to the client according to the ordered target french items so that the client displays the content of the target french items in the retrieval result page according to the ordering according to the retrieval result page data, wherein the retrieval result page data comprises the content of the ordered target french items.
6. The method of claim 1, further comprising:
receiving a downloading request sent by a client, wherein the downloading request comprises legal information to be downloaded and/or legal and legal regulation information to be downloaded;
and returning the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded to the client according to the downloading request.
7. The method according to any one of claims 1-6, further comprising:
acquiring a legal and legal document to be processed;
carrying out law and regulation extraction processing on the to-be-processed law and regulation file to obtain extracted laws and regulations;
performing word segmentation processing on the extracted law entry to obtain a keyword as a preset keyword;
and establishing the incidence relation between each preset keyword and the law and the incidence relation between the law and the laws and regulations.
8. A legal entry retrieval method is characterized by comprising the following steps:
acquiring retrieval description information input by a user in response to a first operation of the user;
sending a retrieval request to a server according to the retrieval description information so that the server returns retrieval result page data according to the retrieval description information, wherein the retrieval request comprises the retrieval description information;
receiving retrieval result page data returned by the server, wherein the retrieval result page data comprises the content of a target legal provision;
and displaying the content of the target legal provision on a retrieval result page according to the retrieval result page data.
9. The method according to claim 8, wherein the search result page data further includes legal and legal identification information and attribute information to which each target law belongs;
the displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data comprises the following steps:
and displaying the content of the target law, the legal regulation identification information and the attribute information of the target law according to the retrieval result page data on the retrieval result page.
10. The method of claim 9, further comprising:
sending a viewing request of a first legal regulation to which a first target regulation that the user wants to view belongs to a server in response to a second operation of the user;
receiving legal regulation viewing page data returned by the server, wherein the legal regulation viewing page data comprises the content of the first legal regulation;
and displaying the content of the first law and regulation on a law and regulation viewing page according to the law and regulation viewing page data.
11. The method according to claim 10, wherein said displaying the content of the first law on a law review page according to the law review page data includes:
and highlighting the legal item content belonging to the target legal item in the first legal and legal rule content.
12. The method of claim 8, wherein the search result page data includes content of the ranked target french;
the displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data comprises the following steps:
and displaying the content of the target legal provision in the retrieval result page according to the retrieval result page data and the sequence.
13. The method of claim 8, further comprising:
responding to a third operation of a user, and sending a downloading request to the server, wherein the downloading request comprises legal information to be downloaded and/or legal and regulatory information to be downloaded;
and receiving and storing the legal content corresponding to the legal information to be downloaded and/or the legal content corresponding to the legal information to be downloaded, which are returned by the server.
14. The method according to any one of claims 8-13, further comprising:
responding to the fourth operation of the user, and acquiring a to-be-processed legal and legal document to be uploaded by the user;
and sending the to-be-processed legal and legal regulation file to the server so that the server establishes an incidence relation between a preset keyword and a law and an incidence relation between the law and the legal regulation according to the to-be-processed legal and legal regulation file.
15. A french retrieval device, comprising:
the first receiving module is used for receiving a retrieval request sent by a client, wherein the retrieval request comprises retrieval description information;
the first processing module is used for determining a retrieved target law bar according to the retrieval description information and generating retrieval result page data according to the target law bar, wherein the retrieval result page data comprises the content of the target law bar;
and the first sending module is used for returning the retrieval result page data to the client so that the client can display the content of the target legal provision on the retrieval result page according to the retrieval result page data.
16. A french retrieval device, comprising:
the acquisition module is used for responding to a first operation of a user to acquire retrieval description information input by the user;
the second sending module is used for sending a retrieval request to a server according to the retrieval description information so as to enable the server to return retrieval result page data according to the retrieval description information, wherein the retrieval request comprises the retrieval description information;
the second receiving module is used for receiving retrieval result page data returned by the server, wherein the retrieval result page data comprises the content of a target legal provision;
and the display module is used for displaying the content of the target legal provision on the retrieval result page according to the retrieval result page data.
17. An electronic device, comprising: the system comprises a first memory, a first transceiver and at least one first processor;
the first processor, the first memory and the first transceiver are interconnected through a circuit;
the first memory stores computer-executable instructions; the first transceiver is used for receiving a retrieval request sent by a terminal;
the at least one first processor executing computer-executable instructions stored by the first memory causes the at least one first processor to perform the method of any of claims 1-7.
18. A terminal, comprising: a second memory, a second transceiver and at least one second processor;
the second processor, the second memory and the second transceiver are interconnected through a circuit;
the second memory stores computer-executable instructions; the second transceiver is used for sending a retrieval request to a server;
the at least one second processor executing the computer-executable instructions stored by the second memory causes the at least one second processor to perform the method of any of claims 8-14.
19. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-14.
CN202110263123.4A 2021-03-11 2021-03-11 French retrieval method, device, equipment and storage medium Pending CN113051289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110263123.4A CN113051289A (en) 2021-03-11 2021-03-11 French retrieval method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110263123.4A CN113051289A (en) 2021-03-11 2021-03-11 French retrieval method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113051289A true CN113051289A (en) 2021-06-29

Family

ID=76511368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110263123.4A Pending CN113051289A (en) 2021-03-11 2021-03-11 French retrieval method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113051289A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008171A (en) * 2014-06-03 2014-08-27 中国科学院计算技术研究所 Legal database establishing method and legal retrieving service method
CN107247743A (en) * 2017-05-17 2017-10-13 安徽富驰信息技术有限公司 A kind of judicial class case search method and system
CN109359173A (en) * 2018-10-24 2019-02-19 南京大学 A kind of search method of judgement document
CN109766356A (en) * 2019-01-15 2019-05-17 王蕾 A kind of methods of exhibiting and computer storage medium of patent data
CN110941702A (en) * 2019-11-26 2020-03-31 北京明略软件系统有限公司 Retrieval method and device for laws and regulations and laws and readable storage medium
CN111737608A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 Enterprise information retrieval result ordering method and device
CN112000790A (en) * 2020-08-24 2020-11-27 西华大学 Legal text accurate retrieval method, terminal system and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104008171A (en) * 2014-06-03 2014-08-27 中国科学院计算技术研究所 Legal database establishing method and legal retrieving service method
CN107247743A (en) * 2017-05-17 2017-10-13 安徽富驰信息技术有限公司 A kind of judicial class case search method and system
CN109359173A (en) * 2018-10-24 2019-02-19 南京大学 A kind of search method of judgement document
CN109766356A (en) * 2019-01-15 2019-05-17 王蕾 A kind of methods of exhibiting and computer storage medium of patent data
CN110941702A (en) * 2019-11-26 2020-03-31 北京明略软件系统有限公司 Retrieval method and device for laws and regulations and laws and readable storage medium
CN111737608A (en) * 2020-06-22 2020-10-02 中国银行股份有限公司 Enterprise information retrieval result ordering method and device
CN112000790A (en) * 2020-08-24 2020-11-27 西华大学 Legal text accurate retrieval method, terminal system and readable storage medium

Similar Documents

Publication Publication Date Title
US8661031B2 (en) Method and apparatus for determining the significance and relevance of a web page, or a portion thereof
US8370358B2 (en) Tagging content with metadata pre-filtered by context
KR101242369B1 (en) Sensing, storing, indexing, and retrieving data leveraging measures of user activity, attention, and interest
CN110209827B (en) Search method, search device, computer-readable storage medium, and computer device
US10891700B2 (en) Methods and computer-program products for searching patent-related documents using search term variants
CN106095738B (en) Recommending form fragments
CN106156111B (en) Patent document retrieval method, device and system
CN112269816B (en) Government affair appointment correlation retrieval method
JPH08305616A (en) Data management system
JP2011253572A (en) Information retrieval method and device on which information value is reflected
JP2009009461A (en) Keyword inputting-supporting system, content-retrieving system, content-registering system, content retrieving and registering system, methods thereof, and program
US11216735B2 (en) Method and system for providing synthetic answers to a personal question
KR100671077B1 (en) Server, Method and System for Providing Information Search Service by Using Sheaf of Pages
CN107291951B (en) Data processing method, device, storage medium and processor
US20110276866A1 (en) Method of multi-document aggregation and presentation
US20140095465A1 (en) Method and apparatus for determining rank of web pages based upon past content portion selections
US11169966B2 (en) Information processing apparatus and non-transitory computer readable medium storing information processing program for hidden file tracing
JPH08305724A (en) Device for managing design supporting information document
KR101153534B1 (en) Method and system for automatically tagging web data and local data
US9542457B1 (en) Methods for displaying object history information
KR100616216B1 (en) System and method for retrieving and managing desired online information
US20140149378A1 (en) Method and apparatus for determining rank of web pages based upon past content portion selections
CN113051289A (en) French retrieval method, device, equipment and storage medium
US20020062341A1 (en) Interested article serving system and interested article serving method
CN113569132A (en) Information retrieval display method and system

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