CN110321544A - Method and apparatus for generating information - Google Patents

Method and apparatus for generating information Download PDF

Info

Publication number
CN110321544A
CN110321544A CN201910609319.7A CN201910609319A CN110321544A CN 110321544 A CN110321544 A CN 110321544A CN 201910609319 A CN201910609319 A CN 201910609319A CN 110321544 A CN110321544 A CN 110321544A
Authority
CN
China
Prior art keywords
metamessage
tag
library
user
keyword
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.)
Granted
Application number
CN201910609319.7A
Other languages
Chinese (zh)
Other versions
CN110321544B (en
Inventor
王志清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910609319.7A priority Critical patent/CN110321544B/en
Publication of CN110321544A publication Critical patent/CN110321544A/en
Application granted granted Critical
Publication of CN110321544B publication Critical patent/CN110321544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/183Tabulation, i.e. one-dimensional positioning

Abstract

Embodiment of the disclosure discloses the method and apparatus for generating information.One specific embodiment of this method includes: to extract tag template from tag template library according to the input information of the user got;Keyword is extracted from the input information of user;The determining target metamessage with the Keywords matching from metamessage library;Based on tag template, preset tag profile and target metamessage, target labels configuration file and prediction label with the input information matches of user are generated, wherein tag template library matches with metamessage library and preset tag profile.The embodiment realizes the complexity for reducing label configuration, saves the time of label configuration.

Description

Method and apparatus for generating information
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus for generating information.
Background technique
The target of label engine is to realize to separate operational decision making from application code, and use predefined Semantic modules write operational decision making.
Existing label engine is usually specific solidification label, i.e., the label done will be needed to be fully cured to internet system In system, user, which only needs to click, produces corresponding label, and the configuration file of the label behind and the label are to correspond Relationship.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for generating information.
In a first aspect, embodiment of the disclosure provides a kind of method for generating information, comprising: according to what is got The input information of user extracts tag template from tag template library;Keyword is extracted from the input information of user;Believe from member Cease the determining target metamessage with Keywords matching in library;Believed based on tag template, preset tag profile and target element Breath generates target labels configuration file and prediction label with the input information matches of user, wherein tag template library and member are believed Breath library and preset tag profile match.
In some embodiments, this method further include: using keyword as input, operational objective tag profile is obtained The query result information to match to the input information with user.
In some embodiments, tag template, preset tag profile and target metamessage, generation and user are based on Input information matches target labels configuration file and prediction label, comprising: keyword is substituted into tag template, generates and uses The prediction label of the input information matches at family;It is searched from preset tag profile library matched preset with tag template Tag profile;Judge whether target metamessage and the practical metamessage in preset tag profile are consistent;In response to It determines inconsistent, the practical metamessage in preset tag profile is replaced with into target metamessage, target labels is obtained and matches Set file.
In some embodiments, keyword is extracted from the input information of user, comprising: utilize natural language processing method Determine the keyword in the input information of user.
In some embodiments, preset tag profile through the following steps that determine: from multiple physical tags Middle extraction tag template, obtains tag template library;Practical keyword is extracted from multiple physical tags;Practical keyword is converted to Practical metamessage obtains metamessage library;Based on practical metamessage, tag queries service corresponding with tag template is called, is obtained Preset tag profile.
Second aspect, embodiment of the disclosure provide a kind of for generating the device of information, comprising: tag template extracts Unit is configured to extract tag template from tag template library according to the input information of the user got;Keyword extraction Unit is configured to extract keyword from the input information of user;Target element information acquisition unit is configured to from metamessage The determining target metamessage with Keywords matching in library;Information generating unit is configured to based on tag template, preset label Configuration file and target metamessage generate target labels configuration file and prediction label with the input information matches of user, In, tag template library matches with metamessage library and preset tag profile.
In some embodiments, device further include: query unit is configured to run mesh using keyword as input Tag profile is marked, the query result information to match with the input information of user is obtained.
In some embodiments, information generating unit includes: prediction label generation module, is configured to substitute into keyword Tag template generates the prediction label with the input information matches of user;Searching module is configured to configure from preset label It is searched and the matched preset tag profile of tag template in library;Judgment module is configured to judge that target element is believed It ceases whether consistent with the practical metamessage in preset tag profile;Target labels configuration file obtains module, is configured At inconsistent in response to determination, the practical metamessage in preset tag profile is replaced with into target metamessage, obtains mesh Mark tag profile.
In some embodiments, preset tag profile is by being obtained with lower unit: tag template library obtains Unit is configured to extract tag template from multiple physical tags, obtains tag template library;Practical keyword extracting unit, It is configured to extract practical keyword from multiple physical tags;Metamessage library acquiring unit is configured to turn practical keyword It is changed to practical metamessage, obtains metamessage library;Processing unit is configured to call and tag template pair based on practical metamessage The tag queries service answered, obtains preset tag profile.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, comprising: one or more processors;Storage Device is stored thereon with one or more programs;When one or more programs are executed by one or more processors, so that one Or multiple processors realize the method such as any implementation in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, Wherein, the method such as any implementation in first aspect is realized when which is executed by processor.
The scheme for being used to generate information that embodiment of the disclosure provides, firstly, being believed according to the input of the user got Breath extracts tag template from tag template library, then, keyword is extracted from the input information of user, then, from metamessage The determining target metamessage with the Keywords matching in library based on the tag template, preset tag profile and is somebody's turn to do later Target metamessage generates target labels configuration file and prediction label with input information matches.In the present embodiment, pass through use The input information at family determines tag template, then determines from metamessage library and believes with the target element of the Keywords matching of input information Breath regenerates target labels configuration file and prediction label, so as to the information actually entered according to user come generate and its Matched tag profile then only needs to change pre- accordingly even when finally obtained tag profile needs change If metamessage library in metamessage, reduce label configuration complexity, save label configuration time.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for generating information of the disclosure;
Fig. 3 is according to an embodiment of the present disclosure for generating the schematic diagram of the application scenarios of the method for information;
Fig. 4 is the flow chart according to another embodiment of the method for generating information of the disclosure;
Fig. 5 is the structural schematic diagram according to the embodiment of the device for generating information of the disclosure;
Fig. 6 is adapted for the structural schematic diagram for realizing the electronic equipment of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary architecture 100 of the embodiment of the method for generating information of the disclosure.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
Terminal device 101,102,103 is interacted by network 104 with server 105, to receive or send message etc..Terminal Various telecommunication customer end applications can be installed in equipment 101,102,103, such as the application of web browser applications, video class, Instant messaging tools, mailbox client, the application of traffic information class, reading class application etc..
Terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102,103 is hard When part, can be with display screen and support with the various electronic equipments of server communication, including but not limited to smart phone, Tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, Dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, pocket computer on knee and desktop computer etc..Work as end When end equipment 101,102,103 is software, it may be mounted in above-mentioned cited electronic equipment.It may be implemented into multiple soft Part or software module (such as providing the software of Distributed Services or software module), also may be implemented into single software or soft Part module.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as can obtain from terminal device 101,102,103 Take the background server of the input information at family.Background server can be analyzed and be handled to the input information got, And the result of information processing is fed back into terminal device.
Server can be hardware, be also possible to software.When server is hardware, multiple server groups may be implemented into At distributed server cluster, individual server also may be implemented into.When server is software, may be implemented into multiple soft Part or software module (such as providing the software of Distributed Services or software module), also may be implemented into single software or soft Part module.It is not specifically limited herein.
It should be noted that the method provided by embodiment of the disclosure for generating information is generally held by server Row, correspondingly, the device for generating information is generally positioned in server.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for generating information according to the disclosure is shown 200.This is used to know the method for generating information, applied to server, this be used to generate the method for information the following steps are included:
Step 201, tag template is extracted from tag template library according to the input information of the user got.
It in the present embodiment, can root for generating the executing subject (server 105 as shown in Figure 1) of the method for information Tag template is extracted from tag template library according to the input information of the user got.
Above-mentioned executing subject can obtain the input of user by way of wired or be wirelessly connected from third party device Information, or it is also possible to the input information that above-mentioned executing subject directly acquires user, the present embodiment is not limited system.
It include multiple tag templates in tag template library.Server can carry out semantic analysis to multiple labels, from these It is concluded in label and extracts template, form tag template.There may be many tag templates, these tag templates are stored Come, forms tag template library.
Above-mentioned executing subject can carry out the input information of the user semantic after getting the input information of user Analysis.For example, server can extract subject, predicate among the input information of user etc., then, from tag template library The matched tag template of subject, predicate whether inquiry has and extract, if so, label required for then the tag template is Template.
Step 202, keyword is extracted from the input information of user.
In the present embodiment, above-mentioned executing subject can extract keyword from the input information of user.It needs to illustrate It is that step 202 can carry out before step 201, can also carries out after step 201, the present embodiment is not limited system.
In the present embodiment, above-mentioned executing subject can be used to extract using in the prior art or the technology of future development The method of keyword extracts keyword from the input information of user, and the disclosure do not limit this.Such as TF- can be used IDF, Topic-model, PAKE etc. extract keyword from the input information of user.
In some optional implementations of the present embodiment, above-mentioned executing subject can pass through natural semantic processes method (NLP), keyword is extracted from the input information of user.Such as " time ", " can will be indicated among the input information of user The word of point " extracts, as keyword.
Such as the input information " nearest 7 days users to stay at an inn " for user, server can be with extraction time, location information As keyword, i.e. extraction " 7 ", " staying at an inn " is used as keyword.
Step 203, the determining target metamessage with the Keywords matching from metamessage library.
In the present embodiment, however, it is determined that after keyword, above-mentioned executing subject can be determined from preset metamessage library With the target metamessage of the Keywords matching.
Metamessage typically refers to the information of information, for the structure of description information, semanteme, purposes and usage etc..Such as it is super The metamessage meta of text mark up language HTML may include content or keyword of document etc..
In the present embodiment, it is previously provided with metamessage library.It include multiple practical metamessages in metamessage library.Here reality Border metamessage matches with tag template.If it is determined that the keyword of the input information of user, above-mentioned executing subject can be from members The target metamessage with the Keywords matching is inquired in information bank, and extracts the target metamessage.
Step 204, it is based on the tag template, preset tag profile and target metamessage, is generated with the user's Input the target labels configuration file and prediction label of information matches.
In the present embodiment, if above-mentioned executing subject can be with combination tag after getting tag template, target metamessage Template, preset tag profile and target metamessage, generate with the target labels configuration files of the input information matches and Prediction label.Wherein, which matches with metamessage library and preset tag profile.
Preset tag profile can be that user is pre-set, storage configuration file in the server.This is matched Configuration template can be equivalent to by setting file, including the field that can be replaced.The configuration file can be used to indicate that execution should The process of tag queries data.
It, can be according to label after server gets tag template, preset tag profile and target metamessage Template determines preset tag profile, then in conjunction with the preset tag profile and target metamessage, generates and is somebody's turn to do Input the target labels configuration file of information matches.
For example, as long as the label that user demand is new, only needs for the practical metamessage in metamessage library to be updated, i.e., The practical metamessage is updated to new practical metamessage.Then, server can analyze the new practical metamessage may be right The target vocabulary is added in the replaceable field in tag template by the target vocabulary answered, to generate defeated with the user Enter the prediction label of information matches.Then server combines new metamessage and preset tag profile, then can be generated For executing the tag profile of the data query process of the new label, do not need each label to be arranged configuration text Part.
In some optional implementations of the present embodiment, configured if generating with the target labels of the input information matches After file, above-mentioned executing subject can run the target using the keyword extracted from the input information of user as input Tag profile obtains the query result information to match with the input information of user.
What it is due to target labels configuration file expression is the process for executing tag queries data, if obtaining and using After the target labels configuration file of the input information matches at family, server can run the target labels configuration file, quite The information corresponding to label of the inquiry with the input information matches.
As an example, for example, the information of user's input is " male to female ratio in the permanent resident population to stay at an inn ".Server is according to this Input information from the tag template extracted in tag template library be " male to female ratio in the YY of XX ".Then, server is according to this Inputting the keyword that information determines is " staying at an inn ", " permanent resident population ".
Later, server determining and matched target metamessage " is_hotel of the keyword " staying at an inn " from metamessage library ==true ", and with the matched target metamessage of keyword " permanent resident population " " permanent resident population=Table A ".According to the label Template " male to female ratio in the YY of XX ", server can be found out and the matched preset label configuration text of the tag template Part, tag profile here indicate the data query process of men and women's number of YY in inquiry XX.Then server is by the mark Metamessage in label configuration file replaces with metamessage " is_hotel==true " and " permanent resident population=Table A ", and executing should Tag profile.The number of men and women in the permanent resident population to stay at an inn to inquiry, and be respectively stored in Table A, so as to In counting statistics male to female ratio.
By this implementation, server can be according to the obtained tag profile with the input information matches of user To inquire the query result information of user's needs, biggish convenience is provided for user query.
It is according to an embodiment of the present disclosure for generating showing for the application scenarios of the method for information with continued reference to Fig. 3, Fig. 3 It is intended to.In the application scenarios of Fig. 3, the input information 303 of user is sent to server 302 by terminal device 301.Server After 302 receive the input information 303 of the user, tag template 305 is extracted from tag template library 304.
Then, server 302 can extract keyword 306 from the input information 303 of the user.Then, server 302 Determining and matched metamessage 308 of keyword 306 from metamessage library 307.
Finally, being based on the tag template 305, preset tag profile 309 and metamessage 308, generate and the use The matched target labels configuration file 310 of input information 303 and prediction label 311 at family.
Currently, one of prior art is usually to set label, then selected for user, the configuration file of the label behind It is one-to-one relationship with the label, if user is caused to need new label, needs to reconfigure and the tag match Configuration file consumes the plenty of time, and label O&M is complicated.And the method provided by the above embodiment of the disclosure, it can be according to obtaining The input information of the user got extracts tag template from tag template library, then extracts from the input information of user crucial Word, the determining target metamessage with the Keywords matching from metamessage library, finally, in conjunction with the tag template, preset label Configuration file and target metamessage generate target labels configuration file and prediction label with the input information matches.So as to Matched tag profile is generated with the information actually entered according to user, accordingly even when finally obtained label is matched It sets file needs to change, then only needs to change the metamessage in preset metamessage library, reduce answering for label configuration Polygamy saves the time of label configuration.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for generating information.The use In the process 400 for the method for generating information, it is applied to server, comprising the following steps:
Step 401, tag template is extracted from tag template library according to the input information of the user got.
Step 402, keyword is extracted from the determination of the input information of the user.
Step 403, the determining target metamessage with the Keywords matching from metamessage library.
In the present embodiment, above-mentioned steps 401, step 402 and step 403 can use and the step in previous embodiment 201, step 202 mode similar with step 203 executes, also, retouching above with respect to step 201, step 202 and step 203 It states and is also applied for step 401, step 402 and step 403, details are not described herein again.
Step 404, which is substituted into tag template, generates the prediction label with the input information matches of user.
In the present embodiment, if obtaining tag template and keyword, the executing subject of the method for generating information is (as schemed Server 105 shown in 1) label with the input information matches can be generated in conjunction with the tag template and the keyword.
Such as user input information be " may I ask nearest 7 days users to stay at an inn how many? ".Keyword has " 7 ", " firmly Shop ".Tag template is " user of XX days YY ".After then the keyword is merged with the tag template, obtained label It can be " 7 days users to stay at an inn ".
Step 405, it searches from preset tag profile library and is configured with the matched preset label of the tag template File.
In the present embodiment, server can also be searched from preset tag profile library and be matched with the tag template Preset tag profile.Due to be previously stored in the server each tag template and with each tag template The tag profile matched, these preset tag profiles form preset tag profile library.Therefore, if obtaining After tag template, server can be inquired matched preset with the tag template from the preset tag profile library Tag profile.
Step 406, judge practical metamessage in the target metamessage and the preset tag profile whether one It causes.
In the present embodiment, if obtaining preset tag profile, and the target metamessage with the Keywords matching Later, above-mentioned executing subject can inquire the practical metamessage in the preset tag profile.Then, server is by the reality Border metamessage is compared with above-mentioned with the target metamessage of Keywords matching, judges whether the two is consistent.
Step 407, inconsistent in response to determination, the practical metamessage in preset tag profile is replaced with into the mesh Metamessage is marked, target labels configuration file is obtained.
In the present embodiment, if the server practical metamessage of discovery and above-mentioned target with Keywords matching after comparison Metamessage is inconsistent, then the practical metamessage in the preset tag profile can be replaced with target element letter by server Breath, the tag profile retrieved is target labels configuration file.
In some optional implementations of the present embodiment, above-mentioned preset tag profile through the following steps that It obtains:
The first step extracts tag template from multiple physical tags, obtains tag template library.
In this implementation, above-mentioned executing subject can obtain multiple physical tags in advance.Then, according to the more of acquisition A physical tags conclude unitized outgoing label template.Obtained tag template is stored to form tag template library.
For example the physical tags obtained in advance include " nearest 7 days users to stay at an inn ", " user of online in nearest 10 days ", this Two physical tags, which can conclude, uniformly turns to a tag template " user of nearest XX days YY "." that stays at an inn is normal for physical tags Firmly male to female ratio in population ", " male to female ratio in the people stayed temporarily of online ", the two physical tags can conclude and uniformly turn to one A tag template " male to female ratio in the YY of XX ".
Second step extracts practical keyword from multiple physical tags.
In this implementation, above-mentioned executing subject can extract practical keyword from multiple physical tags.
Such as physical tags " nearest 7 days users to stay at an inn ", the user of online " nearest 10 days ", server can be from The practical keyword obtained in the two physical tags includes " time (number) ", " staying at an inn ", " online ".For physical tags " male to female ratio in the permanent resident population to stay at an inn ", " male to female ratio in the people stayed temporarily of online ", server can be from the two reality The practical keyword obtained in label includes " staying at an inn ", " online ", " people stayed temporarily, " permanent resident population ".It can be with by above-mentioned analysis It was found that in this four physical tags, wherein practical keyword can be unified for " time (number) ", " staying at an inn ", " online ", " temporarily Firmly population, " permanent resident population ".
The practical keyword is converted to practical metamessage, obtains metamessage library by third step.
In this implementation, if getting practical keyword, above-mentioned executing subject can be converted the practical keyword For practical metamessage.
Specifically, which can be replaced with the computer language that computer can identify by server.For example, Keyword " staying at an inn " can be carried out character string replacement, replacement are as follows: is_hotel==true by server.
Later, obtained all practical metamessages can be stored to form metamessage library by server.
4th step is based on practical metamessage, calls tag queries service corresponding with the tag template, obtains preset mark Sign configuration file.
In the present embodiment, above-mentioned executing subject can obtain and the tag template pair from third party device or from local The tag queries service answered.
Here tag queries service is usually journey that label O&M engineer writes, for indicating tag queries process Sequence information.The field that can be replaced for metamessage is generally included in the tag queries service.
In this implementation, if after obtaining practical metamessage and tag queries corresponding with tag template service, The practical metamessage can be replaced with the tag queries service for the field of metamessage replacement by above-mentioned executing subject, To obtain preset tag profile.Server can store largely with the matched tag profile of physical tags, Form preset tag profile library.
By this implementation, if desired the unitized setting metamessage library of physical tags can be changed label, then only be needed Practical metamessage in metamessage library is replaced, tag profile can also be obtained by replacing practical metamessage It arrives, generates label and tag profile to facilitate, increase the scalability of label maintenance.
Figure 4, it is seen that the method for generating information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 embody the step of keyword is substituted into tag template, generates the prediction label with the input information matches of user, And lookup and the matched preset tag profile of the tag template from preset tag profile library, judge the mesh It marks metamessage and whether the practical metamessage in preset tag profile is consistent, it is inconsistent in response to determination, this is preset Tag profile in practical metamessage the step of replacing with the target metamessage, obtaining target labels configuration file.By This, the scheme of the present embodiment description can generate new label according to the keyword and tag template of the input information of user, with And target labels configuration file is obtained according to preset tag profile and with the target metamessage of the Keywords matching, thus Simplify the process for generating label, while also tag profile can be flexibly matched with according to the input information of user in time.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides for generating information The embodiment of device, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to service In device.
As shown in figure 5, it is provided in this embodiment for generate information device 500 include tag template extraction unit 501, Keyword extracting unit 502, target element information acquisition unit 503 and information generating unit 504.Wherein, tag template extracts single Member 501 is configured to extract tag template from tag template library according to the input information of the user got;Keyword extraction Unit 502 is configured to extract keyword from the input information of user;Target element information acquisition unit 503 is configured to from member The determining target metamessage with the Keywords matching in information bank;Information generating unit 504 be configured to based on the tag template, Preset tag profile and target metamessage, generate with the target labels configuration file of the input information matches of user and in advance Mark label, wherein the tag template library matches with metamessage library and preset tag profile.
In the present embodiment, in the device 500 for generating information: tag template extraction unit 501, keyword extraction list Member 502, the specific processing of target element information acquisition unit 503 and information generating unit 504 and its brought technical effect can Respectively with reference to step 201, the step 202, the related description of step 203 and step 204 in Fig. 2 corresponding embodiment, herein no longer It repeats.
In some optional implementations of the present embodiment, which can also include looking into Ask unit (not shown).Wherein, which may be configured to using keyword as input, and operational objective label is matched File is set, the query result information to match with the input information of user is obtained.
In some optional implementations of the present embodiment, which may include: that prediction label generates Module, searching module, judgment module and target labels configuration file obtain module (not shown).Wherein, prediction label is raw It may be configured to substituting into keyword into tag template at module, generate the prediction label with the input information matches of user;It looks into Module is looked for may be configured to search from preset tag profile library and the matched preset label configuration of tag template File;Whether judgment module may be configured to judge the practical metamessage in target metamessage and preset tag profile Unanimously;Target labels configuration file obtain module may be configured to it is inconsistent in response to determination, by preset label configure text Practical metamessage in part replaces with target metamessage, obtains target labels configuration file.
In some optional implementations of the present embodiment, preset tag profile be can be by with lower unit Obtain: tag template library acquiring unit, practical keyword extracting unit, metamessage library acquiring unit, execution procedure information obtain Take unit and processing unit (not shown).Wherein, tag template library acquiring unit may be configured to from multiple practical marks Tag template is extracted in label, obtains tag template library;Practical keyword extracting unit may be configured to from multiple physical tags Extract practical keyword;Metamessage library acquiring unit may be configured to practical keyword being converted to practical metamessage, obtain Metamessage library;Based on practical metamessage, tag queries service corresponding with tag template is called, obtains preset label configuration text Part.
The device for being used to generate information of above-described embodiment of the disclosure, server pass through tag template extraction unit 501 Extract tag template from tag template library according to the input information of the user got, by keyword extracting unit 502 from Keyword is extracted in the input information of user, is determined and the key from metamessage library by target element information acquisition unit 503 The matched target metamessage of word;The tag template, preset tag profile and target are based on by information generating unit 504 Metamessage generates target labels configuration file and prediction label with the input information matches of user.So as to according to user The information actually entered generates matched tag profile, accordingly even when finally obtained tag profile needs It changes, then only needs to change the metamessage in preset metamessage library, reduce the complexity of label configuration, save mark Sign the time of configuration.
Below with reference to Fig. 6, below with reference to Fig. 6, it illustrates the electronic equipments for being suitable for being used to realize embodiment of the disclosure The structural schematic diagram of (server of example as shown in figure 1) 600.Electronic equipment shown in Fig. 6 is only an example, should not be to this public affairs The function and use scope for the embodiment opened bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM603 are connected with each other by bus 604. Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD, Liquid Crystal Display), loudspeaker, vibrator etc. output device 607;Storage device including such as tape, hard disk etc. 608;And communication device 609.Communication device 609 can permit electronic equipment 600 and wirelessly or non-wirelessly be led to other equipment Letter is to exchange data.Although Fig. 6 shows the electronic equipment 600 with various devices, it should be understood that being not required for reality Apply or have all devices shown.It can alternatively implement or have more or fewer devices.Each side shown in Fig. 6 Frame can represent a device, also can according to need and represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.
It is situated between it should be noted that computer-readable medium described in embodiment of the disclosure can be computer-readable signal Matter or computer readable storage medium either the two any combination.Computer readable storage medium for example can be with System, device or the device of --- but being not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or it is any more than Combination.The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires Electrical connection, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type are programmable Read-only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic are deposited Memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer readable storage medium, which can be, appoints What include or the tangible medium of storage program that the program can be commanded execution system, device or device use or and its It is used in combination.And in embodiment of the disclosure, computer-readable signal media may include in a base band or as carrier wave The data-signal that a part is propagated, wherein carrying computer-readable program code.The data-signal of this propagation can be adopted With diversified forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal is situated between Matter can also be any computer-readable medium other than computer readable storage medium, which can be with It sends, propagate or transmits for by the use of instruction execution system, device or device or program in connection.Meter The program code for including on calculation machine readable medium can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (Radio Frequency, radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the server.Above-mentioned computer-readable medium carries one or more program, when said one or multiple When program is executed by the server, so that the server: being mentioned from tag template library according to the input information of the user got Take tag template;Keyword is extracted from the input information of user;The determining target with the Keywords matching from metamessage library Metamessage;Based on tag template, preset tag profile and target metamessage, generate and the input information matches of user Target labels configuration file and prediction label, wherein tag template library and metamessage library and preset tag profile phase Matching.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, described program design language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member it should be appreciated that embodiment of the disclosure involved in invention scope, however it is not limited to the specific combination of above-mentioned technical characteristic and At technical solution, while should also cover do not depart from foregoing invention design in the case where, by above-mentioned technical characteristic or its be equal Feature carries out any combination and other technical solutions for being formed.Such as disclosed in features described above and embodiment of the disclosure (but It is not limited to) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of method for generating information, comprising:
Tag template is extracted from tag template library according to the input information of the user got;
Keyword is extracted from the input information of the user;
The determining target metamessage with the Keywords matching from metamessage library;
Based on the tag template, preset tag profile and the target metamessage, the input with the user is generated The target labels configuration file and prediction label of information matches, wherein the tag template library and the metamessage library and institute Preset tag profile is stated to match.
2. according to the method described in claim 1, wherein, the method also includes:
Using the keyword as input, the target labels configuration file is run, the input information phase with the user is obtained Matched query result information.
3. according to the method described in claim 1, wherein, it is described based on the tag template, preset tag profile and The target metamessage generates target labels configuration file and prediction label with the input information matches of the user, comprising:
The keyword is substituted into the tag template, generates the prediction label with the input information matches of the user;
It is searched and the matched preset tag profile of the tag template from preset tag profile library;
Judge whether the target metamessage and the practical metamessage in the preset tag profile are consistent;
It is inconsistent in response to determination, the practical metamessage in the preset tag profile is replaced with into the target element and is believed Breath, obtains target labels configuration file.
4. according to the method described in claim 1, wherein, extracting keyword in the input information from the user, comprising:
The keyword in the input information of the user is determined using natural language processing method.
5. according to the method described in claim 1, wherein, the preset tag profile is through the following steps that determine :
Tag template is extracted from multiple physical tags, obtains tag template library;
Practical keyword is extracted from the multiple physical tags;
The practical keyword is converted into practical metamessage, obtains the metamessage library;
Based on the practical metamessage, tag queries service corresponding with the tag template is called, preset label is obtained and matches Set file.
6. a kind of for generating the device of information, comprising:
Tag template extraction unit is configured to extract label from tag template library according to the input information of the user got Template;
Keyword extracting unit is configured to extract keyword from the input information of the user;
Target element information acquisition unit is configured to the determining target metamessage with the Keywords matching from metamessage library;
Information generating unit is configured to based on the tag template, preset tag profile and the target metamessage, Generate the target labels configuration file and prediction label with the input information matches of the user, wherein the tag template library Match with the metamessage library and the preset tag profile.
7. device according to claim 6, wherein described device further include:
Query unit, be configured to using the keyword as input, run the target labels configuration file, obtain with it is described The query result information that the input information of user matches.
8. device according to claim 6, wherein the information generating unit includes:
Prediction label generation module is configured to the keyword substituting into the tag template, generates defeated with the user Enter the prediction label of information matches;
Searching module is configured to search and the matched preset mark of the tag template from preset tag profile library Sign configuration file;
Judgment module is configured to judge the practical metamessage in the target metamessage and the preset tag profile It is whether consistent;
Target labels configuration file obtains module, be configured in response to determine it is inconsistent, will the preset label configuration it is literary Practical metamessage in part replaces with the target metamessage, obtains target labels configuration file.
9. device according to claim 6, wherein the preset tag profile is by being obtained with lower unit :
Tag template library acquiring unit is configured to extract tag template from multiple physical tags, obtains tag template library;
Practical keyword extracting unit is configured to extract practical keyword from the multiple physical tags;
Metamessage library acquiring unit is configured to the practical keyword being converted to practical metamessage, obtains the metamessage Library;
Processing unit is configured to call tag queries service corresponding with the tag template based on the practical metamessage, Obtain preset tag profile.
10. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
11. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 5.
CN201910609319.7A 2019-07-08 2019-07-08 Method and device for generating information Active CN110321544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910609319.7A CN110321544B (en) 2019-07-08 2019-07-08 Method and device for generating information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910609319.7A CN110321544B (en) 2019-07-08 2019-07-08 Method and device for generating information

Publications (2)

Publication Number Publication Date
CN110321544A true CN110321544A (en) 2019-10-11
CN110321544B CN110321544B (en) 2023-07-25

Family

ID=68121436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910609319.7A Active CN110321544B (en) 2019-07-08 2019-07-08 Method and device for generating information

Country Status (1)

Country Link
CN (1) CN110321544B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597301A (en) * 2020-04-24 2020-08-28 北京百度网讯科技有限公司 Text prediction method and device and electronic equipment
CN111651696A (en) * 2020-05-29 2020-09-11 泰康保险集团股份有限公司 Product label customizing method and device, computer storage medium and electronic equipment
CN112329416A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Message generation method and device and electronic equipment
CN113486224A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Method and device for creating monitoring instrument panel, storage medium and electronic equipment
CN114239783A (en) * 2021-12-27 2022-03-25 中国建设银行股份有限公司 Label generation method and device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023854A (en) * 2009-09-18 2011-04-20 上海智问软件技术有限公司 Template-based semantic variable extraction method
CN103092942A (en) * 2013-01-10 2013-05-08 北京奇虎科技有限公司 Client-side, method and system for inquiring, obtaining and showing information
CN103577489A (en) * 2012-08-08 2014-02-12 百度在线网络技术(北京)有限公司 Method and device of searching web browsing history
CN104765791A (en) * 2015-03-24 2015-07-08 北京搜狗科技发展有限公司 Information inputting method and device
CN105701253A (en) * 2016-03-04 2016-06-22 南京大学 Chinese natural language interrogative sentence semantization knowledge base automatic question-answering method
CN106919711A (en) * 2017-03-13 2017-07-04 北京百度网讯科技有限公司 The method and apparatus of the markup information based on artificial intelligence
CN106960030A (en) * 2017-03-21 2017-07-18 北京百度网讯科技有限公司 Pushed information method and device based on artificial intelligence
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108280200A (en) * 2018-01-29 2018-07-13 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information
CN108694172A (en) * 2017-04-05 2018-10-23 北京京东尚科信息技术有限公司 Information output method and device
CN108920497A (en) * 2018-05-23 2018-11-30 北京奇艺世纪科技有限公司 A kind of man-machine interaction method and device
CN109002516A (en) * 2018-07-06 2018-12-14 国网电子商务有限公司 A kind of searching method and device
KR20190005034A (en) * 2017-07-05 2019-01-15 서울대학교산학협력단 Apparatus and method for quantification analysis of sample using liquid chromatograph-mass spectrometry
CN109388753A (en) * 2018-10-31 2019-02-26 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN109446412A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 Product data method for pushing, device, equipment and medium based on web page tag
CN109710634A (en) * 2018-12-28 2019-05-03 北京百度网讯科技有限公司 For generating the method and device of information

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023854A (en) * 2009-09-18 2011-04-20 上海智问软件技术有限公司 Template-based semantic variable extraction method
CN103577489A (en) * 2012-08-08 2014-02-12 百度在线网络技术(北京)有限公司 Method and device of searching web browsing history
CN103092942A (en) * 2013-01-10 2013-05-08 北京奇虎科技有限公司 Client-side, method and system for inquiring, obtaining and showing information
CN104765791A (en) * 2015-03-24 2015-07-08 北京搜狗科技发展有限公司 Information inputting method and device
CN105701253A (en) * 2016-03-04 2016-06-22 南京大学 Chinese natural language interrogative sentence semantization knowledge base automatic question-answering method
CN106919711A (en) * 2017-03-13 2017-07-04 北京百度网讯科技有限公司 The method and apparatus of the markup information based on artificial intelligence
CN106960030A (en) * 2017-03-21 2017-07-18 北京百度网讯科技有限公司 Pushed information method and device based on artificial intelligence
CN108694172A (en) * 2017-04-05 2018-10-23 北京京东尚科信息技术有限公司 Information output method and device
KR20190005034A (en) * 2017-07-05 2019-01-15 서울대학교산학협력단 Apparatus and method for quantification analysis of sample using liquid chromatograph-mass spectrometry
CN107943775A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 Method, apparatus, storage medium and the electronic equipment of message push
CN108280200A (en) * 2018-01-29 2018-07-13 百度在线网络技术(北京)有限公司 Method and apparatus for pushed information
CN108920497A (en) * 2018-05-23 2018-11-30 北京奇艺世纪科技有限公司 A kind of man-machine interaction method and device
CN109002516A (en) * 2018-07-06 2018-12-14 国网电子商务有限公司 A kind of searching method and device
CN109446412A (en) * 2018-09-25 2019-03-08 中国平安人寿保险股份有限公司 Product data method for pushing, device, equipment and medium based on web page tag
CN109388753A (en) * 2018-10-31 2019-02-26 北京字节跳动网络技术有限公司 Method and apparatus for handling information
CN109710634A (en) * 2018-12-28 2019-05-03 北京百度网讯科技有限公司 For generating the method and device of information

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111597301A (en) * 2020-04-24 2020-08-28 北京百度网讯科技有限公司 Text prediction method and device and electronic equipment
CN111651696A (en) * 2020-05-29 2020-09-11 泰康保险集团股份有限公司 Product label customizing method and device, computer storage medium and electronic equipment
CN112329416A (en) * 2020-10-27 2021-02-05 维沃移动通信有限公司 Message generation method and device and electronic equipment
CN113486224A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Method and device for creating monitoring instrument panel, storage medium and electronic equipment
CN114239783A (en) * 2021-12-27 2022-03-25 中国建设银行股份有限公司 Label generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110321544B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN110321544A (en) Method and apparatus for generating information
CN105654950B (en) Adaptive voice feedback method and device
CN107491534A (en) Information processing method and device
CN105183912B (en) Abnormal log determines method and apparatus
CN107818118B (en) Date storage method and device
CN105593836B (en) Based on user action operable content is provided to computing device
CN107735804A (en) The shift learning technology of different tag sets
CN109325213A (en) Method and apparatus for labeled data
CN108228906B (en) Method and apparatus for generating information
US11263208B2 (en) Context-sensitive cross-lingual searches
CN108701127A (en) Electronic equipment and its operating method
CN109189857A (en) Data-sharing systems, method and apparatus based on block chain
CN108768824B (en) Information processing method and device
CN110199274A (en) System and method for automating query answer generation
CN109241286A (en) Method and apparatus for generating text
US11244153B2 (en) Method and apparatus for processing information
CN109359194A (en) Method and apparatus for predictive information classification
WO2020055071A1 (en) System and method for dynamic trend clustering
WO2017127316A1 (en) Configurable generic language understanding models
CN109241033A (en) The method and apparatus for creating real-time data warehouse
CN109743245A (en) The method and apparatus for creating group
CN110795443A (en) Method, device, equipment and computer readable medium for data synchronization
CN110245298A (en) Method and apparatus for pushed information
CN106776638A (en) Database operation method and device
CN112860642A (en) Court trial data processing method, server and terminal

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
GR01 Patent grant
GR01 Patent grant