CN108038172B - Search method and device based on artificial intelligence - Google Patents

Search method and device based on artificial intelligence Download PDF

Info

Publication number
CN108038172B
CN108038172B CN201711285385.0A CN201711285385A CN108038172B CN 108038172 B CN108038172 B CN 108038172B CN 201711285385 A CN201711285385 A CN 201711285385A CN 108038172 B CN108038172 B CN 108038172B
Authority
CN
China
Prior art keywords
information
search
category
identification
keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711285385.0A
Other languages
Chinese (zh)
Other versions
CN108038172A (en
Inventor
杨天行
伍志鹏
施文祥
王志华
赵程缘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201711285385.0A priority Critical patent/CN108038172B/en
Publication of CN108038172A publication Critical patent/CN108038172A/en
Application granted granted Critical
Publication of CN108038172B publication Critical patent/CN108038172B/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/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/735Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a search method and a search device based on artificial intelligence. One embodiment of the method comprises: receiving information for searching including role information input by a user; analyzing the information for searching, and determining a searching category to which the information for searching belongs, wherein the searching category is indicated by a searching category identifier in a preset searching category identifier set, the searching category identifier has a corresponding information set, and the information in the information set comprises first character information and associated information of the first character information; searching target information in an information set corresponding to a search category identification of a search category to which the information for search belongs, wherein the target information is information that the included first role information is matched with the role information; and determining a search result based on the associated information of the first role information in the target information, and presenting the search result to the user. This embodiment improves the degree of association between the search result and the information for search.

Description

Search method and device based on artificial intelligence
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of internet, and particularly relates to a searching method and device based on artificial intelligence.
Background
Artificial Intelligence (Artificial Intelligence), abbreviated in english as AI. The method is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence, a field of research that includes robotics, language recognition, image recognition, natural language processing, and expert systems, among others.
At present, after the movie work releases the information of the cast, there are usually many searching behaviors concentrated on the actor performers, the exhibition relations, and the roles, such as which star the performer of a certain role is, or which movie work a certain role appears in, etc. For such a search scenario, the existing search method usually calculates the similarity between the search term and the documents in the document set, and presents the documents with higher similarity as the search result, which usually cannot meet the search requirement of the user.
Disclosure of Invention
The embodiment of the application provides a search method and a search device based on artificial intelligence.
In a first aspect, an embodiment of the present application provides a search method based on artificial intelligence, where the method includes: receiving information for searching including role information input by a user; analyzing the information for searching, and determining a search category to which the information for searching belongs, wherein the search category is indicated by a search category identifier in a preset search category identifier set, the search category identifier has a corresponding information set, and the information in the information set comprises first character information and associated information of the first character information; searching target information in an information set corresponding to a search category identification of a search category to which the search information belongs, wherein the target information is information that the included first role information matches with the role information; and determining a search result based on the associated information of the first role information in the target information, and presenting the search result to the user.
In some embodiments, the search category identification is associated with a preset information presentation template; and the presenting of the search results to the user comprises: and presenting the search result to the user by using the information display template related to the search category identification of the search category to which the search information belongs.
In some embodiments, the search category identification also has a corresponding set of word category identification sequences; and analyzing the search information to determine a search type to which the search information belongs, the method including: extracting keywords from the search information to generate a keyword sequence; analyzing the keywords in the keyword sequence to determine the word categories to which the keywords belong; and for each search category identification in the search category identification set, determining whether a target word category identification sequence matched with the keyword sequence exists in the word category identification sequence set corresponding to the search category identification based on the word category to which the keyword in the keyword sequence belongs, and if so, determining the search category indicated by the search category identification as the search category to which the search information belongs.
In some embodiments, the word category identifier in any word category identifier sequence is included in a preset word category identifier set, and each word category identifier in the word category identifier set has a corresponding keyword set; analyzing the keywords in the keyword sequence to determine the word class to which the keywords belong, including: for each keyword in the keyword sequence, searching a target keyword matched with the keyword in a keyword set corresponding to the word category identifier in the word category identifier set, and if the target keyword is found, determining the word category indicated by the word category identifier as the word category to which the keyword belongs.
In some embodiments, the set of search category identifications includes a first search category identification indicating a search category for indicating that actor information is searched according to the role information and a second search category identification indicating a search category for indicating that episode information is searched according to the role information, wherein an episode indicated by the episode information includes at least one of: drama and movie.
In some embodiments, the first role information included in the information in any one information set includes a role name and/or a role alias; for each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information includes at least one of the following actors casting the character indicated by the first character information: the system comprises information of a performance relationship, names, pictures, identification information and personal introduction, wherein the identification information is provided with a corresponding Uniform Resource Locator (URL), and the page pointed by the URL displays the personal information of the actor; for each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information includes at least one of the following episodes corresponding to the character indicated by the first character information: the system comprises an episode name, identification information and an episode introduction, wherein the identification information has a corresponding URL, and the page pointed by the URL displays the information of the episode.
In some embodiments, the determining the search result based on the associated information of the first character information in the target information includes: and extracting information from the related information of the first character information in the target information, and taking the extracted information and the URL corresponding to the identification information in the target information as a search result.
In a second aspect, an embodiment of the present application provides an artificial intelligence based search apparatus, including: a receiving unit configured to receive information for search including character information input by a user; a determining unit, configured to analyze the information for search and determine a search category to which the information for search belongs, where the search category is a search category indicated by a search category identifier in a preset search category identifier set, the search category identifier has a corresponding information set, and information in the information set includes first character information and associated information of the first character information; a searching unit configured to search target information in an information set corresponding to a search category identifier of a search category to which the search information belongs, wherein the target information is information in which included first role information matches the role information; and the presentation unit is configured to determine a search result based on the associated information of the first role information in the target information and present the search result to the user.
In some embodiments, the search category identification is associated with a preset information presentation template; and the presentation unit comprises: and the first presentation subunit is configured to present the search result to the user by using the information presentation template associated with the search category identifier of the search category to which the search information belongs.
In some embodiments, the search category identification also has a corresponding set of word category identification sequences; and the determining unit includes: a generation subunit configured to extract a keyword from the search information and generate a keyword sequence; the first determining subunit is configured to analyze the keyword in the keyword sequence and determine a word category to which the keyword belongs; and a second determining subunit, configured to determine, for each search category identifier in the search category identifier set, based on a word category to which a keyword in the keyword sequence belongs, whether a target word category identifier sequence matching the keyword sequence exists in a word category identifier sequence set corresponding to the search category identifier, and if so, determine the search category indicated by the search category identifier as the search category to which the search information belongs.
In some embodiments, the word category identifier in any word category identifier sequence is included in a preset word category identifier set, and each word category identifier in the word category identifier set has a corresponding keyword set; and the first determining subunit is further configured to: for each keyword in the keyword sequence, searching a target keyword matched with the keyword in a keyword set corresponding to the word category identifier in the word category identifier set, and if the target keyword is found, determining the word category indicated by the word category identifier as the word category to which the keyword belongs.
In some embodiments, the set of search category identifications includes a first search category identification indicating a search category for indicating that actor information is searched according to the role information and a second search category identification indicating a search category for indicating that episode information is searched according to the role information, wherein an episode indicated by the episode information includes at least one of: drama and movie.
In some embodiments, the first role information included in the information in any one information set includes a role name and/or a role alias; for each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information includes at least one of the following actors casting the character indicated by the first character information: the system comprises information of a performance relationship, names, pictures, identification information and personal introduction, wherein the identification information is provided with a corresponding Uniform Resource Locator (URL), and the page pointed by the URL displays the personal information of the actor; for each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information includes at least one of the following episodes corresponding to the character indicated by the first character information: the system comprises an episode name, identification information and an episode introduction, wherein the identification information has a corresponding URL, and the page pointed by the URL displays the information of the episode.
In some embodiments, the presenting unit includes: and the information extraction subunit is configured to extract information from the information related to the first character information in the target information, and use the extracted information and the URL corresponding to the identification information in the target information as a search result.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the search method and device based on artificial intelligence, the search category to which the search information belongs can be determined by analyzing the received search information including role information input by a user. And then searching for target information of which the first role information is matched with the role information in the information for searching in an information set corresponding to the search category identification of the search category to which the information for searching belongs, so as to determine a search result based on the associated information of the first role information in the target information, and presenting the search result to the user. Therefore, the determination of the search category to which the search information belongs and the search of the target information are effectively utilized, and the relevance between the search result and the search information is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of an artificial intelligence based search method according to the present application;
FIG. 3 is a schematic diagram of an application scenario of an artificial intelligence based search method according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of an artificial intelligence based search method according to the present application;
FIG. 4a is a schematic illustration of a search result presented to a user;
FIG. 4b is yet another schematic illustration of a search result presented to a user;
FIG. 5 is a schematic block diagram illustrating one embodiment of an artificial intelligence based search apparatus according to the present application;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing an electronic device according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of artificial intelligence based search methods or artificial intelligence based search apparatus of the subject application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a web browser application, a search-type application, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 can provide various services such as processing of analyzing information for search input by the user through the terminal apparatuses 101, 102, 103, and feeding back a processing result (e.g., determined search result) to the user.
It should be noted that the artificial intelligence based search method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the artificial intelligence based search apparatus is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an artificial intelligence based search method in accordance with the present application is shown. The process 200 of the search method based on artificial intelligence comprises the following steps:
step 201, receiving information for searching including role information inputted by a user.
In this embodiment, the electronic device (for example, the server 105 shown in fig. 1) on which the artificial intelligence based search method operates may receive, through a wired connection manner or a wireless connection manner, information for search including character information input by a user through a terminal device (for example, the terminal devices 101, 102, 103 shown in fig. 1). Wherein a role generally refers to a dramatic character played by an actor. The role information may include a role name or role alias, etc. For example, a person in a television show may be named "lie somebody" and then "lie somebody" may be called a character name. If the role of the character is "book", then "a certain book" may be referred to as a role alias. Of course, "a" of "lie a" may also be referred to as a role alias.
Step 202, analyzing the information for searching, and determining the search category to which the information for searching belongs.
In this embodiment, after receiving the search information, the electronic device may analyze the search information to determine a search type to which the search information belongs. Wherein the search category may be a search category indicated by a search category identification in a preset search category identification set. In addition, the search category identification may have a corresponding set of information. The information in the information set may include first persona information and associated information for the first persona information. The associated information may include, for example, names of actors who perform the character indicated by the first character information or episode names of episodes (e.g., television episodes, movies, etc.) to which the character belongs, and the like.
In this embodiment, the search category identification may be associated with a set of information for history search. For each search category identifier in the search category identifier set, the electronic device may search for target history search information that matches (for example, is identical to) the search information in the history search information set associated with the search category identifier, and if the target history search information is found, the electronic device may determine the search category indicated by the search category identifier as the search category to which the search information belongs.
Step 203, searching target information in the information set corresponding to the search category identification of the search category to which the information for search belongs.
In this embodiment, after the electronic device determines the search category to which the search information belongs, the electronic device may search for the target information in the information set corresponding to the search category identifier of the search category. The target information is information in which the included first character information matches (for example, is equal to) the character information in the search information.
For example, the electronic device may first search for information that includes the first role information and the role information in the search information, in an information set corresponding to a search category identifier of a search category to which the search information belongs. If the information is found, the electronic device may determine the information as the target information. If not found, the electronic device may calculate similarity between the role information in the information for search and first role information included in each piece of information in the information set, and determine information with the highest similarity between the included first role information and the role information in the information for search as target information. Here, the electronic device may perform the similarity calculation by using a known text similarity calculation method such as a cosine similarity (cosine similarity) algorithm or a Jaccard coefficient. Since the cosine similarity algorithm and the Jaccard coefficient are well known technologies that are currently widely studied and applied, they will not be described herein.
And step 204, determining a search result based on the associated information of the first role information in the target information, and presenting the search result to the user.
In this embodiment, after the electronic device finds the target information, the electronic device may determine a search result based on the associated information of the first role information in the target information, and present the search result to the user. As an example, the electronic device may extract information from the associated information (e.g., extract a name of an actor decorating a character indicated by the first character information or an episode name of an episode to which the character belongs), use the extracted information as a search result, and present the search result to the user, for example, in the form of a web page.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the artificial intelligence based search method according to the present embodiment. In the application scenario of fig. 3, as indicated by reference numeral 301, the server may receive information for search "who is a player of a certain lie" including role information "certain lie" input by the user through the terminal device. Then, as shown by reference numeral 302, the server may analyze the information for search "who is a certain player from li", and determine a search category a to which the information for search belongs, where the search category a is a search category indicated by a search category identifier in a preset search category identifier set, and the search category identifier may have a corresponding information set, and the information in the information set may include the first character information and the associated information of the first character information. Then, as shown by reference numeral 303, the server may search, in the information set corresponding to the search category identification of the search category a, target information in which the included first character information matches the character information "some lie", where the associated information of the first character information in the target information includes a name "wu ×" of an actor decorating some lie. Finally, as indicated by reference numeral 304, the server may extract a name of an actor of the costume plum, i.e., "wu ×", from the related information of the first character information in the target information, and present "wu ×" as a search result to the user.
The method provided by the embodiment of the application effectively utilizes the determination of the search category to which the information for search belongs and the search of the target information, and improves the association degree between the search result and the information for search.
With further reference to FIG. 4, a flow 400 of yet another embodiment of an artificial intelligence based search method is illustrated. The process 400 of the artificial intelligence based search method comprises the following steps:
step 401 receives information for search including character information input by a user.
In this embodiment, the electronic device (for example, the server 105 shown in fig. 1) on which the artificial intelligence based search method operates may receive, through a wired connection manner or a wireless connection manner, information for search including character information input by a user through a terminal device (for example, the terminal devices 101, 102, 103 shown in fig. 1). Wherein a role generally refers to a dramatic character played by an actor. The role information may include a role name or role alias, etc. For example, a person in a television show may be named "lie somebody" and then "lie somebody" may be called a character name. If the role of the character is "book", then "a certain book" may be referred to as a role alias. Of course, "a" of "lie a" may also be referred to as a role alias.
Step 402, extracting keywords from the information for searching, and generating a keyword sequence.
In this embodiment, the electronic device may extract a keyword from the search information to generate a keyword sequence. For example, the electronic device may first segment the search information and generate a keyword sequence from the segmented words included in a preset keyword group. Here, the order of each keyword in the keyword sequence is consistent with the order in the search information. For example, if the search information is "who plays" some of plums in the name of ", the generated keyword sequence may be" the name of "", some of plums, and "play".
Step 403, analyzing the keywords in the keyword sequence to determine the word categories to which the keywords belong.
In this embodiment, after the electronic device generates the keyword sequence, the electronic device may analyze the keywords in the keyword sequence to determine the word categories to which the keywords belong. Here, the keyword may have a corresponding word category. As an example, a name of a keyword "×" is a name of a tv series, and the word class to which the keyword belongs may be "tv series"; the keyword "lie somewhere" is the name of a role, and the word class to which the keyword belongs can be "role"; the word class to which the keyword "pan" belongs may be "pan suffix".
Here, the word class may have a word class identifier (e.g., a name or a number of the word class, etc.), the word class identifier may be included in a preset set of word class identifiers, and each word class identifier in the set of word class identifiers may have a corresponding set of keywords. For each keyword in the keyword sequence, the electronic device may search a target keyword that matches (for example, is identical to) the keyword in a keyword set corresponding to a word class identifier in the word class identifier set, and if the target keyword is found, the electronic device may determine the word class indicated by the word class identifier as the word class to which the keyword belongs.
It should be noted that a preset search category identifier set may be stored locally in the electronic device or in a server connected to the electronic device. Wherein the set of search category identifications may include a first search category identification and a second search category identification. The search category indicated by the first search category identification may be used to indicate a search for actor information based on the character information. The second search category identification may be indicative of a search category indicated for searching the episode information based on the persona information. Wherein the episode indicated by the episode information may include at least one of: drama and movie.
In addition, the search category identification may also have a corresponding information set, and the information in the information set may include the first character information and the associated information of the first character information. It is noted that the first role information included in the information in any one information set may include a role name and/or a role alias. For each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information may include at least one of the following actors casting the character indicated by the first character information: information of the exhibition, name, picture, identification information and personal introduction. The identification indicated by the identification information may be a unique identification of the actor, such as an actor number or the like. The identification information may have a corresponding URL (Uniform Resource Locator) that points to a page that may display personal information of the actor (e.g., the actor's early experience, performance experience, personal life, major works, winning records, etc.). Here, as for the decoration relation information, if the actor "wu x" performs "any of the plum, the decoration relation information corresponding to the actor" wu x "may include, for example," wu x "performs any of the plum" or "any of the plum".
For each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information may include at least one of the following episodes corresponding to the character indicated by the first character information: episode name, identification information, episode introduction. The identification indicated by the identification information may be a unique identification of the episode, such as an episode number or the like. The identification information may also have a corresponding URL, and the page pointed to by the URL may display information for the episode (e.g., episode presentation, diversity episode, credits, character presentation, winning record, broadcast information, episode rating, etc.).
The search category identification may also have a corresponding set of word category identification sequences. Taking the first search category identifier as an example, the set of word category identifier sequences corresponding to the first search category identifier may include, for example, word category identifier sequences [ drama, character, introduction suffix word ], [ movie, character, introduction suffix word ], and the like. Furthermore, the word class identifier in any word class identifier sequence may be included in the word class identifier set.
Step 404, for each search category identification in the search category identification set, determining whether a target word category identification sequence matched with the keyword sequence exists in the word category identification sequence set corresponding to the search category identification based on the word category to which the keyword in the keyword sequence belongs, and if so, determining the search category indicated by the search category identification as the search category to which the information for search belongs.
In this embodiment, for each search category identifier in the search category identifier set, the electronic device may determine, based on a word category to which a keyword in the keyword sequence belongs, whether a target word category identifier sequence matching the keyword sequence exists in a word category identifier sequence set corresponding to the search category identifier. If so, the electronic device may determine the search type indicated by the search type identifier as the search type to which the search information belongs.
As an example, the electronic device may first generate a first word category identification sequence from a word category identification of a word category to which each keyword in the keyword sequence belongs; then, for each search category identification in the search category identification set, the electronic device may search for a target word category identification sequence that is the same as the first word category identification sequence in a word category identification sequence set corresponding to the search category identification; if the search category is found, the electronic device may determine the search category indicated by the search category identifier as the search category to which the search information belongs; if the search category indicated by the search category identifier is not found, the electronic device may calculate a similarity between the first word category identifier and each word category identifier in the word category identifier set (for example, perform similarity calculation by using the known text similarity calculation method), and if a word category identifier whose similarity with the first word category identifier is higher than a similarity threshold exists in the word category identifier set, the electronic device may determine the search category indicated by the search category identifier as the search category to which the search information belongs.
Step 405, target information is searched in an information set corresponding to the search category identification of the search category to which the information for search belongs.
In this embodiment, for the explanation of step 405, reference may be made to the related explanation of step 203 in the embodiment shown in fig. 2, which is not described herein again.
And step 406, extracting information from the related information of the first character information in the target information, and taking the extracted information and the URL corresponding to the identification information in the target information as a search result.
In this embodiment, after the electronic device finds the target information, the electronic device may extract information (for example, extract information other than the identification information) from the associated information of the first character information in the target information, and use the extracted information and a URL corresponding to the identification information in the target information as a search result.
Step 407, the information display template associated with the search category identification of the search category to which the information for search belongs is utilized to present the search result to the user.
In this embodiment, the search category identification may be associated with an information presentation template. The electronic device may present the search result to the user using an information presentation template associated with a search category identifier of a search category to which the search information belongs. Here, the information presentation template associated with the first search category identification may be used to present the actor's rehearsal relationship information, name, personal introduction, and URL corresponding to the actor identification at a specific position, and the like. The information presentation template associated with the second search category identification may be used to present a picture of the episode, an episode profile, a URL corresponding to the episode identification of the episode, etc. at a particular location.
For example, if the information for searching is "who is a certain player of li", and wu is a certain player of li, the search result associated with the information for searching may be presented as shown in fig. 4 a. In fig. 4a, a picture (a personal picture representing wu), the decoration relation information "shoji somebody", the name of an actor of shoji "wu \", the personal introduction of wu \ "national first-class actor, originated in # city, an actor within china, graduation # people's art theater …", and a URL using the "details > >" representation are shown, and the user can jump to a page displaying the personal information of the actor by clicking on "details > >".
If the information for searching is "which episode a certain character is present in", and the episode name of the tv episode to which the certain character belongs is "name of x", the search result associated with the information for searching presented may be as shown in fig. 4 b. In fig. 4b, a picture (a cast representing a title of a television series), an episode introduction "title of a series" is shown of a television series of the corrupting type. Inspection of anti-corruption television series, which is composed by li x practitioner, week x act, etc. the user can jump to a page displaying information on the title of the television series by clicking on "details > >" and proceeding to "the main act of the company and using the URL characterized by" details > > ".
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the artificial intelligence based search method in the present embodiment highlights the step of determining the search category to which the information for search belongs (i.e., step 402 and step 404), the step of determining the search result (i.e., step 406), and the step of presenting the search result (i.e., step 407). Therefore, the scheme described in the embodiment can further improve the association degree between the search result and the information for searching. Furthermore, by including entry information (i.e., URL of a specific page) into the specific page (e.g., a page on which personal information of actors is displayed or a page on which episode information is displayed) in the search result, the user can easily browse information related to the search target (actor information or episode information to be searched), and the time cost for the user to search for the information can be saved.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an artificial intelligence based search apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 5, the artificial intelligence based search apparatus 500 of the present embodiment includes: a receiving unit 501, a determining unit 502, a searching unit 503 and a presenting unit 504. The receiving unit 501 is configured to receive information for search including role information input by a user; the determining unit 502 is configured to analyze the information for search and determine a search category to which the information for search belongs, where the search category may be a search category indicated by a search category identifier in a preset search category identifier set, the search category identifier may have a corresponding information set, and the information in the information set may include first role information and associated information of the first role information; the searching unit 503 is configured to search target information in an information set corresponding to a search category identifier of a search category to which the information for search belongs, where the target information may be information that matches the included first role information with the role information; the presentation unit 504 is configured to determine a search result based on the associated information of the first character information in the target information, and present the search result to the user.
In the present embodiment, in the artificial intelligence based search apparatus 500: for specific processing of the receiving unit 501, the determining unit 502, the searching unit 503 and the presenting unit 504 and technical effects thereof, reference may be made to the related descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment of fig. 2, and no further description is given here.
In some optional implementation manners of this embodiment, the search category identifier may be associated with a preset information display template; and the presenting unit 504 may include: a first presentation subunit (not shown in the figure), configured to present the search result to the user by using the information presentation template associated with the search category identifier of the search category to which the search information belongs.
In some optional implementations of this embodiment, the search category identifier may further have a corresponding word category identifier sequence set; and the determining unit 502 may include: a generation subunit (not shown in the figure) configured to extract a keyword from the search information and generate a keyword sequence; a first determining subunit (not shown in the figure), configured to analyze the keyword in the keyword sequence, and determine a word category to which the keyword belongs; a second determining subunit (not shown in the figure), configured to determine, for each search category identifier in the search category identifier set, based on a word category to which a keyword in the keyword sequence belongs, whether a target word category identifier sequence matching the keyword sequence exists in a word category identifier sequence set corresponding to the search category identifier, and if so, determine the search category indicated by the search category identifier as the search category to which the search information belongs.
In some optional implementation manners of this embodiment, the word category identifier in any word category identifier sequence may be included in a preset word category identifier set, and each word category identifier in the word category identifier set may have a corresponding keyword set; and the first determining subunit may be further configured to: for each keyword in the keyword sequence, searching a target keyword matched with the keyword in a keyword set corresponding to the word category identifier in the word category identifier set, and if the target keyword is found, determining the word category indicated by the word category identifier as the word category to which the keyword belongs.
In some optional implementations of this embodiment, the set of search category identifications may include a first search category identification and a second search category identification, the search category indicated by the first search category identification may be used to indicate that actor information is searched according to role information, and the search category indicated by the second search category identification may be used to indicate that episode information is searched according to role information, where the episode indicated by the episode information may include at least one of: drama and movie.
In some optional implementations of this embodiment, the first role information included in the information in any one information set may include a role name and/or a role alias; for each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information may include at least one of the following actors casting the character indicated by the first character information: the system comprises information of a rehearsal relationship, names, pictures, identification information and personal introduction, wherein the identification information can be provided with a corresponding Uniform Resource Locator (URL), and a page pointed by the URL can display the personal information of the actor; for each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information may include at least one of the following episodes corresponding to the character indicated by the first character information: the system comprises an episode name, identification information and an episode introduction, wherein the identification information has a corresponding URL, and the page pointed by the URL displays the information of the episode.
In some optional implementations of this embodiment, the presenting unit 504 may include: and an information extraction subunit (not shown in the figure) configured to extract information from the information associated with the first character information in the target information, and use the extracted information and the URL corresponding to the identification information in the target information as a search result.
The device provided by the above embodiment of the present application effectively utilizes the determination of the search category to which the information for search belongs and the search of the target information, and improves the association degree between the search result and the information for search.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a determining unit, a searching unit, and a presenting unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the first processing unit may also be described as a "unit that receives information for search including character information input by a user".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to include: receiving information for searching including role information input by a user; analyzing the information for searching, and determining a search category to which the information for searching belongs, wherein the search category may be a search category indicated by a search category identifier in a preset search category identifier set, the search category identifier may have a corresponding information set, and the information in the information set may include first character information and associated information of the first character information; searching target information in an information set corresponding to a search category identification of a search category to which the search information belongs, wherein the target information can be information that the included first role information is matched with the role information; and determining a search result based on the associated information of the first role information in the target information, and presenting the search result to the user.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (16)

1. An artificial intelligence based search method comprising:
receiving information for searching including role information input by a user;
analyzing the information for searching, and determining a search category to which the information for searching belongs, wherein the search category is indicated by a search category identifier in a preset search category identifier set, the search category identifier has a corresponding information set and is associated with a historical information set for searching, and the information in the information set comprises first character information and associated information of the first character information; the determining of the search category to which the search information belongs includes: searching for target historical search information matched with the search information in a historical search information set associated with the search category identification; in response to the search, using the search category identification as the search category to which the information for search belongs;
searching target information in an information set corresponding to a search category identification of a search category to which the information for search belongs, wherein the target information is information which comprises first role information and is the same as or similar to the role information;
and determining a search result based on the associated information of the first role information in the target information, and presenting the search result to the user.
2. The method according to claim 1, wherein the search category identification is associated with a preset information presentation template; and
the presenting the search results to the user includes:
and presenting the search result to the user by utilizing the information display template associated with the search category identification of the search category to which the information for search belongs.
3. The method of claim 1, wherein a search category identification further has a corresponding set of word category identification sequences; and
the analyzing the information for searching and determining the search category to which the information for searching belongs includes:
extracting keywords from the information for searching to generate a keyword sequence;
analyzing the keywords in the keyword sequence to determine the word categories to which the keywords belong;
and for each search category identification in the search category identification set, determining whether a target word category identification sequence matched with the keyword sequence exists in a word category identification sequence set corresponding to the search category identification based on the word category to which the keyword in the keyword sequence belongs, and if so, determining the search category indicated by the search category identification as the search category to which the information for search belongs.
4. The method according to claim 3, wherein the word class identifier in any word class identifier sequence is included in a preset word class identifier set, and each word class identifier in the word class identifier set has a corresponding keyword set; and
the analyzing the keywords in the keyword sequence to determine the word categories to which the keywords belong includes:
and for each keyword in the keyword sequence, searching a target keyword matched with the keyword in a keyword set corresponding to the word category identifier in the word category identifier set, and if the target keyword is searched, determining the word category indicated by the word category identifier as the word category to which the keyword belongs.
5. The method according to one of claims 1 to 4, wherein the set of search category identifications includes a first search category identification indicating a search category for indicating searching for actor information according to the role information and a second search category identification indicating a search category for indicating searching for episode information according to the role information, wherein the episode indicated by the episode information includes at least one of: drama and movie.
6. The method according to claim 5, wherein the first role information included in the information in any one information set includes a role name and/or a role alias; for each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information includes at least one of the following actors casting the character indicated by the first character information: the system comprises information of a rehearsal relationship, names, pictures, identification information and personal introduction, wherein the identification information is provided with a corresponding Uniform Resource Locator (URL), and personal information of actors is displayed on a page pointed by the URL; for each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information includes at least one of the following episodes corresponding to the character indicated by the first character information: the system comprises an episode name, identification information and an episode introduction, wherein the identification information is provided with a corresponding URL, and the page pointed by the URL displays the information of the episode.
7. The method of claim 6, wherein the determining search results based on the associated information of the first persona information in the target information comprises:
and extracting information from the associated information of the first character information in the target information, and taking the extracted information and the URL corresponding to the identification information in the target information as a search result.
8. An artificial intelligence based search apparatus comprising:
a receiving unit configured to receive information for search including character information input by a user;
the determining unit is configured to analyze the information for searching and determine a search category to which the information for searching belongs, wherein the search category is indicated by a search category identifier in a preset search category identifier set, the search category identifier has a corresponding information set and is associated with a historical information set for searching, and the information in the information set comprises first character information and associated information of the first character information; the determining unit is further configured to search the historical search information set associated with the search category identification for the target historical search information matched with the search information; in response to the search, using the search category identification as the search category to which the information for search belongs;
a searching unit configured to search target information in an information set corresponding to a search category identifier of a search category to which the information for search belongs, wherein the target information is information including first role information that is the same as or similar to the role information;
and the presentation unit is used for determining a search result based on the associated information of the first role information in the target information and presenting the search result to the user.
9. The apparatus of claim 8, wherein a search category identification is associated with a preset information presentation template; and
the presentation unit includes:
and the first presentation subunit is configured to present the search result to the user by using the information presentation template associated with the search category identifier of the search category to which the information for search belongs.
10. The apparatus of claim 8, wherein a search category identification further has a corresponding set of word category identification sequences; and
the determination unit includes:
a generating subunit configured to extract a keyword from the information for search and generate a keyword sequence;
the first determining subunit is configured to analyze the keyword in the keyword sequence and determine a word category to which the keyword belongs;
and a second determining subunit, configured to determine, for each search category identifier in the search category identifier set, based on a word category to which a keyword in the keyword sequence belongs, whether a target word category identifier sequence matching the keyword sequence exists in a word category identifier sequence set corresponding to the search category identifier, and if yes, determine the search category indicated by the search category identifier as the search category to which the information for search belongs.
11. The apparatus of claim 10, wherein the word class identifier in any word class identifier sequence is included in a preset word class identifier set, and each word class identifier in the word class identifier set has a corresponding keyword set; and
the first determining subunit is further configured to:
and for each keyword in the keyword sequence, searching a target keyword matched with the keyword in a keyword set corresponding to the word category identifier in the word category identifier set, and if the target keyword is searched, determining the word category indicated by the word category identifier as the word category to which the keyword belongs.
12. The apparatus according to one of claims 8 to 11, wherein the set of search category identifications includes a first search category identification indicating a search category for indicating searching for actor information according to the character information and a second search category identification indicating a search category for indicating searching for episode information according to the character information, wherein the episode indicated by the episode information includes at least one of: drama and movie.
13. The apparatus according to claim 12, wherein the first role information included in the information in any one information set includes a role name and/or a role alias; for each piece of information in the information set corresponding to the first search category identification, the associated information of the first character information in the information includes at least one of the following actors casting the character indicated by the first character information: the system comprises information of a rehearsal relationship, names, pictures, identification information and personal introduction, wherein the identification information is provided with a corresponding Uniform Resource Locator (URL), and personal information of actors is displayed on a page pointed by the URL; for each piece of information in the information set corresponding to the second search category identification, the associated information of the first character information in the information includes at least one of the following episodes corresponding to the character indicated by the first character information: the system comprises an episode name, identification information and an episode introduction, wherein the identification information is provided with a corresponding URL, and the page pointed by the URL displays the information of the episode.
14. The apparatus of claim 13, wherein the presentation unit comprises:
and the information extraction subunit is configured to perform information extraction in the associated information of the first character information in the target information, and use the extracted information and the URL corresponding to the identification information in the target information as a search result.
15. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
16. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN201711285385.0A 2017-12-07 2017-12-07 Search method and device based on artificial intelligence Active CN108038172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711285385.0A CN108038172B (en) 2017-12-07 2017-12-07 Search method and device based on artificial intelligence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711285385.0A CN108038172B (en) 2017-12-07 2017-12-07 Search method and device based on artificial intelligence

Publications (2)

Publication Number Publication Date
CN108038172A CN108038172A (en) 2018-05-15
CN108038172B true CN108038172B (en) 2022-02-22

Family

ID=62096258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711285385.0A Active CN108038172B (en) 2017-12-07 2017-12-07 Search method and device based on artificial intelligence

Country Status (1)

Country Link
CN (1) CN108038172B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108717437B (en) * 2018-05-16 2021-09-24 腾讯科技(深圳)有限公司 Search result display method and device and storage medium
CN114143286B (en) * 2018-11-13 2023-05-12 创新先进技术有限公司 Method and device for positioning target object and electronic equipment
CN111382364B (en) * 2020-03-19 2023-08-18 北京字节跳动网络技术有限公司 Method and device for processing information
CN112434127B (en) * 2020-11-03 2023-10-17 咪咕文化科技有限公司 Text information searching method, apparatus and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699694A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Prompt message acquiring method and device
CN106021496A (en) * 2016-05-19 2016-10-12 海信集团有限公司 Video search method and video search device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7822734B2 (en) * 2006-12-12 2010-10-26 Yahoo! Inc. Selecting and presenting user search results based on an environment taxonomy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699694A (en) * 2013-12-04 2015-06-10 腾讯科技(深圳)有限公司 Prompt message acquiring method and device
CN106021496A (en) * 2016-05-19 2016-10-12 海信集团有限公司 Video search method and video search device

Also Published As

Publication number Publication date
CN108038172A (en) 2018-05-15

Similar Documents

Publication Publication Date Title
CN110582025B (en) Method and apparatus for processing video
CN107241260B (en) News pushing method and device based on artificial intelligence
CN108038172B (en) Search method and device based on artificial intelligence
CN109271556B (en) Method and apparatus for outputting information
CN106919711B (en) Method and device for labeling information based on artificial intelligence
CN109857908B (en) Method and apparatus for matching videos
US11758088B2 (en) Method and apparatus for aligning paragraph and video
US20200409998A1 (en) Method and device for outputting information
US11800201B2 (en) Method and apparatus for outputting information
CN110321544B (en) Method and device for generating information
CN109446442B (en) Method and apparatus for processing information
CN109255035B (en) Method and device for constructing knowledge graph
US11244153B2 (en) Method and apparatus for processing information
WO2020042376A1 (en) Method and apparatus for outputting information
CN111897950A (en) Method and apparatus for generating information
CN110019948B (en) Method and apparatus for outputting information
CN109413056B (en) Method and apparatus for processing information
CN115801980A (en) Video generation method and device
CN109241344B (en) Method and apparatus for processing information
CN109919220B (en) Method and apparatus for generating feature vectors of video
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN108509442B (en) Search method and apparatus, server, and computer-readable storage medium
CN113590756A (en) Information sequence generation method and device, terminal equipment and computer readable medium
CN109408647B (en) Method and apparatus for processing information
CN111125502B (en) Method and device for generating information

Legal Events

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