CN114817686A - Data query method, device, equipment and medium based on search ranking - Google Patents

Data query method, device, equipment and medium based on search ranking Download PDF

Info

Publication number
CN114817686A
CN114817686A CN202210370843.5A CN202210370843A CN114817686A CN 114817686 A CN114817686 A CN 114817686A CN 202210370843 A CN202210370843 A CN 202210370843A CN 114817686 A CN114817686 A CN 114817686A
Authority
CN
China
Prior art keywords
query
preset
query statement
sentence
data
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
CN202210370843.5A
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.)
Shenzhen Ping An Smart Healthcare Technology Co ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202210370843.5A priority Critical patent/CN114817686A/en
Publication of CN114817686A publication Critical patent/CN114817686A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of artificial intelligence, and provides a data query method, a device, equipment and a medium based on search ranking. The method comprises the following steps: reading a query sentence input by a user, and judging a query intention corresponding to the query sentence based on a preset word list set; when the query statement is judged to be the drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to a user; when the query statement is judged to be the disease query intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, executing sorting operation on each target result based on the target result weight, and feeding back the resource data and the sorted target results to a user. The invention can improve the accuracy of the search result. The invention also relates to the technical field of block chains, and the target result can be stored in a node of a block chain.

Description

Data query method, device, equipment and medium based on search ranking
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a data query method, a data query device, data query equipment and a storage medium based on search ranking.
Background
At present, with the rapid development of artificial intelligence and the development of information in hospitals, an intelligent system for providing auxiliary diagnostic information applied to the medical field is also generated. At present, most of such intelligent auxiliary diagnosis systems adopt a deep neural network for data analysis and retrieval, the requirement on system hardware is high, and due to the lack of sample data in some medical fields (such as the field of traditional Chinese medicine), the accuracy of a data retrieval result is low, and the relevance between data fed back to a user (doctor) and the to-be-processed items of the user is not high.
Disclosure of Invention
In view of the above, the present invention provides a data query method, device, apparatus and storage medium based on search ranking, and aims to solve the technical problem of low accuracy of search results in the prior art.
In order to achieve the above object, the present invention provides a data query method based on search ranking, which comprises:
reading a query statement input by a user, and judging a query intention corresponding to the query statement based on a preset word list set;
when the query statement is of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
when the query statement is a query statement of disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
Preferably, the determining the query intention corresponding to the query statement based on the preset vocabulary includes:
and matching the query sentence with the preset word list set, judging whether the query sentence is successfully matched with the word list set, when the word list set has a word list successfully matched with the query sentence, determining that the query sentence is successfully matched with the word list set, and taking an intention corresponding to the successfully matched word list as a query intention of the query sentence.
Preferably, the determining whether the query statement is successfully matched with the vocabulary set includes:
and when the matching between the query sentence and all the word lists of the word list set fails, calculating the similarity value between the query sentence and each text in a preset text library, sequencing the similarity values from big to small, and selecting a preset number of texts to feed back to the user according to the sequencing result.
Preferably, the matching the query statement with a preset rule set includes:
judging the sentence type of the query sentence, matching the query sentence with an object rule set when the query sentence is a name word-based drug query sentence to obtain object information corresponding to the query sentence, and feeding the object information back to the user;
when the query statement is based on the medicine of the efficacy word, the query statement is matched with the function rule set to obtain a plurality of objects with the corresponding functions of the query statement, the objects are sorted based on the preset weight of each object, and the sorting result is fed back to the user.
Preferably, the formula for calculating the preset weight includes:
Figure BDA0003588575800000021
wherein T (n) represents the weight of the nth object, T 0 For the initial search weight, α is the preset cooling coefficient, D n Indicating the date on which the nth object was last searched from the current time, D 0 Indicating the date of the current time.
Preferably, the determining the weight of the target result corresponding to the query statement based on the preset algorithm includes:
assigning an initial weight to each target result in advance;
and iterating the initial weight of each target result by using a preset algorithm until the weight of each target result reaches stable distribution.
Preferably, the calculation formula of the preset algorithm includes:
PR(A)=PR(B)/L(B)+PR(C)/L(C)+PR(D)/L(D)
PR (A), PR (B), PR (C) and PR (D) respectively represent PR values of target results A, B, C and D, PR value is used for indicating the probability of target result being used, L (B), L (C) and L (D) respectively represent B, C, D number of target results linked to include A.
In order to achieve the above object, the present invention further provides a data query apparatus based on search ranking, including:
a judging module: the query language is used for reading a query sentence input by a user and judging a query intention corresponding to the query sentence based on a preset word list set;
a matching module: when the query statement is a query statement of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
a sorting module: and when the query statement is a query statement with a disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing a sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
In order to achieve the above object, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a program executable by the at least one processor to enable the at least one processor to perform any of the steps of the search ranking based data query method described above.
To achieve the above object, the present invention also provides a computer-readable storage medium storing a data query program based on search ranking, which when executed by a processor implements any of the steps of the data query method based on search ranking as described above.
The data query method, the device, the equipment and the storage medium based on search sorting can realize auxiliary diagnosis without establishing a large-scale model, determine query intention according to query sentences of a user (doctor), feed back relevant information to the doctor according to a preset rule set when the query intention is medicinal material information query, feed back relevant resource data and target results (prescriptions) when the query intention is disease query, sort according to the weight of the target results and feed back the data to the doctor for reference analysis, and can improve the accuracy of search results and the relevance of the search results and the query sentences.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a preferred embodiment of a data query method based on search ranking;
FIG. 2 is a block diagram of a preferred embodiment of a data query device based on search ranking according to the present invention;
FIG. 3 is a diagram of an electronic device according to a preferred embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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.
The invention provides a data query method based on search ranking. Fig. 1 is a schematic method flow diagram of an embodiment of the data query method based on search ranking according to the present invention. The method may be performed by an electronic device, which may be implemented by software and/or hardware. The data query method based on search ranking comprises the following steps:
step S10: and reading a query statement input by a user, and judging a query intention corresponding to the query statement based on a preset word list set.
The application scenario of the scheme can be that when a user (e.g., a doctor in traditional Chinese medicine) uses an auxiliary diagnosis platform (e.g., an intelligent auxiliary diagnosis client) with a search function, the search results of the doctor are intelligently sequenced to feed back the most accurate search results for reference analysis or arrangement of the doctor, so that the doctor can use a computer technology to realize auxiliary diagnosis, and the doctor in traditional Chinese medicine who is in clinical work can better learn and understand traditional Chinese medicine, and the scheme is described in detail by taking the scenario as an example. It should be noted that the practical application scenario of the present solution is not limited to this, and the present solution may also be used for ranking search results with a search function, such as social contact type or e-commerce type APPs.
In this embodiment, when it is detected that the user inputs a diagnosis query statement on the auxiliary diagnosis platform and initiates a search request, the diagnosis query statement input by the user in the interactive interface is obtained, it can be understood that the content input by the user may be the diagnosis query statement, or may be a diagnosis query term, for example, a name of a medicine, a disease condition (for example, aversion to cold and fever), and the like. It should be understood that the herbs in this embodiment can be drugs or medicines.
Since the diagnosis query sentence input by the doctor may be a drug name or a disease condition judgment, the intention of the query sentence needs to be identified, and the intention corresponding to the diagnosis query sentence can be judged according to a preset vocabulary set. Specifically, the determining the query intention corresponding to the diagnostic query statement based on the preset vocabulary includes:
and matching the query sentence with the preset word list set, judging whether the query sentence is successfully matched with the word list set, when the word list set has a word list successfully matched with the query sentence, determining that the query sentence is successfully matched with the word list set, and taking an intention corresponding to the successfully matched word list as a query intention of the query sentence.
The vocabulary set includes, but is not limited to, a medicinal material vocabulary, a functional vocabulary, and a symptom vocabulary, and the vocabularies may be established according to the related data obtained from the third-party database. If the query statement is matched with a certain word list, the query intention corresponding to the query statement can be obtained. For example, if the input query statement is "gorgon euryale", it can be determined that the query intention of the doctor is to understand the property and efficacy of the herb.
In one embodiment, the determining whether the query statement and the vocabulary set are successfully matched includes:
and when the matching between the query sentence and all the word lists of the word list set fails, calculating the similarity value between the query sentence and each text in a preset text library, sequencing the similarity values from big to small, and selecting a preset number of texts to feed back to the user according to the sequencing result.
When the diagnosis query sentence input by the doctor fails to be matched with the medicinal material word list, the functional word list and the symptom word list, the diagnosis query sentence input by the doctor is possibly a fuzzy sentence, the relevant cases in the case text library can be queried, and the texts with the top ten similarity values in sequence are selected and fed back to the doctor for reference by the doctor by calculating the similarity between the query sentence and each text in the case text library.
Step S20: and when the query statement is the query statement of the drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user.
In this embodiment, the drug query intention may refer to a drug or drug material query intention, that is, a doctor wants to know attribute information of some drug materials, so when the diagnostic query statement is determined as the drug material query intention, the diagnostic query statement is matched with a preset rule set, and a matching result is fed back to the doctor, where the preset rule set includes an object rule set (e.g., a drug material rule set) and a function rule set (e.g., a drug material function rule set), the drug material rule set includes various drug material attribute information (dosage, usage, and the like) that can be used as a traditional Chinese medicine, and the drug material function rule set includes various drug materials under various functional classifications (e.g., a table solving function, a qi regulating function, a blood activating function, and the like). The diagnostic query statement may be a specific drug name or a functional name (e.g., exterior-resolving drug, qi-regulating drug, blood-activating drug, etc.), i.e., the diagnostic query statement of the drug or drug query intent is of different types.
In one embodiment, the matching the query statement with a preset rule set includes:
judging the sentence type of the query sentence, matching the query sentence with an object rule set when the query sentence is a name word-based drug query sentence to obtain object information corresponding to the query sentence, and feeding the object information back to the user;
when the query statement is based on the medicine of the efficacy word, the query statement is matched with the function rule set to obtain a plurality of objects with the corresponding functions of the query statement, the objects are sorted based on the preset weight of each object, and the sorting result is fed back to the user.
When the diagnosis query statement is judged to be the query statement of the name of the medicinal material, the diagnosis query statement is matched with the medicinal material rule set to obtain attribute information (such as the main treatment efficacy, taboo, dosage, usage and the like of the medicinal material) corresponding to the query statement, and the attribute information of the medicinal material is fed back to a doctor for reference diagnosis of the doctor. The query statement of the medicine based on the efficacy word refers to a specific efficacy type query statement (for example, heat-clearing medicines, exterior-releasing medicines, qi-regulating medicines, blood-activating medicines and the like), the query statement is matched with the function rule set to obtain information of a plurality of medicinal materials with functions corresponding to the query statement, for example, the diagnosis query statement is the exterior-releasing medicines, the obtained medicinal materials may include mint, mulberry leaves, chrysanthemum and the like, and the medicinal materials are sorted according to preset weights from large to small and then fed back to a doctor for reference diagnosis of the doctor.
Further, the formula for calculating the preset weight includes:
Figure BDA0003588575800000061
wherein T (n) represents the weight of the nth object, T 0 For the initial search weight, α is the preset cooling coefficient, D n Indicating the date on which the nth object was last searched from the current time, D 0 Indicating the date of the current time.
The weight is determined by the cooling time of the objects (medicinal materials) with different searching frequencies, so that the medicinal materials searched by other doctors or written in the prescription can be pushed to the inquiring doctors in time, and the corresponding weight value of the objects which are not searched is continuously reduced along with the time.
Step S30: when the query statement is a query statement of disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
In this embodiment, when the query statement is determined as the query statement of the disease query intention, it indicates that a doctor may want to know further clinical manifestations and corresponding common prescriptions or drugs under the symptoms according to the disease diagnosed by the doctor, so that resource data and target results associated with the query statement can be read from a preset database according to the diagnosis query statement, the resource data refers to the clinical manifestations, the target results refers to the common drugs or the prescriptions, and the prescriptions refer to names, dosages, and usages of several drugs combined for treating a certain disease. For example, if the query statement is "aversion to cold and fever", the specific clinical manifestations and the commonly used prescriptions of "aversion to cold and fever" are queried from the database.
And then, determining the weight of the target result corresponding to the query statement according to a preset algorithm, sequencing the target results from large to small according to the weight of the target results, and feeding back the clinical expression corresponding to the query statement and the sequenced prescription or medicinal materials to a doctor for reference diagnosis of the doctor.
In one embodiment, the determining the weight of the target result corresponding to the query statement based on the preset algorithm includes:
assigning an initial weight to each target result in advance;
and iterating the initial weight of each target result by using a preset algorithm until the weight of each target result reaches stable distribution.
The initial weight refers to a PageRank value (PR value), the PR value refers to the probability of using one medicinal material, so the initial weight is 1/N, N is the total number of the medicinal materials, the sum of the PR values of all the medicinal materials is 1, and after the PR value is preset, iteration is continuously performed through a predetermined algorithm until the stable distribution is achieved. If a drug is combined with many other drugs in a prescription, it is important that the drug has a relatively high PR value. Similarly, if a drug with a high PR value is combined with another drug, the PR value of the combined drug will be increased accordingly.
Further, the calculation formula of the preset algorithm comprises:
PR(A)=PR(B)/L(B)+PR(C)/L(C)+PR(D)/L(D)
PR (A), PR (B), PR (C) and PR (D) respectively represent PR values of target results A, B, C and D, PR value is used for indicating the probability of target result being used, L (B), L (C) and L (D) respectively represent B, C, D number of target results linked to include A.
Suppose that the inquired target result is only four medicinal materials or prescriptions: A. b, C and D, B has links to C, and D also has links to 3 medicinal materials including A. One herb cannot vote 2 times, so B half votes for each herb, and only one third of the votes cast by D is counted on PR value of a, i.e., PR (B)/2+ PR (c)/1+ PR (D)/3.
Referring to fig. 2, a functional block diagram of the data query apparatus 100 based on search ranking according to the present invention is shown.
The data query device 100 based on search ranking according to the present invention can be installed in an electronic device. According to the implemented functions, the data query device 100 based on search ranking may include a judgment module 110, a matching module 120 and a ranking module 130. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the judging module 110: the query language is used for reading a query sentence input by a user and judging a query intention corresponding to the query sentence based on a preset word list set;
the matching module 120: when the query statement is a query statement of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
the sorting module 130: and when the query statement is a query statement with a disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing a sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
In one embodiment, the determining the query intention corresponding to the query statement based on the preset vocabulary includes:
and matching the query sentence with the preset word list set, judging whether the query sentence is successfully matched with the word list set, when the word list set has a word list successfully matched with the query sentence, determining that the query sentence is successfully matched with the word list set, and taking an intention corresponding to the successfully matched word list as a query intention of the query sentence.
In one embodiment, the determining whether the query statement and the vocabulary set are successfully matched includes:
and when the matching between the query sentence and all the word lists of the word list set fails, calculating the similarity value between the query sentence and each text in a preset text library, sequencing the similarity values from big to small, and selecting a preset number of texts to feed back to the user according to the sequencing result.
In one embodiment, the matching the query statement with a preset rule set includes:
judging the sentence type of the query sentence, matching the query sentence with an object rule set when the query sentence is a name word-based drug query sentence to obtain object information corresponding to the query sentence, and feeding the object information back to the user;
when the query statement is based on the medicine of the efficacy word, the query statement is matched with the function rule set to obtain a plurality of objects with the corresponding functions of the query statement, the objects are sorted based on the preset weight of each object, and the sorting result is fed back to the user.
In one embodiment, the formula for calculating the preset weight includes:
Figure BDA0003588575800000091
wherein T (n) represents the weight of the nth object, T 0 For the initial search weight, α is the preset cooling coefficient, D n Indicating the date on which the nth object was last searched from the current time, D 0 Indicating the date of the current time.
In one embodiment, the determining the weight of the target result corresponding to the query statement based on the preset algorithm includes:
assigning an initial weight to each target result in advance;
and iterating the initial weight of each target result by using a preset algorithm until the weight of each target result reaches stable distribution.
In one embodiment, the calculation formula of the preset algorithm includes:
PR(A)=PR(B)/L(B)+PR(C)/L(C)+PR(D)/L(D)
PR (A), PR (B), PR (C) and PR (D) respectively represent PR values of target results A, B, C and D, PR value is used for indicating the probability of target result being used, L (B), L (C) and L (D) respectively represent B, C, D number of target results linked to include A.
Fig. 3 is a schematic diagram of an electronic device 1 according to a preferred embodiment of the invention.
The electronic device 1 includes but is not limited to: memory 11, processor 12, display 13, and network interface 14. The electronic device 1 is connected to a network through a network interface 14 to obtain raw data. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System for Mobile communications (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or a communication network.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like equipped with the electronic device 1. Of course, the memory 11 may also comprise both an internal memory unit and an external memory device of the electronic device 1. In this embodiment, the memory 11 is generally used for storing an operating system installed in the electronic device 1 and various types of application software, such as program codes of the data query program 10 based on search ranking. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically used for controlling the overall operation of the electronic device 1, such as performing data interaction or communication related control and processing. In this embodiment, the processor 12 is configured to run the program code stored in the memory 11 or process data, for example, run the program code of the data query program 10 based on search ranking.
The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display 13 is used for displaying information processed in the electronic device 1 and for displaying a visual work interface, e.g. displaying the results of data statistics.
The network interface 14 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), the network interface 14 typically being used for establishing a communication connection between the electronic device 1 and other electronic devices.
Fig. 3 shows only the electronic device 1 with components 11-14 and the search ranking-based data query program 10, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
Optionally, the electronic device 1 may further comprise a user interface, the user interface may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface and a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch screen, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
The electronic device 1 may further include a Radio Frequency (RF) circuit, a sensor, an audio circuit, and the like, which are not described in detail herein.
In the above embodiment, the processor 12, when executing the data query program 10 based on search ranking stored in the memory 11, may implement the following steps:
reading a query statement input by a user, and judging a query intention corresponding to the query statement based on a preset word list set;
when the query statement is of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
when the query statement is a query statement of disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
The storage device may be the memory 11 of the electronic device 1, or may be another storage device communicatively connected to the electronic device 1.
For a detailed description of the above steps, please refer to the above description of fig. 2 regarding a functional block diagram of an embodiment of the data query apparatus 100 based on search ranking and fig. 1 regarding a flowchart of an embodiment of a data query method based on search ranking.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be non-volatile or volatile. The computer readable storage medium may be any one or any combination of hard disks, multimedia cards, SD cards, flash memory cards, SMCs, Read Only Memories (ROMs), Erasable Programmable Read Only Memories (EPROMs), portable compact disc read only memories (CD-ROMs), USB memories, etc. The computer readable storage medium includes a storage data area and a storage program area, the storage data area stores data created according to the use of the blockchain node, the storage program area stores a data query program 10 based on search ranking, and the data query program 10 based on search ranking realizes the following operations when being executed by a processor:
reading a query statement input by a user, and judging a query intention corresponding to the query statement based on a preset word list set;
when the query statement is of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
when the query statement is a query statement of disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the data query method based on search ranking, and is not repeated here.
The invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
In another embodiment, in order to further ensure the privacy and security of all the data appearing in the data query method based on search ranking provided by the present invention, all the data may also be stored in a node of a block chain. Such as query statements, resource data, target results, etc., which may all be stored in block chain nodes.
It should be noted that the blockchain in the present invention is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, an electronic device, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A data query method based on search ranking, the method comprising:
reading a query statement input by a user, and judging a query intention corresponding to the query statement based on a preset word list set;
when the query statement is of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
when the query statement is a query statement of disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
2. The data query method based on search ranking as claimed in claim 1, wherein the determining the query intention corresponding to the query sentence based on the preset vocabulary includes:
and matching the query sentence with the preset word list set, judging whether the query sentence is successfully matched with the word list set, when the word list set has a word list successfully matched with the query sentence, determining that the query sentence is successfully matched with the word list set, and taking an intention corresponding to the successfully matched word list as a query intention of the query sentence.
3. The search ranking based data query method of claim 2, wherein said determining whether the query statement matches the set of vocabularies successfully comprises:
and when the matching between the query sentence and all the word lists of the word list set fails, calculating the similarity value between the query sentence and each text in a preset text library, sequencing the similarity values from big to small, and selecting a preset number of texts to feed back to the user according to the sequencing result.
4. The search ranking based data query method of claim 1, wherein said matching the query statement to a preset rule set comprises:
judging the sentence type of the query sentence, matching the query sentence with an object rule set when the query sentence is a name word-based drug query sentence to obtain object information corresponding to the query sentence, and feeding the object information back to the user;
when the query statement is based on the medicine of the efficacy word, the query statement is matched with the function rule set to obtain a plurality of objects with the corresponding functions of the query statement, the objects are sorted based on the preset weight of each object, and the sorting result is fed back to the user.
5. The data query method based on search ranking as claimed in claim 1, wherein the formula for calculating the preset weight comprises:
Figure FDA0003588575790000021
wherein T (n) represents the weight of the nth object, T 0 As initial search weight, alpha is preLet the cooling coefficient, D n Indicating the date on which the nth object was last searched from the current time, D 0 Indicating the date of the current time.
6. The data query method based on search ranking as claimed in claim 1, wherein the determining the weight of the target result corresponding to the query statement based on the preset algorithm comprises:
assigning an initial weight to each target result in advance;
and iterating the initial weight of each target result by using a preset algorithm until the weight of each target result reaches stable distribution.
7. The search ranking-based data query method according to claim 6, wherein the calculation formula of the preset algorithm includes:
PR(A)=PR(B)/L(B)+PR(C)/L(C)+PR(D)/L(D)
PR (A), PR (B), PR (C) and PR (D) respectively represent PR values of target results A, B, C and D, PR value is used for indicating the probability of target result being used, L (B), L (C) and L (D) respectively represent B, C, D number of target results linked to include A.
8. An apparatus for querying data based on search ranking, the apparatus comprising:
a judging module: the query language is used for reading a query sentence input by a user and judging a query intention corresponding to the query sentence based on a preset word list set;
a matching module: when the query statement is a query statement of drug query intention, matching the query statement with a preset rule set, and feeding back a matching result to the user;
a sorting module: and when the query statement is a query statement with a disease inquiry intention, reading resource data and target results associated with the query statement in a preset database, determining the weight of the target results corresponding to the query statement based on a preset algorithm, performing a sorting operation on each target result based on the weight of the target results, and feeding back the resource data and the sorted target results to the user.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a program executable by the at least one processor to enable the at least one processor to perform the search ranking based data query method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a data query program based on search ranking, which when executed by a processor implements the steps of the data query method based on search ranking according to any of claims 1 to 7.
CN202210370843.5A 2022-04-11 2022-04-11 Data query method, device, equipment and medium based on search ranking Pending CN114817686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210370843.5A CN114817686A (en) 2022-04-11 2022-04-11 Data query method, device, equipment and medium based on search ranking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210370843.5A CN114817686A (en) 2022-04-11 2022-04-11 Data query method, device, equipment and medium based on search ranking

Publications (1)

Publication Number Publication Date
CN114817686A true CN114817686A (en) 2022-07-29

Family

ID=82534723

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210370843.5A Pending CN114817686A (en) 2022-04-11 2022-04-11 Data query method, device, equipment and medium based on search ranking

Country Status (1)

Country Link
CN (1) CN114817686A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117892762A (en) * 2024-03-14 2024-04-16 临沂美联重工有限公司 Basic data query system and method for skid steer loader

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117892762A (en) * 2024-03-14 2024-04-16 临沂美联重工有限公司 Basic data query system and method for skid steer loader
CN117892762B (en) * 2024-03-14 2024-05-24 临沂美联重工有限公司 Basic data query system and method for skid steer loader

Similar Documents

Publication Publication Date Title
CN108986879B (en) Medicine recommendation method, device, computer equipment and storage medium
CN113707303A (en) Method, device, equipment and medium for solving medical problems based on knowledge graph
US20120323839A1 (en) Entity recognition using probabilities for out-of-collection data
CN113707300A (en) Search intention identification method, device, equipment and medium based on artificial intelligence
CN111180024B (en) Data processing method and device based on word frequency and inverse document frequency and computer equipment
CN112417096A (en) Question-answer pair matching method and device, electronic equipment and storage medium
CN111984793A (en) Text emotion classification model training method and device, computer equipment and medium
CN111401066A (en) Artificial intelligence-based word classification model training method, word processing method and device
CN110929752A (en) Knowledge-driven and data-driven clustering method and related equipment
CN114860887A (en) Disease content pushing method, device, equipment and medium based on intelligent association
Warikoo et al. LPTK: a linguistic pattern-aware dependency tree kernel approach for the BioCreative VI CHEMPROT task
CN112906377A (en) Question answering method and device based on entity limitation, electronic equipment and storage medium
CN114550870A (en) Prescription auditing method, device, equipment and medium based on artificial intelligence
CN113111159A (en) Question and answer record generation method and device, electronic equipment and storage medium
CN112035757A (en) Medical waterfall flow pushing method, device, equipment and storage medium
CN110569419A (en) question-answering system optimization method and device, computer equipment and storage medium
CN110752027B (en) Electronic medical record data pushing method, device, computer equipment and storage medium
CN111369148A (en) Object index monitoring method, electronic device and storage medium
CN114817686A (en) Data query method, device, equipment and medium based on search ranking
WO2023029510A1 (en) Remote diagnostic inquiry method and apparatus based on artificial intelligence, and device and medium
CN111930897B (en) Patent retrieval method, device, electronic equipment and computer-readable storage medium
Ren et al. Effectively processing medical term queries on the UMLS Metathesaurus by layered dynamic programming
Sathish Kumar et al. Information extraction and prediction using partial keyword combination and blends measure
John et al. Medication recommendation system based on clinical documents
CN113821641B (en) Method, device, equipment and storage medium for classifying medicines based on weight distribution

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220921

Address after: Room 2601 (Unit 07), Qianhai Free Trade Building, No. 3048, Xinghai Avenue, Nanshan Street, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Ping An Smart Healthcare Technology Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.