Model-based semantic text search

The word embedding model generated by machine learning realizes semantic-based text search, solves the problem of being unable to consider semantic meaning and context in the existing technology, and improves the accuracy and relevance of search results.

CN113590739BActive Publication Date: 2024-09-06ADOBE INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110125326.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-15
Filing Date
2021-01-29
Publication Date
2024-09-06
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

Existing text search systems rely on string matching and fail to effectively consider the semantic meaning and context of keywords, resulting in inaccurate or useless results being returned when queries contain misspellings or different versions of words.

Method used

Use machine learning systems, especially deep learning systems, to generate semantic association models between words, and represent the semantic features of words in vector space through word embedding models to achieve model-based semantic text search and identify and query keywords semantically. related words.

Benefits of technology

The ability to return semantically related words despite misspellings or different versions improves the accuracy and relevance of search results, covering semantic associations that string matching cannot capture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590739B_ABST
    Figure CN113590739B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to model-based semantic text search. Techniques and systems for performing semantic text search are described. A semantic text search solution uses a machine learning system (such as a deep learning system) to determine associations between the semantic meanings of words. These associations are not limited by the spelling, syntax, grammar, or even definition of the words. Instead, the associations can be based on contexts in which characters, words, and / or phrases are used in relation to one another. In response to detecting a request to locate text associated with a keyword within an electronic document, the semantic text search solution can return strings within the document that have matching and / or related semantic meanings or contexts in addition to exact matches (e.g., string matches) within the document. The semantic text search solution can then output an indication of the matching string.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to performing model-based semantic text search using a model generated by a machine learning system. For example, aspects of the present application relate to receiving input corresponding to a keyword, and using a representation model of a word set to determine a word within an electronic document that is semantically related to the keyword. Background Art

[0002] Many applications, including word processing applications, web applications, mobile applications, etc., enable users to perform searches for text within documents and / or user interfaces. For example, when viewing an electronic document displayed by an application, a user may be able to open or initiate a word search user interface (e.g., by pressing "Ctrl+F" on a keyboard). The word search user interface may allow a user to enter a keyword containing one or more characters, words, phrases, etc. A text search system implemented by the application may then identify and return portions of text within the document that match or correspond to the keyword. In this way, a user may navigate to portions of the document that are relevant to the content of the keyword.

[0003] Many existing solutions for searching for keywords utilize or rely on string matching. String matching solutions can return direct matches of documents or include parts of text strings entered by users. For example, if a user searches for the string "turn", the string matching solution may return each instance of "turn" in the document, including words that also contain the string "turn" in addition to other characters, such as "turns" and "turning". Although string matching methods may return relevant results in some cases, the overall usefulness of this method may be limited. For example, if a user spells the search query incorrectly (even if it differs by a single letter), the string matching solution may not return any results (or may return inaccurate results). Similarly, if a user enters different versions of the words included in the document (such as "color" and "colour" or "lives" and "life"), the string matching solution may not return useful results.

[0004] Some text search solutions may try to expand or enlarge the results returned by the string matching method. For example, the text search solution may implement stemming, which involves truncating the search query (e.g., changing "studies" to "studi"). In another case, the text search solution may implement lemmatization, which involves identifying the base or word element of the search (e.g., changing "studies" to "study"). In addition, some text search solutions may use dictionaries or thesauri to search for words similar to the text query. However, these text search solutions may still fail to return many results related to the keywords. Specifically, existing text search solutions do not consider the semantic meaning or context of the keywords.

[0005] There is a need for systems and techniques based on semantic text searching to return words within a document that are semantically related to entered keywords. Summary of the invention

[0006] The technology for performing model-based semantic text search is described herein. The semantic text search solution uses a machine learning system (such as a deep learning system) to determine the association between the semantic meanings of words. These associations are not limited by the spelling, syntax, grammar or even definition of the word. On the contrary, the association can be based on the context, in which strings (such as characters, words, phrases, etc.) are used in relation to each other. For example, the semantic text search solution can not only associate the word "vehicle" with "vehicles" (as can be done by a string matching solution), but also associate it with words such as "truck", "transportation", "DMV" and "airplane". As another example, the semantic text search solution may associate the word "red" with "burgundy" (because burgundy is a variant of red), and associate the word "red" with "yellow" and "green" (because red, yellow, and green are often used with standard traffic lights). In response to detecting a request to determine words associated with a keyword within an electronic document, the semantic text search solution may return words within the document that have matching and / or related semantic meanings or contexts in addition to exact matches (e.g., string matches) within the document. Further, the semantic text search solution may display an indication of matching words within the document.

[0007] Additional features and advantages of the present application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the examples provided herein.

[0008] This Summary is neither intended to identify key or essential features of the claimed subject matter nor to be used in isolation to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent application, any or all drawings, and each claim.

[0009] The foregoing and other features and embodiments will become more apparent by reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Illustrative embodiments of the present application are described in detail below with reference to the following drawings:

[0011] Figure 1 is an illustration of an example word search user interface provided by a string-based text search system according to some examples provided herein;

[0012] Figure 2 is a diagram of an example vector space according to some of the examples provided herein;

[0013] Figure 3 is a block diagram of an example semantic search system according to some of the examples provided herein;

[0014] Figure 4 is a block diagram of an example semantic search system according to some of the examples provided herein;

[0015] Figure 5 is an illustration of example documents and tokens of the documents according to some of the examples provided herein;

[0016] Fig. 6A and Figure 6B is an illustration of an example word search user interface provided by a semantic search system according to some examples provided herein;

[0017] Figure 7 is a block diagram of an example semantic search system according to some of the examples provided herein;

[0018] Figure 8 is a flow chart illustrating an example of a process for performing a semantic text search according to some examples provided herein;

[0019] Fig. 9 is an illustration of an example table including latency and payload data associated with performing a semantic text search according to some examples provided herein;

[0020] Fig.10 is a flow chart illustrating an example of a process for performing a semantic text search according to some examples provided herein;

[0021] Fig.11 is an example computing device architecture of an example computing device that may implement the various techniques described herein. DETAILED DESCRIPTION

[0022] Some aspects and embodiments of the present disclosure are provided below. As will be apparent to those skilled in the art, some of these aspects and embodiments may be applied independently, and some of them may be applied in combination. In the following description, for the purpose of explanation, specific details are set forth to provide a thorough understanding of the embodiments of the present application. However, it will be apparent that various embodiments may be practiced without these specific details. The accompanying drawings and description are not intended to be restrictive.

[0023] The following description provides only exemplary embodiments and is not intended to limit the scope, applicability or configuration of the present disclosure. Instead, the following description of the exemplary embodiments will provide a feasible description for implementing the exemplary embodiments to those skilled in the art. It should be understood that various changes may be made to the function and arrangement of the elements without departing from the spirit and scope of the present application as set forth in the appended claims.

[0024] Many applications, including word processing applications, web applications, mobile applications, etc., enable users to perform searches for strings or text (e.g., characters, words, phrases, etc.) within a user interface. For example, when viewing an electronic document displayed by an application, a user may be able to open or launch a word search user interface (e.g., by pressing "Ctrl+F" on a keyboard). The word search user interface may allow a user to enter a keyword containing one or more characters, words, phrases, etc. A text search system implemented by the application may then identify and return portions of text within the document that match or correspond to the keyword. In this way, the user may navigate to portions of the document that are relevant to the content of the keyword.

[0025] Many existing solutions for searching for keywords utilize or rely on string matching. String matching solutions can return direct matches of documents or include parts of strings entered by users. For example, if a user searches for the string "turn", the string matching solution may return each instance of "turn" in the document, including words that also contain the string "turn" in addition to other characters, such as "turns" and "turning". Although string matching methods may return relevant results in some cases, the overall usefulness of this method may be limited. For example, if a user spells the search query incorrectly (even if it differs by a single letter), the string matching solution may not return any results (or may return inaccurate results). Similarly, if a user enters different versions of the words included in the document (such as "color" and "colour" or "lives" and "life"), the string matching solution may not return useful results.

[0026] Some text search solutions may attempt to expand or enlarge the results returned by the string matching method. For example, the text search solution may implement stemming, which involves truncating the search query (e.g., changing "studies" to "studi"). In another case, the text search solution may implement lemmatization, which involves identifying the base or word element of the search query (e.g., changing "studies" to "study"). Further, some text search solutions may use a dictionary or a thesaurus to search for words similar to keywords. However, these text search solutions may still fail to return many results related to keywords. For example, existing text search solutions do not consider the semantic meaning or context of keywords.

[0027] Systems and related technologies are provided herein that provide benefits and solve one or more of the above problems by performing text searches that return text or strings (e.g., words, characters, phrases, etc.) that are semantically related to entered keywords. These systems and technologies can generally be divided into two components. The first component involves generating (e.g., training) a model that represents semantic relationships between words. The second component involves using the model to identify text within a document that is relevant to a user's query.

[0028] As used herein, "semantic relationship" between two or more words (or other character strings) refers to how words are used in context in relation to each other. For example, compared to two words without semantic relationship (or less semantically related), two words semantically related to each other can be used together (for example, in the same sentence, paragraph, document, conversation, etc.). In another example, two semantically related words can have similar meanings or definitions. As an illustrative example, the words "hill" and "mountain" can be semantically related because the two words have similar meanings. However, semantic relationship is not limited by the definition of words (for example, based on dictionary definition) or need not be defined by it. For example, the words "hill" and "valley" that usually have opposite definitions may be semantically related because both words describe geological features. In another illustrative example, the words "spy", "espionage" and "Roscoe H. Hillenkoetter" may be semantically related.

[0029] With reference to the first component of the disclosed semantic text search technology, a machine learning system can be used to generate a model for representing semantic associations between words. The machine learning system can include a deep learning network and / or algorithm (e.g., including one or more neural networks) and / or any additional machine learning components or architectures. In one example, the model can include or be based on an open source library such as fastText. For example, the semantic text search technology can utilize the framework of fastText or a similar library to build a model of associations between words within a learning database (such as Wikipedia articles written in a specific language). In other examples, the machine learning system can generate and / or train a model from scratch without using a preconfigured library.

[0030] In some cases, semantic text search techniques may build models based on text or string representations. An example of a word representation is a word embedding (or character and / or phrase embedding). A word embedding may include or correspond to a vector representation of a word in a predefined vector space. A vector space may have any number of dimensions (such as 100, 300, or 500). In a vector space, words (or characters or phrases) with similar semantic meanings or contexts may have similar or adjacent vectors. For example, the numerical distance between the vector representations of two words with similar semantic meanings may be less than the numerical distance between the vector representations of two words with dissimilar semantic meanings or unrelated semantic meanings. As an example, the vector representation of the word "red" may be located in a subspace of the vector space that includes other colors, such as "green" and "purple". In the subspace, the vector representation of "red" may be closer to the vector representation of "green" than the vector representation of "purple", because red and green may have additional associations that are usually mentioned in conjunction with traffic lights. This vector representation can be created or updated as word associations are discovered or refined.

[0031] In some cases, vector representations of words and / or other types of representations may be stored by a server that communicates with one or more end-user devices (e.g., client devices). In some cases, each of the one or more end-user devices may implement a semantic text search system as an application or other machine executable program. For example, an application on an end-user device may be configured with an interface that enables a user to enter a keyword as a request to determine a corresponding portion of a text in a document. Referring to the second component of the disclosed semantic text search technology, the application may prompt the server to return a list of words in the document that are semantically related to the keyword (e.g., differing by at least a threshold degree). In some cases, the server determines the words that are semantically related to the keyword by comparing the vector representation of the keyword with the vector representation of a unique token (e.g., a word, phrase, or character) in the document. In one example, the application may send the document to the server, and the server may identify the token in the document. In other examples, the application may identify the token and send the token and the keyword to the server. In some cases, the application may begin compiling a list of unique tokens in the document in response to a user opening a document or in response to a user initiating a search (e.g., opening a word search user interface). In some cases, the application can identify tokens within a portion of a document (e.g., one or two pages) at a time, without processing the entire document in one call or action. In addition, the application can deduplicate the token list (e.g., remove duplicate tokens) before sending the tokens to the server. In some implementations, the application can use the tokens and keywords locally to determine words that are semantically related to the keywords.

[0032] The application can send a list of tokens and / or keywords from a document to a server in response to various contexts and / or inputs. In one case, the application can send a list of tokens and keywords after determining that the user has entered at least a certain number (e.g., 2, 3, etc.) of characters in the word search user interface. Additionally or alternatively, the application can send a list of tokens and keywords after determining that the user has not entered new characters in the word search user interface within a threshold time period (e.g., 100 milliseconds, 200 milliseconds, etc.). This strategy can reduce the processing power and / or bandwidth consumed when a large number of (e.g., unnecessary) calls are made to the server. If the application detects that the user has entered new characters after the threshold time period, the application can send updated keywords to the server. The application can also resend the list of tokens in an implementation where the server does not save tokens (e.g., to ensure the privacy of the document).

[0033] Once the server receives the token list and the keywords, the server can determine the vector representation of the token list and the keywords. The server can then use one or more types of similarity metrics to determine the similarity between the keywords and the token list. For example, the server can use a similarity function (such as a cosine similarity function) to determine the similarity score between the keywords and each token. Based on the similarity score, the server can determine which tokens are semantically related to the keywords. For example, the server can identify tokens whose similarity scores are at least a threshold score (e.g., a score of 0.4 on a range of 0 to 1). In some cases, the server can identify multiple (e.g., 4, 5, etc.) tokens with the highest similarity scores from tokens equal to or greater than the threshold score. The server can return similar tokens to the application, such as all tokens equal to or greater than the threshold score or the number of tokens with the highest similarity score. After receiving similar tokens from the server, the application can indicate these tokens to the user (e.g., by displaying words, phrases, etc. associated with the tokens). For example, the application can fill the word search user interface with tokens and / or highlight the tokens within the document. In some cases, the word search user interface can also display string matches, which string matches the text including the keywords.

[0034] Figure 1 A word search user interface 102 representing an example of a string-based text search solution is illustrated. The word search user interface 102 can be displayed within a user interface displaying an electronic document, displayed on top of an electronic document within an additional user interface, and / or integrated into an electronic document. In an illustrative example, the string-based text search solution can initiate or otherwise display the word search user interface 102 within an electronic document in response to detecting an input corresponding to a search request (such as a user pressing "Ctrl+F" on a keyboard or clicking a search request button within a toolbar).

[0035] like Figure 1 As shown in , the word search user interface 102 includes a search bar 104 into which a user can provide input corresponding to a text query or search query (referred to herein as keywords). Keywords can include one or more characters, words, and / or phrases. A user can use a variety of input mechanisms to provide input corresponding to keywords, such as providing keywords via voice commands and / or using a physical or digitally rendered keyboard to enter keywords. Figure 1 In the example of , the search bar 104 displays an entered keyword 106 corresponding to the text "pro". In response to detecting this input, the string-based text search solution can search the electronic document to identify each portion of text that includes the string "pro". The string-based text search solution can then return an indication of these words to the user. Figure 1In the example of , a string-based text search solution may populate the word search user interface 102 with matches 108 corresponding to words that include the keyword 106. Because the matches 108 include the exact string of the keyword 106, the matches 108 may be referred to as "exact matches." While the matches 108 may be relevant to the user's search in some cases, the matches 108 may not include one or more additional words that may be relevant or otherwise helpful to the user because the additional words have a semantic relationship to the keyword 106.

[0036] The disclosed semantic text search solution can determine semantic relationships between words in a variety of ways. In some cases, the semantic text search system can use a word embedding model to determine the semantic relationship, which can include one or more techniques for latent semantic analysis, language modeling, and / or natural language processing. In one example, the word embedding model can involve representing the semantic meaning of a word using a vector representation determined in a multidimensional vector space. The vector representation can indicate the relative similarity between the semantic features of a word and the semantic features of other words, and can therefore be called a feature vector. Figure 2 An example vector space 202 including a plurality of feature vectors is illustrated. In this example, the vector space 202 is three-dimensional. However, the vector space used by the disclosed semantic text search system may have any suitable number of dimensions, such as 50, 100, or 200 dimensions. Figure 2 As shown in , vector space 202 includes vector 204, vector 206, and vector 208. These vectors can each correspond to different words. In other examples, the vector can correspond to any additional unit or element of the language, such as one or more characters, words, and / or phrases (collectively referred to as strings or texts). For example, the vector can correspond to n-grams (phrases including n words) of any length. Further, vector space 202 can include representations of any number of words or n-grams (such as thousands, millions, or even billions of words).

[0037] The distances between vectors 204, 206, and 208 correspond to the strength of the semantic relationship between the vectors. For example, the words represented by vectors 204 and 206 may have a stronger semantic relationship to each other than the word represented by vector 208. Therefore, the distance 205 between vector 206 and vector 204 is shorter than the distance 207 between vector 204 and vector 208. Similarly, distance 205 is shorter than the distance 209 between vector 206 and vector 208. In an illustrative example, vector space 202 may correspond to a subspace of a larger vector space that includes vector representations of various animals. In this example, vector 204 may represent the word "cow", vector 206 may represent the word "sheep", and vector 208 may represent the word "parrot". Distance 205 may be smaller than distances 207 and 209 because the words "cow" and "sheep" are more frequently used together (eg, when discussing farms or farm animals) than the word "parrot."

[0038] In some cases, the disclosed semantic text search solution may use artificial intelligence (AI) (such as a machine learning system or algorithm) to generate and / or improve the feature vector of a word. Machine learning is a subfield of AI in which a machine learning model is trained to perform one or more specific tasks. For example, a machine learning model is trained to perform a target task by relying on patterns and reasoning learned from training data without explicit instructions to perform the task. Machine learning models have become a convention for performing various tasks (including classifying data, translating text, detecting and preventing cyber attacks, recommending products, etc.) in many devices and systems. In a semantic text search system, a word embedding model can be trained to determine that the vector representations of semantically related words are closer together in the vector space than the feature vectors of semantically unrelated words. Words will be used as illustrative examples of text or strings in this article. However, those of ordinary skill in the art will understand that other text strings (such as foreign language characters or other characters and / or other types of text) can be analyzed and processed by embedding models using the techniques described herein. In some cases, the model can determine a vector representation of a word set, evaluate the quality of the vector representation (e.g., determine how the vector representation accurately depicts the semantic relationship), and then update one or more parameters of the model to improve the quality of the vector representation. The training process may be iteratively performed for any number of cycles, such as hundreds or thousands of cycles, or a sufficient number of cycles for the model to converge and / or otherwise be considered fully trained.

[0039] A word embedding model can be trained using various types of machine learning algorithms and techniques. In one embodiment, a deep learning algorithm (such as an algorithm including one or more neural networks) can be used to train the model. As used herein, the term "neural network" can refer to an algorithm or set of steps designed to identify patterns or relationships within a data set. A neural network can include an input layer, an output layer, and one or more hidden layers. The hidden layer can process the data provided to the input layer, and the output layer can output the results of the processing performed by the hidden layer. In some cases, the hidden layer can include one or more interconnected nodes. Each node can represent a piece of information. The information associated with the node is shared among different layers, and each layer retains the information as the information is processed.

[0040] In some cases, each node or the interconnection between nodes may have one or more adjustable weights. Weights are parameter sets derived from the training of a neural network. For example, an interconnection between nodes may represent a piece of information learned about the interconnected nodes. The interconnection may have adjustable weights that may be tuned during training (e.g., based on a training data set including a plurality of training documents) so that the neural network adapts to the input and can learn as more and more data is processed. Each weight may include a numerical value. In some cases, the neural network may use back propagation to adjust the weights of the nodes. For example, the neural network may adjust the weights of the nodes by processing the training documents and then analyzing the difference between the actual output of the neural network and the expected output of the neural network (e.g., using one or more loss functions). When a neural network is being trained to generate a representation (e.g., a semantic representation) of a string or text (e.g., a representation of one or more words), the expected output may correspond to a feature vector that accurately depicts the semantic relationship between the text (e.g., a feature vector that depicts the semantic relationship between words). Before training the neural network, the weights of the neural network may first be randomized. For the first training iteration for the neural network, the output will likely include values ​​(e.g., feature vectors) that do not produce accurate and / or expected outputs. The process of processing training documents and updating the parameters of the neural network can be repeated a certain number of iterations for each set of training documents until the neural network is trained well enough that the weights (and / or other parameters) of each layer are accurately tuned.

[0041] In some cases, the neural network can be trained using an unsupervised training process. In an unsupervised training process, it may not be necessary to label or classify the words within the training documents. In some examples, the neural network can be trained using a supervised or semi-supervised training process. Examples of neural networks that can be utilized by a semantic text search system include convolutional neural networks, recurrent neural networks, recursive neural networks, self-organizing maps, Boltzmann machines, autoencoders, and the like.

[0042] After training a word embedding model, the model can be used to determine the representation of words that are input to the model. Using the model to process new input data can be called inference or roll-out. During inference, the model can receive words or other n-grams and then output a feature vector corresponding to the semantic meaning of the word. Figure 3 An exemplary semantic search system 300 for training and using a word embedding model is illustrated. The semantic search system 300 includes various components, including a training engine 302, an output engine 304, training text 306, a model 308, a word input 310, and a feature vector 312. The components of the semantic search system 300 may include software, hardware, or both. For example, in some implementations, the components of the semantic search system 300 may include electronic circuits or other electronic hardware and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or may include computer software, firmware, or any combination thereof and / or be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein. The software and / or firmware may include one or more instructions that are stored on a computer-readable storage medium and are executable by one or more processors of a computing device that implements the semantic search system 300.

[0043] Although the semantic search system 300 is shown to include certain components, one of ordinary skill in the art will appreciate that the semantic search system 300 may include more than Figure 3 , or more or fewer of the components shown in . For example, the semantic search system 300 may include or may be part of a computing device that includes one or more input devices and one or more output devices (not shown). In some implementations, the semantic search system 300 may also include or may be part of a computing device that includes one or more memory devices (e.g., one or more random access memory (RAM) components, read-only memory (ROM) components, cache memory components, buffer components, database components, and / or other memory devices), one or more processing devices (e.g., one or more CPUs, GPUs, and / or other processing devices) that communicate with and / or are electrically connected to the one or more memory devices, one or more wireless interfaces for performing wireless communications (e.g., including one or more transceivers and a baseband processor for each wireless interface), one or more wired interfaces for performing communications via one or more hardwired connections (e.g., serial interfaces, such as universal serial bus (USB) inputs, lighting connectors, and / or other wired interfaces), and / or Figure 3 Other components not shown.

[0044] As described above, the semantic search system 300 can be implemented by and / or included in a computing device. In some cases, multiple computing devices can be used to implement the semantic search system 300. For example, the computing devices used to implement the semantic search system 300 can include a personal computer, a tablet computer, a mobile device (e.g., a mobile phone or other mobile device), a wearable device (e.g., a smart watch, a virtual reality headset, an augmented reality headset, and / or other wearable devices), one or more servers (e.g., in a software as a service (SaaS) system or other server-based system), and / or any other computing device having the resource capabilities to perform the techniques described herein.

[0045] In some implementations, the semantic search system 300 can be integrated with one or more software applications (such as a search engine, a web browser, an application that displays text (e.g., Adobe Experience Manager TM , Acrobat Desktop TM ,AcrobatMobile TM , Adobe Premiere TM , Adobe Creative Cloud TM , Adobe Illustrator TM 、AdobeAcrobat TM , Adobe Photoshop TM , Adobe After Effects TM The semantic search system 300 may be integrated (e.g., integrated into the software, added as one or more plug-ins, included as one or more library functions, or otherwise integrated with the one or more software applications) or other software applications that allow users (also referred to as end users) to view and search text. The software application may be a mobile application installed on a mobile device (e.g., a mobile phone (such as a smartphone), a tablet computer, a wearable device, or other mobile device), a desktop application installed on a desktop computer, a web-based application or other software application that can be accessed using a web browser or other application. In some implementations, the semantic search system 300 may be implemented in a suite of software applications.

[0046] In some cases, the training engine 302 generates and / or trains a model 308 using training text 306. The training text 306 includes any collection, collection or corpus of text. The training text 306 may include any number or type of text strings, such as words, phrases, characters and / or other n-grams. For example, the training text 306 may include millions or billions of text strings, such as words or other n-grams. The training text 306 may include a sufficient number of texts (e.g., a sufficient number of different words used in various contexts) to train the model 308 to generate a feature vector that accurately represents the semantic relationship between words. In an illustrative example, the training text 306 may include all or part of a Wikipedia database corresponding to an article written in the same language. In some examples, the training engine 302 may use a plurality of databases corresponding to articles written in various languages ​​to generate a model set of feature vectors capable of determining words in various languages. The training text 306 may include any additional or alternative types of training text. In some cases, the training engine 302 can generate the model 308 by updating and / or training an existing or previously generated library that includes a set of vector representations (or is configured to output vector representations). In an illustrative example, the library can include an open source library that is publicly available, such as fastText or a similar library. Building a word embedding model by training an existing library (rather than building a word embedding model from scratch) can reduce the time and / or processing power involved in training the model. However, in some cases, generating the model 308 can include generating the library.

[0047] In some examples, the training engine 302 can train the model 308 by determining how often a string of characters (such as a word or other n-gram) is used with one or more other strings of characters (e.g., other words or other n-grams) in the training text 306. For example, the training model 308 can determine and / or analyze the rate at which two or more words or other n-grams co-occur within a document or portion of a document (e.g., a sentence, a paragraph, etc.). As an illustrative example, the training engine 302 can determine that the word "spy" is semantically related to the word "espionage" based at least in part on determining that "spy" and "espionage" have a high rate (e.g., above a threshold rate) of co-occurrence within a set of documents (e.g., multiple Wikipedia articles). For example, the training engine 302 can determine that a Wikipedia article containing the word "spy" is likely to also contain the word "espionage", and therefore, the two words are semantically related. The training engine 302 can use any additional or alternative analysis of the training text 306 to determine the semantic relationship between the words.

[0048] The training engine 302 can train the model 308 to determine feature vectors for strings or n-grams that include any number of words and / or characters. For example, the training engine 302 can train the model 308 to determine feature vectors corresponding to partial words (e.g., strings of characters that do not constitute entire words). Additionally or alternatively, the training engine 302 can train the model 308 to determine feature vectors corresponding to multi-word phrases (such as "the Queen of England" or "time of day"). In some cases, training the model 308 to determine feature vectors corresponding to multi-word phrases can include training the model 308 based on an average of feature vectors of individual words within the phrase. Further, the training engine 302 can train the model 308 to determine feature vectors for any type or form of word or n-gram, such as verbs, prepositions, adjectives, nouns, pronouns, proper nouns, names, places, etc. In some cases, the training engine 302 can also train the model 308 to determine feature vectors corresponding to misspelled words. For example, rather than treating the word as an unknown or unsupported word, the training engine 302 can configure the model 308 to detect when a word input to the model 308 is an incorrectly spelled version of a word known to the model (such as "basktball" instead of "basketball").

[0049] After the model 308 is sufficiently trained, the model 308 may receive a word input 310. The word input 310 may correspond to any string (e.g., a word or other n-gram) provided to the model 308 as part of a request to determine a feature vector indicating a semantic relationship between the word input 310 and other strings (e.g., words or other n-grams) used to train the model 308. Based on the word input 310, the output engine 304 may output a feature vector 312 representing the semantic relationship. For example, the output engine 304 may search the model 308 to identify a feature vector corresponding to the word input 310. This process of outputting the feature vector 312 may be referred to as extracting a word embedding for the word input 310.

[0050] Figure 4 4 is a schematic diagram illustrating an example semantic search system 400 for performing semantic text search using a word embedding model. The semantic search system 400 includes various components, including a detection engine 402, a token engine 404, a representation engine 406, a matching engine 408, an output engine 410, a search input 412, a token 414, a representation 416, a match 418, and a search output 420. In some cases, the semantic search system 400 includes, implements Figure 3 All or a portion of and / or in communication with the semantic search system 300 illustrated in FIG.

[0051] In an illustrative example, at least a portion of the semantic search system 400 may be comprised of training and storing word embedding models such as Figure 3 In this example, another portion of the semantic search system 400 may be implemented by an end-user device (such as a personal computer, tablet computer, or mobile device) that communicates with the server and runs an application configured to perform semantic text search. Examples of such applications include Adobe Experience Manager TM , Acrobat Desktop TM , Acrobat Mobile TM , Adobe Premiere TM 、Adobe Creative Cloud TM , Adobe Illustrator TM , Adobe Acrobat TM , Adobe Photoshop TM 、AdobeAfter Effects TM wait.

[0052] The semantic search system 400 may include any combination of software, hardware, or firmware. For example, in some implementations, components of the semantic search system 400 may include and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits, processing devices, and / or may include and / or be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein. The software and / or firmware may include one or more instructions stored on a computer-readable storage medium and executable by one or more processors of a computing device implementing the semantic search system 400. The semantic search system 400 may include Figure 4 Any additional or alternative components not shown.

[0053] Search input 412 may include any input corresponding to a request to determine or locate text associated with a keyword within an electronic document. In some cases, search input 412 may include initiation or initiation of a search request. For example, search input 412 may include a user opening a word search user interface (similar to Figure 1 ). Figure 1As discussed, the user may open the word search user interface by entering a command (such as "Ctrl+F"), clicking a button to open the word search user interface, or in any additional manner. Additionally or alternatively, the search input 412 may include one or more characters of a keyword, including a portion of one or more keywords. For example, the search input 412 may include text entered into a search bar of the word search user interface. In one embodiment, the search input 412 may include Figure 3 4. The detection engine 402 may detect the search input 412 in a variety of ways. In some examples, the detection engine 402 may detect the search input 412 by periodically or continuously monitoring the user interface that displays the electronic document. For example, the detection engine 402 may monitor the user interface to detect the launch of the word search user interface, and then monitor the word search user interface to detect characters entered into the word search user interface.

[0054] After the detection engine 402 detects all or part of the search input 412, the token engine 404 can generate a set of tokens 414 for the electronic document. As used herein, the word "token" refers to a string of one or more characters and / or words included in the electronic document. For example, a token may include a prefix, a suffix, a character set, a word, and / or a phrase. In some cases, a token may include an n-gram with a definable semantic meaning. For example, a token may include a group of words used to depict a specific meaning in a specific order, rather than a random or arbitrary group of words. Some tokens may include one or more punctuation marks (such as a hyphen).

[0055] The token engine 404 can generate tokens 414 in various ways and / or contexts. In some cases, the token engine 404 can generate tokens 414 by scanning a document to identify each unique (e.g., different) token within the document. For example, when the token engine 404 identifies a token within a document, the token engine 404 can record and / or store the token in a list. If the document includes more than one instance of a token, the token engine 404 can remove duplicate instances of the token from the list. The process of removing duplicate tokens can be referred to as deduplication or deduping. Further, in some cases, the token engine 404 can generate a token set by analyzing a portion of the document at a time. For example, the token engine 404 can perform separate function calls to identify tokens within each page (or a small number of pages) of the document, rather than performing a single function call to identify each token within the entire document. This process can prevent the application implementing the semantic search system 400 from crashing, becoming unresponsive, or otherwise malfunctioning (particularly when handling large documents (such as documents within hundreds of pages)).

[0056] In some cases, the token engine 404 can generate a token 414 in response to the search input 412. For example, the token engine 404 can generate the token 414 after the user has provided input to open the word search user interface or after the user has provided input corresponding to one or more characters of a keyword. The token engine 404 can generate the token 414 at any additional time point or in response to additional input (such as input corresponding to the user opening an electronic document). For example, in order to avoid semantic text search delays due to the time required to generate the token 414 (e.g., which may take hundreds of milliseconds), the token engine 404 can generate the token 414 immediately after the user opens, views, or otherwise accesses the electronic document.

[0057] Figure 5 Illustrated are an exemplary document 502 and exemplary tokens 504 of the document 502 that may be generated by the semantic search system 400. In this example, the tokens 504 include each 1-gram (eg, a single word) and 2-gram (eg, a 2-word phrase) of the document 502.

[0058] return Figure 4 , after generating the tokens 414, the representation engine 406 can determine the tokens 414 and a representation 416 of the keyword corresponding to the search input 412. For example, the token engine 404 can send the keyword and the tokens 414 and a request to determine the representation 416 to the representation engine 406. In some embodiments, the representation engine 406 can determine the representation 416 by determining a feature vector corresponding to each of the keywords and tokens 414 based on a word embedding model. If the keyword and / or any of the tokens 414 include a multi-word phrase, the representation engine 406 can determine the feature vector of the phrase by averaging the feature vectors of the individual words within the phrase.

[0059] The matching engine 408 can determine matches 418 based on the representations 416. In some examples, the matches 418 can include representations within the representations 416 that have at least a predetermined similarity to the representations of the keywords. The matching engine 408 can determine the similarity between the representations in various ways. In some cases, the matching engine 408 can determine whether the two representations are similar by determining the distance between the feature vectors corresponding to the representations in the vector space. The matching engine 408 can use any type or form of distance or similarity measurement (such as cosine similarity measurement, Euclidean distance measurement or other similarity-based measurement) to determine the distance. In some cases, the matching engine 408 can use the same similarity or distance measurement to determine the distance between the representation of the keyword and each representation of the token 414. In one embodiment, then, the matching engine 408 can determine the matches 418 by identifying tokens that have a similarity above a threshold with the keywords. As an illustrative example, if matching engine 408 determines the similarity measure as a value between 0 and 1, where values ​​closer to 1 indicate high similarity and numbers closer to 0 indicate low similarity, matching engine 408 may determine a match 418 by identifying tokens having a similarity measure of at least 0.4, 0.5, etc. Additionally or alternatively, matching engine 408 may determine a match 418 by identifying a predetermined number of tokens (such as 4 or 5 tokens) or a predetermined percentage of tokens (such as 1% or 5%) that are most similar to the keyword.

[0060] After determining the matches 418, the matching engine 408 can send the matches 418 to the output engine 410. Then, the output engine 410 can display an indication of the matches 418 (corresponding to the search output 420). The matching engine 408 can display the search output 420 in the user interface displaying the electronic document or in an additional user interface. For example, the matching engine 408 can display the search output 420 by filling in the word search user interface, and provide the words corresponding to the matches 418 to the search input 412 in the word search user interface. In another example, the matching engine 408 can include the words displayed at the top or beside the electronic document in the user interface. In other examples, the matching engine 408 can highlight all or part of the words in the electronic document. For example, the matching engine 408 can highlight each instance of the matches 418 so that the semantic matches 418 are visible to the user when the user views or scrolls through the electronic document.

[0061] Fig. 6A and Figure 6B An example of a word search user interface showing a matching indication is shown. Specifically, Fig. 6AA word search user interface 602 is included, which includes a search bar 604 in which a user has entered a keyword 606 corresponding to the word "vehicle". In this example, the matching engine 408 determines a match 610 corresponding to the keyword 606, and the output engine 410 displays an indication of the match 610 within the word search user interface 602. In some cases, the output engine 410 can indicate the number of each of the matches 610 included in the electronic document. Additionally or alternatively, the output engine 410 can configure the indication of the match 610 as a link that directs the user to the location of the match 610 within the electronic document when the user clicks or otherwise selects the indication. In some examples, the output engine 410 can also include a string match 608 corresponding to the keyword 606 within the word search user interface 602. The string match 608 can represent a word within the electronic document that includes a string corresponding to the keyword 606. The string match 608 can be determined by the semantic search system 400 or another search system implemented by the application that displays the electronic document. Displaying an indication of a string match 608 may increase the potential usefulness of the search results provided to the user. Fig. 6A As shown in , an indication of a string match 608 may be displayed under an "Exact Match" header, and an indication of a match 610 may be displayed under a "Suggestions" header. As an additional illustrative example of a word search user interface, Figure 6B Included is a word search user interface 612 that displays a keyword 614 within a search bar 616 along with string matches 618 and matches 620 corresponding to the keyword 614 .

[0062] Figure 7 An exemplary semantic search system 700 for performing semantic text searches is illustrated. Specifically, Figure 7An exemplary communication between an end-user device 702 and a server 704 is illustrated when the end-user device 702 and the server 704 perform the disclosed method for semantic text search. In one embodiment, the end-user device 702 may include a personal computer, a laptop, a mobile device, or other types of end-user devices running an application that displays an electronic document. The application may be configured with one or more engines of the semantic search system 400, such as the detection engine 402, the token engine 404, and the output engine 410. The server 704 may include an application server located remotely or externally from the end-user device 702. For example, the end-user device and the server 704 may communicate via a network. In some cases, the server 704 may be configured with one or more engines of the semantic search system 400, such as the representation engine 406 and / or the matching engine 408. The server 704 may also be configured with one or more engines of the semantic search system 300, such as the training engine 302 and / or the output engine 304. However, the engines of semantic search systems 300 and 400 may be implemented in any combination across end-user devices 702 and / or servers 704, including on a single device.

[0063] exist Figure 7 At step 706 shown in , the terminal user device 702 receives the keyword. For example, the terminal user device 702 can detect the input of one or more characters corresponding to the keyword. In some cases, the terminal user device 702 can determine that the reception of the keyword represents a request to determine the relevant text in the electronic document. At step 708, the terminal user device 702 generates a token for the electronic document. Generating the token can be performed at any point before or after receiving the keyword. For example, the terminal user device 702 can generate a token in response to the electronic document being opened or in response to detecting an input corresponding to opening a word search user interface.

[0064] At step 710, the terminal user device 702 sends the keywords and tokens to the server 704. At step 712, the server 704 generates feature vectors corresponding to the keywords and tokens. The server 704 can generate feature vectors using a word embedding model trained and / or stored by the server 704. At step 714, the server 704 determines the distance between the feature vectors. For example, the server 704 can determine the distance or similarity between the feature vector corresponding to the keyword and each feature vector corresponding to the token. At step 716, the server 704 determines the match corresponding to the keyword based on the adjacent feature vectors. Specifically, the server 704 can identify the tokens corresponding to the feature vectors, which have at least a predetermined degree of similarity with the feature vectors representing the keywords. At step 718, the server 704 can return the match to the terminal user device 702 so that the terminal user device 702 can display an indication of the match (e.g., in a word search user interface).

[0065] Figure 7 The steps illustrated as being performed on a particular device are merely examples, and many variations are possible. For example, the end-user device 702 may send the entire contents of the electronic document to the server 704 and instruct the server 704 to generate tokens. Additionally or alternatively, the end-user device 702 may generate feature vectors corresponding to the tokens, or perform any additional parts of implementing a word embedding model.

[0066] In some cases, it may be difficult to determine when a user has entered a complete keyword. For example, at the point in time when a user enters the keyword "maximum," the search system may detect an input corresponding to "max." The search system is unaware that the user intended to expand the keyword. Therefore, the search system may perform an initial search based on the keyword "max," and then perform subsequent searches once "maximum" has been entered. Performing such an initial search may support fast search times if the keywords used in the first search correspond to the user's intended input. However, if multiple searches are required (e.g., due to a user typing slowly or entering long keywords), performing the search may waste bandwidth and processing power. Therefore, the disclosed semantic search system may detect, estimate, and / or predict the time when a user has completed entering the keyword and perform a semantic text search at that time. For example, referring to Figure 4 In the semantic search system 400, the detection engine 402 can determine the appropriate time to send the keywords and token list to the word embedding model based on monitoring the input corresponding to the search. The token engine 404 can send the keywords and token list to the word embedding model at the appropriate time.

[0067] Figure 8An exemplary process 800 for sending keywords and tokens to a semantic search service that implements a word embedding model is illustrated. At step 802 of process 800, detection engine 402 detects input of characters corresponding to a keyword. For example, detection engine 402 may detect the initial character entered and each subsequent character. At step 804, detection engine 402 determines whether the current number of characters of the keyword meets a character threshold (e.g., a character threshold number). The character threshold may be 2, 3, 4, or any suitable number of characters. Although a high threshold may result in fewer unnecessary calls to the semantic search service, an excessively high threshold may slow down or hinder the search (e.g., if the complete keyword does not meet the threshold). If detection engine 402 determines that the keyword does not meet the character threshold, detection engine 402 may continue to monitor the input of characters corresponding to the search keyword. If detection engine 402 determines that the keyword meets the character threshold (or detects a complete input corresponding to the keyword, such as a user pressing "enter"), process 800 proceeds to step 806.

[0068] At step 806, the detection engine 402 determines whether new characters of the keyword are entered within the time threshold. In some cases, failure to detect new input within the time threshold may indicate that the user has completed (or may have completed) entering the keyword. The time threshold may be 100 milliseconds, 200 milliseconds, 300 milliseconds, or any suitable amount of time. Although a high time threshold may reduce unnecessary calls to the semantic search service, a too high threshold may unnecessarily increase search delays. If the detection engine 402 determines that a new character is entered within the time threshold, the detection engine 402 can continue to monitor the input of the characters corresponding to the keyword. For example, the detection engine 402 can reset a timer that counts to the time threshold. If the detection engine 402 determines that no new characters are entered within the time threshold, the process 800 proceeds to step 808. At step 808, the token engine 404 sends the keyword and the token set to the semantic search service. If the detection engine 402 detects the input of new characters corresponding to the keyword after the keyword and the token set are sent to the semantic search service, the token engine 404 can send the updated keyword. Figure 8 The steps illustrated in are examples only, and any type or form of threshold or other decision mechanism may be used to determine when a keyword has been fully entered.

[0069] As mentioned above, the token engine 404 may begin generating a token set at any point in the user's interaction with the electronic document (such as when the document is opened and / or when the user initiates a word search user interface). If the token engine 404 has not yet completed the generation of the token set when the detection engine 402 determines that the keyword is complete (e.g., in response to a determination of "no" at step 806), the token engine 404 may send a partial token set (e.g., tokens generated so far) to the semantic search service. After the additional tokens have been generated (e.g., after the token set is complete), the token engine 404 may send the additional tokens. If the semantic search service does not store previously sent tokens and / or keywords (e.g., for privacy or security purposes), the token engine 404 may resend each token and keyword. In some cases, the semantic search service may return an initial search result corresponding to a partial token set, and then return subsequent search results in response to receiving a subsequent token set. The output engine 410 may display the initial search results, and then update the displayed search results as more results are returned. Although the initial search results may be incomplete, they may still often be relevant or helpful to the user. Therefore, "streaming" semantic search results in this manner can support the rapid provision of high-quality semantic search results to users.

[0070] Fig. 9 An exemplary table 902 is illustrated, which indicates the time and amount of data involved in performing the disclosed semantic text search technology. Specifically, table 902 indicates the token generation time, token payload, and total search time for semantic searches of documents including various numbers of pages. In some cases, generating a set of tokens on an end-user device rather than on a server implementing a word embedding model may reduce the amount of data (corresponding to the token payload) sent to the server. In addition, generating tokens on an end-user device can reduce the processing load of the server, which can reduce the total search time.

[0071] An example of a process performed using the techniques described herein will now be described. Fig.10 1 is a flow chart illustrating an example of a process 1000 for the disclosed semantic text search technology. At block 1002, process 1000 includes detecting an input corresponding to a request to locate text associated with a keyword included in an electronic document. In some cases, process 1000 may include monitoring input provided to a word search user interface. For example, process 1000 may include detecting an input that prompts an application to display an electronic document to open a word search user interface. In such an example, input including keywords may be received from the word search user interface.

[0072] At block 1004, process 1000 includes generating a set of tokens (e.g., unique tokens) for the electronic document, each token corresponding to one or more strings within the electronic document. The set of tokens may be generated in response to detecting an input corresponding to a request to locate text associated with a keyword within the electronic document, or at any other time. In some examples, the set of tokens may be generated by or on an end-user device that displays the electronic document. The set of tokens may be sent or forwarded to a server implementing a machine learning system external to the end-user device. In some examples, the input corresponding to the request to locate text associated with a keyword within the electronic document includes a portion of the keyword. Sending a request to determine one or more tokens associated with a keyword within the electronic document (e.g., from the end-user device to the machine learning system) may include sending a request to determine one or more tokens associated with a portion of the keyword within the electronic document. Receiving at least one string associated with a keyword within the electronic document based on the request (e.g., from the machine learning system at the end-user device) may include receiving at least one string associated with a portion of the keyword within the electronic document. Process 1000 may include detecting an input corresponding to the entire keyword and sending an additional request to determine one or more tokens associated with the entire keyword within the electronic document (e.g., from the end-user device to the machine learning system). Process 1000 may receive at least one additional string associated with the entire keyword within the electronic document based on the additional request (eg, from a machine learning system at a client device).

[0073] At box 1006, process 1000 includes sending the keywords and token sets to a machine learning system. The machine learning system generates representations of the keywords and representations of each token within the unique token set. In some examples, the machine learning system generates feature vectors using a word embedding model trained to map the semantic meaning of a word to a feature vector. As noted herein, a representation of a string (e.g., one or more words, phrases, one or more characters, or other text strings) is generated based on the contextual usage of the string relative to other strings. In some cases, the representation may include a feature vector determined in a vector space. Strings (e.g., words) with similar semantic meanings and / or contextual usages may correspond to feature vectors that are located adjacent to each other in the vector space, and strings with dissimilar semantic meanings and / or contextual usages may correspond to feature vectors that are located far from each other in the vector space. For example, feature vectors of words with similar contextual usages in the training data are closer together in the vector space than feature vectors of words with dissimilar contextual usages in the training data.

[0074] In some examples, the input corresponding to the request to locate text associated with the keyword within the electronic document includes a character count of the keyword. For example, the character count may include a partial character set of all characters of a word (e.g., "espion" for the word "espionage"). In some cases, process 1000 includes sending the keyword and the token set to the machine learning system in response to determining that the character count of the keyword exceeds a threshold number. For example, the threshold number of characters may include three characters, in which case process 1000 may send the keyword and the token set in response to detecting that three characters of the word have been entered (e.g., entered into a word search user interface). In some examples, process 1000 may include detecting input of at least one additional character corresponding to the keyword and sending the keyword including the additional character to the machine learning system. Process 1000 may receive at least one additional string associated with the keyword within the electronic document from the machine learning system based on the keyword including the additional character. In some examples, process 1000 includes sending the keyword and token set to the machine learning system in response to determining that input of additional characters corresponding to the keyword has not been detected within a threshold time period after detection of input of most recently provided characters corresponding to the keyword (e.g., input into a word search user system). For example, the threshold time period may include five seconds, in which case process 1000 may send the keyword and token set in response to detecting that five seconds have passed since input of most recently provided characters corresponding to the keyword.

[0075] In some examples, generating a model for determining a representation of a string can include training the model to determine feature vectors corresponding to the string in a vector space. As described herein, feature vectors for strings with similar contextual usages in the training data are closer together in the vector space than feature vectors for strings with dissimilar contextual usages in the training data.

[0076] In some examples, process 1000 may include forwarding a partial set of tokens for the electronic document before generating a complete set of tokens for the electronic document. For example, the machine learning system may determine at least one initial word associated with a keyword within the electronic document based on the partial set of tokens. Process 1000 may include forwarding the complete set of tokens once the complete set of tokens is generated. In such an example, the machine learning system may determine at least one additional word associated with a keyword within the electronic document based on the complete set of tokens.

[0077] At box 1008, process 1000 includes receiving at least one string (e.g., at least one word, phrase, etc.) associated with a keyword within an electronic document from a machine learning system. The at least one string is associated with the keyword based on a representation of the keyword having at least a threshold similarity with a representation of a token corresponding to the at least one string. In some cases, the machine learning system determines the similarity between the representation of the keyword and each representation of each token in the token set by determining a distance measure between a feature vector corresponding to the keyword and a feature vector corresponding to each token in the token set. For example, the machine learning system may determine that at least one string (e.g., a word, etc.) is associated with the keyword based on a feature vector corresponding to the at least one string being less than a threshold distance from a feature vector corresponding to the keyword in the vector space. In some cases, at least one string associated with the keyword does not include a string corresponding to the keyword. For example, at least one string may include characters (e.g., letters) that are different from characters of the keyword (e.g., the keyword may include the word "spy" and at least one string may include the word "espionage").

[0078] At box 1010, process 1000 includes outputting an indication of at least one word associated with the keyword. In some cases, outputting the indication includes displaying at least one string (e.g., a word, a phrase, etc.) within a word search user interface. In some examples, outputting an indication of at least one string associated with the keyword includes highlighting each instance of at least one string within an electronic document. In some examples, outputting an indication of at least one string associated with the keyword includes displaying at least one string within a user interface via which a user provided input corresponding to the keyword (e.g., in a word search user interface). Process 1000 can determine and output indications of any number of strings associated with the keyword. For example, process 1000 includes determining that at least one additional string within the electronic document includes a string corresponding to the keyword, and outputting additional indications of at least one additional string.

[0079] In some examples, the processes described herein (e.g., process 800, process 1000, and / or other processes described herein) can be performed by a computing device or apparatus (such as a computer having Fig.111000). In one example, process 800 and / or process 1000 may be performed by a computing device having computing device architecture 1100 that implements semantic search system 300, 400, and / or 500. The computing device may include any suitable device, such as a mobile device (e.g., a mobile phone), a desktop computing device, a tablet computing device, a wearable device, a server (e.g., in a software as a service (SaaS) system or other server-based system), and / or any other computing device with resource capabilities to perform the processes described herein (including process 800 and / or process 1000). In some cases, the computing device or apparatus may include various components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, and / or other components configured to implement the process steps described herein. In some examples, the computing device may include a display (as an example of an output device or in addition to an output device), a network interface configured to communicate and / or receive data, any combination thereof, and / or (a plurality of) other components. The network interface may be configured to communicate and / or receive Internet Protocol (IP) based data or other types of data.

[0080] The components of the computing device may be implemented in circuit systems. For example, the components may include and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or may include and / or be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein.

[0081] Processes 800 and 1000 are illustrated as logical flow diagrams, the operations of which represent a series of operations that can be implemented in hardware, computer instructions, or a combination thereof. In the context of computer instructions, the operations represent computer executable instructions stored on one or more computer-readable storage media that perform the described operations when executed by one or more processors. Typically, computer executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific data types. The order in which these operations are described is not intended to be construed as limiting, and any number of the operations described may be combined in any order and / or the processes may be implemented in parallel.

[0082] Additionally, the processes described herein may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors by hardware or a combination thereof. As described above, the code may be stored on a computer-readable or machine-readable storage medium, for example, in the form of a computer program including a plurality of instructions executable by one or more processors. The computer-readable or machine-readable storage medium may be non-transient.

[0083] Fig.11 An example computing device architecture 1100 is illustrated that can implement various techniques described herein. For example, the computing device architecture 1100 can implement Figure 3 , Figure 4 6. Components of a computing device architecture 1100 are shown in electrical communication with each other using a connection 1105, such as a bus. The example computing device architecture 1100 includes a processor 1110 (e.g., a CPU or other processing unit) and a computing device connection 1105 that couples various computing device components including a computing device memory 1115, such as a read-only memory (ROM) 1120 and a random access memory (RAM) 1125, to the processor 1110.

[0084] The computing device architecture 1100 may include a cache of high-speed memory directly connected to, adjacent to, or integrated as part of the processor 1110. The computing device architecture 1100 may copy data from the memory 1115 and / or the storage device 1130 to the cache 1112 for quick access by the processor 1110. In this way, the cache can provide a performance boost, thereby avoiding delays in the processor 1110 waiting for data. These and other modules can control or be configured to control the processor 1110 to perform various actions. Other computing device memories 1115 may also be available. The memory 1115 may include a variety of different types of memory with different performance characteristics. The processor 1110 may include any general-purpose processor and hardware or software services, such as service 1 1132, service 2 1134, and service 3 1136 stored in the storage device 1130, configured to control the processor 1110, and a special-purpose processor whose software instructions have been incorporated into the processor design. The processor 1110 may be an independent system including multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors can be symmetric or asymmetric.

[0085] To enable a user to interact with the computing device architecture 1100, the input device 1145 may represent any number of input mechanisms, such as a microphone for speech, a touch-sensitive screen for gesture or graphic input, a keyboard, a mouse, motion input, speech, and the like. The output device 1135 may also be one or more of a plurality of output mechanisms known to those skilled in the art, such as a display, a projector, a television, a speaker device, and the like. In some cases, a multi-modal computing device may enable a user to provide multiple types of input to communicate with the computing device architecture 1100. The communication interface 1140 may generally govern and manage user input and computing device output. There is no constraint on operating on any particular hardware arrangement, and therefore, the basic features herein may be readily substituted for improved hardware or firmware arrangements as they develop.

[0086] The storage device 1130 is a non-volatile memory and may be a hard disk or other type of computer readable medium that can store data accessible by a computer, such as a magnetic tape cartridge, a flash memory card, a solid-state memory device, a digital versatile disk, a cassette tape, a random access memory (RAM) 1125, a read-only memory (ROM) 1120, and a mixture thereof. The storage device 1130 may include services 1132, 1134, 1136 for controlling the processor 1110. Other hardware or software modules are contemplated. The storage device 1130 may be connected to the computing device connection 1105. In one aspect, a hardware module that performs a particular function may include a software component stored in a computer readable medium in conjunction with the necessary hardware components (such as the processor 1110, the connection 1105, the output device 1135, etc.) to perform the function.

[0087] The term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing or carrying (multiple) instructions and / or data. Computer-readable media may include non-transient media that can store data and does not include carrier waves and / or transient electronic signals that are wirelessly or wired for propagation. Examples of non-transient media may include, but are not limited to, disks or tapes, optical storage media (such as compact disks (CDs) or digital versatile disks (DVDs)), flash memories, memories, or memory devices. Computer-readable media may have stored thereon codes and / or machine-executable instructions that may represent any combination of procedures, functions, subroutines, programs, routines, subroutines, modules, software packages, categories, or instructions, data structures, or program statements. Code segments may be coupled to another code segment or hardware circuit by transmitting and / or receiving information, data, independent variables, parameters, or memory contents. Information, independent variables, parameters, data, etc. may be transmitted, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

[0088] In some embodiments, computer-readable storage devices, media, and memories may include cables or wireless signals containing bit streams, etc. However, when referred to, non-transitory computer-readable storage media explicitly excludes media such as energy, carrier signals, electromagnetic waves, and signals themselves.

[0089] Specific details are provided in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be appreciated by those skilled in the art that embodiments can be practiced without these specific details. For the sake of explanation, in some cases, the technology herein can be presented as including various functional blocks, which are included in the functional blocks including devices, device components, steps or routines in the method implemented with a combination of software or hardware and software. In addition to the components shown in the drawings and / or described in this article, additional components can also be used. For example, circuits, systems, networks, processes and other components can be shown as components in the form of block diagrams, so as not to confuse the embodiments in unnecessary details. In other cases, known circuits, processes, algorithms, structures and techniques can be shown without unnecessary details, so as to avoid confusing the embodiments.

[0090] Various embodiments may be described above as a process or method depicted as a flow chart, a schematic flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flow chart may describe an operation as a sequential process, many operations may be performed in parallel or simultaneously. In addition, the order of the operations may be rearranged. When the operation of a process is completed, the process is terminated, but there may be additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to the function returning to a calling function or a main function.

[0091] The process and method according to the example described above can be implemented using computer executable instructions stored in a computer readable medium or otherwise available from a computer readable medium. Such instructions may include, for example, instructions and data that cause or otherwise configure a general-purpose computer, a special-purpose computer, or a processing device to perform a specific function or function group. The various parts of the computer resources used may be accessible through a network. Computer executable instructions may be, for example, binary files, intermediate format instructions, such as assembly language, firmware, source code, etc. Examples of computer readable media that can be used to store instructions, information used, and / or information created during the method according to the described example include disks or optical disks, flash memories, USB devices provided with non-volatile memory, networked storage devices, etc.

[0092] The equipment implementing the process and method according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description language or any combination thereof, and may adopt any one of a plurality of form factors. When implemented with software, firmware, middleware or microcode, the program code or code segment (e.g., computer program product) to perform the necessary tasks may be stored in a computer-readable or machine-readable medium. (Multiple) processors may perform the necessary tasks. Typical examples of form factors include personal computers, personal digital assistants, rack-mounted devices, stand-alone devices, etc., of laptops, smart phones, mobile phones, tablet devices, or other small form factors. The functionality described herein may also be implemented in peripheral devices or add-on cards. By other examples, this functionality may also be implemented on a circuit board in different chips or different processes executed in a single device.

[0093] Instructions, media for communicating such instructions, computing resources for executing such instructions, and other structures for supporting such computing resources are example components for providing the functionality described in this disclosure.

[0094] In the foregoing description, various aspects of the present application are described with reference to the specific embodiments of the present application, but those skilled in the art will recognize that the present application is not limited thereto. Therefore, although the illustrative embodiments of the present application have been described in detail herein, it should be understood that the inventive concept can be implemented and adopted differently in other ways, and the appended claims are intended to be interpreted as including such variations, except for being limited by the prior art. The various features and aspects of the application described above can be used individually or in combination. Further, without departing from the broader spirit and scope of this specification, the embodiments can be utilized in any number of environments and applications other than the environments and applications described herein. Therefore, the description and the accompanying drawings are considered to be illustrative rather than restrictive. For the purpose of illustration, the method is described in a specific order. It should be understood that in an alternate embodiment, the method can be performed in an order different from the described order.

[0095] A person of ordinary skill in the art will understand that the less than ("<") and greater than (">") symbols or terms used herein may be replaced with less than or equal to ("≤") and greater than or equal to ("≥") symbols, respectively, without departing from the scope of the present specification.

[0096] Where a component is described as being “configured to” perform certain operations, such configuration may be achieved, for example, by designing electronic circuits or other hardware to perform the operations, by programming programmable electronic circuits (e.g., a microprocessor or other suitable electronic circuits) to perform the operations, or any combination thereof.

[0097] The phrase "coupled to" refers to any component that is physically connected directly or indirectly to another component and / or that communicates directly or indirectly with another component (e.g., connected to another component via a wired or wireless connection and / or other suitable communication interface).

[0098] Claim language or other language that refers to "at least one of" a set and / or "one or more" in a set indicates that one member of the set or multiple members of the set (in any combination) satisfies the claim. For example, claim language that refers to "at least one of A and B" or "at least one of A or B" means A, B, or A and B. In another example, claim language that refers to "at least one of A, B, and C" or "at least one of A, B, or C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more" in a set does not limit the set to the items listed in the set. For example, claim language that refers to "at least one of A and B" or "at least one of A or B" may mean A, B, or A and B, and may additionally include items not listed in the set of A and B.

[0099] Various illustrative logic blocks, modules, circuits and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, firmware or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits and steps have been described above generally according to their functionality. Whether this functionality is implemented as hardware or software depends on the specific application and design constraints imposed on the overall system. Those skilled in the art can implement the described functionality in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the scope of the application.

[0100] The techniques described herein may also be implemented in electronic hardware, computer software, firmware, or any combination thereof. This technique may be implemented in any of a variety of devices (such as general-purpose computers, wireless communication devices, mobile phones, or integrated circuit devices with multiple uses, etc.), including applications in wireless communication devices, mobile phones, and other devices. Any features described as modules or components may be implemented together in an integrated logic device, or individually implemented as discrete but interoperable logic devices. If the techniques are implemented in software, these techniques may be implemented at least in part by a computer-readable data storage medium (including a program code, which includes instructions that, when executed, perform one or more of the methods described above). A computer-readable data storage medium may form part of a computer program product, which may include packaging materials. A computer-readable storage medium may include a memory or data storage medium, such as a random access memory (RAM), such as a synchronous dynamic random access memory (SDRAM), a read-only memory (ROM), a non-volatile random access memory (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a FLASH memory, a magnetic or optical data storage medium, and the like. Additionally or alternatively, the techniques may be implemented at least in part by a computer-readable communication medium that carries or communicates program code in the form of instructions or data structures and that can be accessed, read, and / or executed by a computer, such as a propagated signal or wave.

[0101] The program code may be executed by a processor (which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuit systems). Such a processor may be configured to perform any of the techniques described in this disclosure. A general-purpose processor may be a microprocessor; however, in an alternative example, the processor may also be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. Therefore, the term "processor" as used herein may refer to any of the aforementioned structures, any combination of the aforementioned structures, or any other structure or device suitable for implementing the techniques described herein.

Claims

1. A method for model-based semantic text search, comprising: detecting an input corresponding to a request to locate text within an electronic document associated with a keyword included in the input, wherein the input includes a character count of the keyword; generating a set of tokens from the electronic document, each token corresponding to one or more character strings within the electronic document; sending the keyword and the set of tokens to a machine learning system configured to perform semantic mapping in response to determining that input of additional characters corresponding to the keyword has not been detected within a threshold time period after detection of input of most recently provided characters corresponding to the keyword, wherein the machine learning system generates a representation of the keyword, a representation of each token in the set of tokens, and a representation of the string based on contextual usage of the string relative to other strings in training data; receiving, from the machine learning system, at least one string of characters within the electronic document that is associated with the keyword, the at least one string of characters being associated with the keyword based on the representation of the keyword having at least a threshold similarity to a representation of a token corresponding to the at least one string of characters; and An indication of the at least one character string associated with the keyword is output. 2 . The method of claim 1 , further comprising detecting input prompting an application displaying the electronic document to open a word search user interface, wherein the input including the keyword is received from the word search user interface. 3 . The method of claim 2 , further comprising generating the set of tokens for the electronic document in response to detecting the input prompting the application to open the word search user interface.

4. The method of claim 1 , wherein the input corresponding to the request to locate text associated with the keyword within the electronic document comprises a character number of the keyword, and further comprising: The keyword and the set of tokens are sent to the machine learning system in response to determining that the number of characters of the keyword exceeds a threshold number.

5. The method according to claim 4, further comprising: detecting input of at least one additional character corresponding to the keyword; sending the keyword including the additional characters to the machine learning system; as well as Based on the keyword including the additional characters, at least one additional character string associated with the keyword within the electronic document is received from the machine learning system.

6. The method of claim 1 , wherein the representation generated by the machine learning system comprises feature vectors of words identified in a vector space, and wherein feature vectors of words having similar contextual usages in the training data are closer together in the vector space than feature vectors of words having dissimilar contextual usages in the training data.

7. The method of claim 6, wherein the machine learning system generates the feature vector using a word embedding model trained to map the semantic meaning of a word to a feature vector.

8. The method according to claim 1, wherein: Generating the set of tokens for the electronic document includes generating the set of tokens on an end-user device displaying the electronic document; and Sending the set of tokens to the machine learning system includes forwarding the set of tokens to a server implementing the machine learning system external to the end user device.

9. The method of claim 1 , wherein sending the set of tokens to the machine learning system comprises: forwarding a partial set of tokens for the electronic document before a complete set of tokens for the electronic document is generated, wherein the machine learning system determines at least one initial word associated with the keyword within the electronic document based on the partial set of tokens; as well as Once the complete set of tokens is generated, the complete set of tokens is forwarded, wherein the machine learning system determines at least one additional word associated with the keyword within the electronic document based on the complete set of tokens.

10. The method of claim 1, wherein outputting the indication of the at least one character string associated with the keyword comprises: Each instance of the at least one character string within the electronic document is highlighted.

11. The method of claim 1 , wherein outputting the indication of the at least one character string associated with the keyword comprises: The at least one character string is displayed within a user interface via which a user provides input corresponding to the keyword. 12 . The method of claim 1 , wherein the at least one character string associated with the keyword does not include a character string corresponding to the keyword.

13. The method according to claim 12, further comprising: determining that at least one additional character string in the electronic document includes the character string corresponding to the keyword; as well as An additional indication of the at least one additional character string is output.

14. An end-user device configured for model-based semantic text search, comprising: one or more processors; as well as a memory accessible to the one or more processors, the memory storing instructions that, when executed by the one or more processors, cause the one or more processors to: detecting input on the end-user device, the input corresponding to a request to locate text within an electronic document associated with a keyword included in the input, wherein the input includes a character number of the keyword; generating, on the end-user device, a set of tokens from the electronic document, each token corresponding to one or more strings within the electronic document; in response to determining that input of additional characters corresponding to the keyword has not been detected within a threshold time period after detection of input of a most recently provided character corresponding to the keyword, sending a request from the end-user device to a machine learning system hosted on a server external to the end-user device, the machine learning system configured to perform semantic mapping, the request determining one or more tokens within the electronic document associated with the keyword based on determining tokens having a representation having at least a threshold similarity to a representation of the keyword; receiving, at the end-user device from the machine learning system based on the request, at least one string associated with the keyword within the electronic document; as well as An indication of the at least one character string associated with the keyword is displayed on the end-user device.

15. The end-user device of claim 14, wherein: the input corresponding to the request to locate text associated with the keyword within the electronic document includes a portion of the keyword; Sending the request to determine the one or more tokens associated with the keyword within the electronic document from the end-user device to the machine learning system includes: sending a request to determine the one or more tokens associated with the portion of the keyword within the electronic document; Receiving, at the end-user device, the at least one string associated with the keyword within the electronic document from the machine learning system based on the request includes: receiving at least one string associated with the portion of the keyword within the electronic document, and further comprising: detecting an input corresponding to the entire keyword; sending, from the end-user device to the machine learning system, an additional request to determine one or more tokens associated with the entire keyword within the electronic document; and At least one additional string associated with the entire keyword within the electronic document is received from the machine learning system based on the additional request at the end-user device.

Citation Information

Patent Citations

  • Automatic generation of contextual search string synonyms

    CN106796608A

  • Active Knowledge Guidance Based on Deep Document Analysis

    US20170315998A1

  • Semantic forward search indexing of publication corpus

    US20180052928A1