CN109587032A - Information display method and device - Google Patents

Information display method and device Download PDF

Info

Publication number
CN109587032A
CN109587032A CN201710905424.6A CN201710905424A CN109587032A CN 109587032 A CN109587032 A CN 109587032A CN 201710905424 A CN201710905424 A CN 201710905424A CN 109587032 A CN109587032 A CN 109587032A
Authority
CN
China
Prior art keywords
information
presented
preset keyword
sub
intended display
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
CN201710905424.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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710905424.6A priority Critical patent/CN109587032A/en
Priority to PCT/CN2018/089915 priority patent/WO2019062193A1/en
Publication of CN109587032A publication Critical patent/CN109587032A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an information display method and device, which are applied to a terminal, wherein the method comprises the following steps: acquiring character information displayed in the instant messaging process; when the fact that the text information comprises the preset keywords is detected, determining a target server corresponding to the preset keywords according to the corresponding relation between the preset keywords and the server; sending a network request to a target server, wherein the network request comprises the preset keyword; receiving information to be displayed, which is sent by a target server and corresponds to a preset keyword; and determining target display information according to the information to be displayed, and displaying according to a preset template. Therefore, when information query is needed in the instant messaging process, the terminal can send a network request to the target server, determine target display information according to the information to be displayed sent by the target server, display the target display information according to the preset template, and simplify user operation without requiring a user to quit the instant chat interface for query.

Description

A kind of information displaying method and device
Technical field
The present invention relates to technical field of information processing, more particularly to a kind of information displaying method and device.
Background technique
With the continuous development of electronics technology, the information interchange mode between people is gradually drilled from modes such as previous mails Become the exchange way based on instant messaging.Instant messaging is to refer to send and receive the industry of internet message etc. immediately Business.In daily life, some common chat applications belong to the mode of instant messaging.
User using instant messaging application program when being exchanged, the demand for often having information to inquire, for example, user uses When mobile phone is chatted with other people, wants to arrange 2 pm meeting, but do not know whether oneself 2 pm has other thing.That User needs to return mobile phone main interface at this time, is then turned on calendar or memorandum application program, checks same day schedule, has inquired Cheng Hou returns again to Chat page, determines schedule according to the information inquired, retransmits information and informs other side.
As can be seen that, when needing to carry out information inquiry, need to return main interface during above-mentioned instant messaging, then By other applications query information, then returns to instant messaging interface and send message, this way is very complicated, Yong Hucao Make very inconvenient.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of information displaying method and device, in instant communication process into When row information is inquired, simplify user's operation.Specific technical solution is as follows:
In a first aspect, being applied to terminal the embodiment of the invention provides a kind of information displaying method, which comprises
Obtain the text information shown during instant messaging;
It is corresponding with server according to preset keyword when detecting in the text information includes preset keyword Relationship determines the corresponding destination server of the preset keyword;
Network request is sent to the destination server, wherein the network request includes the preset keyword;
Receive the information to be presented corresponding with the preset keyword that the destination server is sent;
Intended display information is determined according to the information to be presented, and is shown according to default template.
Optionally, the corresponding relationship according to preset keyword and server determines that the preset keyword is corresponding Destination server the step of, comprising:
According to default classifying rules, the classification of the preset keyword is determined;
According to the corresponding relationship of preset classification and server, determine determined by the corresponding server of classification, and by institute Determining server is as destination server.
Optionally, intended display information is determined according to the information to be presented described, and is opened up according to default template Before the step of showing, the method also includes:
Judge the quantity for the sub-information to be presented that the information to be presented includes;
It is described that intended display information, and the step of being shown according to default template are determined according to the information to be presented, Include:
Intended display information is determined according to the information to be presented and the quantity, and is shown according to default template.
Optionally, described according to the information to be presented and described when the quantity of the sub-information to be presented is one Quantity determines intended display information, and the step of being shown according to default template, comprising:
The sub-information to be presented is determined as intended display information;
According to default template, the intended display information is shown.
Optionally, described according to the information to be presented and described when the quantity of the sub-information to be presented is multiple Quantity determines intended display information, and the step of being shown according to default template, comprising:
Determine putting in order for the sub-information to be presented and the similarity of the preset keyword, wherein each described Sub-information to be presented carries similarity mark, and the similarity mark is for indicating sub-information to be presented and the preset keyword Similarity;
It is put in order according to described, intended display information is determined from the sub-information to be presented;
According to default template, the intended display information is shown.
Optionally, described to put in order according to, the step of intended display information is determined from the sub-information to be presented Suddenly, comprising:
It is put in order according to described, the determining highest sub-information to be presented of similarity with the preset keyword;
Using the highest sub-information to be presented of identified similarity as intended display information.
Optionally, described to put in order according to, the step of intended display information is determined from the sub-information to be presented Suddenly, comprising:
Determine the target array sequence before being arranged in preset order;
Sub-information to be presented corresponding to the target array sequence is determined as intended display information;
It is described according to default template, the step of showing the intended display information, comprising:
According to the target array sequence, according to default template, the intended display information is shown.
Optionally, the method also includes:
When receiving the lookup failure command that the destination server is sent, the preset keyword pair is locally being searched The information to be presented answered;
Intended display information is determined according to the information to be presented, and is shown according to default template.
Second aspect, the embodiment of the invention provides another information displaying methods, are applied to destination server, the side Method includes:
Receive the network request that terminal is sent, wherein the network request is that the terminal detects instant messaging process It is sent when including preset keyword in the text information of middle display, and the network request includes preset keyword;
According to the preset keyword, the corresponding information to be presented of the preset keyword is searched;
The information to be presented is sent to the terminal.
Optionally, described according to the preset keyword, search the step of the corresponding information to be presented of the preset keyword Suddenly, comprising:
Determine alternate information, wherein the alternate information are as follows: the phase of the word content for being included and the preset keyword It is not less than the text information of the first preset threshold like degree;
According to the similarity, the corresponding information to be presented of the preset keyword is determined from the alternate information.
Optionally, described according to the similarity, determined from the alternate information preset keyword it is corresponding to The step of showing information, comprising:
Determine the highest similarity in the similarity;
Alternate information corresponding to the highest similarity is determined as the preset keyword and corresponds to information to be presented.
Optionally, described according to the similarity, determined from the alternate information preset keyword it is corresponding to The step of showing information, comprising:
Alternate information corresponding to similarity not less than the second preset threshold is determined as sub-information to be presented;
Similarity mark is added for the sub-information to be presented;
The sub-information to be presented after similarity identifies will be added and be determined as the corresponding information to be presented of the preset keyword.
Optionally, when not finding information to be presented corresponding with the preset keyword, the method also includes:
It sends and searches failure command to the terminal.
The third aspect, the embodiment of the invention provides a kind of device for displaying information, are applied to terminal, and described device includes:
Text information obtains module, for obtaining the text information shown during instant messaging;
Destination server determining module, for when detect in the text information include preset keyword when, according to pre- If keyword and server corresponding relationship, determine the corresponding destination server of the preset keyword;
Network request sending module, for sending network request to the destination server, wherein the network request packet Include the preset keyword;
Information receiving module to be presented, for receiving the corresponding with the preset keyword of the destination server transmission Information to be presented;
Information display module, for determining intended display information according to the information to be presented, and according to default template into Row is shown.
Optionally, the destination server determining module includes:
Classification determines submodule, for determining the classification of the preset keyword according to classifying rules is preset;
Destination server determines submodule, for the corresponding relationship according to preset classification and server, determines The corresponding server of classification, and using identified server as destination server.
Optionally, described device further include:
Quantity determining module, for determining intended display information according to the information to be presented described, and according to default Before template is shown, the quantity for the sub-information to be presented that the information to be presented includes is judged;
The information display module includes:
Information shows submodule, for determining intended display information according to the information to be presented and the quantity, and presses It is shown according to default template.
Optionally, the information shows that submodule includes:
First object shows information determination unit, will be described for when the quantity of the sub-information to be presented is one Sub-information to be presented is determined as intended display information;
First object shows information display unit, for showing the intended display information according to default template.
Optionally, the information shows that submodule includes:
Put in order determination unit, for determining described to be presented when the quantity of the sub-information to be presented is multiple Sub-information puts in order with the similarity of the preset keyword, wherein each sub-information to be presented carries similarity Mark, the similarity identify the similarity for indicating sub-information to be presented Yu the preset keyword;
Second intended display information determination unit, for putting in order according to, from the sub-information to be presented really It sets the goal and shows information;
Second intended display information display unit, for showing the intended display information according to default template.
Optionally, the second intended display information determination unit includes:
First sub-information to be presented determines subelement, for putting in order according to, the determining and preset keyword The highest sub-information to be presented of similarity;
First object show information determine subelement, for using the highest sub-information to be presented of identified similarity as Intended display information.
Optionally, the second intended display information determination unit includes:
Target array sequence determines subelement, for determining the target array sequence before being arranged in preset order;
Second intended display information determines subelement, for by sub-information to be presented corresponding to the target array sequence It is determined as intended display information;
The second intended display information display unit includes:
Intended display information shows subelement, for according to target array sequence, according to default template, described in displaying Intended display information.
Optionally, described device further include:
Local searching module, for being looked into locally when receiving the lookup failure command that the destination server is sent Look for the corresponding information to be presented of the preset keyword;
Display module for determining intended display information according to the information to be presented, and is opened up according to default template Show.
Fourth aspect, the embodiment of the invention provides another device for displaying information, are applied to destination server, the dress It sets and includes:
Network request receiving module, for receiving the network request of terminal transmission, wherein the network request is the end End, which detects, to be sent when including preset keyword in the text information shown during instant messaging, and the network request packet Include preset keyword;
Information searching module to be presented, for according to the preset keyword, search the preset keyword it is corresponding to Show information;
Information sending module to be presented, for sending the information to be presented to the terminal.
Optionally, the information searching module to be presented includes:
Alternate information determines submodule, for determining alternate information, wherein the alternate information are as follows: the text for being included Content and the similarity of the preset keyword are not less than the text information of the first preset threshold;
Information to be presented determines submodule, described default for being determined from the alternate information according to the similarity The corresponding information to be presented of keyword.
Optionally, the information to be presented determines that submodule includes:
Highest similarity determination unit, for determining the highest similarity in the similarity;
First information determination unit to be presented, it is described for alternate information corresponding to the highest similarity to be determined as Preset keyword corresponds to information to be presented.
Optionally, the information to be presented determines that submodule includes:
Sub-information determination unit to be presented, for alternate information corresponding to the similarity of the second preset threshold will to be not less than It is determined as sub-information to be presented;
Similarity identifies adding unit, for adding similarity mark for the sub-information to be presented;
Second information determination unit to be presented, for will add the sub-information to be presented after similarity mark be determined as it is described The corresponding information to be presented of preset keyword.
Optionally, described device further include:
Failure command sending module is searched, for information to be presented corresponding with the preset keyword ought not found When, it sends and searches failure command to the terminal.
The embodiment of the invention also provides a kind of terminal, including processor, communication interface, memory and communication bus, In, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the first above-mentioned information displaying method step.
The embodiment of the invention also provides a kind of server, including processor, communication interface, memory and communication bus, Wherein, processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes above-mentioned second of information displaying method step.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium memory Computer program is contained, the computer program realizes the first above-mentioned information displaying method step when being executed by processor.
The embodiment of the invention also provides another computer readable storage medium, in the computer readable storage medium It is stored with computer program, the computer program realizes above-mentioned second of information displaying method step when being executed by processor.
In scheme provided in an embodiment of the present invention, the text information shown during instant messaging is obtained, when detecting text When including preset keyword in word information, according to the corresponding relationship of preset keyword and server, preset keyword pair is determined The destination server answered sends network request to destination server, wherein network request includes the preset keyword, is received The information to be presented corresponding with preset keyword that destination server is sent, determines intended display information according to information to be presented, And it is shown according to default template.As it can be seen that terminal can send net when needing to carry out information inquiry in instant communication process Network is requested to destination server, and determines intended display information according to the information to be presented that destination server is sent, according to default Template is shown, and is exited instant chat interface without user and is inquired, and user's operation is simplified.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of the first information displaying method provided by the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of intended display load card;
Fig. 3 is the flow chart for determining and showing a kind of mode of intended display information in embodiment illustrated in fig. 1;
Fig. 4 is the flow chart of second of information displaying method provided by the embodiment of the present invention;
Fig. 5 is the flow chart that a kind of mode of information to be presented is determined in embodiment illustrated in fig. 4;
Fig. 6 is the first structural schematic diagram of the first device for displaying information provided by the embodiment of the present invention;
Fig. 7 is the concrete structure schematic diagram of destination server determining module 620 in embodiment illustrated in fig. 6;
Fig. 8 is second of structural schematic diagram of the first device for displaying information;
Fig. 9 is the first concrete structure schematic diagram that information shows submodule 6500 in embodiment illustrated in fig. 8;
Figure 10 is second of concrete structure schematic diagram that information shows submodule 6500 in embodiment illustrated in fig. 8;
Figure 11 is the concrete structure schematic diagram of the second intended display information determination unit 6504 in embodiment illustrated in fig. 10;
Figure 12 is the third concrete structure schematic diagram that information shows submodule 6500 in embodiment illustrated in fig. 8;
Figure 13 is the third structural schematic diagram of the first device for displaying information;
Figure 14 is the structural schematic diagram of second of device for displaying information provided by the embodiment of the present invention;
Figure 15 is the concrete structure schematic diagram of information searching module 1420 to be presented in embodiment illustrated in fig. 14;
Figure 16 determines the first concrete structure schematic diagram of submodule 1422 for information to be presented in embodiment illustrated in fig. 15;
Figure 17 determines second of concrete structure schematic diagram of submodule 1422 for information to be presented in embodiment illustrated in fig. 15;
Figure 18 is second of structural schematic diagram of the first device for displaying information;
Figure 19 is a kind of structural schematic diagram of terminal provided by the embodiment of the present invention;
Figure 20 is a kind of structural schematic diagram of server provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
When in order to carry out information inquiry in instant communication process, simplify user's operation, the embodiment of the invention provides one Kind information displaying method, device, terminal, server and computer readable storage medium.
The first information displaying method is provided for the embodiments of the invention first below to be introduced.
The first information displaying method provided by the embodiment of the present invention can be applied to terminal, which can be hand The electronic equipments such as mechanical, electrical brain, tablet computer, smartwatch, are not specifically limited herein.The terminal can install instant messaging and answer With program, information interchange is carried out so that user passes through the instant messaging application program.
As shown in Figure 1, a kind of information displaying method, is applied to terminal, which comprises
S101 obtains the text information shown during instant messaging;
S102, when detecting in the text information includes preset keyword, according to preset keyword and server Corresponding relationship, determine the corresponding destination server of the preset keyword;
S103 sends network request to the destination server, wherein the network request includes the default key Word;
S104 receives the information to be presented corresponding with the preset keyword that the destination server is sent;
S105 determines intended display information according to the information to be presented, and is shown according to default template.
As it can be seen that terminal obtains the text information shown during instant messaging in scheme provided in an embodiment of the present invention, when When detecting in text information including preset keyword, according to the corresponding relationship of preset keyword and server, determine default The corresponding destination server of keyword sends network request to destination server, and it is sending with default pass to receive destination server The corresponding information to be presented of key word determines intended display information according to information to be presented, and is shown according to default template.It can To see, when needing to carry out information inquiry in instant communication process, terminal can send network request to destination server, and according to The information to be presented that destination server is sent determines intended display information, is shown according to default template, exits without user Instant chat interface is inquired, and user's operation is simplified.
In above-mentioned steps S101, the application program that can carry out instant messaging that user is installed in using terminal and its When his user exchanges, inputting word information, the text letter that the text information and other users of user's input are sent generally are understood Breath can be shown in terminal, for example, being shown on the display screen of terminal, then terminal can obtain shown text letter Breath.For example, user A sends text information to the terminal, which is " you fly Beijing at several points tomorrow ", the user of the terminal B inputting word information " is not known, I first sees ".So in the process, terminal can obtain text information " you are several tomorrow Winged Beijing of point " and " not knowing, I first sees ".
The keyword for including in the text information that terminal can be obtained with real-time detection, can specifically use natural language analysis Mode in the key word spotting techniques such as method determines the keyword for including in the text information obtained, does not do specific limit herein It is fixed, as long as the keyword for including in the text information of acquisition can be determined.It include default close when detecting in text information When key word, terminal can determine the corresponding target of the preset keyword according to the corresponding relationship of preset keyword and server Server.Illustratively, preset keyword can be " aircraft ", " train ", " meeting ", " telephone number ", " several points ", " time " Equal keywords, can specifically be set according to actual needs, be not specifically limited herein.
The corresponding relationship of preset keyword and server can be stored in advance in terminal, and then works as and detect in text information When including preset keyword, terminal can determine the corresponding destination server of the preset keyword according to the corresponding relationship.Example Such as, the corresponding mail server of preset keyword " aircraft ", preset keyword " train ", " several points " corresponding train booking server, Preset keyword " meeting " corresponds to memo service device, the corresponding address book server of preset keyword " telephone number " etc..Wherein, In the corresponding relationship, it can be the corresponding server of a preset keyword, it is corresponding to be also possible to multiple preset keywords One server, this is all reasonable.
After terminal determines destination server, network request can be sent to destination server, which includes upper Preset keyword is stated, in this way, destination server will receive the network request of terminal transmission, is then wrapped according to the network request The preset keyword included searches the corresponding information to be presented of the preset keyword, and then sends the information to be presented to terminal, end End can receive the information to be presented, and then execute step S105, show according to default template and determined based on information to be presented Intended display information.
For example, preset keyword is " aircraft " and " time ", and destination server is mail server, then target takes The information to be presented that finds of business device can be include " aircraft " and " time " Flight Information Mail Contents, terminal can The information to be presented is received, and is shown after the intended display information determined based on information to be presented, user can see The intended display information, in turn, user can know Flight Information, and carry out instant messaging with other users and exchange about flight Information.
Wherein, default template can be needed according to user and the factors such as instant messaging look & feel determine, do not do have herein Body limits, such as can be the form etc. of card as shown in Figure 2, generally may include topic 201, source 202, particular content 203 etc., it certainly can also include picture 204 and some user entries 205.For example, may include closing user entry, Yong Hudian When hitting the user entry, the intended display information can be closed, user is facilitated to continue instant messaging.Can certainly include User entry is replicated, user is facilitated to replicate shown intended display information.
As a kind of embodiment of the embodiment of the present invention, destination server is determined for convenience, it is above-mentioned according to preset The corresponding relationship of keyword and server the step of determining the preset keyword corresponding destination server, may include:
According to default classifying rules, the classification of the preset keyword is determined;According to pair of preset classification and server It should be related to, determine the corresponding server of identified classification, and using identified server as destination server.
In order to facilitate destination server is determined, terminal can preset a classifying rules, i.e., default classifying rules, into And after determining preset keyword, classifying rules can be preset according to this, determine the classification of the preset keyword.For example, default Classifying rules are as follows: preset keyword " aircraft ", " plane ticket ", " flight " corresponding classification are air ticket;Preset keyword " train ", " train ticket ", " motor-car ", " high-speed rail " corresponding classification are train ticket;Preset keyword " meeting ", " meeting " corresponding classification are memorandum Record etc., then can determine that its classification is memorandum after terminal determines preset keyword " meeting ".
So, terminal can determine that identified classification is corresponding according to the corresponding relationship of preset classification and server Server, and using identified server as destination server.Wherein, the corresponding relationship one of preset classification and server As can be the corresponding server of classification, easily facilitate quick lookup in this way.For example, classification air ticket corresponds to mail service Device, classification train ticket correspond to train ticket booking server, and classification memorandum corresponds to memo service device.In this way, it is assumed that terminal is true Fixed classification is memorandum, then destination server is to forget to record server.
As it can be seen that determining the classification of preset keyword, and then according to preset classification and server using default classifying rules Corresponding relationship, determine the mode of destination server, terminal can more quickly and easily determine destination server, improve information It shows rate, and then promotes information search efficiency.
As a kind of embodiment of the embodiment of the present invention, determine that intended display is believed according to the information to be presented above-mentioned Breath, and before the step of being shown according to default template, the above method can also include:
Judge the quantity for the sub-information to be presented that the information to be presented includes.
Since the information to be presented that destination server is sent may include one or more sub-informations to be presented, then in order to Facilitate subsequent displaying intended display information, terminal may determine that the quantity of sub-information to be presented included by information to be presented.
In one embodiment, sub-information to be presented can carry quantity identity, in this way, terminal can be according to the number Amount mark determines the quantity of sub-information to be presented.Wherein, quantity identity can be the mark such as number, letter, as long as can indicate The quantity of sub-information to be presented, is not specifically limited herein.
Correspondingly, above-mentioned determine intended display information according to the information to be presented, and it is shown according to default template The step of, may include:
Intended display information is determined according to the information to be presented and the quantity, and is shown according to default template.
Be determined the quantity of sub-information to be presented included by information to be presented, terminal can according to information to be presented and The quantity determines intended display information, and is shown according to default template.For example, when the quantity is one, then terminal Sub-information to be presented can be determined as to intended display information, and be shown according to default template.In order to which scheme understands and cloth Office is clear, subsequent to determine intended display information to according to information to be presented and the quantity, and is opened up according to default template The specific embodiment shown carries out citing introduction.
As it can be seen that in the present embodiment, terminal can after the quantity for determining sub-information to be presented that information to be presented includes, Intended display information is determined according to information to be presented and quantity, and is shown according to default template, and intended display information is made Show more diversified, promotion user experience.
It is above-mentioned according to described to be presented as a kind of embodiment of the embodiment of the present invention when above-mentioned quantity is one Information and the quantity determine intended display information, and the step of being shown according to default template, may include:
The sub-information to be presented is determined as intended display information;According to default template, the intended display letter is shown Breath.
When information to be presented to include a sub-information to be presented when, sub-information to be presented can be determined as target by terminal It shows information, and then according to default template, shows the intended display information.
When above-mentioned quantity is multiple, as a kind of embodiment of the embodiment of the present invention, as shown in figure 3, above-mentioned basis The information to be presented and the quantity determine intended display information, and the step of being shown according to default template, can wrap It includes:
S301 determines putting in order for the sub-information to be presented and the similarity of the preset keyword;
In one embodiment, sub-information to be presented is taken each of included by the information to be presented that destination server is sent Band similarity identifies, which identifies the similarity for indicating sub-information to be presented and preset keyword.
It, may since destination server is when according to preset keyword, searching the corresponding information to be presented of preset keyword Multiple information are found, then terminal will be sent to as sub-information to be shown for the multiple information found.Destination service The sub-information to be shown and the similarity of preset keyword that device is found are generally different, for example, preset keyword is " plane ticket " " Tuesday ", destination server have found the sub-information to be shown including " plane ticket " and " Tuesday ", then itself and default pass The phase knowledge and magnanimity of key word can be 100%.Destination server, which is looked into, also has found the sub-information to be shown including " air ticket " and " Tuesday ", So phase knowledge and magnanimity of itself and preset keyword can be 90%.Destination server, which is looked into, also to be had found including " flight " and " next Tuesday " Sub-information to be shown, then the phase knowledge and magnanimity of itself and preset keyword can be 80%.
In order to facilitate each sub-information to be presented is distinguished, destination server can be each sub-information to be presented according to similarity Similarity mark is added, similarity mark can be that can arbitrarily indicate sub-information to be presented and preset keyword phase knowledge and magnanimity Mark can be the forms such as the combination of number, letter or both, be not specifically limited herein.
It so, can be according to the similarity of each sub-information carrying to be presented after terminal receives sub-information to be presented Mark, determines putting in order for the similarity of each sub-information to be presented and preset keyword.For example, sub-information to be presented is 5 A, the similarity mark of carrying is respectively 8,7.5,6.8,9 and 9.7, and degree of denoting like is 80%, 75%, 68%, 90% And 95%, it is evident that the sequence according to similarity from high to low, putting in order is 95%, 90%, 80%, 75% and 68%.
S302 puts in order according to described, and intended display information is determined from the sub-information to be presented;
S303 shows the intended display information according to default template.
Next, terminal can put in order according to above-mentioned, intended display information is determined from sub-information to be presented, then According to default template, intended display information is shown.It is corresponded to for example, terminal can will put in order for preceding 3 or preceding 4 similarity Sub-information to be shown be determined as intended display information, this is all reasonable.
As it can be seen that in the present embodiment, terminal can be according to the arrangement of sub-information to be presented and the similarity of preset keyword Sequentially, it determines the intended display information to be shown, makes shown intended display information that more there is specific aim, further mention Rise user experience.
It is above-mentioned to put in order according to as a kind of embodiment of the embodiment of the present invention, from the sub- letter to be presented In breath the step of determining intended display information, may include:
It is put in order according to described, the determining highest sub-information to be presented of similarity with the preset keyword;By institute The highest sub-information to be presented of determining similarity is as intended display information.
Terminal can put in order according to fixed, the determining highest sub- letter to be presented of similarity with preset keyword Breath, in turn, using the highest sub-information to be presented of identified similarity as intended display information.For example, fixed arrangement Sequence is 95%, 90%, 80%, 75% and 68%, then being with the highest sub-information to be presented of the similarity of preset keyword Sub-information to be presented corresponding to similarity 95%.Terminal also can be using the sub-information to be presented as intended display information.
As it can be seen that in the present embodiment, terminal can show with the highest intended display information of preset keyword similarity, should Intended display information probability identical with the information of the current desired inquiry of user is very high, improves the accuracy that information is shown.
It is above-mentioned to put in order according to as a kind of embodiment of the embodiment of the present invention, from the sub- letter to be presented In breath the step of determining intended display information, may include:
Determine the target array sequence before being arranged in preset order;It will be to be presented corresponding to the target array sequence Sub-information is determined as intended display information.
Terminal determine it is above-mentioned put in order after, can determine before being arranged in preset order target array sequence.Example Such as, preset order 4, then terminal can determine the sequence of the target array before being arranged in preset order 4, i.e., 1,2 and 3.
In turn, sub-information to be presented corresponding to target array sequence can be determined as intended display information, example by terminal Such as, it has been determined that put in order be 95%, 90%, 80%, 75% and 68%, target array sequence is 1,2 and 3, then target Put in order corresponding sub-information to be presented are as follows: sub-information to be presented corresponding to similarity 95%, 90% and 80%, it should Three sub-informations to be presented can be for intended display information.
Correspondingly, above-mentioned according to default template, the step of showing the intended display information, may include:
According to the target array sequence, according to default template, the intended display information is shown.
After terminal determines above-mentioned intended display information, target exhibition can be shown according to target array sequence and default template Show information.Specifically, terminal can show intended display information according to the sequence in target array sequence from high to low.Example Such as, target array sequence is 1,2 and 3, then terminal can show that target array sequence is 1,2 and 3 pair according to 1,2,3 sequence Answer sub-information to be presented.
In one embodiment, terminal can show intended display information in the form of card, can be current instant In communication interface, three cards are successively shown from top to bottom, and first to third card content is followed successively by target array sequence and is 1, the content of 2 and 3 corresponding sub-informations to be presented.In another embodiment, terminal can show target in a card It shows information, and can mark sub-information to be presented is corresponding to put in order with number etc., so that user knows which is to be presented Sub-information and the similarity of preset keyword are higher.Certainly, terminal can also show intended display information using other modes, This is not specifically limited.
As it can be seen that in the present embodiment, terminal can show multiple sub-informations to be presented, and identify sub-information to be presented and pre- If the similarity of keyword, multiple choices are provided for user, further promote user experience.
As a kind of embodiment of the embodiment of the present invention, the above method can also include:
When receiving the lookup failure command that the destination server is sent, the preset keyword pair is locally being searched The information to be presented answered;Intended display information is determined according to the information to be presented, and is shown according to default template.
Wherein, the lookup failure command be generally destination server do not find it is corresponding with above-mentioned preset keyword wait open up It is sent when showing information, then, when terminal receives the lookup failure command of destination server transmission, illustrate destination server Information to be presented corresponding with above-mentioned preset keyword is not found, and in turn, terminal can locally search preset keyword Corresponding information to be presented.It that is, terminal can be searched including preset keyword, or include the phase with preset keyword Like the text information for spending higher text, as information to be presented.
For example, some or all of memorandum application program memo information may be stored in terminal local, and not on Memo service device is reached, then memo service device just can not find these memo informations, at this point, terminal can be It is local to search memo information corresponding to preset keyword.
Terminal, can be according to letter to be presented after locally finding information to be presented corresponding with above-mentioned preset keyword It ceases and determines intended display information, and be shown according to default template.For determine intended display information concrete mode and According to the concrete mode that default template is shown, the corresponding manner in above-described embodiment may refer to, details are not described herein.
As it can be seen that in the present embodiment, when destination server does not find information to be presented corresponding with preset keyword, eventually End can be searched locally, improved and searched the comprehensive of information to be presented, guarantee to save in local or destination server When having information to be presented corresponding with preset keyword, it can find and show intended display information to user.
The embodiment of the invention also provides another information displaying methods.It is provided for the embodiments of the invention second below Kind information displaying method is introduced.
Second of information displaying method provided by the embodiment of the present invention can be applied to destination server, the destination service Device and above-mentioned terminal, which are established, to be communicated to connect.
As shown in figure 4, a kind of information displaying method, is applied to destination server, which comprises
S401 receives the network request that terminal is sent, wherein the network request is that the terminal detects instant messaging It is sent when including preset keyword in the text information shown in the process, and the network request includes preset keyword;
S402 searches the corresponding information to be presented of the preset keyword according to the preset keyword;
S403 sends the information to be presented to the terminal.
As it can be seen that destination server receives the network request that terminal is sent, then root in scheme provided in an embodiment of the present invention According to preset keyword, the corresponding information to be presented of preset keyword is searched, retransmits information to be presented to terminal.Destination server It can receive the network request that terminal needs send when information inquiry in instant communication process, and send information to be presented To terminal, terminal is allowed to determine intended display information according to the information to be presented that destination server is sent, according to default mould Plate is shown, and is exited instant chat interface without user and is inquired, and user's operation is simplified.
When including preset keyword in the text information that terminal is shown during detecting instant messaging, network can be sent To destination server, destination server can also receive the network request for request, wherein the network request includes default closes Key word.
In turn, in above-mentioned steps S402, destination server can search the default key according to the preset keyword The corresponding information to be presented of word.For example, preset keyword is " meeting ", " two o'clock in afternoon ", then destination server can be looked into It looks for including the preset keyword, or includes the text information with word content similar in preset keyword meaning, by the text Information is as information to be presented.And then execute step S403.
It is above-mentioned according to the preset keyword as a kind of embodiment of the embodiment of the present invention, search the default pass The step of key word corresponding information to be presented, may include:
Determine alternate information;According to the similarity, determine that the preset keyword is corresponding from the alternate information Information to be presented.
Wherein, above-mentioned alternate information can be with are as follows: the similarity of the word content and preset keyword that are included is not less than the The text information of one preset threshold.When destination server searches information to be displayed, generally searched according to keyword, and can To record the similarity of word content and preset keyword that found text information is included.In turn, destination server Similarity can be determined as alternate information not less than the text information of the first preset threshold.First preset threshold can basis Information inquiry set, such as can be 70%, 80%, 90% etc., is not specifically limited herein.
Next, destination server can be according to the word content that the text information found is included and default pass The similarity of key word determines the corresponding information to be presented of preset keyword from identified alternate information.In a kind of embodiment party In formula, whole alternate informations can be determined as information to be presented by destination server.In another embodiment party, destination server Can according to chosen from alternate information it is some be used as information to be presented, this be all it is reasonable, it is subsequent to be specifically introduced.
It is above-mentioned according to the similarity as a kind of embodiment of the embodiment of the present invention, from the alternate information really The step of fixed preset keyword corresponding information to be presented, may include:
Determine the highest similarity in the similarity;Alternate information corresponding to the highest similarity is determined as institute It states preset keyword and corresponds to information to be presented.
After determining alternate information, destination server can determine the highest similarity in above-mentioned similarity, that is, institute Highest similarity in the similarity of the word content and preset keyword that there is the text information found to be included, and then most by this Alternate information corresponding to high similarity is determined as preset keyword and corresponds to information to be presented.
For example, the similarity of word content and preset keyword that all text informations found are included is respectively 98%, 96%, 85% and 81%, it is evident that highest similarity is 98%, destination server also can be by similarity 98% Corresponding alternate information is determined as preset keyword and corresponds to information to be presented.
As it can be seen that destination server will be determined as with the highest alternate information of the similarity of preset keyword in the present embodiment The corresponding information to be presented of preset keyword is simultaneously sent to terminal, and in turn, terminal can be shown with preset keyword similarity most High intended display information, intended display information probability identical with the information of the current desired inquiry of user is very high, improves The accuracy that information is shown.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 5, above-mentioned according to the similarity, from described standby The step of determining the corresponding information to be presented of the preset keyword in information is selected, may include:
Alternate information corresponding to similarity not less than the second preset threshold is determined as sub-information to be presented by S501;
After determining alternate information, destination server can will be not less than standby corresponding to the similarity of the second preset threshold Information is selected to be determined as sub-information to be presented.Wherein, which can be set according to display, such as can be with It is 90%, 85%, 75% etc..
Assuming that the second preset threshold 85%, the word content and preset keyword that all text informations found are included Similarity be respectively 98%, 96%, 85% and 81%, then corresponding to destination server similarity 98%, 96%, 85% Alternate information is determined as sub-information to be presented.
S502 adds similarity mark for the sub-information to be presented;
In order to allow terminal accurately to distinguish the similarity of each sub-information to be presented and preset keyword, destination server can Think each sub-information to be presented addition similarity mark, similarity mark can for can arbitrarily indicate sub-information to be presented with The mark of preset keyword phase knowledge and magnanimity can be the forms such as the combination of number, letter or both, be not specifically limited herein.
S503, to be determined as the preset keyword corresponding to be presented for the sub-information to be presented after adding similarity mark Information.
Destination server is after each sub-information to be presented adds similarity mark, after also can adding similarity mark Sub-information to be presented be determined as the corresponding information to be presented of preset keyword.
As it can be seen that destination server is determined as presetting by the sub-information to be presented after similarity identifies is added in the present embodiment The corresponding information to be presented of keyword is simultaneously sent to terminal, and in turn, terminal can accurately determine each sub-information to be presented and preset The similarity of keyword, and then according to identified similarity determination and show intended display information, show information flexible Property it is higher, promoted user experience.
It is corresponding with above-mentioned preset keyword to be presented when not finding as a kind of embodiment of the embodiment of the present invention When information, the above method can also include: to send to search failure command to the terminal.
When destination server does not find information to be presented corresponding with above-mentioned preset keyword, in order to inform terminal, with Terminal is set locally to search information to be presented corresponding with above-mentioned preset keyword, server, which can send to search, unsuccessfully to be referred to It enables to terminal.
As it can be seen that destination server, which can be sent, searches failure command to terminal, to inform that terminal is not searched in the present embodiment To information to be presented corresponding with preset keyword, the flexibility for searching information to be presented is improved.
Corresponding to the first above-mentioned information displaying method, the embodiment of the invention also provides a kind of device for displaying information.
A kind of device for displaying information is provided for the embodiments of the invention below to be introduced.
As shown in fig. 6, a kind of device for displaying information, is applied to terminal, described device includes:
Text information obtains module 610, for obtaining the text information shown during instant messaging;
Destination server determining module 620, for when detect in the text information include preset keyword when, according to The corresponding relationship of preset keyword and server determines the corresponding destination server of the preset keyword;
Network request sending module 630, for sending network request to the destination server, wherein the network is asked It asks including the preset keyword;
Information receiving module 640 to be presented is sending with the preset keyword pair for receiving the destination server The information to be presented answered;
Information display module 650, for determining intended display information according to the information to be presented, and according to default template It is shown.
As it can be seen that terminal obtains the text information shown during instant messaging in scheme provided in an embodiment of the present invention, when When detecting in text information including preset keyword, according to the corresponding relationship of preset keyword and server, determine default The corresponding destination server of keyword sends network request to destination server, and it is sending with default pass to receive destination server The corresponding information to be presented of key word determines intended display information according to information to be presented, and is shown according to default template.It can See, when carrying out information inquiry in instant communication process, the information to be presented that terminal can be sent according to destination server is determined Intended display information, and be shown according to default template, instant chat interface is exited without user, is inquired, simplifies and uses Family operation.
As a kind of embodiment of the embodiment of the present invention, as shown in fig. 7, the destination server determining module 620 can To include:
Classification determines submodule 6201, for determining the classification of the preset keyword according to classifying rules is preset;
Destination server determines submodule 6202, for the corresponding relationship according to preset classification and server, determines institute The corresponding server of determining classification, and using identified server as destination server.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 8, described device can also include:
Quantity determining module 660, for determining intended display information according to the information to be presented described, and according to pre- If before template is shown, judging the quantity for the sub-information to be presented that the information to be presented includes;
The information display module 650 may include:
Information shows submodule 6500, for determining intended display information according to the information to be presented and the quantity, And it is shown according to default template.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 9, the information shows that submodule 6500 can wrap It includes:
First object shows information determination unit 6501, for inciting somebody to action when the quantity of the sub-information to be presented is one The sub-information to be presented is determined as intended display information;
First object shows information display unit 6502, for showing the intended display information according to default template.
As a kind of embodiment of the embodiment of the present invention, as shown in Figure 10, the information shows that submodule 6500 can be with Include:
The determination unit that puts in order 6503, for when the quantity of the sub-information to be presented is multiple, determine it is described to Displaying sub-information puts in order with the similarity of the preset keyword, wherein each sub-information to be presented carries phase Know like scale, the similarity identifies the similarity for indicating sub-information to be presented Yu the preset keyword;
Second intended display information determination unit 6504, for putting in order according to, from the sub-information to be presented Middle determining intended display information;
Second intended display information display unit 6505, for showing the intended display information according to default template.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 11, the second intended display information determines single First 6504 may include:
First sub-information to be presented determines subelement 65041, for putting in order according to, the determining and default pass The highest sub-information to be presented of the similarity of key word;
First object shows that information determines subelement 65042, is used for the highest sub- letter to be presented of identified similarity Breath is used as intended display information.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 12, the second intended display information determines single First 6504 may include:
Target array sequence determines subelement 65043, for determining the target array sequence before being arranged in preset order;
Second intended display information determines subelement 65044, for will be to be presented corresponding to the target array sequence Sub-information is determined as intended display information;
The second intended display information display unit 6505 may include:
Intended display information shows subelement 65051, for being opened up according to the target array sequence according to default template Show the intended display information.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 13, described device can also include:
Local searching module 670, for when receiving the lookup failure command that the destination server is sent, in local Search the corresponding information to be presented of the preset keyword;
Display module 680 for determining intended display information according to the information to be presented, and is carried out according to default template It shows.
Corresponding to above-mentioned second of information displaying method, the embodiment of the invention also provides another device for displaying information.
Second of device for displaying information is provided for the embodiments of the invention below to be introduced.
As shown in figure 14, a kind of device for displaying information, is applied to destination server, and described device includes:
Network request receiving module 1410, for receiving the network request of terminal transmission, wherein the network request is institute It states terminal and detects and send when including preset keyword in the text information shown during instant messaging, and the network is asked It asks including preset keyword;
Information searching module 1420 to be presented, for it is corresponding to search the preset keyword according to the preset keyword Information to be presented;
Information sending module 1430 to be presented, for sending the information to be presented to the terminal.
As it can be seen that destination server receives the network request that terminal is sent, then root in scheme provided in an embodiment of the present invention According to preset keyword, the corresponding information to be presented of preset keyword is searched, retransmits information to be presented to terminal.Destination server It can receive the network request that terminal needs send when information inquiry in instant communication process, and send information to be presented To terminal, terminal is allowed to determine intended display information according to the information to be presented that destination server is sent, according to default mould Plate is shown, and is exited instant chat interface without user and is inquired, and user's operation is simplified.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 15, the information searching module 1420 to be presented May include:
Alternate information determines submodule 1421, for determining alternate information, wherein the alternate information are as follows: included The similarity of word content and the preset keyword is not less than the text information of the first preset threshold;
Information to be presented determines submodule 1422, described in being determined from the alternate information according to the similarity The corresponding information to be presented of preset keyword.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 16, the information to be presented determines submodule 1422 may include:
Highest similarity determination unit 14221, for determining the highest similarity in the similarity;
First information determination unit 14222 to be presented, for determining alternate information corresponding to the highest similarity Information to be presented is corresponded to for the preset keyword.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 17, the information to be presented determines submodule 1422 may include:
Sub-information determination unit 14223 to be presented, it is standby corresponding to the similarity of the second preset threshold for that will be not less than Information is selected to be determined as sub-information to be presented;
Similarity identifies adding unit 14224, for adding similarity mark for the sub-information to be presented;
Second information determination unit 14225 to be presented is determined for that will add the sub-information to be presented after similarity identifies For the corresponding information to be presented of the preset keyword.
As a kind of embodiment of the embodiment of the present invention, as shown in figure 18, described device can also include:
Failure command sending module 1440 is searched, for letter to be presented corresponding with the preset keyword ought not found When breath, sends and search failure command to the terminal.
The embodiment of the invention also provides a kind of terminals, as shown in figure 19, including processor 1901, communication interface 1902, Memory 1903 and communication bus 1904, wherein processor 1901, communication interface 1902, memory 1903 pass through communication bus 1904 complete mutual communication,
Memory 1903, for storing computer program;
Processor 1901 when for executing the program stored on memory 1903, realizes following steps:
Obtain the text information shown during instant messaging;
It is corresponding with server according to preset keyword when detecting in the text information includes preset keyword Relationship determines the corresponding destination server of the preset keyword;
Network request is sent to the destination server, wherein the network request includes the preset keyword;
Receive the information to be presented corresponding with the preset keyword that the destination server is sent;
Intended display information is determined according to the information to be presented, and is shown according to default template.
As it can be seen that terminal obtains the text information shown during instant messaging in scheme provided in an embodiment of the present invention, when When detecting in text information including preset keyword, according to the corresponding relationship of preset keyword and server, determine default The corresponding destination server of keyword sends network request to destination server, and it is sending with default pass to receive destination server The corresponding information to be presented of key word determines intended display information according to information to be presented, and is shown according to default template.It can To see, when needing to carry out information inquiry in instant communication process, terminal can send network request to destination server, and according to The information to be presented that destination server is sent determines intended display information, is shown according to default template, exits without user Instant chat interface is inquired, and user's operation is simplified.
The communication bus that above-mentioned terminal is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned terminal and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Wherein, the above-mentioned corresponding relationship according to preset keyword and server determines that the preset keyword is corresponding The step of destination server may include:
According to default classifying rules, the classification of the preset keyword is determined;
According to the corresponding relationship of preset classification and server, determine determined by the corresponding server of classification, and by institute Determining server is as destination server.
Wherein, intended display information is determined according to the information to be presented above-mentioned, and is shown according to default template The step of before, the method can also include:
Judge the quantity for the sub-information to be presented that the information to be presented includes;
It is described that intended display information, and the step of being shown according to default template are determined according to the information to be presented, Include:
Intended display information is determined according to the information to be presented and the quantity, and is shown according to default template.
Wherein, above-mentioned according to the information to be presented and the number when the quantity of the sub-information to be presented is one It measures and determines intended display information, and the step of being shown according to default template, may include:
The sub-information to be presented is determined as intended display information;
According to default template, the intended display information is shown.
Wherein, above-mentioned according to the information to be presented and the number when the quantity of the sub-information to be presented is multiple It measures and determines intended display information, and the step of being shown according to default template, may include:
Determine putting in order for the sub-information to be presented and the similarity of the preset keyword, wherein each described Sub-information to be presented carries similarity mark, and the similarity mark is for indicating sub-information to be presented and the preset keyword Similarity;
It is put in order according to described, intended display information is determined from the sub-information to be presented;
According to default template, the intended display information is shown.
Wherein, above-mentioned to put in order according to, from the sub-information to be presented the step of determining intended display information, Include:
It is put in order according to described, the determining highest sub-information to be presented of similarity with the preset keyword;
Using the highest sub-information to be presented of identified similarity as intended display information.
Wherein, above-mentioned to put in order according to, from the sub-information to be presented the step of determining intended display information, May include:
Determine the target array sequence before being arranged in preset order;
Sub-information to be presented corresponding to the target array sequence is determined as intended display information;
It is above-mentioned according to default template, the step of showing the intended display information, may include:
According to the target array sequence, according to default template, the intended display information is shown.
Wherein, the above method can also include:
When receiving the lookup failure command that the destination server is sent, the preset keyword pair is locally being searched The information to be presented answered;
Intended display information is determined according to the information to be presented, and is shown according to default template.
The embodiment of the invention also provides a kind of servers, as shown in figure 20, including processor 2001, communication interface 2002, memory 2003 and communication bus 2004, wherein processor 2001, communication interface 2002, memory 2003 pass through communication Bus 2004 completes mutual communication,
Memory 2003, for storing computer program;
Processor 2001 when for executing the program stored on memory 2003, realizes following steps:
Receive the network request that terminal is sent, wherein the network request is that the terminal detects instant messaging process It is sent when including preset keyword in the text information of middle display, and the network request includes preset keyword;
According to the preset keyword, the corresponding information to be presented of the preset keyword is searched;
The information to be presented is sent to the terminal.
As it can be seen that in scheme provided in an embodiment of the present invention, the network request that server receiving terminal is sent, then according to pre- If keyword, the corresponding information to be presented of preset keyword is searched, retransmits information to be presented to terminal.Server can receive Terminal needs the network request send when information inquiry in instant communication process, and sends information to be presented to terminal, Allow terminal to determine intended display information according to the information to be presented that destination server is sent, is opened up according to default template Show, exit instant chat interface without user and inquire, simplifies user's operation.
The communication bus that above-mentioned server is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned server and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
Wherein, above-mentioned according to the preset keyword, the step of searching the preset keyword corresponding information to be presented, May include:
Determine alternate information, wherein the alternate information are as follows: the phase of the word content for being included and the preset keyword It is not less than the text information of the first preset threshold like degree;
According to the similarity, the corresponding information to be presented of the preset keyword is determined from the alternate information.
Wherein, above-mentioned according to the similarity, determine that the preset keyword is corresponding wait open up from the alternate information The step of showing information may include:
Determine the highest similarity in the similarity;
Alternate information corresponding to the highest similarity is determined as the preset keyword and corresponds to information to be presented.
Wherein, above-mentioned according to the similarity, determine that the preset keyword is corresponding wait open up from the alternate information The step of showing information may include:
Alternate information corresponding to similarity not less than the second preset threshold is determined as sub-information to be presented;
Similarity mark is added for the sub-information to be presented;
The sub-information to be presented after similarity identifies will be added and be determined as the corresponding information to be presented of the preset keyword.
Wherein, when not finding information to be presented corresponding with the preset keyword, the above method can also include:
It sends and searches failure command to the terminal.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium memory Computer program is contained, the computer program performs the steps of when being executed by processor
Obtain the text information shown during instant messaging;
It is corresponding with server according to preset keyword when detecting in the text information includes preset keyword Relationship determines the corresponding destination server of the preset keyword;
Network request is sent to the destination server, wherein the network request includes the preset keyword;
Receive the information to be presented corresponding with the preset keyword that the destination server is sent;
Intended display information is determined according to the information to be presented, and is shown according to default template.
As it can be seen that when computer program is executed by processor, obtaining instant messaging in scheme provided by the embodiment of the present invention The text information shown in the process, when detecting in text information includes preset keyword, according to preset keyword and clothes The corresponding relationship of business device, determines the corresponding destination server of preset keyword, sends network request to destination server, receives mesh The information to be presented corresponding with preset keyword that server is sent is marked, intended display information is determined according to information to be presented, and It is shown according to default template.As it can be seen that terminal can send network when needing to carry out information inquiry in instant communication process It requests to destination server, and intended display information is determined according to the information to be presented that destination server is sent, according to default mould Plate is shown, and is exited instant chat interface without user and is inquired, and user's operation is simplified.
Wherein, the above-mentioned corresponding relationship according to preset keyword and server determines that the preset keyword is corresponding The step of destination server may include:
According to default classifying rules, the classification of the preset keyword is determined;
According to the corresponding relationship of preset classification and server, determine determined by the corresponding server of classification, and by institute Determining server is as destination server.
Wherein, intended display information is determined according to the information to be presented above-mentioned, and is shown according to default template The step of before, the method can also include:
Judge the quantity for the sub-information to be presented that the information to be presented includes;
It is described that intended display information, and the step of being shown according to default template are determined according to the information to be presented, Include:
Intended display information is determined according to the information to be presented and the quantity, and is shown according to default template.
Wherein, above-mentioned according to the information to be presented and the number when the quantity of the sub-information to be presented is one It measures and determines intended display information, and the step of being shown according to default template, may include:
The sub-information to be presented is determined as intended display information;
According to default template, the intended display information is shown.
Wherein, above-mentioned according to the information to be presented and the number when the quantity of the sub-information to be presented is multiple It measures and determines intended display information, and the step of being shown according to default template, may include:
Determine putting in order for the sub-information to be presented and the similarity of the preset keyword, wherein each described Sub-information to be presented carries similarity mark, and the similarity mark is for indicating sub-information to be presented and the preset keyword Similarity;
It is put in order according to described, intended display information is determined from the sub-information to be presented;
According to default template, the intended display information is shown.
Wherein, above-mentioned to put in order according to, from the sub-information to be presented the step of determining intended display information, Include:
It is put in order according to described, the determining highest sub-information to be presented of similarity with the preset keyword;
Using the highest sub-information to be presented of identified similarity as intended display information.
Wherein, above-mentioned to put in order according to, from the sub-information to be presented the step of determining intended display information, May include:
Determine the target array sequence before being arranged in preset order;
Sub-information to be presented corresponding to the target array sequence is determined as intended display information;
It is above-mentioned according to default template, the step of showing the intended display information, may include:
According to the target array sequence, according to default template, the intended display information is shown.
Wherein, the above method can also include:
When receiving the lookup failure command that the destination server is sent, the preset keyword pair is locally being searched The information to be presented answered;
Intended display information is determined according to the information to be presented, and is shown according to default template.
The embodiment of the invention also provides another computer readable storage medium, in the computer readable storage medium It is stored with computer program, the computer program performs the steps of when being executed by processor
Receive the network request that terminal is sent, wherein the network request is that the terminal detects instant messaging process It is sent when including preset keyword in the text information of middle display, and the network request includes preset keyword;
According to the preset keyword, the corresponding information to be presented of the preset keyword is searched;
The information to be presented is sent to the terminal.
As it can be seen that when computer program is executed by processor, receiving terminal in scheme provided by the embodiment of the present invention and sending Network request search the corresponding information to be presented of preset keyword then according to preset keyword, retransmit information to be presented To terminal.Destination server can receive terminal and the network send when information inquiry needed to ask in instant communication process It asks, and sends information to be presented to terminal, terminal is allowed to determine target according to the information to be presented that destination server is sent It shows information, is shown according to default template, exits instant chat interface without user and inquire, simplify user's operation.
Wherein, above-mentioned according to the preset keyword, the step of searching the preset keyword corresponding information to be presented, May include:
Determine alternate information, wherein the alternate information are as follows: the phase of the word content for being included and the preset keyword It is not less than the text information of the first preset threshold like degree;
According to the similarity, the corresponding information to be presented of the preset keyword is determined from the alternate information.
Wherein, above-mentioned according to the similarity, determine that the preset keyword is corresponding wait open up from the alternate information The step of showing information may include:
Determine the highest similarity in the similarity;
Alternate information corresponding to the highest similarity is determined as the preset keyword and corresponds to information to be presented.
Wherein, above-mentioned according to the similarity, determine that the preset keyword is corresponding wait open up from the alternate information The step of showing information may include:
Alternate information corresponding to similarity not less than the second preset threshold is determined as sub-information to be presented;
Similarity mark is added for the sub-information to be presented;
The sub-information to be presented after similarity identifies will be added and be determined as the corresponding information to be presented of the preset keyword.
Wherein, when not finding information to be presented corresponding with the preset keyword, the above method can also include:
It sends and searches failure command to the terminal.
It should be noted that for above-mentioned apparatus, terminal, server and computer readable storage medium embodiment, Since it is substantially similar to the method embodiment, so being described relatively simple, related place is said referring to the part of embodiment of the method It is bright.
Need further exist for explanation, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of information displaying method, which is characterized in that be applied to terminal, which comprises
Obtain the text information shown during instant messaging;
When detecting in the text information includes preset keyword, closed according to preset keyword is corresponding with server System, determines the corresponding destination server of the preset keyword;
Network request is sent to the destination server, wherein the network request includes the preset keyword;
Receive the information to be presented corresponding with the preset keyword that the destination server is sent;
Intended display information is determined according to the information to be presented, and is shown according to default template.
2. the method as described in claim 1, which is characterized in that described to be closed according to preset keyword is corresponding with server System, the step of determining the preset keyword corresponding destination server, comprising:
According to default classifying rules, the classification of the preset keyword is determined;
According to the corresponding relationship of preset classification and server, the corresponding server of identified classification is determined, and will determine Server as destination server.
3. method according to claim 1 or 2, which is characterized in that determine target exhibition according to the information to be presented described Show information, and before the step of being shown according to default template, the method also includes:
Judge the quantity for the sub-information to be presented that the information to be presented includes;
It is described that intended display information, and the step of being shown according to default template are determined according to the information to be presented, comprising:
Intended display information is determined according to the information to be presented and the quantity, and is shown according to default template.
4. method as claimed in claim 3, which is characterized in that described when the quantity of the sub-information to be presented is one Intended display information, and the step of being shown according to default template are determined according to the information to be presented and the quantity, are wrapped It includes:
The sub-information to be presented is determined as intended display information;
According to default template, the intended display information is shown.
5. method as claimed in claim 3, which is characterized in that described when the quantity of the sub-information to be presented is multiple Intended display information, and the step of being shown according to default template are determined according to the information to be presented and the quantity, are wrapped It includes:
Determine putting in order for the sub-information to be presented and the similarity of the preset keyword, wherein each described wait open up Show that sub-information carries similarity mark, the similarity identifies the phase for indicating sub-information to be presented with the preset keyword Like degree;
It is put in order according to described, intended display information is determined from the sub-information to be presented;
According to default template, the intended display information is shown.
6. method as claimed in claim 5, which is characterized in that it is described to put in order according to, from the sub- letter to be presented The step of intended display information is determined in breath, comprising:
It is put in order according to described, the determining highest sub-information to be presented of similarity with the preset keyword;
Using the highest sub-information to be presented of identified similarity as intended display information.
7. method as claimed in claim 5, which is characterized in that it is described to put in order according to, from the sub- letter to be presented The step of intended display information is determined in breath, comprising:
Determine the target array sequence before being arranged in preset order;
Sub-information to be presented corresponding to the target array sequence is determined as intended display information;
It is described according to default template, the step of showing the intended display information, comprising:
According to the target array sequence, according to default template, the intended display information is shown.
8. the method as described in claim 1, which is characterized in that the method also includes:
When receiving the lookup failure command that the destination server is sent, locally searching, the preset keyword is corresponding Information to be presented;
Intended display information is determined according to the information to be presented, and is shown according to default template.
9. a kind of information displaying method, which is characterized in that be applied to destination server, which comprises
Receive the network request that terminal is sent, wherein the network request is to show during the terminal detects instant messaging It is sent when including preset keyword in the text information shown, and the network request includes preset keyword;
According to the preset keyword, the corresponding information to be presented of the preset keyword is searched;
The information to be presented is sent to the terminal.
10. method as claimed in claim 9, which is characterized in that it is described according to the preset keyword, search the default pass The step of key word corresponding information to be presented, comprising:
Determine alternate information, wherein the alternate information are as follows: the similarity of the word content and the preset keyword that are included Not less than the text information of the first preset threshold;
According to the similarity, the corresponding information to be presented of the preset keyword is determined from the alternate information.
CN201710905424.6A 2017-09-29 2017-09-29 Information display method and device Pending CN109587032A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710905424.6A CN109587032A (en) 2017-09-29 2017-09-29 Information display method and device
PCT/CN2018/089915 WO2019062193A1 (en) 2017-09-29 2018-06-05 Information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710905424.6A CN109587032A (en) 2017-09-29 2017-09-29 Information display method and device

Publications (1)

Publication Number Publication Date
CN109587032A true CN109587032A (en) 2019-04-05

Family

ID=65900483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710905424.6A Pending CN109587032A (en) 2017-09-29 2017-09-29 Information display method and device

Country Status (2)

Country Link
CN (1) CN109587032A (en)
WO (1) WO2019062193A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656677A (en) * 2021-08-24 2021-11-16 北京达佳互联信息技术有限公司 Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN114625465A (en) * 2022-03-14 2022-06-14 网易(杭州)网络有限公司 Text display method and device based on RN assembly, equipment and storage medium
CN116738940A (en) * 2022-09-30 2023-09-12 荣耀终端有限公司 Memorandum storage method and electronic equipment

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928913B (en) * 2019-12-09 2023-10-03 腾讯科技(深圳)有限公司 User display method, device, computer equipment and computer readable storage medium
CN111078345B (en) * 2019-12-18 2023-09-19 北京金山安全软件有限公司 Picture display effect determining method and device, electronic equipment and storage medium
CN111402400A (en) * 2020-03-11 2020-07-10 中煤航测遥感集团有限公司 Pipeline engineering display method, device, equipment and storage medium
CN113761830A (en) * 2020-06-02 2021-12-07 青岛奥利普自动化控制***有限公司 Data display method, device, system and storage medium
CN111768270B (en) * 2020-06-23 2024-06-18 京东科技控股股份有限公司 Target component generation method, device, electronic equipment and computer readable medium
CN112073487B (en) * 2020-08-28 2023-08-01 北京达佳互联信息技术有限公司 Signaling sending and signaling displaying method and device, electronic equipment and storage medium
CN112667120A (en) * 2021-01-22 2021-04-16 百果园技术(新加坡)有限公司 Display method and device of interactive icon and electronic equipment
CN113010805B (en) * 2021-02-23 2023-09-01 腾讯科技(深圳)有限公司 Index data processing method, device, equipment and storage medium
CN113407268B (en) * 2021-05-07 2023-09-01 北京奇艺世纪科技有限公司 Interactive window display method and device, electronic equipment and storage medium
CN114025001A (en) * 2021-10-25 2022-02-08 安庆师范大学 Agent card information transmission control system based on cloud service
CN114124744B (en) * 2021-11-24 2023-06-02 绿盟科技集团股份有限公司 Flow data display method and device, electronic equipment and storage medium
CN114564455B (en) * 2022-02-25 2024-01-19 苏州浪潮智能科技有限公司 Data set display method, device and equipment of distributed system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079894A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A system and method for pushing network information
CN101699805A (en) * 2008-04-23 2010-04-28 北京恒泰实达科技发展有限公司 Method for searching network data index in instant messaging software
CN104142964A (en) * 2013-06-13 2014-11-12 腾讯科技(北京)有限公司 Information matching method and device
CN104917669A (en) * 2015-05-29 2015-09-16 北京搜狗科技发展有限公司 Information processing method and device
CN105791078A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Information presentation method and device
CN106576070A (en) * 2014-07-21 2017-04-19 阿尔卡特朗讯 Chat-based support of communications and related functions
US20170193611A1 (en) * 2015-01-21 2017-07-06 44Lab5, Llc Method and computing system adapted for service auto-response generation based upon social media posting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201434A1 (en) * 2007-02-16 2008-08-21 Microsoft Corporation Context-Sensitive Searches and Functionality for Instant Messaging Applications
CN104346396B (en) * 2013-08-05 2020-08-25 腾讯科技(深圳)有限公司 Data processing method, device, terminal and system for instant messaging client

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079894A (en) * 2006-12-21 2007-11-28 腾讯科技(深圳)有限公司 A system and method for pushing network information
CN101699805A (en) * 2008-04-23 2010-04-28 北京恒泰实达科技发展有限公司 Method for searching network data index in instant messaging software
CN104142964A (en) * 2013-06-13 2014-11-12 腾讯科技(北京)有限公司 Information matching method and device
CN106576070A (en) * 2014-07-21 2017-04-19 阿尔卡特朗讯 Chat-based support of communications and related functions
CN105791078A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Information presentation method and device
US20170193611A1 (en) * 2015-01-21 2017-07-06 44Lab5, Llc Method and computing system adapted for service auto-response generation based upon social media posting
CN104917669A (en) * 2015-05-29 2015-09-16 北京搜狗科技发展有限公司 Information processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656677A (en) * 2021-08-24 2021-11-16 北京达佳互联信息技术有限公司 Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN114625465A (en) * 2022-03-14 2022-06-14 网易(杭州)网络有限公司 Text display method and device based on RN assembly, equipment and storage medium
CN114625465B (en) * 2022-03-14 2023-09-08 网易(杭州)网络有限公司 Text display method and device based on RN (radio network controller) component, equipment and storage medium
CN116738940A (en) * 2022-09-30 2023-09-12 荣耀终端有限公司 Memorandum storage method and electronic equipment
CN116738940B (en) * 2022-09-30 2024-06-11 荣耀终端有限公司 Memorandum storage method and electronic equipment

Also Published As

Publication number Publication date
WO2019062193A1 (en) 2019-04-04

Similar Documents

Publication Publication Date Title
CN109587032A (en) Information display method and device
US7945861B1 (en) Initiating communications with web page visitors and known contacts
CN104850550B (en) A kind of sort method and device of prompting message
US9473427B2 (en) Method and system for delivering reminder information
US9870554B1 (en) Managing documents based on a user's calendar
EP2500854A1 (en) Verifying calendar information with proximate device detection
CN107888703A (en) Information-pushing method, device, server and readable storage medium storing program for executing
CN101535973A (en) Methods and apparatuses for dynamically sharing a portion of a display during a collaboration session
CN102904801B (en) Message prompt method and device
CN101897167A (en) System and method for customized sharing of multimedia content in a communications network
CN107257359A (en) Based on user action operable content is provided to computing device
CN103533152A (en) Short message processing method and system of mobile terminal
US20160299954A1 (en) Processing a search query and ranking results from a database system of a network communication software
US20110047497A1 (en) Method for managing user schedule and device using the same
CN107392653A (en) A kind of electronic business card method for pushing and its device, user terminal
CN111277483B (en) Multi-terminal message synchronization method, server and storage medium
US20070158403A1 (en) Business card information exchange device and method
CN106096902A (en) A kind of Intelligent Establishment method and device of reminder events
CN107370661A (en) Message method, device and electronic equipment based on contacts list
CN105338154A (en) Method, device and terminal for contact person ordering
CN102884521A (en) Data processing device, input assistance method, and program
US8209323B2 (en) Methods and apparatuses for dynamically searching for electronic mail messages
CN101094436A (en) Information inter-transferring intelligent platform
CN115633007A (en) Contact person determination method and device, electronic equipment and medium
CN106998386A (en) The method and its device, user terminal of a kind of newly-increased contact method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190405