CN114281923A - Medicine name searching method, device, equipment and storage medium - Google Patents

Medicine name searching method, device, equipment and storage medium Download PDF

Info

Publication number
CN114281923A
CN114281923A CN202111604543.0A CN202111604543A CN114281923A CN 114281923 A CN114281923 A CN 114281923A CN 202111604543 A CN202111604543 A CN 202111604543A CN 114281923 A CN114281923 A CN 114281923A
Authority
CN
China
Prior art keywords
name
medicine
target
text information
drug
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
CN202111604543.0A
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.)
Shanghai Taimei Digital Technology Co ltd
Original Assignee
Zhejiang Taimei Medical 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 Zhejiang Taimei Medical Technology Co Ltd filed Critical Zhejiang Taimei Medical Technology Co Ltd
Priority to CN202111604543.0A priority Critical patent/CN114281923A/en
Publication of CN114281923A publication Critical patent/CN114281923A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the specification provides a medicine name searching method, a medicine name searching device, medicine name searching equipment and a storage medium. The method may include: receiving a search request which is sent by a client and attached with text information; determining a target search word category to which the text information belongs; wherein, different search word categories correspond to different index information sets; the index information set comprises index information of a plurality of corresponding medicine names; matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name; and sending the name of the target medicine to the client. By the technical method, the medicine name and the medicine classification with higher matching degree can be returned by inputting the search information by the user.

Description

Medicine name searching method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for searching a drug name.
Background
The existing medicines in the market are huge in quantity and are continuously updated. When people need to search for a certain medicine or a certain type of medicine, a general search engine or a professional medicine search engine is often used for searching.
In order to obtain accurate results, the search engine needs to receive a search instruction containing a specific drug or a drug classification, a drug grade and a drug professional name of a certain class of drugs to return more accurate results. This search method is cumbersome and inconvenient for people without relevant knowledge.
Disclosure of Invention
In view of this, embodiments of the present disclosure are directed to providing a method, an apparatus, a computer device and a storage medium for searching for a drug name, which can improve the accuracy of searching for the drug name.
An embodiment of the present specification provides a method for searching a drug name, including: receiving a search request which is sent by a client and attached with text information; determining a target search word category to which the text information belongs; wherein, different search word categories correspond to different index information sets; the index information set comprises index information of a plurality of corresponding medicine names; matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name; and sending the name of the target medicine to the client.
The embodiment of the present specification further provides a method for searching a drug name, including: receiving text information input by a user; displaying a search result list for the text information; wherein the search result list includes drug names and drug category names that match the text information.
An embodiment of the present specification provides a device for searching for a name of a drug, including: the receiving module is used for receiving a search request which is sent by a client and is attached with text information; the determining module is used for determining the target search word category to which the text information belongs; the matching module is used for matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name; and the sending module is used for sending the name of the target medicine to the client.
According to the embodiment of the specification, the target search word category to which the received text information belongs is determined, and the text information is used for centralized matching in the index information corresponding to the target search word category to obtain the target medicine name, so that the purpose that the medicine name with high matching degree and the medicine classification can be returned by inputting the search content is achieved, and the effect of improving the search precision is achieved.
An embodiment of the present specification provides a device for searching for a name of a drug, including: the receiving module is used for receiving text information input by a user; the display module is used for displaying a search result list aiming at the text information; wherein the search result list includes drug names and drug category names that match the text information.
According to the embodiment of the specification, the text information input by the user is received, the search result list aiming at the text information is displayed, wherein the search result list comprises the medicine name and the medicine classification name which are matched with the text information, the purpose that the medicine name and the medicine classification with high matching degree can be returned by inputting the search content is achieved, and the effect of improving the search precision is achieved.
The embodiment of the specification provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the method of the embodiment when executing the computer program.
The present specification embodiments propose a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the embodiments.
Drawings
FIG. 1 is a diagram illustrating different peer interactions in an example scenario provided by an embodiment.
FIG. 2 is a diagram illustrating different peer interactions in an example scenario provided by an embodiment.
FIG. 3 is a diagram illustrating a client in an example scenario provided by an embodiment.
FIG. 4 is a diagram illustrating a client in an example scenario provided by an embodiment.
FIG. 5 is a diagram illustrating a client in an example scenario provided by an embodiment.
FIG. 6 is a diagram illustrating a client in an example scenario provided by an embodiment.
FIG. 7 is a diagram illustrating different peer interactions in an example scenario provided by an embodiment.
Fig. 8 is a flowchart illustrating a drug name searching method according to an embodiment.
Fig. 9 is a flowchart illustrating a drug name searching method according to an embodiment.
Fig. 10 is a schematic diagram illustrating a medicine name search apparatus according to an embodiment.
Fig. 11 is a schematic diagram illustrating a device for searching for a name of a medicine according to an embodiment.
FIG. 12 is a functional diagram of an electronic device according to an embodiment.
Detailed Description
In order to make the technical solution of the present invention better understood, the technical solution of the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present specification belong to the protection scope of the present specification.
Please refer to fig. 1 to 6. The present specification provides an example of a scenario of a drug name search system. The drug name search system may include a client and a server. The user may be anyone, needing to know the drug name. In the event of a drug name search, the user may enter search content in hopes of obtaining matching drug name information.
The user first enters search content into the client. Specifically, the user may enter "hypertension" at the client, knowing what medications the hypertensive may use.
The client will send the server the "hypertensive" accompanied in the search request. The server is provided with a plurality of search word categories of Chinese name, English name, code, symptom and manufacturer name, and the server matches hypertension with the search word categories to determine the target search word category to which the hypertension belongs. Specifically, the server calculates a unique vector value for each target search word category through a mathematical model, and after the server receives text information of 'hypertension', the server can judge that the vector distance between the vector value of 'hypertension' and 'symptom' is minimum, and the vector distance between the vector value of 'hypertension' and 'symptom' is larger than the vector distance between the vector value of 'Chinese name', 'English name' and 'code', so that the target search word category to which 'hypertension' belongs is 'symptom'.
Specifically, after the server determines that the target search word category to which "hypertension" belongs is "symptom", the target search word category may be matched with the index information set to which "symptom" belongs, and the index information set to which "symptom" belongs includes "pain", "vertigo", "fever", "hemorrhage", "dyspnea", and "hypertension". Each index information set calculates a unique vector value through a mathematical model, and after calculation of the mathematical model, the server determines that the vector distance between the hypertension and the index information set of the hypertension in the symptoms is minimum, and the vector distance between the hypertension and the index information set of the pain, the dizziness, the fever, the hemorrhage and the dyspnea is larger. The server returns the medicine information included in the hypertension index information set, wherein the medicine information includes hydrochlorothiazide, triamterene, metoprolol and atenolol.
And after receiving the name of the target medicine, the client presents the name of the target medicine to the user through the display. And triggering the medicine name by the user, and displaying the medicine introduction information represented by the medicine name by the client. Specifically, the user clicks the hydrochlorothiazide on the display to display that the hydrochlorothiazide is named as hydrochlorthiazide, the other names are hydrochlorothiazide and hydrochlorothiazide, the application is diuretic, the hydrochlorothiazide can reduce blood pressure and has diuretic effect, and the hydrochlorothiazide is often used together with other antihypertensive drugs, and the symptoms are that the hydrochlorothiazide is mainly applicable to cardiac edema, hepatic edema and renal edema: such as nephrotic syndrome, acute glomerulonephritis, chronic renal failure and edema caused by an excess of adrenocortical hormone and estrogen; hypertension; diabetes insipidus and the cautionary items are that potassium salt is properly supplemented in long-term application.
After receiving the search information of the 'hypertension patients', the server determines that the distance between the medicine classification name of 'medicine capable of treating hypertension' and the vector value of the 'hypertension patients' is minimum by calculating the vector value of each medicine classification name and the distance between the vector values of the 'hypertension patients', and returns the information included in the medicine classification name of 'medicine capable of treating hypertension' to the client.
And after receiving the medicine classification name, the client displays the medicine classification name to the user through the display. And triggering the medicine classification name by the user, and displaying the medicine name included by the medicine classification name category by the client. Specifically, the user clicks "a medicine for treating hypertension" on the display, and "hydrochlorothiazide, triamterene, amiloride, spironolactone, furosemide" may be displayed on the client.
The above description is only exemplary of the present disclosure and should not be construed as limiting the present disclosure, and any modifications, equivalents and the like that are within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.
The embodiment of the specification provides a medicine name searching system. The drug name search system may include a client and a server. The client may be an electronic device with network access capabilities. Specifically, for example, the client may be a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, a shopping guide terminal, a television, a smart speaker, a microphone, and the like. Wherein, wearable equipment of intelligence includes but not limited to intelligent bracelet, intelligent wrist-watch, intelligent glasses, intelligent helmet, intelligent necklace etc.. Alternatively, the client may be software capable of running in the electronic device. The server may be an electronic device having a certain arithmetic processing capability. Which may have a network communication module, a processor, memory, etc. Of course, the server may also refer to software running in the electronic device. The server may also be a distributed server, which may be a system with multiple processors, memory, network communication modules, etc. operating in coordination. Alternatively, the server may also be a server cluster formed by several servers. Or, with the development of scientific technology, the server can also be a new technical means capable of realizing the corresponding functions of the specification implementation mode. For example, it may be a new form of "server" implemented based on quantum computing.
Referring to fig. 7, in an embodiment of the present disclosure, a medicine name searching method may be applied to a server. The method may include the following steps.
Step S110: and receiving a search request which is sent by a client and attached with text information.
In this embodiment, the client may present a page including a plurality of page controls to the user, where the page controls may be functional components for page use. Page controls can be divided into various types according to function. Specifically, for example, the page control may include an input box control for the user to enter text of the drug name desired; and the button control is used for sending a search request to the server by the client after the user confirms that the input is finished.
The server receiving the search request with the text information sent by the client may be that the server receives the search request with the text information sent by the client. The server can receive the search request through the service port, so that the server can correspond to a plurality of clients, and the search request sent by the plurality of clients can be responded. The server receives a search request sent by a client, and can also indicate that a user using the client needs to search for a drug name.
The text information may be related information of the name of the drug that the user wishes to obtain. Specifically, the text information may be explicitly designated as "amoxicillin" or fuzzy information, such as "body temperature rise" and "vitamin + vision", which is convenient for a user in the non-medical field to search if only part of the information is known.
Step S120: determining a target search word category to which the text information belongs; wherein, different search word categories correspond to different index information sets; the index information set includes index information for a plurality of corresponding drug names.
The server first determines a target search word category to which the text information belongs. The text input by the user may include irrelevant information or unrecognized characters, and the content of the medicine database is huge and complex, so that the target search word category is determined first and then the search is performed through the index information set, the search time can be shortened, and the search accuracy is improved. The search word category is determined by different attributes of the medicine, so that a user can obtain more accurate search results under the condition that the user only knows part of information.
The index information is used for matching with the search terms, or can be information with mapping relation with the information of the medicine, and the specific medicine name can be mapped through searching of a certain corresponding target search term category. Specifically, the name of the medicine is hydrochlorothiazide, and when the corresponding target search word category is symptom, the index information can be hypertension; when the corresponding target search term is classified as "english name", the index information may be "hydrochlorhiazide".
The set of index information may be a collection of the index information, including one or more of the index information. Specifically, the target search word category is "symptom", and the corresponding index information set may include "vertigo", "sleepiness", "cough", "anorexia", "shock", and "hypertension".
The search word category may be a plurality of categories set in advance, and corresponding index information may be set corresponding to each category. Thus, after the search word category can be determined, matching can be performed in the corresponding index information. Specifically, the search term category may be attributes of each dimension of the medicine, and the search term category may also be a chinese name, an english name, a code, a symptom, a component, and a chemical formula of the medicine. And the target search word category is a certain search word category which is most relevant to the text information after being calculated by a mathematical model and is determined as a search word category expected by the user. Specifically, the receiving client sends the text message as "pain", the server calculates the vector of "pain", and may calculate the vector distance from the vector of each search term category, and as a result, when the search term category is "symptom", the vector distance from the search term "pain" is the smallest, so that it is determined that the target search term category to which the keyword "pain" of the text message belongs is "symptom".
Step S130: and matching the text information in the index information set corresponding to the target search word category to obtain the name of the target medicine.
And the server calculates the matching degree of the keywords in the text information and the data of the index information set corresponding to the target search word category, and the medicine name with higher matching degree is possibly a result expected by the user and is determined as the target medicine name.
The matching of the text information in the index information set corresponding to the target search word category may be direct matching of the text information and the index information corresponding to the target search word category, or may be determining a matching result according to a vector distance, a number of similar items, and semantic similarity, where the matching result is a medicine name, and the matching rule may be calculated by a mathematical model. For example, each medicine and its information have a vector value, the search word input by the user also calculates a vector value by the same method, and the vector distance is calculated to determine the target search word category and the corresponding index information set which are closest to the text information. Specifically, the text information is "vitamin", the target search word category closest to the "vitamin" vector may be "chinese name", the index information included in the "chinese name" is calculated in a set, and the medicine names closest to the "vitamin" vector are "vitamin a", "vitamin B", and "vitamin C", "vitamin a", "vitamin B", and "vitamin C" are matching results.
The target medicine name may be a medicine name with a high matching result, or a medicine name determined to be desired by the user after matching. Specifically, the text message sent by the receiving client is "hypertension", and after matching, the names of the target drugs may be "hydrochlorothiazide, triamterene, amiloride, spironolactone, and furosemide".
Step S140: and sending the name of the target medicine to the client.
The target medicine name can be a medicine name contained in the index information set corresponding to the target search word category, and the server sends the target medicine name to the client for selection by the user.
The method comprises the steps that a search request with text information sent by a client is received; determining a target search word category to which the text information belongs; wherein, different search word categories correspond to different index information sets; the index information set comprises index information of a plurality of corresponding medicine names; matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name; and sending the target medicine name to the client side, so that a result that the corresponding medicine name can be provided according to the search content is achieved.
In some embodiments, the step of determining a target search term category to which the text information belongs includes: generating a search word vector of the text information; respectively calculating the vector distance between the search word vector and the category word vector corresponding to the search word category; the category word vector is generated according to index information included in the corresponding search word category; and taking the search word category corresponding to the smaller first vector distance as the target search word category. By calculating the vector distance, the server can judge the search word category to which the medicine name which the user wants to obtain belongs, so that the aim of improving the search accuracy is fulfilled, and the search speed is improved.
The search word vector may be a real number vector representing the content of the search word calculated by a mathematical model, and the category word vector may be a real number vector representing the content of the category word calculated by a mathematical model. The first vector distance may be a cosine distance or a euclidean distance of the search word vector and the category word vector. The target search word category corresponding to the smaller first vector distance may be the target search word category with the similar text information. Specifically, the search term is "running nose", the vector value of "running nose" is calculated through a mathematical model, the vector distance between the vector value of "running nose" and each category word vector is calculated respectively, the vector distance between "running nose" and "symptom" is determined to be smaller, and the distance between the vector value of "running nose" and "symptom" is determined to be longer than the distance between the vector value of "running nose" and "Chinese name", "English name" and "code", so that the category of the target search term to which the search term is "running nose" belongs is determined to be "symptom".
In some embodiments, the step of determining the target search word category to which the text information belongs includes: extracting keywords of the text information; the keywords are vocabularies with the text information in a semantic domination effect; matching the keywords with index information in search word categories respectively to obtain the number of entries of the index information containing the keywords respectively; and taking the search word category corresponding to the larger number of the items as the target search word category. By comparing the number of the entries, the server can judge the search word category to which the medicine name which the user wants to obtain belongs, so that the purpose of improving the search accuracy is achieved, and the search speed is improved.
The words with semantic dominance may be words related to the medicine information in the text information, or words similar to the search word category. And determining the target search word category corresponding to the text information by the server through the vocabulary with the semantic domination effect. Specifically, the text message "it is cold today, and it is cold", and the vocabulary of the semantic domination may be "cold".
The number of entries may be the number of sets of index information containing the keyword. The larger the number of entries, the closer the keyword is to the corresponding search word category. Specifically, the word of semantic domination is "cold", the number of times of occurrence of "cold" in the index information including medicine information is shown as a result, the number of items of "cold" included in the search word category of "symptom" may be much larger than that of other target search word categories, and therefore, it is determined that the text information "cold today and the target search word category to which" cold belongs "is" symptom ".
In some embodiments, the step of obtaining a name of a target drug by matching the text information in the index information set corresponding to the target search word category includes: respectively calculating semantic similarity of the text information and index information in the index information set of the target search word category; comparing the semantic similarity, taking the larger semantic similarity as the target semantic similarity, and taking the index information corresponding to the target semantic similarity as the target index information; and taking the medicine name corresponding to the target index information as the target medicine name. By comparing the semantic similarity, the server can judge the search word category to which the medicine name which the user wants to obtain belongs, so that the aim of improving the search accuracy is fulfilled, and the search speed is improved.
The semantic similarity may represent a degree of similarity between the semantics of the text information and the semantics of the index information in the index information set of the target search word category, and the semantic similarity may be calculated using a semantic similarity matrix. The greater the semantic similarity, the closer the meaning of the two is, and the more likely it is a result desired by the user. Specifically, the text information is 'aspirin', the semantic similarity between the 'aspirin' and each search word category is calculated through a mathematical model, and the result shows that the semantic similarity between the 'aspirin' and the 'English name' is maximum, so that the target search word category of the text information which is 'aspirin' is determined to be 'English name'.
In some embodiments, the step of sending the target drug name to the client includes: and sending the names of the target medicines to the client in a reverse order according to the semantic similarity. When the client displays the searched medicine name result, the medicine names with the highest semantic similarity should be arranged in the front row, so that the user can conveniently select the medicine names. The semantic similarity result calculated by using the mathematical model is that the medicine name with smaller semantic similarity is in front of the medicine name with larger semantic similarity, and therefore the medicine names are arranged in reverse order and then sent to the client.
The reverse order may be a sort form in which the target medicine name with the large similarity is before and the target medicine name with the small similarity is after. The target drug name with a large similarity may be a result desired by the user. Specifically, the target drug names are "erythromycin enteric-coated tablets", "midecamycin enteric-coated tablets", "pancreatin enteric-coated tablets", the one with the greatest similarity is "pancreatin enteric-coated tablets", and the one with the smallest similarity is "midecamycin enteric-coated tablets", and therefore the target drug names should be sent to the client in the order of "pancreatin enteric-coated tablets", "erythromycin enteric-coated tablets", and "midecamycin enteric-coated tablets".
In some embodiments, the text information is matched in a drug classification name set to obtain a target drug classification name; the drug classification name set comprises a plurality of drug classification names; wherein the drug classifications represented by the drug classification name include at least one drug; correspondingly, in the step of sending the name of the target drug to the client, the method includes: and sending the target medicine classification name and the target medicine name to the client for displaying by the client list. In order to present more search results to the user, the related drug category names may be matched and presented on the client for selection by the user.
According to the medicine classification rule, a plurality of medicines are classified into a plurality of categories, so that the medicines are convenient to search and manage. Specifically, the drug class name is "narcotic", and the drug class name may include "etorphine", "alfafalfasin", "acemesalamine", "alfentanil".
Matching the text information in the drug classification name set can shorten the search time and provide a plurality of choices for the user.
Please refer to fig. 9. The medicine name searching method provided by the specification can be applied to a client. The method comprises the following steps.
Step S210: a search request with attached text information input by a user is received.
Any information for accepting user input may be Chinese, English, numeric and special characters.
Step S220: displaying a search result list for the text information; wherein the search result list includes drug names and drug category names that match the text information.
The medicine classification names are names obtained after medicines are classified according to rules. Specifically, it can be classified according to the components contained in the drug, according to the condition to be treated by the drug, and according to the drug usage, such as vitamin-containing drugs, analgesic drugs, and drugs to be injected.
And simultaneously displaying the medicine name and the medicine classification name, and selecting a desired result by a user. Specifically, the user inputs "vitamin", and the client may display the matched drug names "vitamin k 3", "vitamin b 2", "vitamin d 2", and the matched drug class names "vitamin-containing drug" and "vitamin a 1-containing drug".
In some embodiments, a search result list for the textual information is displayed; wherein, in the step that the search result list comprises the medicine name and the medicine classification name matched with the text information, the method comprises the following steps: generating search word vectors of the text information, and respectively calculating second vector distances between the search word vectors and the medicine classification name vectors; the medicine classification name vector is generated according to corresponding medicine classification information; and taking the medicine classification name corresponding to the smaller second vector distance as the medicine classification name. By calculating the vector distance, the server can judge the medicine classification information which the user wants to obtain, so that the aim of improving the searching accuracy is fulfilled, and the searching speed is improved.
The drug classification name vector may be a real number vector representing the content of the drug classification name after being calculated by a mathematical model, and the second vector distance may be a cosine distance or an euclidean distance between the search word vector and the drug classification name vector calculated by the search word vector of the text information, respectively. Specifically, the text message may be "stimulant", and the drug categories calculated to be close to "stimulant" are named "psychostimulant", "adrenergic drug", and "respiratory stimulant".
In some embodiments, in the case that the drug name is triggered, the drug introduction information represented by the drug name is displayed, and in the case that the drug classification name is triggered, the drug name included in the drug category represented by the drug classification name is displayed, so that a user can conveniently view the drug information which is desired to be obtained.
The drug name may be triggered by a user clicking a button control corresponding to the drug name on the page, and specifically, the button control display text may be "complete", "find", and "query".
The medicine introduction information can be the Chinese name, English name, symptom and dosage form of the medicine, and is convenient for users to obtain the desired detailed information. Specifically, the medicine is aspirin, the Chinese name can be aspirin, the English name can be acetylsalicylic acid, the symptom can be fever, pain, rheumatoid arthritis and the like, and the preparation can be tablets, enteric-coated capsules, effervescent tablets and suppositories. Specifically, the drug classification name may be "drug for treating hypertension", and the drug classification name may indicate "hydrochlorothiazide, triamterene, amiloride, spironolactone, furosemide" after triggering "
Please refer to fig. 10. An embodiment of the present specification provides a medicine name search device, including: the device comprises an accepting module, a determining module, a matching module and a sending module.
And the receiving module is used for receiving the search request which is sent by the client and attached with the text information.
A determination module for determining a target search word category to which the text information belongs
And the matching module is used for matching the text information in the index information set corresponding to the target search word category to obtain the name of the target medicine.
And the sending module is used for sending the name of the target medicine to the client.
Please refer to fig. 11. The present specification provides a medicine name search device, including: the device comprises an accepting module and a display module.
And the receiving module is used for receiving the text information input by the user.
The display module is used for displaying a search result list aiming at the text information; wherein the search result list includes drug names and drug category names that match the text information.
The respective modules in the task execution apparatus described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The specific functions and effects achieved by the medicine name searching device can be explained by referring to other embodiments in this specification, and are not described herein again. The various modules in the described embodiments may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Please refer to fig. 12. In some embodiments, a computer device may be provided, comprising a memory having a computer program stored therein and a processor that implements the method steps of the embodiments when executing the computer program.
In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored, which when executed by a processor implements the method steps in the embodiments. Specific functions and effects achieved by the embodiments can be explained by referring to other embodiments in the specification, and are not described in detail herein. The various modules in the described embodiment means may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments, a computer device may be provided, comprising a memory having a computer program stored therein and a processor that implements the method steps of the embodiments when executing the computer program.
In some embodiments, a computer-readable storage medium may be provided, on which a computer program is stored, which when executed by a processor implements the method steps in the embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include processes of the embodiments of the methods. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
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.
The description is made in a progressive manner among the embodiments of the present specification. The different embodiments focus on the different parts described compared to the other embodiments. After reading this specification, one skilled in the art can appreciate that many embodiments and many features disclosed in the embodiments can be combined in many different ways, and for the sake of brevity, all possible combinations of features in the embodiments are not described. However, as long as there is no contradiction between combinations of these technical features, the scope of the present specification should be considered as being described.
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 like elements in a process, method, article, or apparatus that comprises the element.
In the present specification, the embodiments themselves are emphasized differently from the other embodiments, and the embodiments can be explained in contrast to each other. Any combination of the embodiments in this specification based on general technical common knowledge by those skilled in the art is encompassed in the disclosure of the specification.
The above description is only an embodiment of the present disclosure, and is not intended to limit the scope of the claims of the present disclosure. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (14)

1. A method for searching a medicine name is characterized by comprising the following steps:
receiving a search request which is sent by a client and attached with text information;
determining a target search word category to which the text information belongs; wherein, different search word categories correspond to different index information sets; the index information set comprises index information of a plurality of corresponding medicine names;
matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name;
and sending the name of the target medicine to the client.
2. The method of claim 1, wherein the step of determining the target search word class to which the text information belongs comprises:
generating a search word vector of the text information;
respectively calculating first vector distances between the search word vectors and category word vectors corresponding to the search word categories; the category word vector is generated according to index information included in the corresponding search word category;
and taking the search word category corresponding to the smaller first vector distance as the target search word category.
3. The method of claim 1, wherein the step of determining the target search word class to which the text information belongs comprises:
extracting keywords of the text information; the keywords are vocabularies with the text information in a semantic domination effect;
matching the keywords with index information in search word categories respectively to obtain the number of entries of the index information containing the keywords respectively;
and taking the search word category corresponding to the larger number of the items as the target search word category.
4. The method according to claim 1, wherein the step of obtaining the name of the target drug by matching the text information in the index information set corresponding to the target search word category includes:
respectively calculating semantic similarity of the text information and index information in the index information set of the target search word category;
comparing the semantic similarity, taking the larger semantic similarity as the target semantic similarity, and taking the index information corresponding to the target semantic similarity as the target index information;
and taking the medicine name corresponding to the target index information as the target medicine name.
5. The method of claim 4, wherein in the step of sending the target drug name to the client, the method comprises:
and sending the names of the target medicines to the client in a reverse order according to the semantic similarity.
6. The method of claim 1, further comprising:
matching the text information in a medicine classification name set to obtain a target medicine classification name; the drug classification name set comprises a plurality of drug classification names; wherein the drug classifications represented by the drug classification name include at least one drug;
correspondingly, in the step of sending the name of the target drug to the client, the method includes:
and sending the target medicine classification name and the target medicine name to the client for displaying by the client list.
7. A method for searching a medicine name is characterized by comprising the following steps:
receiving a search request with attached text information input by a user;
displaying a search result list for the text information; wherein the search result list includes drug names and drug category names that match the text information.
8. The method of claim 7, wherein displaying a search result list for the textual information; wherein, in the step that the search result list comprises the medicine name and the medicine classification name matched with the text information, the method comprises the following steps:
generating a search term vector for the textual information
Respectively calculating second vector distances between the search term vectors and the medicine classification name vectors; the medicine classification name vector is generated according to corresponding medicine classification information;
and taking the medicine classification name corresponding to the smaller second vector distance as the medicine classification name.
9. The method of claim 7, further comprising:
and displaying the drug introduction information represented by the drug name under the condition that the drug name is triggered.
10. The method of claim 7, further comprising:
and displaying the medicine name included in the medicine category represented by the medicine classification name under the condition that the medicine classification name is triggered.
11. A medicine name search device, comprising:
the receiving module is used for receiving a search request which is sent by a client and is attached with text information;
the determining module is used for determining the target search word category to which the text information belongs;
the matching module is used for matching the text information in the index information set corresponding to the target search word category to obtain a target medicine name;
and the sending module is used for sending the name of the target medicine to the client.
12. A medicine name search device, comprising:
the receiving module is used for receiving text information input by a user;
the display module is used for displaying a search result list aiming at the text information; wherein the search result list includes drug names and drug category names that match the text information.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the method of any one of claims 1 to 10 when executing the computer program.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 10.
CN202111604543.0A 2021-12-24 2021-12-24 Medicine name searching method, device, equipment and storage medium Pending CN114281923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111604543.0A CN114281923A (en) 2021-12-24 2021-12-24 Medicine name searching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111604543.0A CN114281923A (en) 2021-12-24 2021-12-24 Medicine name searching method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114281923A true CN114281923A (en) 2022-04-05

Family

ID=80875480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111604543.0A Pending CN114281923A (en) 2021-12-24 2021-12-24 Medicine name searching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114281923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817504A (en) * 2022-05-05 2022-07-29 北京三快在线科技有限公司 Medicine searching method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114817504A (en) * 2022-05-05 2022-07-29 北京三快在线科技有限公司 Medicine searching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US11227118B2 (en) Methods, devices, and systems for constructing intelligent knowledge base
WO2019105432A1 (en) Text recommendation method and apparatus, and electronic device
US8838633B2 (en) NLP-based sentiment analysis
US9104979B2 (en) Entity recognition using probabilities for out-of-collection data
US10394841B2 (en) Generating contextual search presentations
US11275906B2 (en) Natural language text conversion and method therefor
US11074634B2 (en) Probabilistic item matching and searching
US20120166429A1 (en) Using statistical language models for contextual lookup
CN113039539A (en) Extending search engine capabilities using AI model recommendations
US20200065395A1 (en) Efficient leaf invalidation for query execution
CN111552798A (en) Name information processing method and device based on name prediction model and electronic equipment
CN114281923A (en) Medicine name searching method, device, equipment and storage medium
US9965812B2 (en) Generating a supplemental description of an entity
CN114116997A (en) Knowledge question answering method, knowledge question answering device, electronic equipment and storage medium
CN111611343B (en) Searching system, method and equipment based on shortest path query of knowledge graph
CN111460177A (en) Method and device for searching film and television expression, storage medium and computer equipment
CN112148988B (en) Method, apparatus, device and storage medium for generating information
US11281736B1 (en) Search query mapping disambiguation based on user behavior
CN111552890B (en) Name information processing method and device based on name prediction model and electronic equipment
KR20170086386A (en) Method for tracking content and electronic device using the same
US20150186539A1 (en) System and methods thereof for generation of widgets based on entities
CN114564653A (en) Information recommendation method and device, server and storage medium
CN111831938A (en) Information display method, information display device, electronic equipment and medium
US11550784B2 (en) Method and system for facilitating universal search
CN116089459B (en) Data retrieval method, device, electronic equipment and 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
TA01 Transfer of patent application right

Effective date of registration: 20220720

Address after: 201703 room 1288, Zone C, 12 / F, block B, No. 1-72, Lane 2855, Huqingping highway, Zhaoxiang Town, Qingpu District, Shanghai

Applicant after: Shanghai Taimei Digital Technology Co.,Ltd.

Address before: 3 / F, building 9, smart industry innovation park, 36 Changsheng South Road, Jiaxing City, Zhejiang Province, 314001

Applicant before: Zhejiang Taimei Medical Technology Co.,Ltd.

TA01 Transfer of patent application right