CN112559677A - Retrieval method of laws and regulations and related device - Google Patents

Retrieval method of laws and regulations and related device Download PDF

Info

Publication number
CN112559677A
CN112559677A CN201910916513.XA CN201910916513A CN112559677A CN 112559677 A CN112559677 A CN 112559677A CN 201910916513 A CN201910916513 A CN 201910916513A CN 112559677 A CN112559677 A CN 112559677A
Authority
CN
China
Prior art keywords
legal
retrieval
keyword
result
regulations
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
CN201910916513.XA
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910916513.XA priority Critical patent/CN112559677A/en
Publication of CN112559677A publication Critical patent/CN112559677A/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/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results

Abstract

The invention provides a retrieval method of laws and regulations and a related device, wherein the method comprises the steps of firstly obtaining keywords; then judging whether the keyword belongs to a legal entity noun or not; if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result; and finally, displaying the first retrieval result or the second retrieval result. Therefore, the embodiment of the invention can realize inquiry of various dimensions through legal entity terms, can obtain relatively accurate retrieval results without setting too many complicated retrieval formulas and paying higher learning cost, and greatly improves the retrieval precision and the retrieval efficiency.

Description

Retrieval method of laws and regulations and related device
Technical Field
The invention relates to the technical field of data processing, in particular to a retrieval method of laws and regulations and a related device.
Background
The laws and regulations refer to the laws, administrative laws, judicial explanations, local laws, local regulations, department regulations and other normative documents currently in force in the people's republic of China, and the occasional modification and supplement of the laws and regulations.
The public can inquire the open laws and regulations from the internet, but because laws and regulations are numerous, if a user only inputs a keyword, the returned result is single and often not accurate enough, and only a complex search formula can be set to obtain a more accurate result, but the learning cost of the method is high, and the search efficiency is poor.
Disclosure of Invention
In view of the above problems, the present invention provides a retrieval method and related apparatus for legal regulations, which overcome or at least partially solve the above problems, and can obtain a retrieval result without setting a complicated retrieval formula in a plurality of legal regulations, thereby reducing the learning cost of a user and improving the retrieval efficiency.
In order to achieve the above purpose, the technical solutions provided by the embodiments of the present invention are as follows:
a retrieval method of laws and regulations, comprising:
obtaining a keyword;
judging whether the keywords belong to legal entity nouns or not;
if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result;
and displaying the first retrieval result or the second retrieval result.
Preferably, the determining the legal entity type of the keyword includes:
if the keyword is matched under the legal name field in the legal regulation database, determining that the legal entity type of the keyword is a legal name;
if the keyword is matched under the legal document number field in the legal and legal regulation database, determining that the legal entity type of the keyword is a legal document number;
and if the keyword is matched in case or criminal name fields in the law and regulation database, determining that the legal entity type of the keyword is the main idea of the law.
Preferably, when it is determined that the legal entity type is a legal name, the retrieving the legal and regulatory database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
converting the keyword into a legal standard name;
inquiring the laws and regulations with the legal name fields as the legal standard names in the laws and regulations database, and sequencing the obtained laws and regulations according to the sequencing rule of the published date to obtain a first inquiry result;
inquiring the law and judicial interpretation which accord with the association rule with the standard legal name to obtain a second inquiry result;
and integrating the first query result and the second query result to obtain a first retrieval result.
Preferably, after determining that the legal entity type is a legal name, the retrieval method further includes:
determining whether the keyword includes a legal provision;
when the keyword is determined to include the legal provision, obtaining a first search result includes:
integrating the standard legal name and the legal provision into a legal inquiry parameter;
and inquiring the law and regulation database by taking the law and regulation inquiry parameter as a basis, and taking the output law and regulation content as a first retrieval result.
Preferably, when it is determined that the legal entity type is a legal number, the legal and legal regulation database is searched according to the search dimension corresponding to the legal entity type, and the first search result is obtained by
Inquiring the laws and regulations with the legal number fields as the key words in the laws and regulations database to obtain a third inquiry result;
and sequencing the laws and regulations in the third query result according to the sequencing rule of the effectiveness grade to obtain a first retrieval result.
Preferably, when it is determined that the legal entity type is a case name or a crime name, the retrieving the legal and regulatory database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
inquiring the laws and regulations of which the law and regulation main field comprises the key words in the laws and regulations database to obtain a fourth inquiry result;
and sequencing the laws and regulations in the fourth query result according to a basic sequencing rule to obtain a first retrieval result.
Preferably, the step of performing fuzzy search after performing accurate search on the keyword in the law and regulation database to obtain a second search result includes:
accurately inquiring in the law and regulation database according to the retrieval sequence of the title, the main theme of the law, the law provision and the full text of the law in sequence to obtain a fifth inquiry result;
performing word segmentation operation on the keywords to obtain a plurality of word segmentation parameters, and performing fuzzy query on the plurality of word segmentation parameters in the legal regulation database according to the retrieval sequence of which the retrieval fields are titles, legal essences, legal provisions and full legal texts in sequence to obtain a sixth query result;
and sequencing the laws and regulations in the fifth query result and the sixth query result according to a basic sequencing rule to obtain a second retrieval result.
Another aspect of the embodiments of the present invention provides a retrieval apparatus for laws and regulations, including:
an obtaining module for obtaining a keyword;
the judging module is used for judging whether the keyword belongs to a legal entity noun or not;
the first execution module is used for judging the legal entity type of the keyword if the keyword belongs to a legal entity noun, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
the second execution module is used for carrying out fuzzy retrieval after carrying out accurate retrieval on the key words in the law and regulation database if the key words do not belong to legal entity nouns, so as to obtain a second retrieval result;
and the display module is used for displaying the first retrieval result or the second retrieval result.
The invention also provides an electronic device, which comprises at least one processor, at least one memory connected with the processor, and a bus; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the retrieval method of the legal regulations of similar cases as described in the foregoing.
The embodiment of the present invention further provides a storage medium, where the storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, the method for retrieving laws and regulations as described above is implemented.
By means of the technical scheme, the retrieval method of laws and regulations and the related device are provided, and the method firstly obtains keywords; then judging whether the keyword belongs to a legal entity noun or not; if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result; and finally, displaying the first retrieval result or the second retrieval result. Therefore, the embodiment of the invention can realize inquiry of various dimensions through legal entity terms, can obtain relatively accurate retrieval results without setting too many complicated retrieval formulas and paying higher learning cost, and greatly improves the retrieval precision and the retrieval efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a retrieval method of laws and regulations according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a legal retrieval device according to an embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an apparatus disclosed in the embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the contents of the embodiments of the present invention, terms that may be used are explained below.
Legal entity: the method refers to entities with specific meanings in the legal field mentioned or covered by the meanings in the specification texts of laws, laws and regulations, judicial explanations, department regulations, normative documents and the like formulated and published by the state, and mainly comprises legal names, legal provisions, case/crime names and legal letters.
Case/crime name: the case name is formed by summarizing the nature of the legal relationship related to the litigation case by the people's court, and the criminal case is also called as the crime name.
Legal name: is a standard name published when the law is issued by the legislative bodies.
Legal document name: the file name is the file name when the legal file is manually assembled, and compared with the legal standard name, the file name can increase the information such as version, year, attribute and the like.
The main points of the law: is the content of brief summary of the subject matter of a single law article and labeling of professional words of law.
The associated law: the related law that the content regulated by the law has relevance is meant. The law management system comprises a highest people's court, judicial explanations, instruction documents and the like about the specific application of the law, which are made by the highest people's court aiming at basic legal documents made by legislation authorities, and the law with higher frequency is usually referred to when a certain part of law is applied in the trial practice.
In the conventional legal and legal retrieval method, if a more accurate result is to be obtained, a certain legal knowledge is required, and a more complex retrieval formula is required to be edited, so that a relatively accurate retrieval result can be obtained. The following describes embodiments of the present invention in detail.
The embodiment of the invention discloses a retrieval method of laws and regulations.
Referring to fig. 1, fig. 1 is a schematic flow chart of a retrieval method of laws and regulations disclosed in the embodiment of the present invention.
The invention provides a retrieval method of laws and regulations, which comprises the following steps:
s100, obtaining keywords;
s200, judging whether the keywords belong to legal entity nouns or not;
s300, if the keyword belongs to a legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to a search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
s400, if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal and legal regulation database to obtain a second retrieval result;
and S500, displaying the first retrieval result or the second retrieval result.
In the embodiment of the present invention, in step S100, a keyword is obtained. The keywords refer to keywords input by a user or keywords transmitted from other systems.
In actual use, the keywords are, for example: min Zhi Fang, explain No. 2015 to 21, the chairman command No. five, and intentionally injure.
In step S200, it is determined whether the keyword belongs to a legal entity noun.
The term "entity" refers to an entity having a specific meaning in the legal field mentioned or covered by the meaning in the specification text such as laws, regulations, judicial explanations, departmental regulations, normative documents and the like which are formulated and published by the country, and mainly includes legal names, legal provisions, case/crime names and legal letters.
In the embodiment of the invention, a standard legal noun mapping library is preset, mapping relations of popular error expression, stroke error, tone words, legal common names, legal abbreviation and the like corresponding to the legal standard names are stored in the mapping library, and if the mapping relations do not belong to legal entity nouns, the mapping relations are converted into the legal entity nouns and then follow-up processes are carried out, so that the retrieval accuracy is improved.
In the embodiment of the present invention, step S200 specifically includes:
determining whether the keyword includes a non-legal noun;
if the legal nouns are included, matching the keywords in a standard legal noun mapping library to obtain a matching result representing the standard legal name;
and when the matching result is matched with the legal entity noun in the legal entity noun database, determining that the keyword belongs to the legal entity noun.
In the embodiment of the invention, whether the keyword comprises the illegal nouns or not is determined, and if the keyword comprises the illegal nouns, the keyword is matched to obtain a matching result.
For example, the national complaint law is mapped to the national consensus litigation law.
And determining whether the name belongs to the legal entity name or not, and searching in two directions respectively to ensure the searching precision to the maximum extent.
After determining that the keyword belongs to a legal entity noun, in step S300, the legal entity type of the keyword is determined, and the legal and regulatory database is retrieved according to the retrieval dimension corresponding to the legal entity type.
The legal entity type can include any one of legal name, legal number and legal title. And searching under the corresponding dimensionality of each legal entity type to obtain an output result. In the embodiment of the invention, after the legal entity type corresponding to the keyword is confirmed, the retrieval can be carried out more pertinently, so that the obtained result is more in line with the real intention of the user. Moreover, corresponding contents can be retrieved according to the retrieval dimensionality corresponding to the keyword without setting too many retrieval formulas by a user, and the learning cost is reduced.
And if the keyword belongs to the legal entity noun, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result.
In the embodiment of the invention, if the determined keyword does not belong to the legal entity noun, the fuzzy matching is carried out after the accurate matching is preferentially carried out, the query result obtained by the accurate matching is preferentially displayed, and the query result obtained by the fuzzy matching is displayed after the query result obtained by the accurate matching is preferentially displayed.
In addition, in the embodiment of the invention, the weight of the retrieval dimension is preset, and the matching is carried out according to the weight of the retrieval dimension. And the retrieval efficiency is improved.
After the first search result or the second search result is searched, in step S500, the first search result or the second search result is displayed.
In the embodiment of the present invention, the presentation refers to a graphical interface provided to a user or presentation data returned to a system, and the presentation process is not described herein in detail, and is not limited herein as long as presentation can be performed.
It can be seen that the retrieval method of laws and regulations provided by the application firstly obtains key words; then judging whether the keyword belongs to a legal entity noun or not; if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result; and finally, displaying the first retrieval result or the second retrieval result. Therefore, the embodiment of the invention can realize inquiry of various dimensions through legal entity terms, can obtain relatively accurate retrieval results without setting too many complicated retrieval formulas and paying higher learning cost, and greatly improves the retrieval precision and the retrieval efficiency.
In the foregoing embodiment, the legal entity type is introduced, and in the embodiment of the present application, the legal entity type is identified.
In the embodiment of the present invention, the determining the legal entity type of the keyword includes:
if the keyword is matched under the legal name field in the legal regulation database, determining that the legal entity type of the keyword is a legal name;
if the keyword is matched under the legal document number field in the legal and legal regulation database, determining that the legal entity type of the keyword is a legal document number;
and if the keyword is matched in case or criminal name fields in the law and regulation database, determining that the legal entity type of the keyword is the main idea of the law.
In the embodiment of the invention, the legal entity types of the keywords can be divided into: legal title, legal number, and the gist of the act.
The data in the law and regulation database is provided with a plurality of fields, such as legal names, legal number and legal gist, and certainly, the data also comprises fields such as legal content and the like.
In the embodiment of the invention, if the keyword is matched under the legal name field in the legal regulation database, for example, the national complaint law, the people's republic of China civil action law, the legal entity type of the keyword is determined to be the legal name.
Similarly, if the keyword is matched under the legal number field in the legal regulation database, the legal entity type of the keyword is determined as the legal number. And if the keyword is matched under the case or crime name field in the law and regulation database, determining that the legal entity type of the keyword is the main idea of the law and regulation.
It can be understood that other legal entity types and corresponding retrieval dimensions may also be included, and only the retrieval method for the legal entity type and the retrieval dimension needs to be set, which is not described herein again.
In the foregoing embodiment, the process of retrieving the legal data database according to different retrieval dimensions to obtain the first retrieval result is described, and the following describes the retrieval process of different retrieval dimensions in detail.
In the technical solution of the present invention, when it is determined that the legal entity type is a legal name, the retrieving the legal and regulatory database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
converting the keyword into a legal standard name;
inquiring the laws and regulations with the legal name fields as the legal standard names in the laws and regulations database, and sequencing the obtained laws and regulations according to the sequencing rule of the published date to obtain a first inquiry result;
inquiring the law and judicial interpretation which accord with the association rule with the standard legal name to obtain a second inquiry result;
and integrating the first query result and the second query result to obtain a first retrieval result.
In the embodiment of the invention, if the legal entity type is the legal name, the keyword is converted.
For example, the conversion operation is realized by establishing a thesaurus and an extended thesaurus.
The synonym library and the expansion lexicon can be compatible with common error expressions, stroke errors, tone words and the like of the public to convert the keywords into legal standard names.
And then, searching under the dimension of the legal name field, if the searched unique value is the unique value, directly using the unique value as a first query result, and if the unique value is a plurality of values, sequencing the unique value from near to far according to the publication date.
In actual use, for example, if the input keyword is "national complaint", the keyword is first converted into a legal standard name "the national consensus and national litigation", and if there are a plurality of results corresponding to the keyword in the legal name field of the legal database, the sorted result is used as the first query result.
Taking the above-mentioned "national complaint" as an example, the first query result is:
litigation method for people in the people's republic of China (2017 amendment)
Litigation method for people in common people (2012 amendment)
Litigation method for people in common people (2007 amendment)
Litigation method for people in the people's republic of China
Then, the law and judicial interpretation which are in accordance with the association rule with the standard legal name are inquired, and other legal documents which are closely related to the standard legal name are displayed.
For example, the association matching can be performed based on the text similarity of the standard law, based on other legal names mentioned throughout the law, and the like.
In practical use, the laws associated with the first query result may include:
explanation of the highest people's court about the application of the litigation of people's republic of China
Interpretation of the highest national court for several problems in the procedure adopted by the national litigation of people's republic of China
Explanation of several problems of the judgement supervision program of the highest people's court about being suitable for the people's republic of China litigation law
In the embodiment of the invention, the first query result is arranged in front of the second query result, and the second query result is arranged behind the first query result and is integrated into the first retrieval result for display.
That is to say, in the embodiment of the present invention, the returned first search result is not simply matched with the legal document, but is displayed in a centralized manner based on the association of the legal system, so that the user can refer to more bases during the search.
For example, when a judge judges a case, a keyword can be input to obtain a plurality of results related to the keyword, so that the judge can conveniently search the basis of the case.
In the embodiment of the present invention, after determining that the legal entity type is a legal name, the method may further include:
determining whether the keyword includes a legal provision;
when the keyword is determined to include the legal provision, obtaining a first search result includes:
integrating the standard legal name and the legal provision into a legal inquiry parameter;
and inquiring the law and regulation database by taking the law and regulation inquiry parameter as a basis, and taking the output law and regulation content as a first retrieval result.
In the embodiment of the invention, legal terms may be attached to the legal names of the keywords. Such as article 22 of criminal law. If the legal entity type of the keyword is determined to be a legal name, on the basis, whether legal provision is included is determined. Wherein, the number in the legal provision can be Arabic number or capital number. The first retrieval result is specific clause content.
In actual use, for example:
and inputting the fifty-fifth of the national complaint, identifying the national complaint, matching the national complaint with corresponding national complaint, and displaying the content of the fifty-fifth of the national complaint in the display content.
Fiftieth XXX of China's republic of people litigation (2017 amendment)
Fiftieth XXX in the litigation of people's republic of China (2012 amendment)
Fiftieth XXX in the litigation of people's republic of China (amendment 2007)
Article 55 XXX of the litigation of people's republic of China
Wherein XXX represents the content of the French statute.
It can be understood that if the legal provision followed by the legal name is not in the legal regulation corresponding to the legal name, the first search result may be directly returned.
In actual use, for example, if the first thousand of the national complaint is input, the national complaint is recognized, but the first thousand of the national complaint is not input, the word interference of the first thousand of the national complaint is ignored, and the relevant query result of the national complaint is directly returned.
In the embodiment of the invention, the retrieval can be carried out in the dimension of the legal name, the legal rules under the dimension can be accurately obtained, the popular legal concepts can be connected and matched with professional legal provisions, and the actual retrieval intention of the user can be better met in actual use.
In the embodiment of the present invention, when it is determined that the legal entity type is a legal number, the legal and regulatory database is retrieved according to the retrieval dimension corresponding to the legal entity type, and the obtaining of the first retrieval result includes
Inquiring the laws and regulations with the legal number fields as the key words in the laws and regulations database to obtain a third inquiry result;
and sequencing the laws and regulations in the third query result according to the sequencing rule of the effectiveness grade to obtain a first retrieval result.
When the legal entity type is determined to be the legal number, in the embodiment of the invention, accurate retrieval is carried out under the dimensionality of the legal number to obtain a third query result.
And sorting according to the effectiveness grades, and when the effectiveness grades are the same, sorting according to the sequence of the publication dates from near to far.
In actual use, for example, "chairman command fifth of the people's republic of china" is input, the first search result is:
fifth place of the president of the people's republic of China-hero blast protection method of the people's republic of China
Grassland method of the people's republic of China (2013 amendment)
Coal method of the people's republic of China (2013 amendment)
Infectious disease prevention and treatment method of the people's republic of China (2013 amendment)
The great Committee of the people all over the country about the decision to modify twelve laws of the protection Law of the Chinese characters' republic of China (2013)
According to the technical scheme, accurate retrieval can be performed under the dimensionality of the legal number, so that an accurate query result is obtained, a retrieval mode is not required to be set, and the identification process is automatically completed.
In the embodiment of the present invention, when it is determined that the legal entity type is a case name or a crime name, the retrieving the legal regulation database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
inquiring the laws and regulations of which the law and regulation main field comprises the key words in the laws and regulations database to obtain a fourth inquiry result;
and sequencing the laws and regulations in the fourth query result according to a basic sequencing rule to obtain a first retrieval result.
In the embodiment of the invention, the retrieval is also carried out under the dimensionality of the law enforcement gist, wherein if the legal entity type is a case or crime name, the accurate query is carried out under the field of the law enforcement gist to obtain a fourth query result.
For example, if "intentional injury" is entered, matching is performed under the "main subject of law" field, and the hit laws and regulations are listed in the front.
And sorting according to the basic sorting rule.
In the embodiment of the present invention, a basic sorting rule is set, wherein the basic sorting rule may specifically be:
the national regulation is arranged in front of the local regulation;
high efficacy grade is ranked ahead of low efficacy grade;
arranging the high-timeliness in front of the low failure performance;
the timeliness is from high to low: active > modified > not yet validated > partial fail > fail;
fourthly, the date of implementation is prior recently;
fifth, the publication date is most prior;
of course, other sequencing contents may also be included, and the setting may be performed according to actual needs, which is not described herein.
In the embodiment of the invention, a process of obtaining the second retrieval result is mentioned.
Specifically, the step of performing fuzzy retrieval after performing accurate retrieval on the keyword in the law and regulation database to obtain a second retrieval result includes:
accurately inquiring in the law and regulation database according to the retrieval sequence of the title, the main theme of the law, the law provision and the full text of the law in sequence to obtain a fifth inquiry result;
performing word segmentation operation on the keywords to obtain a plurality of word segmentation parameters, and performing fuzzy query on the plurality of word segmentation parameters in the legal regulation database according to the retrieval sequence of which the retrieval fields are titles, legal essences, legal provisions and full legal texts in sequence to obtain a sixth query result;
and sequencing the laws and regulations in the fifth query result and the sixth query result according to a basic sequencing rule to obtain a second retrieval result.
In the embodiment of the invention, if the name is determined not to belong to the legal entity name, the accurate search is executed firstly.
The accurate retrieval is to sequentially perform retrieval according to the following dimension sequence: title > main theme of law > statute article > full text of law, obtain the fifth inquiry result.
And then, performing fuzzy retrieval, wherein in the embodiment of the invention, the fuzzy retrieval refers to performing word segmentation on the keywords and then performing retrieval according to the dimension sequence.
For example, the word segmentation result is input as "commonweal litigation", the word segmentation result is input as "commonweal" and "litigation", and the word segmentation result is searched once according to the above dimensional sequence. Moreover, the search results corresponding to the participles of the single character are eliminated.
Finally, the sorting is performed according to the basic sorting order described in the previous embodiment.
In this embodiment of the present invention, after obtaining the first search result, the method further includes:
combining the first retrieval result and the second retrieval result to obtain a comprehensive retrieval result;
displaying the first retrieval result comprises: and displaying the comprehensive retrieval result.
In the embodiment of the invention, after the first retrieval result is obtained, the retrieval result of the illegal entity nouns is also displayed.
And finally, adding a second retrieval result after the first retrieval result to obtain a comprehensive retrieval result, and displaying the comprehensive retrieval result.
It can be seen that the beneficial effects of the embodiment of the invention are at least as follows:
(1) the hit rate is improved without manually setting a complex retrieval combination;
(2) in the aspect of retrieval intention identification, the retrieval of simple characters and words is realized, but the concept of prior retrieval of legal entities is introduced, and the popular legal concept is linked and matched with the professional legal provision;
(3) and in the process of returning the retrieval result, the method not only realizes the pure matching legal document display, but also realizes the association centralized display based on a legal system.
Corresponding to the foregoing embodiments, the embodiments of the present invention disclose a retrieval apparatus for legal regulations.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a retrieval device for laws and regulations according to an embodiment of the present invention.
The invention provides a retrieval device of laws and regulations, comprising:
an obtaining module for obtaining a keyword;
the judging module is used for judging whether the keyword belongs to a legal entity noun or not;
the first execution module is used for judging the legal entity type of the keyword if the keyword belongs to a legal entity noun, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
the second execution module is used for carrying out fuzzy retrieval after carrying out accurate retrieval on the key words in the law and regulation database if the key words do not belong to legal entity nouns, so as to obtain a second retrieval result;
and the display module is used for displaying the first retrieval result or the second retrieval result.
It can be understood that, in the retrieval apparatus for laws and regulations provided in the embodiment of the present invention, the implementation process of each module may refer to each step of the retrieval method for laws and regulations in the above embodiment, which is not described herein again.
According to the retrieval device of laws and regulations, an obtaining module in the retrieval device firstly obtains keywords; then judging whether the keyword belongs to a legal entity noun or not by a judging module; when the keyword belongs to a legal entity noun, the first execution module judges the legal entity type of the keyword, and searches a legal regulation database according to a search dimension corresponding to the legal entity type to obtain a first search result; when the keyword does not belong to the legal entity noun, the second execution module carries out fuzzy retrieval after carrying out accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result; and finally, the display module displays the first retrieval result or the second retrieval result. Therefore, the embodiment of the invention can realize inquiry of various dimensions through legal entity terms, can obtain relatively accurate retrieval results without setting too many complicated retrieval formulas and paying higher learning cost, and greatly improves the retrieval precision and the retrieval efficiency.
The retrieval device for laws and regulations comprises a processor and a memory, wherein the obtaining module, the judging module, the first executing module, the second executing module, the displaying module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the learning cost of a user is reduced by adjusting kernel parameters, and the retrieval efficiency is improved.
An embodiment of the present invention provides a storage medium having a program stored thereon, the program implementing the retrieval method of laws and regulations when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the retrieval method of laws and regulations during running.
Fig. 3 is a schematic structural diagram of an apparatus provided by the present invention.
The embodiment of the invention provides equipment, which comprises at least one processor 701, at least one memory 702 and a bus 703, wherein the memory 702 and the bus 703 are connected with the processor; the processor 701 and the memory 702 complete mutual communication through a bus 703; the processor 701 is configured to call program instructions in the memory to execute a method for querying the content of the french statement in the referee document. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
obtaining a keyword;
judging whether the keywords belong to legal entity nouns or not;
if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result;
and displaying the first retrieval result or the second retrieval result.
Preferably, the determining the legal entity type of the keyword includes:
if the keyword is matched under the legal name field in the legal regulation database, determining that the legal entity type of the keyword is a legal name;
if the keyword is matched under the legal document number field in the legal and legal regulation database, determining that the legal entity type of the keyword is a legal document number;
and if the keyword is matched in case or criminal name fields in the law and regulation database, determining that the legal entity type of the keyword is the main idea of the law.
Preferably, when it is determined that the legal entity type is a legal name, the retrieving the legal and regulatory database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
converting the keyword into a legal standard name;
inquiring the laws and regulations with the legal name fields as the legal standard names in the laws and regulations database, and sequencing the obtained laws and regulations according to the sequencing rule of the published date to obtain a first inquiry result;
inquiring the law and judicial interpretation which accord with the association rule with the standard legal name to obtain a second inquiry result;
and integrating the first query result and the second query result to obtain a first retrieval result.
Preferably, after determining that the legal entity type is a legal name, the retrieval method further includes:
determining whether the keyword includes a legal provision;
when the keyword is determined to include the legal provision, obtaining a first search result includes:
integrating the standard legal name and the legal provision into a legal inquiry parameter;
and inquiring the law and regulation database by taking the law and regulation inquiry parameter as a basis, and taking the output law and regulation content as a first retrieval result.
Preferably, when it is determined that the legal entity type is a legal number, the legal and legal regulation database is searched according to the search dimension corresponding to the legal entity type, and the first search result is obtained by
Inquiring the laws and regulations with the legal number fields as the key words in the laws and regulations database to obtain a third inquiry result;
and sequencing the laws and regulations in the third query result according to the sequencing rule of the effectiveness grade to obtain a first retrieval result.
Preferably, when it is determined that the legal entity type is a case name or a crime name, the retrieving the legal and regulatory database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result includes:
inquiring the laws and regulations of which the law and regulation main field comprises the key words in the laws and regulations database to obtain a fourth inquiry result;
and sequencing the laws and regulations in the fourth query result according to a basic sequencing rule to obtain a first retrieval result.
Preferably, the step of performing fuzzy search after performing accurate search on the keyword in the law and regulation database to obtain a second search result includes:
accurately inquiring in the law and regulation database according to the retrieval sequence of the title, the main theme of the law, the law provision and the full text of the law in sequence to obtain a fifth inquiry result;
performing word segmentation operation on the keywords to obtain a plurality of word segmentation parameters, and performing fuzzy query on the plurality of word segmentation parameters in the legal regulation database according to the retrieval sequence of which the retrieval fields are titles, legal essences, legal provisions and full legal texts in sequence to obtain a sixth query result;
and sequencing the laws and regulations in the fifth query result and the sixth query result according to a basic sequencing rule to obtain a second retrieval result.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A retrieval method of laws and regulations, comprising:
obtaining a keyword;
judging whether the keywords belong to legal entity nouns or not;
if the keyword belongs to the legal entity noun, judging the legal entity type of the keyword, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
if the keyword does not belong to legal entity nouns, performing fuzzy retrieval after performing accurate retrieval on the keyword in the legal regulation database to obtain a second retrieval result;
and displaying the first retrieval result or the second retrieval result.
2. The method of claim 1, wherein said determining the legal entity type of the keyword comprises:
if the keyword is matched under the legal name field in the legal regulation database, determining that the legal entity type of the keyword is a legal name;
if the keyword is matched under the legal document number field in the legal and legal regulation database, determining that the legal entity type of the keyword is a legal document number;
and if the keyword is matched in case or criminal name fields in the law and regulation database, determining that the legal entity type of the keyword is the main idea of the law.
3. The retrieval method according to claim 1 or 2, wherein when it is determined that the legal entity type is a legal name, the retrieving the legal regulation database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result comprises:
converting the keyword into a legal standard name;
inquiring the laws and regulations with the legal name fields as the legal standard names in the laws and regulations database, and sequencing the obtained laws and regulations according to the sequencing rule of the published date to obtain a first inquiry result;
inquiring the law and judicial interpretation which accord with the association rule with the standard legal name to obtain a second inquiry result;
and integrating the first query result and the second query result to obtain a first retrieval result.
4. The retrieving method according to claim 3, wherein when it is determined that the legal entity type is a legal name, the retrieving method further comprises:
determining whether the keyword includes a legal provision;
when the keyword is determined to include the legal provision, obtaining a first search result includes:
integrating the standard legal name and the legal provision into a legal inquiry parameter;
and inquiring the law and regulation database by taking the law and regulation inquiry parameter as a basis, and taking the output law and regulation content as a first retrieval result.
5. The searching method according to claim 1 or 2, wherein when the legal entity type is determined to be a legal number, the searching legal and legal rules database according to the searching dimension corresponding to the legal entity type to obtain the first searching result comprises
Inquiring the laws and regulations with the legal number fields as the key words in the laws and regulations database to obtain a third inquiry result;
and sequencing the laws and regulations in the third query result according to the sequencing rule of the effectiveness grade to obtain a first retrieval result.
6. The retrieval method according to claim 1 or 2, wherein when the legal entity type is determined to be a case name or a crime name, the retrieving the legal regulation database according to the retrieval dimension corresponding to the legal entity type to obtain the first retrieval result comprises:
inquiring the laws and regulations of which the law and regulation main field comprises the key words in the laws and regulations database to obtain a fourth inquiry result;
and sequencing the laws and regulations in the fourth query result according to a basic sequencing rule to obtain a first retrieval result.
7. The retrieval method according to claim 1 or 2, wherein the performing fuzzy retrieval after performing accurate retrieval on the keyword in the law and regulation database to obtain a second retrieval result comprises:
accurately inquiring in the law and regulation database according to the retrieval sequence of the title, the main theme of the law, the law provision and the full text of the law in sequence to obtain a fifth inquiry result;
performing word segmentation operation on the keywords to obtain a plurality of word segmentation parameters, and performing fuzzy query on the plurality of word segmentation parameters in the legal regulation database according to the retrieval sequence of which the retrieval fields are titles, legal essences, legal provisions and full legal texts in sequence to obtain a sixth query result;
and sequencing the laws and regulations in the fifth query result and the sixth query result according to a basic sequencing rule to obtain a second retrieval result.
8. A retrieval apparatus for laws and regulations, comprising:
an obtaining module for obtaining a keyword;
the judging module is used for judging whether the keyword belongs to a legal entity noun or not;
the first execution module is used for judging the legal entity type of the keyword if the keyword belongs to a legal entity noun, and searching a legal regulation database according to the search dimension corresponding to the legal entity type to obtain a first search result; the legal entity type comprises any one of legal name, legal number and legal title;
the second execution module is used for carrying out fuzzy retrieval after carrying out accurate retrieval on the key words in the law and regulation database if the key words do not belong to legal entity nouns, so as to obtain a second retrieval result;
and the display module is used for displaying the first retrieval result or the second retrieval result.
9. An apparatus comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory to execute the case-like legal and legal retrieval method as claimed in any one of claims 1-7.
10. A storage medium having stored thereon computer-executable instructions which, when loaded and executed by a processor, carry out a method of legal and legal retrieval as recited in any one of claims 1 to 7.
CN201910916513.XA 2019-09-26 2019-09-26 Retrieval method of laws and regulations and related device Pending CN112559677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910916513.XA CN112559677A (en) 2019-09-26 2019-09-26 Retrieval method of laws and regulations and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910916513.XA CN112559677A (en) 2019-09-26 2019-09-26 Retrieval method of laws and regulations and related device

Publications (1)

Publication Number Publication Date
CN112559677A true CN112559677A (en) 2021-03-26

Family

ID=75029849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910916513.XA Pending CN112559677A (en) 2019-09-26 2019-09-26 Retrieval method of laws and regulations and related device

Country Status (1)

Country Link
CN (1) CN112559677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374239A (en) * 2022-07-13 2022-11-22 北京中海住梦科技有限公司 Legal and legal analysis method and device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101009924B1 (en) * 2010-06-25 2011-01-20 한국과학기술정보연구원 Named entity database or mining rule database update apparatus and method using named entity database and mining rule merged ontology schema
CN102831208A (en) * 2012-08-10 2012-12-19 北京市律典通科技有限公司 Method and system for inquiring laws
CN104156435A (en) * 2014-05-30 2014-11-19 中国石油化工股份有限公司 Method for rapidly finding HSE laws and regulations from database
CN108573057A (en) * 2018-04-25 2018-09-25 王慧 A kind of legal documents and laws and regulations correspondence search method
CN109508458A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 The recognition methods of legal entity and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101009924B1 (en) * 2010-06-25 2011-01-20 한국과학기술정보연구원 Named entity database or mining rule database update apparatus and method using named entity database and mining rule merged ontology schema
CN102831208A (en) * 2012-08-10 2012-12-19 北京市律典通科技有限公司 Method and system for inquiring laws
CN104156435A (en) * 2014-05-30 2014-11-19 中国石油化工股份有限公司 Method for rapidly finding HSE laws and regulations from database
CN108573057A (en) * 2018-04-25 2018-09-25 王慧 A kind of legal documents and laws and regulations correspondence search method
CN109508458A (en) * 2018-10-31 2019-03-22 北京国双科技有限公司 The recognition methods of legal entity and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115374239A (en) * 2022-07-13 2022-11-22 北京中海住梦科技有限公司 Legal and legal analysis method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US6286000B1 (en) Light weight document matcher
US9280535B2 (en) Natural language querying with cascaded conditional random fields
CN111291161A (en) Legal case knowledge graph query method, device, equipment and storage medium
CN110929125B (en) Search recall method, device, equipment and storage medium thereof
US20060184517A1 (en) Answers analytics: computing answers across discrete data
US20140180934A1 (en) Systems and Methods for Using Non-Textual Information In Analyzing Patent Matters
CN111046221A (en) Song recommendation method and device, terminal equipment and storage medium
US9754022B2 (en) System and method for language sensitive contextual searching
CN111125086B (en) Method, device, storage medium and processor for acquiring data resources
US20060080315A1 (en) Statistical natural language processing algorithm for use with massively parallel relational database management system
CN112559682B (en) Open source item personalized retrieval recommendation method based on Github software warehouse data set
CN111475725A (en) Method, apparatus, device, and computer-readable storage medium for searching for content
CN114090762B (en) Automatic question-answering method and system in futures field
CN114416733A (en) Data retrieval processing method and device, electronic equipment and storage medium
CN116737915B (en) Semantic retrieval method, device, equipment and storage medium based on knowledge graph
CN112559677A (en) Retrieval method of laws and regulations and related device
CN110688559A (en) Retrieval method and device
JP2019200582A (en) Search device, search method, and search program
CN111859066B (en) Query recommendation method and device for operation and maintenance work order
Chi et al. Concepts recommendation for searching scientific papers
TWI595371B (en) Legal information search system,? search processing method and computer readable media recorder
CN112860940B (en) Music resource retrieval method based on sequential concept space on description logic knowledge base
JPH07296005A (en) Japanese text registration/retrieval device
Fujioka et al. Search method for ordinances and rules in Japanese local governments based on distributed representation
CN115328945A (en) Data asset retrieval method, electronic device and computer-readable storage medium

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