CN107784037B - Information processing method and device, and device for information processing - Google Patents

Information processing method and device, and device for information processing Download PDF

Info

Publication number
CN107784037B
CN107784037B CN201610799095.7A CN201610799095A CN107784037B CN 107784037 B CN107784037 B CN 107784037B CN 201610799095 A CN201610799095 A CN 201610799095A CN 107784037 B CN107784037 B CN 107784037B
Authority
CN
China
Prior art keywords
browser
search bar
keywords
keyword
display mode
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.)
Active
Application number
CN201610799095.7A
Other languages
Chinese (zh)
Other versions
CN107784037A (en
Inventor
张邈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201610799095.7A priority Critical patent/CN107784037B/en
Publication of CN107784037A publication Critical patent/CN107784037A/en
Application granted granted Critical
Publication of CN107784037B publication Critical patent/CN107784037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an information processing method, an information processing device and an information processing device, wherein the method specifically comprises the following steps: acquiring keywords from a current webpage displayed by a browser; displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar. The embodiment of the invention can effectively save the operation cost consumed by the user in the information acquisition process and improve the information acquisition efficiency.

Description

Information processing method and device, and device for information processing
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to an information processing method, an information processing apparatus, and an apparatus for information processing.
Background
With the popularization of intelligent terminals such as PCs (Personal computers), mobile phones, tablet computers and the like, more and more users acquire information through the application of the intelligent terminals, taking browsers as an example, which are mainly used for displaying web page contents, wherein the web page contents may include: the method is used for reading contents such as news, articles, electronic books and the like so as to meet the network reading requirements of users.
Currently, reading contents are more in source. Even for the same entertainment event (such as "entertainment event 1") or the same news event (such as "grand poplar 200 m freestyle stroke), different websites or social platforms provide different reading contents many times, so that when a user reads the reading contents of an event through a certain website, the user also needs the reading contents of the event provided by other websites. Or, when the user is browsing and reading the content, there may be a need for detailed information of a part of the content.
The inventor finds that in the process of implementing the invention, in order to meet the information requirements such as the details of different reading contents or partial contents, a user generally needs to copy characters from the reading contents and then paste the characters in a search box of a search engine for searching; alternatively, the user needs to select a Chinese character from the reading content, then click the right button to pop up the menu, and then click the search button in the menu to search. It can be seen that the user needs to spend a large amount of operation cost to implement the information requirement, which undoubtedly affects the information acquisition efficiency.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide an information processing method, an information processing apparatus, and an apparatus for setting item processing that overcome or at least partially solve the foregoing problems, and can effectively save the operation cost consumed by a user in an information acquisition process and improve information acquisition efficiency.
In order to solve the above problem, the present invention discloses an information processing method, comprising:
acquiring keywords from a current webpage displayed by a browser;
displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar.
Optionally, the step of obtaining the keyword from the current webpage displayed by the browser includes:
and extracting keywords from the webpage title and/or the text of the current webpage displayed by the browser.
Optionally, the step of extracting keywords from a webpage title and/or a body of a current webpage displayed by a browser includes:
analyzing the webpage titles of a plurality of webpages loaded by the browser; the plurality of web pages includes: a current web page and web pages other than the current web page;
when the similarity among the webpage titles of the multiple webpages accords with a first preset similarity condition, extracting keywords from the text of the current webpage displayed by the browser;
and when the similarity among the webpage titles of the multiple webpages does not accord with a first preset similarity condition, extracting keywords from the webpage title of the current webpage displayed by the browser.
Optionally, the step of displaying the keyword in a search bar of the browser includes:
and displaying the keywords in a search bar of the browser according to a first preset display mode or a second preset display mode.
Optionally, the step of displaying the keyword in a search bar of the browser according to a first preset display manner includes:
analyzing a plurality of webpages loaded by a browser;
and when the similarity among the multiple webpages does not accord with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a first preset display mode.
Optionally, the step of displaying the keyword in the search bar of the browser according to a second preset display mode includes:
analyzing a plurality of webpages loaded by a browser;
and when the similarity among the multiple webpages accords with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a second preset display mode.
Optionally, the first preset display mode includes: the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar; or
The second preset display mode comprises the following steps: and the normal display mode is used for responding to the trigger operation of the user on the search bar and continuously displaying the keywords in the search bar.
Optionally, the method further comprises:
and stopping the display of the keywords in the search bar in response to the triggering operation of the search bar by the user.
Optionally, the method further comprises:
triggering a search request for the keyword in response to a search triggering operation of the search bar by a user
In another aspect, the present invention discloses an information processing apparatus comprising:
the keyword acquisition module is used for acquiring keywords from a current webpage displayed by the browser; and
and the keyword display module is used for displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar.
In yet another aspect, an apparatus for setting a process includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
acquiring keywords from a current webpage displayed by a browser;
displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar.
The embodiment of the invention has the following advantages:
the embodiment of the invention can display the keywords of the current webpage in the search bar of the browser in real time, so that a user can directly trigger the search request for the keywords through the search bar; compared with the prior art, the method and the device for searching the web page have the advantages that characters are copied from the web page and pasted in the search box of the search engine for searching, or compared with the prior art, characters are selected from the web page, then the right key is clicked to pop up the menu, and the search button in the menu is clicked for searching, due to the fact that the method and the device for searching the web page can save operation of editing the characters, operation cost consumed by a user in the information obtaining process can be effectively saved, and information obtaining efficiency is improved.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of a method of information processing of the present invention;
FIG. 2 is a block diagram of an embodiment of an information processing apparatus according to the present invention;
FIG. 3 is a block diagram of an apparatus 900 for information processing of the present invention; and
fig. 4 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
According to the embodiment of the invention, when the browser displays the current webpage, the keyword can be automatically acquired from the current webpage and displayed in the search bar of the browser, namely, the keyword of the current webpage can be displayed in the search bar of the browser in real time, so that a user can directly trigger a search request for the keyword through the search bar; compared with the prior art, the method and the device for searching the web page have the advantages that characters are copied from the web page and pasted in the search box of the search engine for searching, or compared with the prior art, characters are selected from the web page, then the right key is clicked to pop up the menu, and the search button in the menu is clicked for searching, due to the fact that the method and the device for searching the web page can save operation of editing the characters, operation cost consumed by a user in the information obtaining process can be effectively saved, and information obtaining efficiency is improved.
Method embodiment
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an information processing method according to the present invention is shown, which may specifically include the following steps:
step 101, acquiring keywords from a current webpage displayed by a browser;
and 102, displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar.
The information processing method provided by the embodiment of the invention can be applied to an APP (Application program) with a webpage display function and a search bar function, such as a browser. The information processing method provided by the embodiment of the invention can be applied to application environments corresponding to the client and the server, wherein the client and the server can be positioned in a wired or wireless network, and the client and the server perform data interaction through the wired or wireless network.
Specifically, the client may run on an intelligent terminal, and the intelligent terminal may specifically include but is not limited to: smart phones, tablet computers, electronic book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
In practical application, after each webpage is newly opened by the browser and the current webpage browsed by the user in real time, the embodiment of the invention can take the webpage as the current webpage and display the keywords of the current webpage in the search bar of the browser in real time.
For example, when a plurality of web pages are opened simultaneously through a tab browser, a window of the tab browser may include a toolbar and a tab bar, where the toolbar is generally located at the top of the browser and is used to provide an operation interface for presetting functions, where the operation interface may specifically include: the search bar and the corresponding search button thereof are used for realizing the corresponding search function; the tab bar may be located at the lower portion of the toolbar, and the tab bar provides an operation area for managing different web pages for the user, and the tab bar may be used for placing all tab pages displayed by the browser. Therefore, after each tab page is newly opened by the browser, the embodiment of the invention can take the tab page as the current webpage and display the keywords of the current webpage in the search bar at the top of the browser in real time. Of course, the location of the search bar on the top of the window of the tab browser is only an alternative embodiment, and in fact, the embodiment of the present invention does not limit the specific location of the search bar in the window of the browser.
In an application example of the present invention, assuming that a user opens a plurality of tab pages sequentially through a browser, assuming that one tab page is a news web page related to "grand poplar crow capture", and the other tab page is a microblog web page related to "entertainment event 1", an embodiment of the present invention may display a keyword (e.g., "grand poplar crow capture" or the like) of the news web page in a search bar when displaying the news web page, so that the user may obtain more information related to "grand poplar crow capture" through searching; or, in the embodiment of the present invention, when the microblog webpage is displayed, the keyword of the news webpage (for example, "keyword of entertainment event 1" or the like) may be displayed in the search bar, so that the user may obtain more information about the "keyword of entertainment event 1" through searching, that is, the keyword in the search bar of the browser in the embodiment of the present invention may change with the change of the current webpage.
In the embodiment of the invention, the keywords of the current webpage can be used for representing words which play a role in summarizing or representing the current webpage. Alternatively, step 101 may extract keywords from the web page title and/or body of the current web page displayed by the browser. The keywords extracted from the web page title of the current web page can have high accuracy, and the keywords extracted from the text of the current web page can reflect specific detail problems. For example, assuming that the webpage title of the current webpage is "entertainment event 1 has new progress", the "keyword of entertainment event 1" can be extracted therefrom as the keyword; for another example, if the webpage title of the current webpage is "grandson takes crown in 200 m freestyle swimming", in addition to extracting "grandson takes crown" as a keyword from the webpage title, it is also possible to extract "olympic games" as a keyword from the text. It is to be understood that, in addition to extracting keywords from the title and/or the text of the web page, keywords may also be extracted from the comment content of the current web page, and the extraction scope of the keywords is not limited by the embodiment of the present invention.
In practical application, any keyword extraction method can be adopted to extract keywords from the text of the current webpage. For example, the keyword extraction method may specifically include: TF (Term Frequency), TFIDF (Term Frequency-inverse file Frequency), information theory (e.g., automatically extracting keywords based on a maximum entropy model), machine learning (e.g., based on a decision tree or na iotave bayes); natural language processing (e.g., semantic similarity measurement based on words), etc., and the specific keyword extraction method is not limited in the embodiments of the present invention.
In an optional embodiment of the present invention, two schemes corresponding to extracting keywords from a web page title or a text may be selected based on analyzing web page titles of multiple web pages loaded by a browser. Accordingly, the step of extracting the keyword from the web page title and/or the text of the current web page displayed by the browser may specifically include:
step A1, analyzing the web page titles of a plurality of web pages loaded by a browser; the plurality of web pages may specifically include: a current web page and web pages other than the current web page; the loading time of the current webpage and the webpage other than the current webpage may be any, that is, the loading time of the current webpage may be earlier than the loading time of the webpage other than the current webpage, but after reading the webpage other than the current webpage, the user reads the current webpage again.
A2, when the similarity between the web page titles of the multiple web pages meets a first preset similarity condition, extracting keywords from the text of the current web page displayed by the browser;
and step A3, when the similarity between the web page titles of the multiple web pages does not accord with a first preset similarity condition, extracting keywords from the web page title of the current web page displayed by the browser.
Under the condition that the browser loads a plurality of webpages, the fact that the user has read the contents of the plurality of webpages is described, in this case, the similarity among the webpage titles of the plurality of webpages can be analyzed, and if the similarity among the webpage titles of the plurality of webpages meets a first preset similarity condition, the fact that the plurality of webpages read by the user are consistent in the aspect of the webpage titles is described, so that keywords can be extracted from the text of the current webpage displayed by the browser to further mine the keywords capable of reflecting the information requirements of the user. The first preset similarity condition may be determined according to a time application requirement, and for example, the first preset similarity condition may be: the similarity is greater than a first threshold, and the first threshold may be any value such as 85%. In an application example of the present invention, assuming that a user is interested in "entertainment event 1", and thus a plurality of webpages related to "entertainment event 1" are opened and read through a browser, keywords (such as "keyword 3 of entertainment event 1", "keyword 4 of entertainment event 1") and the like can be extracted from the text of the current webpage displayed by the browser in the case that the webpage titles (such as keywords all related to "keyword 1 of entertainment event 1", "keyword 2 of entertainment event 1" and the like) of the plurality of webpages coincide, wherein "keyword 3 of entertainment event 1", "keyword 4 of entertainment event 1" may be the same as or different from "keyword 1 of entertainment event 1", "keyword 2 of entertainment event 1" to make the user know detailed information about "entertainment event 1".
In addition, when the similarity among the webpage titles of the multiple webpages does not accord with the first preset similarity condition, the fact that the webpage titles of the multiple webpages read by the user are inconsistent is indicated, and therefore keywords can be extracted from the webpage titles of the current webpages displayed by the browser, and accuracy of the keywords is guaranteed.
It should be noted that the number of the web pages corresponding to the multiple web pages may be greater than or equal to 2, that is, when the number of the web pages loaded by the browser is greater than or equal to 2, the execution of the step a1 may be triggered, and of course, the specific triggering condition of the step a1 is not limited in the embodiment of the present invention.
Step 102 may display the keyword in a search bar of the browser, so that a user triggers a search request for the keyword through the search bar. Further, a search request for a keyword may be triggered in response to a search triggering operation of the search bar by a user. A search button may be provided in the vicinity of the search bar, so that the user may generate the search trigger operation through the search button. Optionally, the process of triggering the search request for the keyword may include: and sending a search request for the keyword to a preset search engine, and after receiving a search result returned by the preset search engine or a preset platform, opening a new webpage to display the search result through the new webpage. The preset search engine or the preset platform may be set by a user through a browser, for example, the preset search engine may be a dog search engine, and the preset platform may be known and the like.
In an optional embodiment of the present invention, the step of displaying the keyword in a search bar of the browser may specifically include: and displaying the keywords in a search bar of the browser according to a first preset display mode or a second preset display mode.
Optionally, the first preset display mode may specifically include: the abnormal display mode, the second preset display mode may specifically include: normal display mode. The normal display mode is also a default display mode adopted by the browser, and is generally a display mode in which the font or color of the keyword is normal and the keyword does not have an identifier.
In practical application, the abnormal display mode can remind the user that the automatically acquired keywords are displayed under the condition. The abnormal display mode can mark the font or color of the keyword; for example, the font of the target candidate may be bolded, underlined, tilted, stereoscopically rendered, grayed, and the like, which can improve the recognition of the keyword with respect to the normal font or the normal color keyword. Alternatively, the abnormal display mode may also display the identifier of the keyword while displaying the keyword, for example, the identifier such as "automatic" may be displayed at a position around the superscript or the like of the keyword, and it is understood that the specific position of the identifier is not limited in this embodiment of the application.
In another optional embodiment of the present invention, when the first preset display mode is adopted, the method may further include: and stopping the display of the keywords in the search bar in response to the triggering operation of the user on the search bar, namely, enabling the existing keywords in the search bar to disappear. The triggering operation may be an operation such as a click on a search bar by a user, and in this case, the triggering operation may indicate that: the keyword displayed in the search bar does not meet the information requirement of the user, so that the user has the intention of editing the keyword, for example, in the case that the user is not satisfied with the existing keyword displayed in the search bar, the existing keyword needs to be deleted by backspace or the like, and then a new keyword is input again by keyboard, voice or the like. After the optional embodiment receives the trigger operation, the display of the keyword in the search bar is stopped, so that the operation cost for a user to delete the existing keyword can be effectively saved.
In another optional embodiment of the present invention, the method may further comprise: and displaying a recommendation button in the search box, and displaying a recommendation search word corresponding to the keyword when receiving a trigger operation of a user on the recommendation button. The recommended search word may be a popular search word of the same category as the keyword, and the historical search words of the users over the internet may be analyzed to obtain a mapping relationship between the search word and the recommended search word, for example, the mapping relationship may be between "star 1" and "entertainment event 1" or "star 1 star 2" or "star 2", and the mapping relationship may be between "grand poplar 200 m" and "grand poplar about olympic games" or "inner olympic games swimming". In summary, the optional embodiment may directly use the recommended search term for searching under the condition that the user inputs the search term less, so that the information acquisition efficiency may be improved.
In still another optional embodiment of the present invention, on the basis of analyzing a plurality of webpages loaded by a browser, it may be identified whether a user has a search intention in a process of browsing a current webpage, and if not, the keyword may be displayed in a search bar of the browser according to a first preset display manner, so as to save an operation cost required by the user to delete the existing keyword. Correspondingly, the step of displaying the keyword in the search bar of the browser according to the first preset display mode may specifically include:
b1, analyzing a plurality of web pages loaded by the browser;
and step B2, when the similarity among the multiple webpages does not accord with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a first preset display mode.
In this optional embodiment, when the user continuously reads a plurality of webpages and a certain similarity exists between the key contents of the plurality of webpages, it can be considered that a search requirement exists for the similar key contents, and therefore, the display of the keyword can be performed according to a normal display mode, so that the user directly triggers the search requirement for the keyword. On the contrary, if the similarity between the key contents of the multiple webpages is poor, it can be considered that the user does not have a clear search requirement, and therefore the keywords can be displayed in an abnormal display mode.
An example of calculating the similarity between multiple web pages is provided, in which a plurality of corresponding keywords may be extracted from texts and/or web page titles of multiple web pages, respectively, and then the similarity between the keywords of two web pages may be calculated. The process of extracting the keywords from the text of the webpage may include: the method comprises the steps of segmenting words of a text of a webpage, removing stop-words to obtain candidate keywords, extracting the characteristics of the candidate keywords, scoring the candidate keywords through a set rule or an artificial intelligence mode, setting a threshold value or extracting the first N candidate keywords with higher scores to extract the keywords. Further, the second preset similarity condition may be that the similarity between the multiple webpages exceeds a second threshold, and the second threshold may be determined by those skilled in the art according to practical application requirements.
In another optional embodiment of the present invention, on the basis of analyzing a plurality of webpages loaded by a browser, it may be identified whether a user has a search intention in a process of browsing a current webpage, and if so, the keyword may be displayed in a search bar of the browser according to a second preset display manner. Correspondingly, the step of displaying the keyword in the search bar of the browser according to the second preset display mode may further include: analyzing a plurality of webpages loaded by a browser; and when the similarity among the multiple webpages accords with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a second preset display mode.
It should be noted that, the normal display mode and the abnormal display mode may both implement a search trigger operation on the search bar, and further trigger a search request for the keyword, and the difference between the two modes is that: when an abnormal display mode is adopted, if the triggering operation of the user on the search bar is received, the display of the keywords in the search bar can be stopped, namely the existing keywords in the search bar can disappear, and in this case, the cost of the user on the deleting operation of the existing keywords can be saved; and when a normal display mode is adopted, if the triggering operation of the user on the search bar is received, the keywords can be continuously displayed in the search bar, and in this case, the user can realize the editing of the existing keywords in a manual mode.
In summary, the information processing method of the embodiment of the present invention can display the keyword of the current webpage in the search bar of the browser in real time, so that the user can directly trigger the search request for the keyword through the search bar; compared with the prior art, the method and the device for searching the web page have the advantages that characters are copied from the web page and pasted in the search box of the search engine for searching, or compared with the prior art, characters are selected from the web page, then the right key is clicked to pop up the menu, and the search button in the menu is clicked for searching, due to the fact that the method and the device for searching the web page can save operation of editing the characters, operation cost consumed by a user in the information obtaining process can be effectively saved, and information obtaining efficiency is improved.
Particularly, for the text with links in the web page, the difficulty of copying is large, for example, in the case of pressing the left button of the mouse, the mouse cursor is required to slide on the text to be copied, and then the right button of the mouse is pressed to pop up a menu containing the copy; the embodiment of the invention can save the operation of copying characters, thereby greatly improving the information acquisition efficiency.
It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the present invention is not limited by the described motion sequences, because some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 2, a block diagram of an embodiment of an information processing apparatus according to the present invention is shown, and may specifically include the following modules:
a keyword obtaining module 201, configured to obtain a keyword from a current webpage displayed by a browser; and
a keyword display module 202, configured to display the keyword in a search bar of the browser, so that a user triggers a search request for the keyword through the search bar. .
In an optional embodiment of the present invention, the keyword obtaining module 201 may specifically include:
and the extraction sub-module is used for extracting the keywords from the webpage title and/or the text of the current webpage displayed by the browser.
In another optional embodiment of the present invention, the extracting sub-module may specifically include:
the first analysis unit is used for analyzing the webpage titles of a plurality of webpages loaded by the browser; the plurality of web pages may specifically include: a current web page and web pages other than the current web page;
the first extraction unit is used for extracting keywords from the text of the current webpage displayed by the browser when the similarity among the webpage titles of the webpages accords with a first preset similarity condition;
and the second extraction unit is used for extracting the keywords from the webpage titles of the current webpage displayed by the browser when the similarity among the webpage titles of the plurality of webpages does not accord with the first preset similarity condition.
In yet another optional embodiment of the present invention, the keyword displaying module 202 may specifically include:
the first display sub-module is used for displaying the keywords in a search bar of the browser according to a first preset display mode; or
And the second display sub-module is used for displaying the keywords in the search bar of the browser according to a second preset display mode.
In another optional embodiment of the present invention, the first display sub-module may specifically include:
the second analysis unit is used for analyzing a plurality of webpages loaded by the browser;
and the first display unit is used for displaying the keywords in a search bar of the browser according to a first preset display mode when the similarity among the webpages does not accord with a second preset similarity condition.
Optionally, the second display sub-module may include:
the second analysis unit is used for analyzing a plurality of webpages loaded by the browser;
and the second display unit is used for displaying the keywords in a search bar of the browser according to a second preset display mode when the similarity among the webpages accords with a second preset similarity condition.
Optionally, the first preset display mode may specifically include: the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar; or
The second preset display mode may specifically include: and the normal display mode is used for responding to the trigger operation of the user on the search bar and continuously displaying the keywords in the search bar.
Optionally, the apparatus may further include:
and the display stopping module is used for stopping the display of the keywords in the search bar in response to the triggering operation of the user on the search bar.
Optionally, the apparatus may further include:
and the request triggering module is used for responding to the search triggering operation of the user on the search bar and triggering the search request of the keyword.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 3 is a block diagram illustrating an apparatus 900 for setting item processing according to an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide motion action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a server, enable the processor to perform a method of information processing, the method comprising: acquiring keywords from a current webpage displayed by a browser; displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar.
Fig. 4 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The above detailed description is provided for an information processing method, an information processing apparatus and an information processing apparatus according to the present invention, and the principle and the implementation of the present invention are explained by applying specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (19)

1. An information processing method characterized by comprising:
automatically acquiring keywords from a current webpage displayed by a browser in a keyword extraction mode, wherein the keyword extraction mode comprises the following steps: one or more of TF, TFIDF, information theory, machine learning, natural language processing;
displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar;
the step of obtaining keywords from the current webpage displayed by the browser comprises the following steps:
analyzing the webpage titles of a plurality of webpages loaded by the browser; the plurality of web pages includes: a current web page and web pages other than the current web page;
when the similarity among the webpage titles of the multiple webpages accords with a first preset similarity condition, extracting keywords from the text of the current webpage displayed by the browser;
when the similarity among the webpage titles of the multiple webpages does not accord with a first preset similarity condition, extracting keywords from the webpage title of the current webpage displayed by the browser;
displaying the keyword in a search bar of the browser comprises:
analyzing a plurality of webpages loaded by a browser;
when the similarity among the multiple webpages does not accord with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a first preset display mode; the first preset display mode comprises the following steps: and the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar.
2. The method of claim 1, wherein the step of displaying the keyword in a search bar of the browser comprises:
and displaying the keywords in a search bar of the browser according to a first preset display mode or a second preset display mode.
3. The method of claim 2, wherein the step of displaying the keyword in a search bar of the browser according to a second preset display mode comprises:
analyzing a plurality of webpages loaded by a browser;
and when the similarity among the multiple webpages accords with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a second preset display mode.
4. The method of claim 3, wherein the first preset display mode comprises: the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar;
the second preset display mode comprises the following steps: and the normal display mode is used for responding to the trigger operation of the user on the search bar and continuously displaying the keywords in the search bar.
5. The method according to any one of claims 1 to 4, further comprising:
and stopping the display of the keywords in the search bar in response to the triggering operation of the search bar by the user.
6. The method according to any one of claims 1 to 4, further comprising:
and triggering a search request for the keyword in response to a search triggering operation of the search bar by the user.
7. An information processing apparatus characterized by comprising:
the keyword acquisition module is used for automatically acquiring keywords from a current webpage displayed by a browser in a keyword extraction mode, wherein the keyword extraction mode comprises the following steps: one or more of TF, TFIDF, information theory, machine learning, natural language processing; and
the keyword display module is used for displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar;
the keyword acquisition module includes:
the first analysis unit is used for analyzing the webpage titles of a plurality of webpages loaded by the browser; the plurality of web pages includes: a current web page and web pages other than the current web page;
the first extraction unit is used for extracting keywords from the text of the current webpage displayed by the browser when the similarity among the webpage titles of the webpages accords with a first preset similarity condition;
the second extraction unit is used for extracting keywords from the webpage titles of the current webpage displayed by the browser when the similarity among the webpage titles of the plurality of webpages does not accord with a first preset similarity condition;
the keyword display module further comprises:
the second analysis unit is used for analyzing a plurality of webpages loaded by the browser;
a first display unit, configured to, when the similarity between the multiple webpages does not meet a second preset similarity condition, display the keyword in a search bar of the browser according to a first preset display manner, where the first preset display manner includes: and the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar.
8. The apparatus of claim 7, wherein the keyword display module comprises:
the first display sub-module is used for displaying the keywords in a search bar of the browser according to a first preset display mode; or
And the second display sub-module is used for displaying the keywords in the search bar of the browser according to a second preset display mode.
9. The apparatus of claim 8, wherein the second display sub-module comprises:
the second analysis unit is used for analyzing a plurality of webpages loaded by the browser;
and the second display unit is used for displaying the keywords in a search bar of the browser according to a second preset display mode when the similarity among the webpages accords with a second preset similarity condition.
10. The apparatus of claim 8, wherein the first preset display mode comprises: the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar; or
The second preset display mode comprises the following steps: and the normal display mode is used for responding to the trigger operation of the user on the search bar and continuously displaying the keywords in the search bar.
11. The apparatus of any of claims 7 to 10, further comprising:
and the display stopping module is used for stopping the display of the keywords in the search bar in response to the triggering operation of the user on the search bar.
12. The apparatus of any of claims 7 to 10, further comprising:
and the request triggering module is used for responding to the search triggering operation of the user on the search bar and triggering the search request of the keyword.
13. An apparatus for information processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
automatically acquiring keywords from a current webpage displayed by a browser in a keyword extraction mode, wherein the keyword extraction mode comprises the following steps: one or more of TF, TFIDF, information theory, machine learning, natural language processing;
displaying the keyword in a search bar of the browser so that a user triggers a search request for the keyword through the search bar;
the method for acquiring the keywords from the current webpage displayed by the browser comprises the following steps:
analyzing the webpage titles of a plurality of webpages loaded by the browser; the plurality of web pages includes: a current web page and web pages other than the current web page;
when the similarity among the webpage titles of the multiple webpages accords with a first preset similarity condition, extracting keywords from the text of the current webpage displayed by the browser;
when the similarity among the webpage titles of the multiple webpages does not accord with a first preset similarity condition, extracting keywords from the webpage title of the current webpage displayed by the browser;
displaying the keyword in a search bar of the browser comprises:
analyzing a plurality of webpages loaded by a browser;
when the similarity among the multiple webpages does not accord with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a first preset display mode; the first preset display mode comprises the following steps: and the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar.
14. The apparatus of claim 13, wherein the displaying the keyword in a search bar of the browser comprises:
and displaying the keywords in a search bar of the browser according to a first preset display mode or a second preset display mode.
15. The apparatus of claim 14, wherein the displaying the keyword in a search bar of the browser according to a second preset display mode comprises:
analyzing a plurality of webpages loaded by a browser;
and when the similarity among the multiple webpages accords with a second preset similarity condition, displaying the keywords in a search bar of the browser according to a second preset display mode.
16. The apparatus of claim 14, wherein the first preset display mode comprises: the abnormal display mode is used for responding to the triggering operation of the user on the search bar and stopping the display of the keywords in the search bar;
the second preset display mode comprises the following steps: and the normal display mode is used for responding to the trigger operation of the user on the search bar and continuously displaying the keywords in the search bar.
17. The apparatus of any of claims 13-16, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes instructions for:
and stopping the display of the keywords in the search bar in response to the triggering operation of the search bar by the user.
18. The apparatus of any of claims 13-16, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes instructions for:
and triggering a search request for the keyword in response to a search triggering operation of the search bar by the user.
19. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform the method of one or more of claims 1-7.
CN201610799095.7A 2016-08-31 2016-08-31 Information processing method and device, and device for information processing Active CN107784037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610799095.7A CN107784037B (en) 2016-08-31 2016-08-31 Information processing method and device, and device for information processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610799095.7A CN107784037B (en) 2016-08-31 2016-08-31 Information processing method and device, and device for information processing

Publications (2)

Publication Number Publication Date
CN107784037A CN107784037A (en) 2018-03-09
CN107784037B true CN107784037B (en) 2022-02-01

Family

ID=61451754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610799095.7A Active CN107784037B (en) 2016-08-31 2016-08-31 Information processing method and device, and device for information processing

Country Status (1)

Country Link
CN (1) CN107784037B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408618B (en) * 2018-09-27 2020-11-17 北京字节跳动网络技术有限公司 Keyword recommendation method and device, storage medium and electronic equipment
CN109379415B (en) * 2018-09-28 2021-09-28 珠海豹趣科技有限公司 News pushing method, device, terminal and computer readable medium
CN110909245A (en) * 2019-11-29 2020-03-24 北京函子科技有限公司 Multi-label webpage searching method, browser, server and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693304A (en) * 2012-05-22 2012-09-26 北京邮电大学 Search engine feedback information processing method and search engine
CN102929954A (en) * 2012-10-08 2013-02-13 北京百度网讯科技有限公司 Method and device for controlling content displaying of search frame
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN103324739A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Control method and device for search bar in browser and client
CN104462060A (en) * 2014-12-03 2015-03-25 百度在线网络技术(北京)有限公司 Method and device for calculating text similarity and realizing search processing through computer
CN104881458A (en) * 2015-05-22 2015-09-02 国家计算机网络与信息安全管理中心 Labeling method and device for web page topics
CN105045935A (en) * 2015-09-09 2015-11-11 北京奇虎科技有限公司 Method for recommending position information and electronic equipment
CN105260383A (en) * 2015-09-09 2016-01-20 北京奇虎科技有限公司 Processing method for showing webpage image information and electronic equipment for showing webpage image information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201624320A (en) * 2014-12-30 2016-07-01 富智康(香港)有限公司 System and method for searching video clips of a video file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693304A (en) * 2012-05-22 2012-09-26 北京邮电大学 Search engine feedback information processing method and search engine
CN102929924A (en) * 2012-09-20 2013-02-13 百度在线网络技术(北京)有限公司 Method and device for generating word selecting searching result based on browsing content
CN102929954A (en) * 2012-10-08 2013-02-13 北京百度网讯科技有限公司 Method and device for controlling content displaying of search frame
CN103324739A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Control method and device for search bar in browser and client
CN104462060A (en) * 2014-12-03 2015-03-25 百度在线网络技术(北京)有限公司 Method and device for calculating text similarity and realizing search processing through computer
CN104881458A (en) * 2015-05-22 2015-09-02 国家计算机网络与信息安全管理中心 Labeling method and device for web page topics
CN105045935A (en) * 2015-09-09 2015-11-11 北京奇虎科技有限公司 Method for recommending position information and electronic equipment
CN105260383A (en) * 2015-09-09 2016-01-20 北京奇虎科技有限公司 Processing method for showing webpage image information and electronic equipment for showing webpage image information

Also Published As

Publication number Publication date
CN107784037A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
CN107153541B (en) Browsing interaction processing method and device
CN110222256B (en) Information recommendation method and device and information recommendation device
CN108304412B (en) Cross-language search method and device for cross-language search
CN110019675B (en) Keyword extraction method and device
CN111382339B (en) Search processing method and device for search processing
CN111708943B (en) Search result display method and device for displaying search result
CN107515870B (en) Searching method and device and searching device
CN110110207B (en) Information recommendation method and device and electronic equipment
CN106919642B (en) Cross-language search method and device for cross-language search
CN107784037B (en) Information processing method and device, and device for information processing
CN108874758B (en) Note processing method and device, and device for note processing
CN112667124A (en) Information processing method and device and information processing device
CN107301188B (en) Method for acquiring user interest and electronic equipment
CN112181228A (en) Display method and device for displaying
CN113221030A (en) Recommendation method, device and medium
CN114610163A (en) Recommendation method, apparatus and medium
CN112905023A (en) Input error correction method and device for input error correction
CN110929122A (en) Data processing method and device and data processing device
CN112306252A (en) Data processing method and device and data processing device
CN110633399A (en) Data processing method and device and data processing device
CN112905079B (en) Data processing method, device and medium
CN110716653B (en) Method and device for determining association source
CN112596646B (en) Information display method and device and electronic equipment
CN108509058B (en) Input method and related equipment
CN112818211A (en) Data processing method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant