CN109492089A - Method and apparatus for output information - Google Patents

Method and apparatus for output information Download PDF

Info

Publication number
CN109492089A
CN109492089A CN201811213744.6A CN201811213744A CN109492089A CN 109492089 A CN109492089 A CN 109492089A CN 201811213744 A CN201811213744 A CN 201811213744A CN 109492089 A CN109492089 A CN 109492089A
Authority
CN
China
Prior art keywords
search
novel
region
text
novel text
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
CN201811213744.6A
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 Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network 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 Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201811213744.6A priority Critical patent/CN109492089A/en
Publication of CN109492089A publication Critical patent/CN109492089A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for output information.One specific embodiment of the above method includes: the search instruction sent in response to user equipment, matches at least two novel texts and obtains the identification information of novel text, wherein described search instruction includes at least one search term;Display position based at least one described search term in the identification information of novel text generates the displaying precedence information of novel text;Based on the identification information of novel text, the summary info of novel text is generated;By the summary info of at least two novel texts and show that precedence information is sent to user equipment.This embodiment improves the precision of user's search, promote user experience.

Description

Method and apparatus for output information
Technical field
The invention relates to field of computer technology, and in particular to the method and apparatus for output information.
Background technique
Existing novel is read in application software, and user usually searches for novel text by input search term, but often There is a situation where the novel text inaccuracy searched out.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for output information.
In a first aspect, the embodiment of the present application provides a kind of method for output information, it is applied to server end, packet Include: the search instruction sent in response to user equipment matches at least two novel texts and obtains the mark letter of novel text Breath, wherein above-mentioned search instruction includes at least one search term;Based at least one above-mentioned search term novel text mark Display position in information generates the displaying precedence information of novel text;Based on the identification information of novel text, novel is generated The summary info of text;By the summary info of at least two novel texts and show that precedence information is sent to user equipment.
In some embodiments, the identification information of novel text includes the first region of search and the second region of search;And it is above-mentioned Match at least two novel texts, comprising: at least one above-mentioned search is matched in the first region of search and/or the second region of search Word obtains at least two novel texts.
In some embodiments, at least one above-mentioned search term is matched in the first region of search and/or the second region of search, is obtained To at least two novel texts, comprising: carry out cutting at least one above-mentioned search term, obtain at least two search keys; At least two search keys are matched in the first region of search and/or the second region of search, obtain at least two novel texts.
In some embodiments, the above-mentioned display position based on search term in the identification information of novel text generates small Say the displaying precedence information of text, comprising: according at least two search keys in the first region of search and/or the second region of search In display position, determine word between at least two search keys away from;And/or it determines the first region of search and/or second searches The coverage of at least two search keys in rope domain;Based on identified word away from and/or coverage, generate novel text exhibition Show precedence information.
In some embodiments, it is above-mentioned based on identified word away from and/or coverage, generate novel text displaying it is preferential Grade information, comprising: according to identified word away from, coverage and preset region of search weight, determine novel text and search term Between related coefficient;According to related coefficient, the displaying precedence information of novel text is generated.
In some embodiments, the above-mentioned display position based on search term in the identification information of novel text generates small Say the displaying precedence information of text, comprising: according to the quantity for the search term for including in the identification information of novel text and search Display position of the rope word in the identification information of novel text generates the displaying precedence information of novel text.
In some embodiments, the quantity and search for the search term for including in the above-mentioned identification information according to novel text Display position of the word in the identification information of novel text generates the displaying precedence information of novel text, comprising: according to first The quantity and search term for the search term for including in region of search and/or the second region of search are aobvious in the identification information of novel text Show position, generates the displaying precedence information of novel text.
Second aspect, the embodiment of the present application provide a kind of device for output information, comprising: novel text matches list Member is configured in response to the search instruction of user equipment transmission, matches at least two novel texts and obtain novel text Identification information, wherein above-mentioned search instruction includes at least one search term;Precedence information generation unit, is configured to base In display position of at least one the above-mentioned search term in the identification information of novel text, the displaying priority of novel text is generated Information;Summary info generation unit is configured to the identification information based on novel text, generates the summary info of novel text; Information transmitting unit is configured to the summary info of at least two novel texts and shows that precedence information is sent to user and sets It is standby.
In some embodiments, the identification information of novel text includes the first region of search and the second region of search;And it is above-mentioned Novel text matches unit is further configured to: matched in the first region of search and/or the second region of search it is above-mentioned at least one Search term obtains at least two novel texts.
In some embodiments, above-mentioned novel text matches unit is further configured to: at least one above-mentioned search Word carries out cutting, obtains at least two search keys;Matching at least two is searched in the first region of search and/or the second region of search Rope keyword obtains at least two novel texts.
In some embodiments, above-mentioned precedence information generation unit includes: word away from determining module, is configured to according to extremely Few display position of two search keys in the first region of search and/or the second region of search determines at least two search key Word between word away from;And/or coverage determining module, it is configured to determine in the first region of search and/or the second region of search at least The coverage of two search keys;Precedence information generation module, be configured to based on identified word away from and/or covering Degree generates the displaying precedence information of novel text.
In some embodiments, above-mentioned precedence information generation module is further configured to: according to identified word away from, Coverage and preset region of search weight, determine the related coefficient between novel text and search term;It is raw according to related coefficient At the displaying precedence information of novel text.
In some embodiments, above-mentioned precedence information generation unit is further configured to: according to the mark of novel text Know the display position of the quantity and search term of the search term for including in information in the identification information of novel text, generates novel The displaying precedence information of text.
In some embodiments, above-mentioned precedence information generation unit is further configured to: according to the first region of search and/ Or second include in region of search search term display position in the identification information of novel text of quantity and search term, it is raw At the displaying precedence information of novel text.
The third aspect, the embodiment of the present application provide a kind of server, comprising: one or more processors;Storage device, One or more programs are stored thereon with, when said one or multiple programs are executed by said one or multiple processors, so that Said one or multiple processors realize the method as described in first aspect any embodiment.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should The method as described in first aspect any embodiment is realized when program is executed by processor.
The method and apparatus provided by the above embodiment for output information of the application are receiving what user equipment was sent After search instruction, at least two novel texts can be matched, and obtain the identification information of novel text.It is then possible to according to Display position of the search term in the identification information of novel text generates the displaying precedence information of novel text.Meanwhile it being based on The identification information of novel text generates the summary info of novel text.Finally, by the summary info of novel text and showing excellent First grade information is sent to user equipment.The method and apparatus of the present embodiment can be believed according to search term in the mark of novel text Display position in breath obtains the displaying precedence information of novel text, so as to will with search term it is most like novel text Originally front is come, to improve the accuracy of search result, promotes user experience.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for output information of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for output information of the application;
Fig. 4 is that the process for showing the embodiment of precedence information is generated in the method for output information according to the application Figure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for output information of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application 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 features in the embodiments and the embodiments of the present application can phase Mutually combination.The application 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 method for output information of the application or the implementation of the device for output information The exemplary system architecture 100 of example.
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..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed, such as information input class is answered on terminal device 101,102,103 With, retrieval class application, web browser applications 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 the various electronic equipments of novel text search, including but not limited to smart phone, Tablet computer, E-book reader, pocket computer on knee and desktop computer etc..When terminal device 101,102,103 When for software, it may be mounted in above-mentioned cited electronic equipment.Its may be implemented into multiple softwares or software module (such as For providing Distributed Services), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as to inputting on terminal device 101,102,103 Information provides the background server supported.Background server can carry out the data such as the retrieval text received analyzing etc. Reason, and processing result (such as document information) is fed back into terminal device 101,102,103.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing Distributed Services), single software or software also may be implemented into Module.It is not specifically limited herein.
It should be noted that the method provided by the embodiment of the present application for output information is generally held by server 105 Row, correspondingly, the device for output information is generally positioned in server 105.
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 output information according to the application is shown 200.The method for output information of the present embodiment is applied to server-side, comprising the following steps:
Step 201, the search instruction sent in response to user equipment, matches at least two novel texts and obtains novel The identification information of text.
It in the present embodiment, can be with for the executing subject of the method for output information (such as server 105 shown in FIG. 1) Search instruction is received from user equipment by wired connection mode or radio connection.It can be equipped on user equipment The various applications for being used to input information, user can input in application in above- mentioned information and input search instruction.Above-mentioned search instruction It may include at least one search term.
Executing subject can match at least two novel texts after receiving above-mentioned search instruction by various modes This.For example, executing subject can using in preset novel text library include search instruction in search term novel text as Match obtained novel text.Executing subject after matching obtains above-mentioned novel text, believe by the mark of available novel text Breath.Above-mentioned identification information may include the title of novel text, author, classification, briefly etc..Executing subject can be from preset mark Know the identification information that the novel text that matching obtains is obtained in information aggregate.Above-mentioned identification information set can be database.
It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/4G connection, WiFi connection, bluetooth Connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection and other currently known or exploitations in the future Radio connection.
In some optional implementations of the present embodiment, the identification information of novel text may include the first region of search With the second region of search.Executing subject can search the search term in search instruction in the first region of search, the second region of search Rope.First region of search, the second region of search can be two different information in the identification information of novel text.For example, first Region of search can be title or the author of novel text, and the second region of search can be the classification or brief of novel text.
Above-mentioned steps 201 can also be realized by following steps unshowned in Fig. 2: in the first region of search and/or At least one search term is matched in two region of search, obtains at least two novel texts.
In this implementation, executing subject can match search respectively in the first region of search and/or in the second region of search At least one search term in instruction obtains at least two novel texts.It is understood that obtained at least two novel texts It include at least one search term in this first region of search and/or the second region of search.
Step 202, the display position based at least one search term in the identification information of novel text generates novel text This displaying precedence information.
Executing subject can determine that each search term in search instruction is identifying after the identification information for obtaining novel text Display position in information.Above-mentioned display position can indicate at a distance from the lead-in of identification information with search term, can also be with It is indicated at a distance from word first in identification information with search term.Executing subject can be according to above-mentioned display position, Lai Shengcheng The displaying precedence information of novel text.Show precedence information for indicating excellent when novel text is shown on a user device First grade.Executing subject can generate the displaying precedence information of novel text in several ways.For example, can be according to search The distance between lead-in of word and identification information generates displaying precedence information.Between search term and the lead-in of identification information Apart from smaller, then novel text shows that the priority of precedence information instruction is higher.
In some optional implementations of the present embodiment, above-mentioned steps 201 can be by unshowned following in Fig. 2 Step is realized: being carried out cutting at least one search term, is obtained at least two search keys;In the first region of search and/or At least two search keys are matched in second region of search, obtain at least two novel texts.
In this implementation, executing subject can first be cut at least one search term for including in search instruction Point, obtain at least two search keys.Then, executing subject can match in the first region of search and/or the second region of search Above-mentioned at least two search key obtains at least two novel texts.Executing subject can search each of search instruction Rope word is matched with the entry in machine dictionary.If matching obtains multiple entries, cutting search term, so that obtaining after cutting Search key be the obtained entry of matching.
In some optional implementations of the present embodiment, executing subject to search term carry out cutting when, according to It may be there are many slit mode with obtained entry.Executing subject can determine to include at least first according to above-mentioned machine dictionary The access times of the entry of two same words.Then using the highest entry of access times as target word.Finally according to target word Carry out cutting search term.For example, the search term for including in search instruction be " I am Chinese ", executing subject by search term with Machine dictionary carries out matching available entry " I ", "Yes", " China ", " people ", " Chinese ".By above-mentioned entry, can obtain To two kinds of slit modes, respectively " I/be/China/people ", " I/be/Chinese ".At this point, executing subject is in above-mentioned machine word The access times that " China " is found in allusion quotation are greater than " Chinese ", then " China " is used as target word by executing subject.According to upper Stating the slit mode that target word determines is " I/be/China/people ".
Step 203, the identification information based on novel text generates the summary info of novel text.
In the present embodiment, the abstract of novel text is can be generated after the identification information for obtaining novel text in executing subject Information.Above-mentioned summary info can be used for simply introducing the main contents of novel text.Above-mentioned summary info may include mark All the elements of information also may include the partial content of identification information, can also include the content being not present in identification information. It can also include the picture of novel text for example, may include title in identification information, author and briefly in summary info.
Step 204, by the summary info of at least two novel texts and show that precedence information is sent to user equipment.
In the present embodiment, executing subject is in the summary info for obtaining novel text and shows that precedence information is sent to user Equipment.User equipment can be shown after obtaining above- mentioned information according to the size for the displaying priority for showing precedence information instruction Show the summary info of novel text.User can share the search need at family by the summary info of novel text come selector Novel text.
With continued reference to the signal that Fig. 3, Fig. 3 are according to an application scenarios of the method for output information of the present embodiment Figure.In the application scenarios of Fig. 3, user inputs search instruction, includes search term " prenatal culture story ", server root in search instruction According to above-mentioned search term, matching obtains multiple novel texts.Server can also obtain the mark for the novel text that matching obtains simultaneously Know information.Above-mentioned identification information is the title of novel text.Display of the server according to search term in the title of novel text Position generates the displaying precedence information of novel text.Herein, the head for the lead-in and title that precedence information is search term is shown The distance of word.Apart from smaller, the priority of novel text is higher.Then, server is also based on the mark letter of novel text Breath generates the summary info of novel text.Herein, summary info includes the title and the corresponding figure of novel text of novel text Piece.Above- mentioned information can be sent to use after the displaying precedence information and summary info for obtaining novel text by server Family equipment.User equipment can be ranked up novel text according to the displaying precedence information of novel text.And according to sequence The summary info of novel text afterwards generates the above-mentioned page.User can check the above-mentioned page by terminal device.
The method provided by the above embodiment for output information of the application refers to receiving the search that user equipment is sent After order, at least two novel texts can be matched, and obtain the identification information of novel text.It is then possible to according to search term Display position in the identification information of novel text generates the displaying precedence information of novel text.Meanwhile based on novel text This identification information generates the summary info of novel text.Finally, by the summary info of novel text and showing priority letter Breath is sent to user equipment.The method of the present embodiment, can be according to display position of the search term in the identification information of novel text It sets, obtains the displaying precedence information of novel text, so as to which the novel text most like with search term is come front, from And the accuracy of search result is improved, promote user experience.
In some optional implementations of the present embodiment, above-mentioned steps 202 specifically can be by unshowned in Fig. 2 Following steps are realized: according to the quantity for the search term for including in the identification information of novel text and search term in novel text Identification information in display position, generate novel text displaying precedence information.
In this implementation, executing subject can also be according to the quantity and search term for the search term for including in novel text Display position in the identification information of novel text generates the displaying precedence information of novel text.For example, executing subject exists After determining that the same position in the identification information of multiple novel texts shows search term, executing subject can be believed according to mark The quantity for the search term for including in breath, to generate the displaying precedence information of above-mentioned multiple novel texts.It is understood that small Say that the quantity for the search term for including in text is more, then the identification information of novel text gets over phase with the search term in search instruction Closely.
In some optional implementations of the present embodiment, above-mentioned steps 202 can also be further by being not shown in Fig. 2 Following steps realize: according to the quantity and search term of the search term for including in the first region of search and/or the second region of search Display position in the identification information of novel text generates the displaying precedence information of novel text.
In this implementation, executing subject can be according to the search term for including in the first region of search and/or the second region of search Display position in the identification information of novel text of quantity and search term, generate the displaying priority letter of novel text Breath.For example, executing subject after the same position in the identification information for determining multiple novel texts shows search term, executes Main body can be above-mentioned multiple small to generate according to the quantity according to the search term for including in the first region of search and/or the second region of search Say the displaying precedence information of text.
With continued reference to Fig. 4, it illustrates the exhibitions that novel text is generated in the method for output information according to the application Show the process 400 of one embodiment of precedence information.As shown in figure 4, can be generated by following steps in the present embodiment The displaying precedence information of novel text:
Step 401, the display position according at least two search keys in the first region of search and/or the second region of search Set, determine word between at least two search keys away from.
At least two search keys that executing subject can include according to search instruction are in the first region of search and/or second Display position in region of search, determine word between above-mentioned at least two search key away from.In the present embodiment, word is away from referring to In first region of search or the second region of search, the distance between the lead-in of different search keys.For example, search key Respectively " interdependent ", " relationship "." the event relation recognition methods based on semantic dependency clue is ground for entitled in novel text Study carefully ".Executing subject can be assumed that the position of the lead-in in title is 0, then the lead-in " according to " of search key " interdependent " is in title In position be 4, position of the lead-in "Off" of search key " relationship " in title be 11.Then in this title, search is crucial " interdependent " and the word of crucial " relationship " is searched for away from for 11-4=7.Again for example, the entitled " Chinese text in novel text The experimental study of dependence is utilized in classification ".In the title, position of the lead-in " according to " of search key " interdependent " in title 9 are set to, position of the lead-in "Off" of search key " relationship " in title is 11.The word of the two is away from for 11-2=9.
In the present embodiment, the word in novel text between each search key is calculated away from that can be based on above-mentioned calculation method It arrives.For example, the word of novel text away from can by the word between search key in the first region of search away from searched in the second region of search Word between rope keyword is determined away from its difference.
It is understood that in the first region of search or the second region of search, word between search key away from smaller, with The similarity of search term in search instruction is higher.Therefore, executing subject can according to word away from ascending sequence, to each small Say that text is ranked up.
Step 402, the coverage of at least two search keys in the first region of search and/or the second region of search is determined.
Above-mentioned coverage can be the quantity for the text for including and at least one in the first region of search and/or the second region of search The difference of the quantity for the text for including in search term.Or the quantity and first for the text at least one search term including The ratio of the quantity for the text for including in region of search and/or the second region of search.Executing subject can according to above-mentioned coverage by It is small to arrive big sequence, novel text is ranked up.
Step 403, it determines novel text away from, coverage and preset region of search weight according to identified word and searches Related coefficient between rope word.
Executing subject, can be in conjunction with preset region of search weight, to determine novel text after determining upper predicate away from, coverage Related coefficient between sheet and search term.For example, executing subject can be first according to each search key in the first search Word in domain away from, word of each search key in the second region of search away from and preset region of search weight, obtain word away from value.So Afterwards, executing subject can also be searched according to coverage of each search key in the first region of search, each search key second Coverage and preset region of search weight in rope domain obtain covering angle value.Finally, executing subject can calculate covering angle value And word away from value difference, and by and value as the related coefficient between novel text and search term.
Step 404, according to related coefficient, the displaying precedence information of novel text is generated.
After obtaining the related coefficient between novel text and search term, executing subject can according to above-mentioned related coefficient, Obtain the displaying precedence information of novel text.For example, executing subject can be by related coefficient directly as the exhibition of novel text Show precedence information.Alternatively, executing subject can be using the inverse of related coefficient as the displaying precedence information of novel text.
In some optional implementations of the present embodiment, executing subject can obtain at least two search keys Between word away from rear, directly according to upper predicate away from generating the displaying precedence information of novel text.For example, executing subject can be with Using word away from inverse as the displaying precedence information of novel text.Alternatively, executing subject can using word away from negative value as small Say the displaying precedence information of text.It is understood that the word between each search key is away from smaller, the displaying of novel text Priority is higher.In this implementation, executing subject is without executing step 402~step 404.
In some optional implementations of the present embodiment, executing subject can also directly execute step 402, to calculate Coverage of each search key in the first region of search and/or the second region of search.Then, it is directly generated according to coverage small Say the displaying precedence information of text.For example, executing subject can be using coverage as the displaying precedence information of novel text. In this implementation, executing subject is without executing step 401, step 403~step 404.
In some optional implementations of the present embodiment, executing subject can also be according to each search key first Word in region of search away from, word of each search key in the second region of search away from and each region of search default weight, to matching Each novel text out is ranked up.For example, the weight of the first region of search is greater than the weight of the second region of search, then executing subject can With the word first according to each search key in the first region of search away to be ranked up to each novel text matched.? Determine there are same words away from multiple novel texts when, further according to each search key the second region of search word away to upper State there are same words away from multiple novel texts be ranked up.
In some optional implementations of the present embodiment, executing subject can be first according between each search key Word away to be ranked up to each novel text matched.If executing subject determination has the word of multiple novel texts away from phase Meanwhile each search key covering in the first region of search and/or the second region of search of above-mentioned multiple novel texts can be calculated Cover degree.Then, executing subject is ranked up above-mentioned multiple novel texts according to the coverage being calculated.It is understood that It is that coverage is higher, novel text is more matched with multiple search terms in search instruction.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for exporting letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for output information of the present embodiment include: novel text matches unit 501, it is excellent First grade information generating unit 502, summary info generation unit 503 and information transmitting unit 504.
Wherein, novel text matches unit 501 is configured in response to the search instruction of user equipment transmission, matches At least two novel texts and the identification information for obtaining novel text.Wherein, search instruction includes at least one search term.
Precedence information generation unit 502 is configured to the mark based at least one described search term in novel text Display position in information generates the displaying precedence information of novel text.
Summary info generation unit 503 is configured to the identification information based on novel text, generates the abstract of novel text Information.
Information transmitting unit 504 is configured to the summary info and displaying precedence information of at least two novel texts It is sent to user equipment.
In some optional implementations of the present embodiment, the identification information of novel text includes the first region of search and the Two region of search.Above-mentioned novel text matches unit 501 can be further configured to: be searched in the first region of search and/or second At least one described search term is matched in domain, obtains at least two novel texts.
In some optional implementations of the present embodiment, above-mentioned novel text matches unit 501 can further by It is configured to: cutting being carried out at least one search term, obtains at least two search keys;In the first region of search and/or second At least two search keys are matched in region of search, obtain at least two novel texts.
In some optional implementations of the present embodiment, precedence information generation unit 502 be may further include Unshowned precedence information generation module and word are away from determining module and/or coverage determining module in Fig. 5.
Wherein, word is configured to according at least two search keys away from determining module in the first region of search and/or second Display position in region of search, determine word between at least two search keys away from.
Coverage determining module is configured to determine at least two search in the first region of search and/or the second region of search and closes The coverage of keyword.
Precedence information generation module, be configured to based on identified word away from and/or coverage, generate novel text Show precedence information.
In some optional implementations of the present embodiment, above-mentioned precedence information generation module is further configured At: according to identified word away from, coverage and preset region of search weight, determine related between novel text and search term Coefficient;According to related coefficient, the displaying precedence information of novel text is generated.
In some optional implementations of the present embodiment, precedence information generation unit 502 is further configured to: According to the quantity for the search term for including in the identification information of novel text and search term in the identification information of novel text Display position generates the displaying precedence information of novel text.
In some optional implementations of the present embodiment, precedence information generation unit 502 is further configured to: Believed according to the quantity for the search term for including in the first region of search and/or the second region of search and search term in the mark of novel text Display position in breath generates the displaying precedence information of novel text.
The device provided by the above embodiment for output information of the application refers to receiving the search that user equipment is sent After order, at least two novel texts can be matched, and obtain the identification information of novel text.It is then possible to according to search term Display position in the identification information of novel text generates the displaying precedence information of novel text.Meanwhile based on novel text This identification information generates the summary info of novel text.Finally, by the summary info of novel text and showing priority letter Breath is sent to user equipment.The device of the present embodiment, can be according to display position of the search term in the identification information of novel text It sets, obtains the displaying precedence information of novel text, so as to which the novel text most like with search term is come front, from And the accuracy of search result is improved, promote user experience.
It should be appreciated that the unit 501 for recording in the device 500 of output information is to unit 504 respectively and in reference Fig. 2 Each step in the method for description is corresponding.As a result, above with respect to the operation and feature of the method description for output information It is equally applicable to device 500 and unit wherein included, details are not described herein.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the server for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Server shown in Fig. 6 is only an example, should not function and use scope band to the embodiment of the present application Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
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 carrying is on a machine-readable medium Computer program, which includes the program code for method shown in execution flow chart.In such implementation In example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 It is mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes upper State function.
It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above 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 may be programmed read-only deposit Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory Part or above-mentioned any appropriate combination.
In this application, computer readable storage medium can be any tangible medium for including or store program, the journey Sequence can be commanded execution system, device or device use or in connection.And in this application, it is computer-readable Signal media may include in a base band or as carrier wave a part propagate data-signal, wherein carrying computer can The program code of reading.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal or Above-mentioned any appropriate combination.Computer-readable signal media can also be any other than computer readable storage medium Computer-readable medium, the computer-readable medium can send, propagate or transmit for by instruction execution system, device or Person's device uses or program in connection.The program code for including on computer-readable medium can be with any appropriate Medium transmission, including but not limited to: wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include novel text matches unit, precedence information generation unit, summary info generation unit and information transmitting unit.Wherein, The title of these units does not constitute the restriction to the unit itself under certain conditions, for example, novel text matches unit is also It can be described as " in response to the search instruction that user equipment is sent, matching at least two novel texts and obtaining novel text The unit of this identification information ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: the search instruction sent in response to user equipment matches at least two novel texts and obtains the mark of novel text Information, wherein search instruction includes at least one search term;Based at least one search term in the identification information of novel text Display position, generate novel text displaying precedence information;Based on the identification information of novel text, novel text is generated Summary info;By the summary info of at least two novel texts and show that precedence information is sent to user equipment.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (16)

1. a kind of method for output information is applied to server end, comprising:
In response to the search instruction that user equipment is sent, matches at least two novel texts and obtain the mark letter of novel text Breath, wherein described search instruction includes at least one search term;
Display position based at least one described search term in the identification information of novel text generates the displaying of novel text Precedence information;
Based on the identification information of novel text, the summary info of novel text is generated;
By the summary info of at least two novel texts and show that precedence information is sent to user equipment.
2. according to the method described in claim 1, wherein, the identification information of novel text includes the first region of search and the second search Domain;And
It is described to match at least two novel texts, comprising:
At least one described search term is matched in the first region of search and/or the second region of search, obtains at least two novel texts.
It is described in the first region of search and/or the second region of search described in matching 3. according to the method described in claim 2, wherein At least one search term obtains at least two novel texts, comprising:
Cutting is carried out at least one described search term, obtains at least two search keys;
At least two search keys are matched in the first region of search and/or the second region of search, obtain at least two novel texts.
4. according to the method described in claim 3, wherein, the display based on search term in the identification information of novel text Position generates the displaying precedence information of novel text, comprising:
According to display position of at least two search keys in the first region of search and/or the second region of search, at least two are determined Word between a search key away from;And/or
Determine the coverage of at least two search keys in the first region of search and/or the second region of search;
Based on identified word away from and/or coverage, generate novel text displaying precedence information.
5. according to the method described in claim 4, wherein, it is described based on identified word away from and/or coverage, generate novel text This displaying precedence information, comprising:
According to identified word away from, coverage and preset region of search weight, the phase between novel text and search term is determined Relationship number;
According to related coefficient, the displaying precedence information of novel text is generated.
6. according to the described in any item methods of claim 2-5, wherein it is described based on search term novel text identification information In display position, generate novel text displaying precedence information, comprising:
According to the quantity for the search term for including in the identification information of novel text and search term novel text identification information In display position, generate novel text displaying precedence information.
7. according to the method described in claim 6, wherein, the search term for including in the identification information according to novel text The display position of quantity and search term in the identification information of novel text generates the displaying precedence information of novel text, Include:
According to the quantity for the search term for including in the first region of search and/or the second region of search and search term novel text mark Know the display position in information, generates the displaying precedence information of novel text.
8. a kind of device for output information, comprising:
Novel text matches unit is configured in response to the search instruction of user equipment transmission, matches at least two novels Text and the identification information for obtaining novel text, wherein described search instruction includes at least one search term;
Precedence information generation unit is configured to based at least one described search term in the identification information of novel text Display position generates the displaying precedence information of novel text;
Summary info generation unit is configured to the identification information based on novel text, generates the summary info of novel text;
Information transmitting unit is configured to the summary info of at least two novel texts and shows that precedence information is sent to use Family equipment.
9. device according to claim 8, wherein the identification information of novel text includes the first region of search and the second search Domain;And
The novel text matches unit is further configured to:
At least one described search term is matched in the first region of search and/or the second region of search, obtains at least two novel texts.
10. device according to claim 9, wherein the novel text matches unit is further configured to:
Cutting is carried out at least one described search term, obtains at least two search keys;
At least two search keys are matched in the first region of search and/or the second region of search, obtain at least two novel texts.
11. device according to claim 10, wherein the precedence information generation unit includes:
Word is configured to according at least two search keys in the first region of search and/or the second region of search away from determining module Display position, determine word between at least two search keys away from;And/or
Coverage determining module is configured to determine at least two search keys in the first region of search and/or the second region of search Coverage;
Precedence information generation module, be configured to based on identified word away from and/or coverage, generate novel text displaying Precedence information.
12. device according to claim 11, wherein the precedence information generation module is further configured to:
According to identified word away from, coverage and preset region of search weight, the phase between novel text and search term is determined Relationship number;
According to related coefficient, the displaying precedence information of novel text is generated.
13. according to the described in any item devices of claim 9-12, wherein the precedence information generation unit is further matched It is set to:
According to the quantity for the search term for including in the identification information of novel text and search term novel text identification information In display position, generate novel text displaying precedence information.
14. device according to claim 13, wherein the precedence information generation unit is further configured to:
According to the quantity for the search term for including in the first region of search and/or the second region of search and search term novel text mark Know the display position in information, generates the displaying precedence information of novel text.
15. a kind of server, 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 The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-7.
CN201811213744.6A 2018-10-18 2018-10-18 Method and apparatus for output information Pending CN109492089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811213744.6A CN109492089A (en) 2018-10-18 2018-10-18 Method and apparatus for output information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811213744.6A CN109492089A (en) 2018-10-18 2018-10-18 Method and apparatus for output information

Publications (1)

Publication Number Publication Date
CN109492089A true CN109492089A (en) 2019-03-19

Family

ID=65691464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811213744.6A Pending CN109492089A (en) 2018-10-18 2018-10-18 Method and apparatus for output information

Country Status (1)

Country Link
CN (1) CN109492089A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502299A (en) * 2019-08-12 2019-11-26 南京大众书网图书文化有限公司 It is a kind of for providing the method and apparatus of novel information
CN111368036A (en) * 2020-03-05 2020-07-03 百度在线网络技术(北京)有限公司 Method and apparatus for searching information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408894A (en) * 2007-10-12 2009-04-15 莱克西私人有限公司 System and method for enhancing search relevancy using semantic keys
CN102122286A (en) * 2010-04-01 2011-07-13 武汉福来尔科技有限公司 Method for realizing concentrated searching on handheld learning terminal
US8577875B2 (en) * 2009-03-20 2013-11-05 Microsoft Corporation Presenting search results ordered using user preferences
CN105183744A (en) * 2015-06-29 2015-12-23 努比亚技术有限公司 Method and device for carrying out paper book keyword retrieval by mobile phone
CN106339394A (en) * 2015-07-09 2017-01-18 腾讯科技(北京)有限公司 Method and device for processing information
CN107784070A (en) * 2017-09-15 2018-03-09 平安科技(深圳)有限公司 A kind of method, apparatus and equipment for improving data cleansing efficiency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408894A (en) * 2007-10-12 2009-04-15 莱克西私人有限公司 System and method for enhancing search relevancy using semantic keys
US8577875B2 (en) * 2009-03-20 2013-11-05 Microsoft Corporation Presenting search results ordered using user preferences
CN102122286A (en) * 2010-04-01 2011-07-13 武汉福来尔科技有限公司 Method for realizing concentrated searching on handheld learning terminal
CN105183744A (en) * 2015-06-29 2015-12-23 努比亚技术有限公司 Method and device for carrying out paper book keyword retrieval by mobile phone
CN106339394A (en) * 2015-07-09 2017-01-18 腾讯科技(北京)有限公司 Method and device for processing information
CN107784070A (en) * 2017-09-15 2018-03-09 平安科技(深圳)有限公司 A kind of method, apparatus and equipment for improving data cleansing efficiency

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502299A (en) * 2019-08-12 2019-11-26 南京大众书网图书文化有限公司 It is a kind of for providing the method and apparatus of novel information
CN110502299B (en) * 2019-08-12 2021-05-14 南京大众书网图书文化有限公司 Method and equipment for providing novel information
CN111368036A (en) * 2020-03-05 2020-07-03 百度在线网络技术(北京)有限公司 Method and apparatus for searching information
CN111368036B (en) * 2020-03-05 2023-09-26 百度在线网络技术(北京)有限公司 Method and device for searching information

Similar Documents

Publication Publication Date Title
CN109460513A (en) Method and apparatus for generating clicking rate prediction model
CN108228906B (en) Method and apparatus for generating information
CN109189938A (en) Method and apparatus for updating knowledge mapping
CN109325213A (en) Method and apparatus for labeled data
CN108287927B (en) For obtaining the method and device of information
CN106919711B (en) Method and device for labeling information based on artificial intelligence
CN110069698A (en) Information-pushing method and device
CN108280200B (en) Method and device for pushing information
CN109783741A (en) Method and apparatus for pushed information
CN108256070A (en) For generating the method and apparatus of information
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
CN110096584A (en) A kind of answer method and device
CN109271556A (en) Method and apparatus for output information
CN109635094A (en) Method and apparatus for generating answer
CN109036397A (en) The method and apparatus of content for rendering
CN109389182A (en) Method and apparatus for generating information
CN110019948A (en) Method and apparatus for output information
CN109508361A (en) Method and apparatus for output information
CN109255035A (en) Method and apparatus for constructing knowledge mapping
CN110502699A (en) Method and apparatus for obtaining information
CN109255036A (en) Method and apparatus for output information
CN109492089A (en) Method and apparatus for output information
CN105488027B (en) The method for pushing and device of keyword
CN109325227A (en) Method and apparatus for generating amendment sentence
CN108460020A (en) Method and device for obtaining information

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