A data processing method, a data processing device and a data processing device

By splitting search text and merging text fragments, the semantic level is simplified, which solves the problem of poor search result quality caused by long search text in search engines and achieves more accurate search result matching.

CN110851692BActive Publication Date: 2024-09-06BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN201810846026.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-07-27
Publication Date
2024-09-06
Estimated Expiration
2039-01-19

AI Technical Summary

Technical Problem

In search engines, when using longer search text, existing technologies based on text matching or semantic matching result in poor quality search results that cannot accurately meet the user's search intent.

Method used

By splitting the search text into a sequence of text fragments and fusing adjacent text fragments, the semantic hierarchy is simplified to generate a more accurate query string, thereby improving the quality of search results.

Benefits of technology

By simplifying the semantic level and reducing the complexity of search text, the quality of search results is improved, ensuring that query results more accurately match the user's intent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110851692B
    Figure CN110851692B
Patent Text Reader

Abstract

The embodiment of the present invention provides a data processing method, device and device for data processing. The method specifically includes: determining a text fragment sequence corresponding to a user's search text; the text fragment sequence includes: a plurality of text fragments arranged in sequence; fusing the query result entity word corresponding to the i-th text fragment in the text fragment sequence with the (i+1)-th text fragment in the text fragment sequence to obtain a query string corresponding to the (i+1)-th text fragment; wherein i is a natural number, the query string corresponding to a text fragment is used to determine the corresponding query result entity word, and the query string corresponding to the first text fragment is the first text fragment itself; based on the query result entity word corresponding to the last text fragment in the text fragment sequence, the search result corresponding to the search text is obtained. The embodiment of the present invention can improve the quality of the search results corresponding to the search text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet information processing, and in particular to a data processing method, device and a device for data processing. Background Art

[0002] A search engine is a system that collects information from the Internet based on certain strategies and using specific computer programs, provides search services to users after organizing and processing the information, and displays information related to the user's search to the user.

[0003] Currently, when using a search engine, a user can enter a search text in the search box provided by the search engine. The search engine will search for web pages or documents matching the search text as search results, and use a certain sorting strategy to return the sorted search results to the user.

[0004] At present, when the search text is long, the search engine searches for search results that match the search text based on text matching or semantic matching, which will result in poor search results quality. For example, the search text is "Pope of the smallest country in the world", and the titles of the top three search results corresponding to the search text are: "The smallest of the world's ten smallest countries has a land area of ​​only 0.44 square kilometers", "The smallest country in the world - Vatican", "The smallest country in the world is rich, and one-sixth of the world's people want to go there!", etc. It can be seen that the topics of these search results do not match the search intent corresponding to the search text, that is, the current search results cannot meet the user's search intent, resulting in poor search results quality. Summary of the invention

[0005] The embodiments of the present invention provide a data processing method, a device and a device for data processing, which can improve the quality of search results corresponding to search texts.

[0006] In order to solve the above problem, an embodiment of the present invention discloses a data processing method, including:

[0007] Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0008] The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself;

[0009] The search result corresponding to the search text is obtained according to the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0010] On the other hand, an embodiment of the present invention discloses a data processing device, including:

[0011] A text segment sequence determination module is used to determine a text segment sequence corresponding to a user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0012] a fusion module, used to fuse the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; and

[0013] The search result determination module is used to obtain the search result corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence.

[0014] In another aspect, an embodiment of the present invention discloses a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:

[0015] Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0016] The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself;

[0017] The search result corresponding to the search text is obtained according to the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0018] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to perform one or more of the data processing methods described above.

[0019] The embodiments of the present invention include the following advantages:

[0020] The embodiment of the present invention realizes the simplification of semantic levels based on the splitting of the search text and the fusion of adjacent text segments in the text segment sequence; wherein, the fusion of adjacent text segments may refer to the fusion between the query result entity word corresponding to the ith text segment and the (i+1)th text segment, so that the semantic level corresponding to the ith text segment and the semantic level corresponding to the (i+1)th text segment may be fused, thereby simplifying the semantic level. The above-mentioned simplification of semantic levels may reduce the semantic level of the search text, that is, the query string corresponding to the last text segment may have fewer semantic levels than the search text; therefore, the query result entity word corresponding to the last text segment is obtained based on the query string corresponding to the last text segment, so that the quality of the query result entity word corresponding to the last text segment may be improved, thereby improving the quality of the search results corresponding to the search text. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0022] Figure 1 It is a schematic diagram of an application environment of a data processing method according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of steps of a data processing method embodiment 1 of the present invention;

[0024] Figure 3 is a flow chart of steps of a second embodiment of a data processing method of the present invention;

[0025] Figure 4 is a flow chart of steps of a data processing method embodiment 3 of the present invention;

[0026] Figure 5 is a structural block diagram of an embodiment of a data processing device of the present invention;

[0027] Figure 6 is a block diagram of an apparatus 800 for data processing according to the present invention; and

[0028] Figure 7 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] An embodiment of the present invention provides a data processing solution, which may include: determining a text fragment sequence corresponding to a user's search text; the text fragment sequence may include: a plurality of text fragments arranged in sequence; fusing the query result entity word corresponding to the i-th text fragment in the text fragment sequence with the (i+1)-th text fragment in the text fragment sequence to obtain a query string corresponding to the (i+1)-th text fragment; wherein i may be a natural number, the query string corresponding to a text fragment is used to determine the corresponding query result entity word, and the query string corresponding to the first text fragment may be the first text fragment itself; and, based on the query result entity word corresponding to the last text fragment in the text fragment sequence, obtaining the search result corresponding to the search text.

[0031] The embodiments of the present invention can be applied to search texts with more semantic levels, and can achieve simplification of semantic levels based on the recognition of semantic levels corresponding to the search text and the fusion between adjacent text segments in the text segment sequence; wherein, the fusion between adjacent text segments can refer to the fusion between the query result entity word corresponding to the ith text segment and the (i+1)th text segment, so that the semantic level corresponding to the ith text segment can be fused with the semantic level corresponding to the (i+1)th text segment, thereby simplifying the semantic level. The above-mentioned simplification of semantic levels can reduce the semantic level of the search text, that is, the query string corresponding to the last text segment can have fewer semantic levels than the search text; therefore, according to the query string corresponding to the last text segment, the query result entity word corresponding to the last text segment is obtained, and the quality of the query result entity word corresponding to the last text segment can be improved, thereby improving the quality of the search results corresponding to the search text.

[0032] Entity words are used to describe entities. Entities are distinguishable, independent, and meaningful objects or concepts. Examples of entity words may include: names of people, places, organizations, products, etc. In the embodiment of the present application, the query result entity words corresponding to the ith text segment represent the summary of the semantic level corresponding to the ith text segment. Since the semantics of the query result entity words are simple, they can simplify the semantic level. Since entities can be used to describe objects or concepts that have practical significance, the semantic level corresponding to the ith text segment can be described more accurately.

[0033] In an example 1 of the embodiment of the present invention, assuming that the search text A is "the pope of the smallest country in the world", the existing search engine searches for search results matching the search text A based on text matching or semantic matching, which will result in poor search results. However, the embodiment of the present invention can determine the following two text segments corresponding to the search text A: "the smallest country in the world" and "the pope of XXXX"; and the embodiment of the present invention can merge the query result entity word "Vatican" corresponding to the first text segment with the second text segment to obtain the query string "the pope of Vatican" corresponding to the second text segment, and then obtain the search results corresponding to the search text A, such as relevant information of "Francisco" or the page corresponding to "Francisco" based on the query result entity word corresponding to the second text segment.

[0034] In another example 2 of the embodiment of the present invention, assuming that the search text B is "what is the name of the father ...

[0035] The data processing method provided by the embodiment of the present invention can be applied in an application environment such as a website and / or an APP (application) to improve the quality of search results corresponding to the search text.

[0036] The data processing method provided by the embodiment of the present invention can be applied to Figure 1 In the application environment shown,

[0037] Figure 1 As shown, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data exchange through the wired or wireless network.

[0038] In an embodiment of the present invention, the client 100 may receive a user's search text and send the search text to the server 200. The server 200 may obtain search results corresponding to the search text by executing the data processing method of the embodiment of the present invention.

[0039] In another embodiment of the present invention, the client 100 may receive a user's search text, and obtain search results corresponding to the search text by executing the data processing method of the embodiment of the present invention.

[0040] In an embodiment of the present invention, the search results may be in the form of text, images, audio, or video. Furthermore, the search results may correspond to web pages or documents, and the pages corresponding to the search results may be collectively referred to as landing pages. The above search results may be derived from data sources such as the database of a search engine and the database of a vertical website. It can be understood that the embodiment of the present invention does not limit the specific source of the search results. For example, in Example 1, the page corresponding to the search result "Francis" may include: encyclopedia pages, etc.

[0041] Optionally, the client 100 can run on a terminal, which specifically includes but is not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.

[0042] Method Example 1

[0043] Reference Figure 2 , shows a flow chart of the steps of a data processing method embodiment 1 of the present invention, which may specifically include the following steps:

[0044] Step 201: Determine a text segment sequence corresponding to a user's search text; the text segment sequence may include: a plurality of text segments arranged in sequence;

[0045] Step 202: merge the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment;

[0046] Wherein, i may be a natural number, a query string corresponding to a text segment may be used to determine a corresponding query result entity word, and the query string corresponding to the first text segment may be the first text segment itself;

[0047] Step 203: Obtain search results corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence.

[0048] Figure 2 At least one step of the illustrated embodiment may be executed by a server and / or a client. Of course, the embodiment of the present invention does not limit the specific execution subject of each step.

[0049] In step 201, the client of the search APP or search website may provide a UI (User Interface) so that the user can submit the search text to the client through a search box on the UI, a voice interface, etc. It can be understood that the embodiment of the present invention does not limit the specific method of obtaining the search text.

[0050] In an optional embodiment of the present invention, step 201 determines the text segment sequence corresponding to the user's search text, which may specifically include: performing semantic analysis on the user's search text so that a text segment in the obtained text segment sequence corresponds to a semantic level. Arranging in sequence may include: arranging the semantic levels from front to back. The embodiment of the present invention may arrange multiple text segments in the order of semantic levels.

[0051] In practical applications, a semantic analysis method may be used to determine the semantic level of the search text. Semantic analysis refers to a method for mining and learning deep concepts of text, images, etc. Semantic analysis methods may include sentence component analysis methods, machine learning methods, etc. It is understood that the embodiments of the present invention do not limit the specific semantic analysis methods.

[0052] For example, the search text A of Example 1 may include: 2 semantic levels, so it is possible to determine 2 text segments corresponding to the search text A, where 1 text segment corresponds to one semantic level. For another example, the search text B of Example 2 may include: 3 semantic levels, so it is possible to determine 3 text segments corresponding to the search text B, where 1 text segment corresponds to one semantic level.

[0053] In another optional embodiment of the present invention, step 201 determines a text fragment sequence corresponding to the user's search text, which may specifically include: determining at least one target word unit in the user's search text; the target word unit may include: a target word, and a modifier corresponding to the target word, and the part of speech of the target word may be a preset part of speech; and, for a target word unit, determining its corresponding text fragment and the location information of the text fragment.

[0054] In the embodiment of the present invention, the preset part of speech may be a noun or a pronoun. A pronoun may refer to a word that replaces a formal name. For example, "Dukang" may be a pronoun for "wine"; or, "iron rooster" may be a pronoun for being extremely stingy, and so on.

[0055] Modifiers are words, phrases or clauses that modify other components in a sentence. Nouns, adjectives, adjective clauses, participles, etc. can all serve as modifiers of nouns or pronouns.

[0056] A target word unit in the embodiment of the present invention may refer to a semantic unit corresponding to a semantic level, and a target word unit may include: a target word and its corresponding target word unit. At least one target word unit in the search text may be obtained according to a semantic analysis method or a grammatical analysis method.

[0057] For example, in Example 1, the target word units in the search text A "Pope of the smallest country in the world" can include the following in order from front to back:

[0058] Target word unit A1: “the smallest country in the world”; and

[0059] Target word unit A2: "Pope of XXX".

[0060] Among them, the noun of the target word unit A1 can be "country", and the modifier can be "the smallest in the world"; the noun of the target word unit A2 can be "Pope", and the modifier can be "the smallest country in the world", that is, "XXX" means "the smallest country in the world".

[0061] For example, in Example 2, the target word units in the search text B "what is the name of the father's father's father's father" can include, in order from front to back:

[0062] Target word unit B1: “Dad’s dad”;

[0063] Target word unit B2: "XXX's father"; and

[0064] Target word unit B3: “What is the name of %%%’s father?”

[0065] Among them, the noun of the target word unit B1 can be "dad", and the modifier can be "dad"; the noun of the target word unit B2 can be "dad", and the modifier can be "dad's dad", that is, "XXX" means "dad's dad"; the noun of the target word unit B3 can be "dad", and the modifier of the target word unit B3 can be "dad's dad's dad", that is, "%%%" can be "dad's dad's dad".

[0066] The embodiment of the present invention can determine at least one target word unit in the user's search text according to the aforementioned semantic analysis method. The embodiment of the present invention does not limit the specific determination process of the target word unit.

[0067] In the embodiment of the present invention, one target word unit may correspond to one text segment.

[0068] Optionally, the above-mentioned determining the position information of the text fragment in the search text for a target word unit may specifically include: determining the position information of the text fragment corresponding to the target word unit based on the position information of the target word or modifier in the search text in the target word unit.

[0069] Optionally, the above position information can be represented by numbers in order from front to back, for example, the position information of the text segment corresponding to the first target word unit is numbered 1, and the position information of the text segment corresponding to the second target word unit is numbered 2... It can be understood that the embodiment of the present invention does not limit the specific representation method of the position information. The order of the target word units in the embodiment of the present invention can be from front to back, and of course can also be from back to front.

[0070] In an optional embodiment of the present invention, the above-mentioned determination method for determining the corresponding text segment of a target word unit may specifically include:

[0071] Determination method 1: using a preset character string to replace a modifier in a target word unit, and obtaining a text segment according to the replaced target word unit; or

[0072] Determination method 2: treat a target word unit as a text segment.

[0073] Determination method 2 can be applied to the first target word unit from the front to the back. For example, "the smallest country in the world" in Example 1 can be directly used as the first text segment; for another example, "dad's dad" in Example 2 can be directly used as the first text segment.

[0074] Determination method 1 can be applied to non-first target word units from front to back. For example, the modifier "the smallest country in the world" in "the Pope of the smallest country in the world" in Example 1 can be replaced with a preset string, and examples of preset strings can include: "XXX", "%%%", etc., to obtain the text segment "XXX's Pope". Similarly, the modifier "dad's dad" in "dad's dad's dad" in Example 2 can be replaced with a preset string to obtain the text segment "XXX's dad"; and the modifier "dad's dad's dad" in "dad's dad's dad's dad" in Example 2 can be replaced with a preset string to obtain the text segment "%%%'s dad's name is what".

[0075] In step 202, adjacent text segments in the text segment sequence can be fused to achieve simplification of the semantic level; wherein, the fusion between adjacent text segments can refer to the fusion between the query result entity word corresponding to the ith text segment and the (i+1)th text segment, so that the semantic level corresponding to the ith text segment can be fused with the semantic level corresponding to the (i+1)th text segment, thereby simplifying the semantic level; wherein, i can be a natural number greater than 0.

[0076] For example, in Example 1, the query result entity word corresponding to the first text segment can be fused with the second text segment to obtain the query string corresponding to the second text segment. For another example, in Example 2, the query result entity word corresponding to the first text segment can be fused with the second text segment to obtain the query string corresponding to the second text segment; and the query result entity word corresponding to the second text segment can be fused with the third text segment to obtain the query string corresponding to the third text segment.

[0077] In an embodiment of the present invention, a query string corresponding to a text fragment can be used to determine the corresponding query result entity word. The query string corresponding to the first text fragment can be the first text fragment itself, and the query string corresponding to a non-first text fragment can be a fusion of the query result entity word corresponding to the previous text fragment and the current text fragment.

[0078] In an optional embodiment of the present invention, the query result entity word corresponding to a text segment may be determined by the following steps:

[0079] Determine the question-answering intent of the query string corresponding to a text snippet;

[0080] Answer information matching the question-answering intent is determined from a web page or document corresponding to the query string of the text segment as a query result entity word corresponding to the text segment.

[0081] The embodiment of the present invention may provide the following determination scheme for question-answering intent:

[0082] Determine the plan 1.

[0083] In determination scheme 1, the process of determining the question and answer intent of a query string corresponding to a text fragment may include: identifying a current LAT (Lexical Answer Type) directional word from the query string; based on the current LAT directional word, searching in a pre-established mapping relationship between LAT directional words and LAT words to obtain a target LAT word corresponding to the current LAT directional word; based on the target LAT word, obtaining the question and answer intent corresponding to the query string.

[0084] Determination scheme 1 can first identify the current LAT directional word contained in the query string, and then obtain the target LAT word corresponding to the current LAT directional word based on the mapping relationship between the LAT directional word and the LAT word; wherein the LAT directional word can be used to represent words that are directional to the question and answer intent, and the LAT word can be used to represent the question and answer intent. In this way, the mapping relationship between the LAT directional word and the LAT word can describe the directional relationship from the LAT directional word to the question and answer intent corresponding to the LAT word.

[0085] The embodiment of the present invention obtains the target LAT word corresponding to the current LAT directional word based on the mapping relationship between the LAT directional word and the LAT word; since the target LAT word is derived from the current LAT directional word, even if the query string does not contain the target LAT word, the question and answer intent corresponding to the query string can still be derived. In this way, the embodiment of the present invention can obtain the question and answer intent corresponding to the query string according to the derived question and answer intent when the query string does not carry a complete question and answer requirement, thereby improving the accuracy of the answer intent.

[0086] LAT words can be used to represent text that indicates the type of answer in a question. Optionally, a large number of questions can be collected, and the collected questions can be analyzed and counted to establish a LAT library, which can be used to store LAT words. For example, the LAT words stored in the LAT library can include: emperor, island, mountain, event, country, flower, river, pope, etc. It can be understood that the embodiments of the present invention do not limit specific LAT words.

[0087] Optionally, the complete question can be analyzed, and LAT directional words can be mined out according to the corresponding analysis results, and the mined LAT directional words can be saved in the LAT directional word library; and a mapping relationship between LAT directional words and LAT words can be established. Referring to Table 1, a schematic diagram of a mapping relationship between LAT directional words and LAT words of the present invention is shown. It can be understood that the LAT words shown in Table 1 are only used as examples. In fact, for example, the LAT words of "character" can also be subdivided into "emperor", "scientist", "poet", "physicist", etc. It can be understood that the LAT words of the embodiment of the present invention can be any entity type and / or entity words corresponding to any entity type. The embodiment of the present invention does not limit the mapping relationship between specific LAT directional words and LAT words.

[0088] Table 1

[0089]

[0090]

[0091] In practical applications, the process of identifying the current LAT directional word from the query string may include: matching each word included in the query string with each LAT directional word in the LAT directional word library, and if the match is successful, using the successfully matched word included in the query string as the current LAT directional word. It can be understood that the embodiment of the present invention does not limit the specific process of identifying the current LAT directional word from the query string.

[0092] In an application example 1 of the present invention, assuming that the query string is "known as", assuming that "known as" exists in the LAT directional vocabulary, the target LAT word "people and / or things" corresponding to "known as" can be obtained by looking up Table 1. And, assuming that the query string is "known as the father of CD", assuming that "father" exists in the LAT directional vocabulary, the target LAT word "people" corresponding to "father" can be obtained by looking up Table 1, and finally it can be determined that the question and answer intent corresponding to "known as the father of CD" is "people". Similarly, assuming that the query string is "known as the holy sword of physics", it can be determined that its corresponding question and answer intent is "weapon".

[0093] In an application example 2 of the present invention, assuming that the query string is "the world-famous building Taj Mahal is located at", assuming that "located at" exists in the LAT directional vocabulary, the target LAT word "geographic location" corresponding to "located at" can be obtained by looking up Table 1.

[0094] In an application example 3 of the present invention, assuming that the query string is "the proposal of the mass-energy equation", assuming that "proposed" exists in the LAT directional vocabulary, the target LAT word "person" corresponding to "proposed" can be obtained by looking up Table 1.

[0095] In an application example 4 of the present invention, assuming that the query string is "What does the five social insurances and one housing fund mean", and assuming that "what does it mean" exists in the LAT directional vocabulary, the target LAT word "concept" corresponding to "What does the five social insurances and one housing fund mean" can be obtained by looking up Table 1.

[0096] Since the above-mentioned target LAT word can be used as the core word or focus word of the question corresponding to the query string, it can reflect the answer type of the question corresponding to the query string. Therefore, the target LAT word can be directly used as the question and answer intent corresponding to the query string, or the target LAT word can be further processed (such as the fusion processing of multiple target LAT words, etc.) to obtain the question and answer intent corresponding to the query string.

[0097] Determine plan 2.

[0098] In determination scheme 2, the process of determining the question-answering intent of a query string corresponding to a text fragment may include: performing dependency syntactic analysis on the query string to obtain a corresponding dependency syntactic analysis result; extracting core semantic units from the dependency syntactic analysis result; and obtaining the question-answering intent corresponding to the query string based on the core semantic units.

[0099] Determination scheme 2 can extract core semantic units from the dependency syntactic analysis results corresponding to the query string, and obtain the question and answer intent corresponding to the query string based on the core semantic units; wherein the above-mentioned core semantic units used to represent the question and answer intent may include: core words, core words, etc.

[0100] In practical applications, the dependency syntactic analysis result may include: a dependency tree, which can be used to represent the dependency relationship between the words included in the query string, analyze the dependency tree, and extract core semantic units from the dependency tree according to the analysis result.

[0101] In practical applications, the dependency tree may be analyzed according to preset extraction rules, and core semantic units may be extracted from the dependency tree based on the analysis results.

[0102] Optionally, the extracting of core semantic units from the dependency syntactic analysis results may include: if the word immediately following the question word in the dependency tree is a noun or a noun phrase, extracting the noun or noun phrase as the core semantic unit. If the question word in the dependency tree is followed by a noun or a noun phrase, then the noun or noun phrase may be the above-mentioned core semantic unit used to characterize the question-answering intent. For example, in the query string "Which scientist helped Jewish scientists escape from Germany", the question word "which" is followed by the noun "scientist", so "scientist" can be used as the core semantic unit.

[0103] Optionally, the extracting of core semantic units from the dependency syntactic analysis results may include: if the question word in the dependency tree is at the end of the query string, then extracting the noun or noun phrase closest to the question word as the core semantic unit. If the question word is at the end of the query string, then the noun or noun phrase closest to the question word may be the core semantic unit that represents the question-answering intent. For example, assuming the query string is "Who is known as the father of CD", its corresponding query string includes: "Who is known as the father of CD", and the noun phrase closest to the question word "which" in the query string is "Father of CD", then "Father of CD" may be used as the core semantic unit.

[0104] Optionally, the extracting of core semantic units from the dependency syntactic analysis results may include: if the vocabulary immediately following the question word in the dependency tree is a verb, extracting the last noun or noun phrase appearing in the query string as the core semantic unit. If the question word is followed by a verb, then the last noun or noun phrase appearing in the query string may be a core semantic unit representing the question-answering intent. For example, assuming the query string is "how to fold a paper airplane", the question word "how" in the query string is followed by the verb "fold", so the last noun phrase "paper airplane" can be used as the core semantic unit. For another example, assuming the query string is "how to download the complete content of Baidu Library files for free", the question word "how" in the query string is followed by the verb "download", so the last noun phrase "the complete content of Baidu Library files" can be used as the core semantic unit.

[0105] It can be understood that the above-mentioned preset extraction rules are only optional embodiments, and the embodiments of the present invention do not limit the specific extraction rules. Since the above-mentioned core semantic unit can be used as the core word or focus word of the query string, it can reflect the answer type of the query string, so the core semantic unit can be directly used as the question and answer intention corresponding to the query string, or the core semantic unit can be further processed (such as the fusion processing of multiple core semantic units, etc.) to obtain the question and answer intention corresponding to the query string.

[0106] Confirmation of Option 3

[0107] In determination scheme 3, the process of determining the question-answer intent of a query string corresponding to a text segment may include: performing intent recognition on the query string of the question-answer pair through a domain recognition module and a domain intent recognition module.

[0108] Among them, the field identification module can be used to identify the field to which the query string belongs; examples of fields may include: "Olympic Sports", "Regional Issues", "Computers and Digital", "Laws and Regulations", "Life", "Education and Science", "Economics and Finance", "Emotions and Family", "Society and People's Livelihood", "Leisure and Entertainment", "Medical Care", "Art and Writing", "Games", etc. Of course, the embodiments of the present invention are not limited to specific fields.

[0109] The domain intent recognition module can be used to identify the question-answering intent corresponding to the query string within the domain.

[0110] According to an embodiment, intent recognition can be regarded as a multi-classification task, so the domain intent recognition module can identify the question and answer intent corresponding to the query string in the domain through a classifier. Among them, the classification task of the classifier can be obtained based on multiple question and answer intents (one question and answer intent can correspond to one classification task), and the training samples of the classifier can be obtained based on the question and answer pair corpus corresponding to the multiple question and answer intents. For example, the training samples can be question corpus and labeled question and answer intent categories, and the training samples are trained on this basis to obtain the classifier.

[0111] According to another embodiment, the domain intent recognition module can identify the question-answering intent corresponding to the query string in the domain through the question-answering intent sentence pattern, wherein the question-answering intent sentence pattern can be used to represent the sentence pattern corresponding to the question-answering intent in the domain, which can include at least one keyword, and the at least one keyword can conform to the corresponding grammatical rules; in this way, the question-answering intent pattern corresponding to the query string can be obtained based on the match between the query string and the question-answering intent sentence pattern. For example, the question-answering intent sentence pattern may include: "modifier + noun", in which case the question-answering intent can be "modifier + concept corresponding to the noun"

[0112] It can be understood that those skilled in the art can adopt any one or a combination of the above-mentioned determination schemes 1 to 3 to determine the question and answer intent of a query string corresponding to a text fragment according to actual application requirements. The embodiments of the present invention do not limit the specific process of determining the question and answer intent of a query string corresponding to a text fragment.

[0113] In the embodiment of the present invention, the webpage or document corresponding to the query string of a text segment can be obtained by querying from the data source based on the query string. The query principle of the webpage or document corresponding to the query string is similar to the query principle of the existing search engine, so it will not be repeated here.

[0114] The embodiment of the present invention can determine the answer information matching the question-answering intent from the web page or document corresponding to the query string as the query result entity word corresponding to the text segment. For example, the first text segment "the smallest country in the world" in Example 1 corresponds to the question-answering intent "country", and the answer information matching the question-answering intent - "Vatican" can be determined from the web page or document corresponding to the query string.

[0115] The following is a detailed description of the process of determining answer information matching the question-answering intent from the web page or document corresponding to the query string.

[0116] In an optional embodiment of the present invention, question-answer pairs can be mined from web pages in advance in an offline state, and in an online state, answer information that matches the question-answer intent and is contained in the page corresponding to the query string can be determined by querying the question-answer pairs. Specifically, the above process of determining answer information that matches the question-answer intent from the web page or document corresponding to the query string can specifically include: searching in the question-answer pairs corresponding to the pages of the query string based on the question-answer intent to obtain answer information that matches the question-answer intent; the question-answer pairs can include: questions and answers. Since the mining of question-answer pairs is implemented in an offline state, and the answer information is determined by querying the question-answer pairs in an online state, the efficiency of determining the answer information can be improved.

[0117] The embodiments of the present invention do not limit the specific mining method used to mine question-answer pairs from web pages. For example, the above-mentioned mining methods may include: manual mining methods and automatic mining methods, among which the automatic mining methods may include: extraction template mining methods, the extraction template mining method can configure an extraction template, and the extraction template can specify the question statement and the connecting words between the question statement and the answer, thereby realizing the extraction of question-answer pairs. However, the manual mining method requires a lot of manpower costs; the extraction template mining method needs to rely on a valid extraction template. If the extraction template does not match a certain text section of the web page, it may not be possible to extract the question-answer pair from the text section.

[0118] In an optional embodiment of the present invention, the question-answer pair corresponding to the page of the query string can be extracted from the page of the query string based on the page structure of the page of the query string. The page structure can refer to the layout of the page content. Extracting the question-answer pair based on the page structure is not restricted by the limited extraction template, so the coverage of the extracted question-answer pairs can be improved.

[0119] In practical applications, the page structure can be determined by the page source code. The page source code may refer to the source code of the page, which may represent the language structure of the page. Optionally, the page structure may be represented by page elements or tags. Alternatively, the page structure may be represented by a DOM (Document Object Model) tree. It is understood that the embodiments of the present invention do not limit the specific representation method of the page structure.

[0120] In an optional embodiment of the present invention, the process of extracting question-answer pairs from the page of the query string based on the page structure of the query string may specifically include: clustering the text segments included in the web page based on the page structure of the web page to obtain text segment categories; determining candidate questions corresponding to the text segment categories; and extracting answer information corresponding to the candidate questions from the text segments corresponding to the candidate questions.

[0121] The embodiment of the present invention can obtain the page structure corresponding to each text segment of the web page, such as tag information, based on the analysis of the page structure, and cluster multiple text segments according to the page structure of the text segments. The clustering can aggregate text segments with similar page structures into the same text segment category.

[0122] Methods for determining the candidate questions corresponding to the text segment category may include: a template feature method, and / or a rule scoring method. Among them, the template feature may correspond to the feature of the question, such as a word feature, a sentence feature, or a phrase feature; the rule scoring method can be used to evaluate the candidate questions. Optionally, the connection relationship between the vocabulary corresponding to the candidate questions can be scored according to the language model. According to one embodiment, if the language unit (word, phrase, phrase or sentence) included in a text segment category meets the template feature and the corresponding score exceeds the score threshold, the language unit can be used as a candidate question.

[0123] Taking web page A with URL (Uniform Resource Locator) http: / / www.66law.cn / special / wxyj / as an example, the text segments included in the web page can be clustered according to the page structure of the web page to obtain text segment categories, and the following candidate questions corresponding to the text segment categories are determined: "What does the five insurances and one fund include", "What are the uses of the five insurances and one fund", "The latest news on the change of five insurances and one fund to four insurances and one fund", "The minimum standard of five insurances and one fund", "The payment ratio of five insurances and one fund", "How much is the five insurances and one fund, and can it be withdrawn", "What to do with the five insurances and one fund after leaving the job", "How to pay the five insurances and one fund by yourself", "The consequences of not paying the five insurances and one fund", "What to do if the company does not buy five insurances and one fund for us", "Does the law have any provisions on the five insurances and one fund in the signing of labor contracts", etc.

[0124] The embodiment of the present invention can extract the answer information corresponding to the candidate question from the text segment corresponding to the candidate question. Optionally, the type of the above answer information may include: title type, such as the answer information corresponding to web page A is of title type. Optionally, the type of the above answer information may include: step type, such as the answer information corresponding to web page B of https: / / zhinan.sogou.com / guide / detail / ? id=316512868864 is of step type. Of course, the embodiment of the present invention does not limit the specific type of answer information.

[0125] In an optional embodiment of the present invention, the method of the embodiment of the present invention may further include: extracting candidate question-answer pairs from the query string page according to the page structure of the query string page; filtering the candidate question-answer pairs according to the attribute information of the candidate question-answer pairs. The embodiment of the present invention may filter the candidate question-answer pairs according to the attribute information. Through the above filtering, the candidate question-answer pairs that do not meet the preset conditions may be removed, and the candidate question-answer pairs that meet the preset conditions may be retained to improve the quality of the question-answer pairs.

[0126] The attribute information may include at least one of semantic representation information and quality information.

[0127] The semantic representation information can be used to determine the similarity between candidate question-answer pairs, thereby filtering out candidate question-answer pairs with high similarity.

[0128] Optionally, the semantic representation information can be obtained by semantically analyzing the candidate question-answer pair. The semantic analysis methods that can be used may include: topic model methods and deep learning methods. The topic model methods may include: LDA (document topic generation model, Latent Dirichlet Allocation), etc. The deep learning methods may include: word embedding, recurrent neural network, convolutional neural network, recursive neural network, etc.

[0129] The quality information can reflect the quality of the candidate question-answer pairs, thereby filtering out candidate question-answer pairs with poor quality and retaining candidate question-answer pairs with good quality.

[0130] The quality information may include: page quality information and / or site quality information corresponding to the candidate question-answer pair. Through the quality information, data that does not involve the question or answer or data that does not answer the question can be removed, and data with clear questions and answers, relevant answers, and reliable sources can be retained.

[0131] It can be understood that the above-mentioned method of determining answer information by querying the question and answer pair is only an optional embodiment. In fact, text extraction technology can also be used to extract answer information that matches the question and answer intent from the main text of the page of the query string. The embodiment of the present invention does not limit the specific process of determining the answer information that matches the question and answer intent from the web page or document corresponding to the query string.

[0132] In the embodiment of the present invention, step 202 may fuse adjacent text segments according to the relationship of semantic levels. It is understood that the embodiment of the present invention does not limit the specific fusion process.

[0133] In an optional embodiment of the present invention, the (i+1)th text segment may include: a preset character string and a target word, and step 202 merges the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)th text segment in the text segment sequence, which may specifically include:

[0134] The query result entity word corresponding to the i-th text segment is used to replace the preset character string in the (i+1)-th text segment, and the replaced (i+1)-th text segment is used as the query string corresponding to the (i+1)-th text segment.

[0135] The query result entity word corresponding to the i-th text segment is a summary of the previous semantic level. Therefore, the summary of the previous semantic level can be integrated with the expression of the current semantic level.

[0136] For example, in Example 1, the query result entity word corresponding to the first text segment may be "Vatican", so "Vatican" may be merged with the second text segment "XXX's Pope" to obtain the query string corresponding to the second text segment - "Vatican's Pope".

[0137] For example, in Example 2, the query result entity word corresponding to the first text fragment may be "grandfather", and "grandfather" may be fused with the second text fragment to obtain the query string "grandfather's father" corresponding to the second text fragment; and, the query result entity word "great-grandfather" corresponding to the second text fragment may be fused with the third text fragment to obtain the query string "what is the name of great-grandfather's father" corresponding to the third text fragment.

[0138] In an example 3 of an embodiment of the present invention, the search text C is "Who did the heroine of Startling by Each Step marry?", and the search text C is split to obtain the first text segment "The heroine of Startling by Each Step" and the second text segment "Who did XXX marry?"; further, the query result entity word corresponding to the first text segment may be "Ruoxi", and "Ruoxi" may be merged with the second text segment to obtain the query string corresponding to the second text segment - "Who did Ruoxi marry?"

[0139] In an example 4 of an embodiment of the present invention, the search text D is "Can Starbucks in Wudaokou be paid by WeChat?", and the search text D is split to obtain the first text segment "Starbucks in Wudaokou" and the second text segment "Can XXX be paid by WeChat?"; further, the query result entity word corresponding to the first text segment may be "Starbucks (Wudaokou store)", and "Starbucks (Wudaokou store)" may be merged with the second text segment to obtain the query string corresponding to the second text segment - "Can Starbucks (Wudaokou store) be paid by WeChat?"

[0140] In an example 5 of an embodiment of the present invention, the search text E is "What cultural heritage does the most developed country in the world have", and the search text D is split to obtain the first text segment "What cultural heritage does the most developed country in the world have" and the second text segment "What cultural heritage does XXX have"; further, the query result entity words corresponding to the first text segment may include: "Sweden", "Finland", "Switzerland", "Australia", "Germany", etc., and each query result entity word can be merged with the second text segment to obtain the query string corresponding to the second text segment, such as "What cultural heritage does Sweden have".

[0141] In step 203, the query result entity word corresponding to the last text segment in the text segment sequence may be used as a basis for the search result corresponding to the search text.

[0142] In an optional embodiment of the present invention, the query result entity word corresponding to the last text segment in the text segment sequence includes: target answer information matching the question-answering intent corresponding to the last text segment.

[0143] Then step 203 obtains the search result corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence, which may specifically include:

[0144] Using the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or

[0145] The web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence is used as the search result corresponding to the search text.

[0146] For example, in Example 1, the target answer information (that is, the query result entity word) that matches the question and answer intent corresponding to the last text fragment may be "Francisco", so "Francisco" may be used as the search result corresponding to the search text, or the web page or document corresponding to "Francisco" may be used as the search result corresponding to the search text, and the web page corresponding to "Francisco" may include: the encyclopedia page corresponding to "Francisco", etc.

[0147] The web page or document corresponding to the target answer information may refer to a web page or document related to the target answer information. According to one embodiment, a target question-answer pair matching the target answer information may be determined, and the web page or document containing the target question-answer pair may be used as the web page or document corresponding to the target answer information. According to another embodiment, the web page or document whose keywords contain the target answer information may be used as the web page or document corresponding to the target answer information. It can be understood that the embodiments of the present invention do not limit the specific process of determining the web page or document corresponding to the target answer information.

[0148] It should be noted that the search results corresponding to the search text in the embodiment of the present invention may also include: search results that match the search text and are obtained through a search based on text matching or semantic matching.

[0149] In actual applications, the search results obtained in step 203 may be displayed for users to view.

[0150] In summary, the data processing method of the embodiment of the present invention realizes the simplification of the semantic level based on the splitting of the search text and the fusion between adjacent text segments in the text segment sequence; wherein, the fusion between adjacent text segments may refer to the fusion between the query result entity word corresponding to the ith text segment and the (i+1)th text segment, so that the semantic level corresponding to the ith text segment and the semantic level corresponding to the (i+1)th text segment may be fused, thereby simplifying the semantic level. The above-mentioned simplification of the semantic level may reduce the semantic level of the search text, that is, the query string corresponding to the last text segment may have fewer semantic levels than the search text; therefore, according to the query string corresponding to the last text segment, the query result entity word corresponding to the last text segment is obtained, so that the quality of the query result entity word corresponding to the last text segment can be improved, and thus the quality of the search result corresponding to the search text can be improved.

[0151] Method Example 2

[0152] Reference Figure 3 , shows a flow chart of the steps of a data processing method embodiment 2 of the present invention, which may specifically include the following steps:

[0153] Step 301: receiving a user's search text;

[0154] Step 302: determine a text segment sequence corresponding to the user's search text; the text segment sequence may include, from front to back, query 1, query 2, ..., query N, where N is a natural number greater than 1;

[0155] Step 303: Take the i-th text segment query i from the text segment sequence; 1≤i≤N;

[0156] Step 304: determine the query string corresponding to query i;

[0157] Step 305: Determine the query result entity word corresponding to query i according to the query string corresponding to query i;

[0158] Step 306: determine whether i is N. If so, execute step 307; otherwise, i=i+1, and return to execute step 303;

[0159] Step 307: Obtain search results corresponding to the search text according to the query result entity word corresponding to query N.

[0160] It should be noted that, when i is greater than 1, step 304 may merge the query result entity word corresponding to query (i-1) with query i to obtain the query string corresponding to query i.

[0161] The process of determining the query result entity word corresponding to query i may include: determining the question-answering intent of the query string corresponding to query i; determining answer information matching the question-answering intent from the web page or document corresponding to the query string of query i as the query result entity word corresponding to query i. Furthermore, the answer information matching the question-answering intent may be merged with query (i+1) to obtain the query string corresponding to query (i+1).

[0162] Method Example 3

[0163] Reference Figure 4 , shows a flow chart of the steps of a data processing method embodiment 3 of the present invention, which may specifically include the following steps:

[0164] Step 401: receiving a user's search text;

[0165] Step 402: determine whether the user's search text corresponds to multiple semantic levels. If so, execute step 404;

[0166] Step 403: determine whether the user's search text includes multiple target word units, if so, execute step 404;

[0167] Step 404: determine a text segment sequence corresponding to the user's search text; the text segment sequence may include: a plurality of text segments arranged in sequence;

[0168] Step 405: merge the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment;

[0169] Wherein, i may be a natural number, a query string corresponding to a text segment may be used to determine a corresponding query result entity word, and the query string corresponding to the first text segment may be the first text segment itself;

[0170] Step 406: Obtain search results corresponding to the search text based on the query result entity word corresponding to the last text segment in the text segment sequence.

[0171] Before determining the text segment sequence corresponding to the user's search text, the embodiment of the present invention can determine whether the search text needs to be simplified at the semantic level, that is, whether the search text needs to be processed using the data processing method of the embodiment of the present invention.

[0172] The judgment in the embodiment of the present invention may include: a first judgment in step 402 and a second judgment in step 403 .

[0173] The first judgment in step 402 is used to judge whether the user's search text corresponds to multiple semantic levels. Optionally, a semantic analysis method can be used to judge whether the user's search text corresponds to multiple semantic levels.

[0174] The second judgment in step 403 is used to judge whether the user's search text includes multiple target word units. Optionally, a syntax analysis method can be used to judge whether the user's search text includes multiple target word units.

[0175] When the result of the first judgment is yes and / or the result of the second judgment is yes, the text segment sequence corresponding to the user's search text can be determined, that is, the subsequent data processing flow can be executed. In this way, when the result of the first judgment is no or the result of the second judgment is no, the subsequent data processing flow can be executed, so the amount of data processing calculation can be reduced.

[0176] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0177] Device Embodiment

[0178] Reference Figure 5 , shows a structural block diagram of an embodiment of a data processing device of the present invention, which may specifically include: a text segment sequence determination module 501, a fusion module 502 and a search result determination module 503.

[0179] The text segment sequence determination module 501 is used to determine the text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0180] A fusion module 502 is used to fuse the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; and

[0181] The search result determination module 503 is used to obtain the search result corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence.

[0182] Optionally, the device may further include:

[0183] The query result entity word determination module is used to determine the query result entity word corresponding to a text segment:

[0184] The query result entity word determination module may include:

[0185] A question-answering intention determination module is used to determine the question-answering intention of a query string corresponding to a text segment;

[0186] The answer determination module is used to determine answer information matching the question-answering intention from the web page or document corresponding to the query string of the text fragment as the query result entity word corresponding to the text fragment.

[0187] Optionally, the (i+1)th text segment may include: a preset character string and a target word;

[0188] The fusion module 502 may include:

[0189] A replacement module is used to use the query result entity word corresponding to the i-th text segment to replace the preset character string in the (i+1)-th text segment, and use the replaced (i+1)-th text segment as the query string corresponding to the (i+1)-th text segment.

[0190] Optionally, the search result determination module 503 may include:

[0191] A first search result determination module is configured to use the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or

[0192] The second search result determination module is used to use the web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text.

[0193] Optionally, the text segment sequence determination module 501 may include:

[0194] The semantic analysis module is used to perform semantic analysis on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

[0195] Optionally, the text segment sequence determination module 501 may include:

[0196] A target word unit determination module is used to determine at least one target word unit in the user's search text; the target word unit may include: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech;

[0197] The segment position determination module is used to determine, for a target word unit, its corresponding text segment and the position information of the text segment in the search text.

[0198] Optionally, the segment position determination module may include:

[0199] A first segment determination module is used to replace a modifier in a target word unit with a preset character string, and obtain a text segment according to the replaced target word unit; or

[0200] The second segment determination module is used to regard a target word unit as a text segment.

[0201] Optionally, the segment position determination module may include:

[0202] The position determination module is used to determine the position information of the text segment corresponding to the target word unit according to the position information of the target word or modifier in the target word unit in the search text.

[0203] Optionally, the device may further include:

[0204] A first judgment module is used to judge whether the user's search text corresponds to multiple semantic levels before the text segment sequence determination module determines the text segment sequence corresponding to the user's search text, and if so, trigger the text segment sequence determination module to determine the text segment sequence corresponding to the user's search text; or

[0205] The second judgment module is used to judge whether the user's search text can include multiple target word units before the text fragment sequence determination module determines the text fragment sequence corresponding to the user's search text. If so, the text fragment sequence determination module is triggered to determine the text fragment sequence corresponding to the user's search text.

[0206] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0207] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0208] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0209] An embodiment of the present invention provides a device for data processing, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: determining a text fragment sequence corresponding to a user's search text; the text fragment sequence includes: a plurality of text fragments arranged in sequence; fusing a query result entity word corresponding to the i-th text fragment in the text fragment sequence with the (i+1)-th text fragment in the text fragment sequence to obtain a query string corresponding to the (i+1)-th text fragment; wherein i is a natural number, and a query string corresponding to a text fragment is used to determine the corresponding query result entity word, and the query string corresponding to the first text fragment is the first text fragment itself; and obtaining a search result corresponding to the search text based on the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0210] Figure 6 8 is a block diagram of a data processing apparatus 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0211] Reference Figure 6 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0212] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0213] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0214] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0215] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0216] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice data processing mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0217] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0218] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0219] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can 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 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency data processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0220] In an exemplary embodiment, the apparatus 800 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, microcontrollers, microprocessors or other electronic components to perform the above method.

[0221] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0222] Figure 7 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.

[0223] 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 and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0224] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 2 or Figure 3 or Figure 4 The data processing method shown.

[0225] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by the processor of an apparatus (server or terminal), enables the apparatus to execute a data processing method, the method comprising: determining a text fragment sequence corresponding to a user's search text; the text fragment sequence comprising: a plurality of text fragments arranged in sequence; fusing the query result entity word corresponding to the i-th text fragment in the text fragment sequence with the (i+1)-th text fragment in the text fragment sequence to obtain a query string corresponding to the (i+1)-th text fragment; wherein i is a natural number, the query string corresponding to a text fragment is used to determine the corresponding query result entity word, and the query string corresponding to the first text fragment is the first text fragment itself; and obtaining the search result corresponding to the search text based on the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0226] The embodiment of the present invention discloses A1, a data processing method, the method comprising:

[0227] Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0228] The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself;

[0229] The search result corresponding to the search text is obtained according to the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0230] A2. According to the method described in A1, determine the query result entity word corresponding to a text segment through the following steps:

[0231] Determine the question-answering intent of the query string corresponding to a text snippet;

[0232] Answer information matching the question-answering intent is determined from a web page or document corresponding to the query string of the text segment as a query result entity word corresponding to the text segment.

[0233] A3. According to the method described in A1 or A2, the (i+1)th text segment includes: a preset character string and a target word;

[0234] The step of fusing the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence includes:

[0235] The query result entity word corresponding to the i-th text segment is used to replace the preset character string in the (i+1)-th text segment, and the replaced (i+1)-th text segment is used as the query string corresponding to the (i+1)-th text segment.

[0236] A4. The method according to A1 or A2, wherein obtaining the search result corresponding to the search text based on the query result entity word corresponding to the last text segment in the text segment sequence comprises:

[0237] Using the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or

[0238] The web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence is used as the search result corresponding to the search text.

[0239] A5. The method according to A1 or A2, wherein determining a sequence of text segments corresponding to a user's search text comprises:

[0240] Semantic analysis is performed on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

[0241] A6. According to the method of A1 or A2, the determining of the text segment sequence corresponding to the user's search text comprises:

[0242] Determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech;

[0243] For a target word unit, determine its corresponding text segment and the position information of the text segment in the search text.

[0244] A7. According to the method described in A6, determining the corresponding text segment for a target word unit includes:

[0245] A preset character string is used to replace a modifier in a target word unit, and a text segment is obtained according to the replaced target word unit; or

[0246] Consider a target word unit as a text segment.

[0247] A8. The method according to A6, wherein for a target word unit, determining the position information of the text segment in the search text comprises:

[0248] According to the position information of a target word or a modifier in a target word unit in the search text, the position information of the text segment corresponding to the target word unit is determined.

[0249] A9. According to the method of A1 or A2, before determining the text segment sequence corresponding to the user's search text, the method further includes:

[0250] Determine whether the user's search text corresponds to multiple semantic levels, and if so, determine a sequence of text segments corresponding to the user's search text; or

[0251] It is determined whether the user's search text includes multiple target word units. If so, a text segment sequence corresponding to the user's search text is determined.

[0252] The embodiment of the present invention discloses B10, a data processing device, including:

[0253] A text segment sequence determination module is used to determine a text segment sequence corresponding to a user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0254] a fusion module, used to fuse the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; and

[0255] The search result determination module is used to obtain the search result corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence.

[0256] B11. The device according to B10, further comprising:

[0257] The query result entity word determination module is used to determine the query result entity word corresponding to a text segment:

[0258] The query result entity word determination module includes:

[0259] A question-answering intention determination module is used to determine the question-answering intention of a query string corresponding to a text segment;

[0260] The answer determination module is used to determine answer information matching the question-answering intention from the web page or document corresponding to the query string of the text fragment as the query result entity word corresponding to the text fragment.

[0261] B12. According to the device described in B10 or B11, the (i+1)th text segment includes: a preset character string and a target word;

[0262] The fusion module includes:

[0263] A replacement module is used to use the query result entity word corresponding to the i-th text segment to replace the preset character string in the (i+1)-th text segment, and use the replaced (i+1)-th text segment as the query string corresponding to the (i+1)-th text segment.

[0264] B13. According to the apparatus described in B10 or B11, the search result determination module comprises:

[0265] A first search result determination module is configured to use the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or

[0266] The second search result determination module is used to use the web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text.

[0267] B14. According to the device described in B10 or B11, the text segment sequence determination module includes:

[0268] The semantic analysis module is used to perform semantic analysis on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

[0269] B15. According to the device described in B10 or B11, the text segment sequence determination module includes:

[0270] A target word unit determination module is used to determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech;

[0271] The segment position determination module is used to determine, for a target word unit, its corresponding text segment and the position information of the text segment in the search text.

[0272] B16. According to the device of B15, the segment position determination module comprises:

[0273] A first segment determination module is used to replace a modifier in a target word unit with a preset character string, and obtain a text segment according to the replaced target word unit; or

[0274] The second segment determination module is used to regard a target word unit as a text segment.

[0275] B17. According to the device of B15, the segment position determination module comprises:

[0276] The position determination module is used to determine the position information of the text segment corresponding to the target word unit according to the position information of the target word or modifier in the target word unit in the search text.

[0277] B18. The device according to B10 or B11, further comprising:

[0278] A first judgment module is used to judge whether the user's search text corresponds to multiple semantic levels before the text segment sequence determination module determines the text segment sequence corresponding to the user's search text, and if so, trigger the text segment sequence determination module to determine the text segment sequence corresponding to the user's search text; or

[0279] The second judgment module is used to judge whether the user's search text includes multiple target word units before the text fragment sequence determination module determines the text fragment sequence corresponding to the user's search text. If so, the text fragment sequence determination module is triggered to determine the text fragment sequence corresponding to the user's search text.

[0280] The embodiment of the present invention discloses C19, a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations:

[0281] Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence;

[0282] The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself;

[0283] The search result corresponding to the search text is obtained according to the query result entity word corresponding to the last text fragment in the text fragment sequence.

[0284] C20. The device according to C19, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0285] Determine the question-answering intent of the query string corresponding to a text snippet;

[0286] Answer information matching the question-answering intent is determined from a web page or document corresponding to the query string of the text segment as a query result entity word corresponding to the text segment.

[0287] C21. According to the device described in C19 or C20, the (i+1)th text segment includes: a preset character string and a target word;

[0288] The step of fusing the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence includes:

[0289] The query result entity word corresponding to the i-th text segment is used to replace the preset character string in the (i+1)-th text segment, and the replaced (i+1)-th text segment is used as the query string corresponding to the (i+1)-th text segment.

[0290] C22. According to the apparatus described in C19 or C20, obtaining the search result corresponding to the search text according to the query result entity word corresponding to the last text segment in the text segment sequence includes:

[0291] Using the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or

[0292] The web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence is used as the search result corresponding to the search text.

[0293] C23. According to the apparatus described in C19 or C20, the determining the sequence of text segments corresponding to the user's search text comprises:

[0294] Semantic analysis is performed on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

[0295] C24. According to the apparatus described in C19 or C20, the determining the sequence of text segments corresponding to the user's search text comprises:

[0296] Determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech;

[0297] For a target word unit, determine its corresponding text segment and the position information of the text segment in the search text.

[0298] C25. According to the apparatus described in C24, the step of determining a corresponding text segment for a target word unit comprises:

[0299] A preset character string is used to replace a modifier in a target word unit, and a text segment is obtained according to the replaced target word unit; or

[0300] Consider a target word unit as a text segment.

[0301] C26. According to the apparatus described in C24, the step of determining the position information of the text segment in the search text for a target word unit comprises:

[0302] According to the position information of a target word or a modifier in a target word unit in the search text, the position information of the text segment corresponding to the target word unit is determined.

[0303] C27. The device according to C19 or C20, wherein the device is further configured to execute, by one or more processors, the one or more programs including instructions for performing the following operations:

[0304] Before determining the text segment sequence corresponding to the user's search text, determine whether the user's search text corresponds to multiple semantic levels, and if so, determine the text segment sequence corresponding to the user's search text; or

[0305] Before determining the text segment sequence corresponding to the user's search text, it is determined whether the user's search text includes multiple target word units. If so, the text segment sequence corresponding to the user's search text is determined.

[0306] An embodiment of the present invention discloses D28, a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute the data processing method as described in one or more of A1 to A9.

[0307] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0308] It should be understood that the present invention is not limited to the exact construction that has been 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 present invention is limited only by the appended claims.

[0309] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0310] The data processing method, the data processing device and the device for data processing provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data processing method, characterized in that: The method comprises: Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence, and the plurality of text segments respectively correspond to a semantic level; The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain the query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; the query string corresponding to the (i+1)-th text segment is the query result entity word corresponding to the i-th text segment replacing the preset character string in the (i+1)-th text segment; Obtaining search results corresponding to the search text according to the query result entity word corresponding to the last text fragment in the text fragment sequence; The query result entity word corresponding to a text segment is determined through the following steps: Determine the question-answering intent of a query string corresponding to a text segment; the question-answering intent is obtained based on LAT directional words in the query string, and / or based on dependency syntactic analysis of the query string, and / or based on domain intent recognition of the query string; Answer information matching the question-answering intent is determined from a web page or document corresponding to the query string of the text segment as a query result entity word corresponding to the text segment.

2. The method according to claim 1, characterized in that The step of obtaining the search result corresponding to the search text according to the query result entity word corresponding to the last text fragment in the text fragment sequence includes: Using the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or The web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence is used as the search result corresponding to the search text.

3. The method according to claim 1, characterized in that The step of determining a text segment sequence corresponding to the user's search text includes: Semantic analysis is performed on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

4. The method according to claim 1, characterized in that: The step of determining a text segment sequence corresponding to the user's search text includes: Determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech; For a target word unit, determine its corresponding text segment and the position information of the text segment in the search text.

5. The method according to claim 4, characterized in that The step of determining a corresponding text segment for a target word unit includes: A preset character string is used to replace a modifier in a target word unit, and a text segment is obtained according to the replaced target word unit; or Consider a target word unit as a text segment.

6. The method according to claim 4, characterized in that The step of determining the position information of the text segment in the search text for a target word unit includes: According to the position information of a target word or a modifier in a target word unit in the search text, the position information of the text segment corresponding to the target word unit is determined.

7. The method according to claim 1, characterized in that Before determining the text segment sequence corresponding to the user's search text, the method further includes: Determine whether the user's search text corresponds to multiple semantic levels, and if so, determine a sequence of text segments corresponding to the user's search text; or It is determined whether the user's search text includes multiple target word units. If so, a text segment sequence corresponding to the user's search text is determined.

8. A data processing device, characterized in that: include: A text segment sequence determination module is used to determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence, each of the plurality of text segments corresponds to a semantic level; A fusion module, used for fusing the query result entity word corresponding to the i-th text segment in the text segment sequence with the (i+1)-th text segment in the text segment sequence to obtain a query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; the query string corresponding to the (i+1)-th text segment is the query result entity word corresponding to the i-th text segment replacing the preset character string in the (i+1)-th text segment; and A search result determination module, used to obtain the search result corresponding to the search text according to the query result entity word corresponding to the last text fragment in the text fragment sequence; The query result entity word determination module is used to determine the query result entity word corresponding to a text segment: The query result entity word determination module includes: A question-answering intention determination module is used to determine the question-answering intention of a query string corresponding to a text segment; the question-answering intention is obtained based on the LAT directional words in the query string, and / or based on dependency syntactic analysis of the query string, and / or based on domain intent recognition of the query string; The answer determination module is used to determine answer information matching the question-answering intention from the web page or document corresponding to the query string of the text fragment as the query result entity word corresponding to the text fragment.

9. The device according to claim 8, characterized in that The search result determination module comprises: A first search result determination module is configured to use the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or The second search result determination module is used to use the web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text.

10. The device according to claim 8, characterized in that The text segment sequence determination module comprises: The semantic analysis module is used to perform semantic analysis on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

11. The device according to claim 8, characterized in that The text segment sequence determination module comprises: A target word unit determination module is used to determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech; The segment position determination module is used to determine, for a target word unit, its corresponding text segment and the position information of the text segment in the search text.

12. The device according to claim 11, characterized in that The fragment position determination module comprises: A first segment determination module is used to replace a modifier in a target word unit with a preset character string, and obtain a text segment according to the replaced target word unit; or The second segment determination module is used to regard a target word unit as a text segment.

13. The device according to claim 11, characterized in that The fragment position determination module comprises: The position determination module is used to determine the position information of the text segment corresponding to the target word unit according to the position information of the target word or modifier in the target word unit in the search text.

14. The device according to claim 8, characterized in that The device also includes: A first judgment module is used to judge whether the user's search text corresponds to multiple semantic levels before the text segment sequence determination module determines the text segment sequence corresponding to the user's search text, and if so, trigger the text segment sequence determination module to determine the text segment sequence corresponding to the user's search text; or The second judgment module is used to judge whether the user's search text includes multiple target word units before the text fragment sequence determination module determines the text fragment sequence corresponding to the user's search text. If so, the text fragment sequence determination module is triggered to determine the text fragment sequence corresponding to the user's search text.

15. A device for data processing, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Determine a text segment sequence corresponding to the user's search text; the text segment sequence includes: a plurality of text segments arranged in sequence, and the plurality of text segments respectively correspond to a semantic level; The query result entity word corresponding to the i-th text segment in the text segment sequence is merged with the (i+1)-th text segment in the text segment sequence to obtain the query string corresponding to the (i+1)-th text segment; wherein i is a natural number, the query string corresponding to a text segment is used to determine the corresponding query result entity word, and the query string corresponding to the first text segment is the first text segment itself; the query string corresponding to the (i+1)-th text segment is the query result entity word corresponding to the i-th text segment replacing the preset character string in the (i+1)-th text segment; Obtaining search results corresponding to the search text according to the query result entity word corresponding to the last text fragment in the text fragment sequence; The query result entity word corresponding to a text segment is determined through the following steps: Determine the question-answering intent of a query string corresponding to a text segment; the question-answering intent is obtained based on LAT directional words in the query string, and / or based on dependency syntactic analysis of the query string, and / or based on domain intent recognition of the query string; Answer information matching the question-answering intent is determined from a web page or document corresponding to the query string of the text segment as a query result entity word corresponding to the text segment.

16. The device according to claim 15, characterized in that The step of obtaining the search result corresponding to the search text according to the query result entity word corresponding to the last text fragment in the text fragment sequence includes: Using the query result entity word corresponding to the last text segment in the text segment sequence as the search result corresponding to the search text; or The web page or document corresponding to the query result entity word corresponding to the last text segment in the text segment sequence is used as the search result corresponding to the search text.

17. The device according to claim 15, characterized in that The step of determining a text segment sequence corresponding to the user's search text includes: Semantic analysis is performed on the user's search text so that each text segment in the obtained text segment sequence corresponds to a semantic level.

18. The device according to claim 15, characterized in that The step of determining a text segment sequence corresponding to the user's search text includes: Determine at least one target word unit in the user's search text; the target word unit includes: a target word and a modifier corresponding to the target word, and the part of speech of the target word is a preset part of speech; For a target word unit, determine its corresponding text segment and the position information of the text segment in the search text.

19. The device according to claim 18, characterized in that The step of determining a corresponding text segment for a target word unit includes: A preset character string is used to replace a modifier in a target word unit, and a text segment is obtained according to the replaced target word unit; or Consider a target word unit as a text segment.

20. The device according to claim 18, characterized in that The step of determining the position information of the text segment in the search text for a target word unit includes: According to the position information of a target word or a modifier in a target word unit in the search text, the position information of the text segment corresponding to the target word unit is determined.

21. The device according to claim 15, characterized in that The device is also configured to execute, by one or more processors, the one or more programs including instructions for: Before determining the text segment sequence corresponding to the user's search text, determine whether the user's search text corresponds to multiple semantic levels, and if so, determine the text segment sequence corresponding to the user's search text; or Before determining the text segment sequence corresponding to the user's search text, it is determined whether the user's search text includes multiple target word units. If so, the text segment sequence corresponding to the user's search text is determined.

22. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 1 to 7.

Citation Information

Patent Citations

  • Method and equipment for extracting core keywords based on query sequence cluster

    CN102043845A

  • News atomic event extraction method based on information unit fusion

    CN103838870A

  • Full-text retrieval device and method for interactive electronic technical manual of shipping equipment

    CN105528411A

  • Method for matching entity-based text data and XML files

    CN105677740A

  • Entity relationship recognition method and apparatus

    CN105938495A