Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
KEYPHRASE EXTRACTION BEYOND LANGUAGE MODELING
Document Type and Number:
WIPO Patent Application WO/2021/002999
Kind Code:
A1
Abstract:
A system for extracting a key phrase from a document includes a neural key phrase extraction model ("BLING-KPE") having a first layer to extract a word sequence from the document, a second layer to represent each word in the word sequence by ELMo embedding, position embedding, and visual features, and a third layer to concatenate the ELMo embedding, the position embedding, and the visual features to produce hybrid word embeddings. A convolutional transformer models the hybrid word embeddings to n-gram embeddings, and a feedforward layer converts the n-gram embeddings into a probability distribution over a set of n-grams and calculates a key phrase score of each n-gram. The neural key phrase extraction model is trained on annotated data based on a labeled loss function to compute cross entropy loss of the key phrase score of each n-gram as compared with a label from the annotated dataset.

Inventors:
XIONG LI (US)
HU CHUAN (US)
OVERWIJK ARNOLD (US)
AHMED JUNAID (US)
CAMPOS DANIEL FERNANDO (US)
XIONG CHENYAN (US)
Application Number:
PCT/US2020/036537
Publication Date:
January 07, 2021
Filing Date:
June 08, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MICROSOFT TECHNOLOGY LICENSING LLC (US)
International Classes:
G06F40/258
Foreign References:
US20180196800A12018-07-12
Other References:
HU Y ET AL: "Automatic extraction of titles from general documents using machine learning", INFORMATION PROCESSING & MANAGEMENT, ELSEVIER, BARKING, GB, vol. 42, no. 5, 1 September 2006 (2006-09-01), pages 1276 - 1293, XP027956219, ISSN: 0306-4573, [retrieved on 20060901]
Attorney, Agent or Firm:
SWAIN, Cassandra T. et al. (US)
Download PDF:
Claims:
CLAIMS

1. A system for extracting a key phrase from a document, the system comprising:

a processor and a memory, wherein a program executing on the processor is configured to run a neural key phrase extraction model having:

a first layer to extract a word sequence from the document;

a second layer to represent each word in the word sequence by word embedding and visual features;

a third layer to concatenate the word embedding and the visual features to produce hybrid word embeddings;

a convolutional transformer to model the hybrid word embeddings to n-gram embeddings; and

a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram,

wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram as compared with a label from the annotated dataset, and

wherein the key phrase score of each n-gram is used in a computer-implemented application.

2. The system of claim 1, wherein the labeled loss function is cross entropy loss.

3. The system of claim 1, wherein the word embedding is ELMo embedding.

4. The system of claim 1, wherein the computer-implemented application is an aggregation and ranking model that uses the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

5. The system of claim 1, wherein the documents are webpages.

6. The system of claim 1, wherein the visual features of each word include at least one of location, size, font, and HTML structure of each word.

7. The system of claim 1, wherein the neural key phrase extraction model was pre-trained using weak supervision from search queries based on whether a click query also appears as an n-gram in the document.

8. The system of claim 1, wherein the second layer also represents each word in the word sequence by position embedding, and the third layer concatenates the word embedding, the visual features, and the position embedding to produce the hybrid word embeddings.

9. A system for producing topical authority ranking of a website, the system comprising: a processor and a memory, wherein a program executing on the processor is configured to run:

a neural key phrase extraction model for extracting a key phrase from a document, the neural key phrase extraction model having:

a word sequence representation layer to extract a word sequence of the document; an ELMo embedding layer to represent each word in the word sequence by ELMo embedding;

a position embedding layer to represent each word in the word sequence by position embedding;

a visual feature layer to represent each word in the word sequence by visual features;

a hybrid word embedding layer to concatenate the ELMo embedding, the position embedding, and the visual features to produce hybrid word embeddings;

a convolutional transformer to model the hybrid word embeddings to n-gram embeddings; and

a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram,

wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute cross entropy loss of the key phrase score of each n-gram compared to a label from the annotated dataset; and

wherein the program executed on the processor is also configured to run:

an aggregation and ranking model to use the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

10. A computer-implemented method for implementing a neural key phrase extraction model to extract a key phrase from a document, the method comprising:

extracting a word sequence from the document;

representing each word in the word sequence by word embedding and visual features;

concatenating the word embedding and the visual features to produce hybrid word embeddings;

using a convolutional transformer to model the hybrid word embeddings to n-gram embeddings;

using a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram;

wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram compared to a label from the annotated dataset; and

using the key phrase score of each n-gram in a computer-implemented application.

11. The method of claim 10, wherein the representing step further includes representing each word in the word sequence by position embedding, and the concatenating step includes concatenating the word embedding, the visual features, and the position embedding to produce the hybrid word embeddings.

12. The method of claim 10, wherein the computer-implemented application is an aggregation and ranking model that uses the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

13. The method of claim 10, wherein the neural key phrase extraction model is pre-trained using weak supervision from search queries based on whether a click query also appears as an n-gram in the document.

14. The system of claim 9, wherein the aggregation and ranking model:

computes a topic independent site rank SRfsJ:

computes a topic dependent site rank SR(s,t) using SRfsJ:

computes a count of user clicks U(s,t) towards site s given interest in topic t, using

SR(s,t)

computes a count of clicks C(s) on site s using the final key-phrase score of each n- gram; and

calculates the topical authority score A(s,t) of website s given topic I. as a function of SRfsJ. CfsJ, and the final key-phrase score of each n-gram.

15. The system of claim 1, wherein n < 5, and wherein if the document is greater than 256 words the document is truncated to 256 words.

Description:
KEYPHRASE EXTRACTION BEYOND LANGUAGE MODELING

BACKGROUND

[0001] Key phrases of a web page or document relate to the topic of the web page or document. Techniques for key phrase extraction (KPE) from web pages or documents have a number of applications. One such application is assessing topical authority of a website. Topical authority is the perceived authority of a website for a given topic.

“Authority” may include such factors as the quality and relevance of a given website to a particular topic, how reputable the website is, the depth and breadth of expertise or knowledge presented on the website, its direct connection to particular subject matter, and the like. Automatically extracting key phrases from web pages or documents that are highly related to the topic of the web page or document is essential to high quality key phrase extraction.

[0002] Recent neural KPE methods have existed in the scientific domain, where training data is available from author-assigned key phrases, given that authors are generally in the practice of assigning key phrases to their publications. However, a key technical problem is that training a model in a narrow domain limits the model’s ability to generalize well to other domains. This is because in more common scenarios most potential applications of KPE deal with a much more diverse document structure originating from a broad array of domains having content that targets a wide audience. On the World Wide Web (WWW), web pages are very often not cohesive or well-written articles, and often include various structures such as lists, media captions, and text fragments. Accordingly, modeling such web pages as a word sequence presents technical challenges.

[0003] It is with respect to these and other general considerations that embodiments have been described. Also, although relatively specific problems have been discussed, it should be understood that the embodiments should not be limited to solving the specific problems identified in the background.

SUMMARY

[0004] The following presents a simplified summary in order to provide a basic understanding of some aspects described herein. This summary is not an extensive overview of the claimed subject matter. It is intended to neither identify key or critical elements of the claimed subject matter nor delineate the scope thereof. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later. [0005] Embodiments described herein relate to a novel and effective key phrase extraction (KPE) system, method, program, and computer program product and provide improvements to a wide range of natural language processing and information retrieval tasks including topical authority assessment, page tagging, searching, search relevance, and others.

[0006] According to one embodiment, a system for extracting a key phrase from a document is provided. The system comprises a processor and a memory, wherein a program executing on the processor is configured to run a neural key phrase extraction model. The neural key phrase extraction model has a first layer to extract a word sequence from the document, a second layer to represent each word in the word sequence by word embedding (which may be ELMo embedding) and visual features, and a third layer to concatenate the word embedding and the visual features to produce hybrid word embeddings. A convolutional transformer models the hybrid word embeddings to n-gram embeddings, and a feedforward layer converts the n-gram embeddings into a probability distribution over a set of n-grams and calculates a key phrase score of each n-gram. The neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute loss (which may be cross entropy loss) of the key phrase score of each n-gram as compared with a label from the annotated dataset. The key phrase score of each n-gram is used in a computer-implemented application.

[0007] The computer-implemented application may be an aggregation and ranking model that uses the key phrase score of each n-gram to compute an authority score A (s,t) of website s given topic t.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:

[0009] Fig. 1 illustrates a neural network architecture according to an exemplary embodiment that uses a key phrase extraction model.

[0010] Figs. 2A and 2B show an exemplary key phrase extraction method that can operate in conjunction with the key phrase extraction model of the present disclosure.

[0011] Fig. 3 shows a schematic representation of a system for producing topical authority ranking at internet scale according to an exemplary embodiment of the present disclosure.

[0012] Fig. 4 shows an exemplary method for executing an aggregation and ranking module according to an embodiment of the present disclosure. [0013] FIG. 5 illustrates an exemplary block diagram of a computer system in which embodiments may be implemented.

DETAILED DESCRIPTION

[0014] In the following detailed description, reference is made to the accompanying drawings which form a part hereof, and in which are shown by way of illustration specific embodiments. These embodiments are described in sufficient detail to enable persons having ordinary skill in the art to practice the technology, and it is to be understood that other embodiments may be utilized and that structural, logical and electrical changes may be made without departing from the spirit and scope of the disclosure. The following detailed description is therefore not to be taken in a limiting sense, and the scope is defined only by the appended claims and equivalents thereof. Like numbers in the figures refer to like components, which should be apparent from the context of use.

[0015] Aspects of the present disclosure relate to key phrase extraction (KPE) in scenarios including, for example, where documents are from diverse or unseen domains on the internet and have variant content and quality. Embodiments include technologies for extracting key phrase candidates from a corpus of documents, and also include technologies for producing topical authority ranking of webpages, documents, or sites in a given corpus to thereby enable a search engine server to systematically determine the webpages, documents, or sites that are more authoritative, or less authoritative, in the corpus. It is noted that in this application the term“sites” may include websites (such as nasa.gov), social media sites, or others. Topical authority ranking of documents or webpages may thus be done at web or internet scale.

[0016] The techniques described herein may be implemented for example as code of a search engine server or, or as a software and/or hardware system that inputs a signal into a search engine server for improving the functioning of the search engine server engine and therefore its quality. Accordingly the techniques described herein are integrated into the practical application of KPE, among others. The search engine server can be for example a web search engine server or a search engine server for searching an internal network or an intranet.

[0017] Fig. 1 illustrates a network architecture according to an example embodiment of a key phrase module 100 that incorporates a neural key phrase extraction model referred to herein as“BLING-KPE” (Beyond Language UnderstandING KeyPhrase Extraction). As an overview, the key phrase module 100 of Fig. 1 is a transformer-based architecture that utilizes a key phrase extraction model to model the language properties in a document, while also going beyond language modeling by using visual presentations of documents and, preferably, weak supervision from search queries or user clicks. As an overview, the key phrase extraction model includes taking a word sequence of a document, represented as d = {w l, ...Wi, ...Wn}, w being words, and assigning key phrase scores to the word sequence’s n-gram:

[0018] An n-gram is a contiguous sequence of n items from a given sample of text or speech. The items can be, for example, phenomes, syllables, letters, words, or base pairs, depending on the specific application involved. Such n-grams are generally collected from a text or speech corpus. In an example embodiment the items are words and the document is a web page.

[0019] An n-gram of size 1 (e.g.,“President”) is referred to as a unigram. An n-gram of size 2 (e.g.,“United States”) is referred to as a bigram or digram. An n-gram of size 3 (e.g.,“United States Congress”) is referred to as a trigram. Sizes larger than trigram are often referred to by the value of n, for example, four-gram (e.g.,“United States of America”), five-gram (e.g.,“President of the United States”), etc. In preferred embodiments n < 5 but values of n greater than 5 are contemplated as well. In the example embodiment of BLING-KPE, the maximum document length is 256 and documents may be truncated to that length. 256 is the number of words as a unit to run the model. If the document is longer than 256 words then the model can be run multiple times.

[0020] In Fig. 1 a word sequence representation layer 102 extracts a word sequence of a document, representing a word sequence of a document as d = {w\, ... w, ...w n J, w being words. This representation can be taken over the primary content of the document.

[0021] As an example, if a document has 10 words, the word sequence representation will result in ten 1 -grams; nine 2-grams; eight 3-grams; seven 4-grams; and six 5-grams, in a preferred embodiment wherein n=5. If n=5 the word sequence representation stops there but there could also theoretically be five 6-grams; four 7-grams; three 8-grams; two 9- grams; and one 10-gram.

[0022] In this embodiment an ELMo embedding layer 104 (Embedding from Language Models) represents each word in the word sequence by ELMo embedding. The ELMo embedding layer 104 performs ELMo embedding using local contextual information to convert each word into a vector:

[0023] h t = ELMo((L>i). (1) [0024] In this step a standard pre-trained ELMo can be used. As is known ELMo is a deep contextualized word representation that models complex characteristics of word use (e.g., syntax and semantics), and how these uses vary across linguistic contexts. These word vectors are learned functions of the internal states of a deep bidirectional language model (biLM), which is pre-trained on a large text corpus. In a preferred embodiment ELMo converts each word to a 256-dimension vector. Of course, while ELMo embedding is used in this embodiment, other forms of word embedding known in the art could be used as well, such as Bidirectional Encoder Representations from Transformers (BERT).

[0025] The key phrase module 100 of this embodiment also includes a position embedding layer 106 that represents each word in the word sequence by position embedding. The position embedding layer 106 uses position embedding to model the location of each word in the document content. The relative position of the word on the page is considered because it is found that useful information often occurs earlier in the page. One suitable technique for position embedding, among others, is standard sinusoidal position embedding:

[0028] In these equations the p-th dimension of the position embedding is a function of its position (i) and dimension (p). Of course, in other embodiments other forms of position embedding known in the art could be used as well. It is also noted that while a preferred embodiment includes the position embedding layer 106, position embedding is optional and the position embedding layer 106 can be dropped from the key phrase module 100 without too much regression.

[0029] The key phrase module 100 further includes a visual feature layer 108 that represents each word in the word sequence by visual features; i.e., the visual feature layer 108 uses visual features to represent the visual presentation of each word. By virtue of extracting key phrases with visual features from the document, words that are more prominently featured in the document, such as by larger font or in bold, for example, are estimated as being salient. Here the visual features are denoted as v t . According to an example embodiment, one or more of the following groups of visual features are extracted for each word or text piece in the document: (1) size features include the height and width of the text block a word appears in; (2) location features include the two-dimensional (2D) location of the word in the document; (3) font features include the font size and whether the word is in, e.g., bold, italics, etc.; (4) Hypertext Markup Language (HTML) structural features, e.g., Document Object Model (DOM) features that include whether the word appears in“inline” or“block” HTML tags, whether the word is in a leaf node of the DOM tree, etc.

[0030] Of course, embodiments are not limited to the above-noted features. An example of a fuller feature set is listed below in Table 1. The present disclosure doubles the features by including the same features from the word’s parent block in the DOM tree:

[0031]

[0032] Table 1: Visual Features

[0033] In Table 1, all features are extracted at the per-word level and at the parent block level, i.e., the parent node of the word in the HTML DOM tree).

[0034] A hybrid word embedding layer 110 concatenates the ELMo or word embedding, the position embedding (if present), and the visual features to produce hybrid word embeddings. The hybrid word embedding is performed using the following equation (4).

[0036] The key phrase module 100 uses a convolutional transformer architecture 112 to model the hybrid word embeddings to n-gram embeddings, thereby modeling n-grams and their interactions. In one embodiment the key phrase module 100 composes the hybrid word embeddings to n-gram embeddings using Convolutional Neural Networks (CNNs). The result is a combination of the word embeddings of the corresponding n-gram. The embedding of the i-th k-gram is calculated as follows:

[0038] In this equation k is the length of the n-gram, and 1 < k <K. is the maximum length of allowed candidate n-grams. Each k-gram has its own set of convolutional filters

CNN* with window size k and stride 1. In a preferred embodiment the maximum n-gram length is set to five (K=5).

[0039] The interactions between k-grams are modeled using the convolutional transformer 112 as follows:

[0040] t = Trans formeri(G k ), (6)

[0041] G k = g k - g k - g k _ k+1 (7)

[0042] The sequence G k is the concatenation of all k-gram embeddings. The transformer 112 models the self-attentions between k-grams and fuses them to global contextualized embeddings. Thus the transformer 112 models the attentions in the embedding space.

[0043] The transformer 112 is convolutional on all length k of n-grams. The same parameters are used to model the interactions between n-grams at each length, to reduce the parameter size. The technique of this embodiment recognizes that the interactions between bi-grams and the interactions between tri-grams are not significantly different.

[0044] A feedforward layer 114 converts the n-gram embeddings into a probability distribution over a set of n-grams, ideally all possible n-grams, and calculates a key phrase score, which may be a final key phrase score, of each n-gram. The score characterizes the importance of a particular n-gram according to the model. In particular, key phrase scores are assigned to the word sequence’s n-gram as: flwu+k, d). Like the convolutional transformer 112, the same feedforward layer 114 is applied convolutional on all n-grams:

[0047] A softmax layer 1 Uptakes the softmax over a set of n-grams, ideally all possible n-grams, at each position i and each length k. The model decides the span location and length jointly.

[0048] The key phrase module 100 uses a neural key phrase extraction model that was trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram as compared with a label from the annotated dataset. For example according to one embodiment the model is trained as a classification problem using cross entropy loss:

[0049] l = Cross Entropy

[0050] where y is the label of whether the phrase w’ n n, is a key phrase of the document. It is to be noted that cross entropy is one of a number of suitable loss functions that can be used in classification tasks. Other suitable loss functions include hinge loss, Kullback- Leibler (KL) divergence, Mean Square Error, and Mean Absolute Error.

[0051] The model according to this example embodiment performs multiclass classification with the softmax function and cross-entropy loss function. For multi class classification the softmax function is used in multinomial logistic regression. In the present model each class corresponds to an n-gram. The logistic output function can only be used for the classification between two target classes, t= 1 and t= 0. This logistic function can be generalized to output a multiclass categorical probability distribution by the softmax function. The softmax function takes an N-dimensional vector of real numbers and transforms it into a vector of real numbers in the range of (0,1) which add up to 1. A softmax function is a“soft” version of max function: instead of selecting one maximum value, it breaks the whole (1) with the maximal element getting the largest portion of the distribution but with other smaller elements getting some of it as well. The property of the softmax function, that it outputs a probability distribution, makes it suitable for probabilistic interpretation in classification tasks.

[0052] Cross entropy indicates the distance between what the model believes the output distribution should be and what the original distribution actually is. A cross entropy measure is used when node activations can be understood as representing the probability that each hypothesis might be true, i.e., when the output is a probability distribution. Thus it is used as a loss function in neural networks which have softmax activations in the output layer. Accordingly, cross-entropy loss measures the performance of a classification model which has an output that is a probability value between 0 and 1. Cross-entropy loss increases as the predicted probability diverges from the actual label. A perfect model would have a log loss of 0.

[0053] In the key phrase module 100, Equation (8) and Equation (9) convert into a probability distribution between 0 and 1. Equation (10) computes the cross entropy of the probability distribution and the training label, which is the true probability distribution.

For the training labels a dataset such as OpenKP is used. (Training is discussed further below in connection with OpenKP.) Thus, Equation (10) computes the softmax cross entropy loss of the model prediction vs. the true labels from the dataset. The model prediction is from Fig. 1, i.e., 1-gram scores, 2-gram scores, etc., as per the softmax layer 116. The key phrase score of each n-gram may be used in a computer-implemented application including but not limited to topical authority assessment (such as computing an authority score of a particular website given a particular topic), ordering and presenting quality and authoritative web search results through a web search engine, page tagging, searching, search relevance, and other practical applications.

[0054] Figs. 2A and 2B comprise a flowchart showing the steps of a key phrase extraction method 200 that can operate in conjunction with the key phrase module 100.

[0055] In the hybrid word embedding aspect of the model, each word is represented by its word embedding, position embedding, and visual features, as follows.

[0056] In step 202 a word sequence of a document is extracted, representing a word sequence of a document as d = {w i, ...½»/. w being words. This representation can be taken over the primary content of the document. Step 202 can be performed by the word sequence representation layer 102 of the key phrase extraction module shown in Fig. 1.

[0057] In step 204 each word in the word sequence is represented by ELMo embedding. ELMo embedding can be performed by the ELMo embedding layer 104. ELMo embedding is performed using local contextual information to convert each word into a vector:

[0058] h t = ELMo((L>i). (1)

[0059] In step 204 a standard pre-trained ELMo can be used. Of course, while ELMo embedding is used in this embodiment, other forms of word embedding known in the art could be used as well, such as Bidirectional Encoder Representations from Transformers (BERT).

[0060] In step 206 each word in the word sequence is represented by position embedding to model the location of each word in the document content. The relative position on the page is considered because it is found that useful information often occurs early in the page. Step 206 can be performed by the position embedding layer 106. One suitable technique for this is standard sinusoidal position embedding:

[0063] In these equations the p-th dimension of the position embedding is a function of its position (i) and dimension (p). Of course, in other embodiments other forms of position embedding known in the art could be used as well. It is also noted that while a preferred embodiment includes the position embedding step 206, position embedding is optional and the position embedding step 206 can be dropped from the key phrase extraction method 200 without too much regression.

[0064] In step 208 each word in the word sequence is represented by visual features, i.e., visual features are used to represent the visual presentation of each word. Step 208 can be performed by the visual feature layer 108. By virtue of extracting key phrases with visual features from the document, words that are more prominently featured in the document, such as by larger font or in bold, for example, are estimated as being salient. Here the visual features are denoted as v L . As noted above, according to an example embodiment, one or more of the following four groups of visual features are extracted for each word in the document: (1) size features include the height and width of the text block a word appears in; (2) location features include the two-dimensional (2D) location of the word in the document; (3) font features include the font size and whether the word is in, e.g., bold, italics, etc.; (4) HTML structural features, e.g., DOM features that include whether the word appears in“inline” or“block” HTML tags, whether the word is in a leaf node of the DOM tree, etc. Of course, embodiments are not limited to the above-noted features.

[0065] In step 210 the ELMo or word embedding, the position embedding (if present), and the visual features are concatenated to produce hybrid word embeddings. Step 210 can be performed by the hybrid word embedding layer 110. Hybrid word embedding is performed per equation (4):

[0067] In step 212 the hybrid word embeddings are modeled to n-gram embeddings using, e.g., Convolutional Neural Networks (CNNs). Step 212 can be performed by the convolutional transformer architecture 112, which models n-grams and their interactions. The result is a combination of the word embeddings of the corresponding n-gram. The embedding of the i-th k-gram is calculated as follows:

[0069] In this equation k is the length of the n-gram, and 1 < k <K. is the maximum length of allowed candidate n-grams. Each k-gram has its own set of convolutional filters CNN* with window size k and stride 1. In a preferred embodiment the maximum n-gram length is set to five (K=5).

[0070] In step 214 the interactions between k-grams are modeled. Step 214 can be performed using the convolutional transformer 112 as follows:

[0073] The sequence G k is the concatenation of all k-gram embeddings. The transformer 112 models the self-attentions between k-grams and fuses them to global contextualized embeddings. Thus the transformer 112 models the attentions in the embedding space.

[0074] In step 216 the n-gram embeddings are converted into a probability distribution over a set of n-grams, ideally all possible n-grams, and a key phrase score is calculated, which may be a final key phrase score, of each n-gram. Step 216 can be performed by the feedforward layer 114. The score characterizes the importance of a particular n-gram according to the model. In particular, key phrase scores are assigned to the word sequence’s n-gram as: fiw +k, d). Like the convolutional transformer 112, the same feedforward layer 114 is applied (convolutional) on all n-grams:

[0077] A softmax layer 1 1 brakes the softmax over a set of n-grams, ideally all possible n-grams, at each position i and each length k. The model decides the span location and length jointly.

[0078] Learning

[0079] In step 218 the neural key phrase extraction model is trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram as compared with a label from the annotated dataset. For example according to one embodiment the model is trained as a classification problem using cross entropy loss:

[0080] l = Cross Entropy

[0081] where yf is the label of whether the phrase wv ii, is a key phrase of the document. Again it is to be noted that cross entropy is one of a number of suitable loss functions that can be used in classification tasks.

[0082] In the key phrase extraction model of this example embodiment, Equation (8) and Equation (9) convert into a probability distribution between 0 and 1. Equation (10) computes the cross entropy of the probability distribution and the training label, which is the true probability distribution. For the training labels a dataset such as OpenKP is used. (Training is discussed further below in connection with OpenKP.) Thus, Equation (10) computes the softmax cross entropy loss of the model prediction vs. the true labels from the dataset. The model prediction is from Fig. 1, i.e., 1-gram scores, 2-gram scores, etc., as per the softmax layer 116. The key phrase score of each n-gram may be used in a computer-implemented application including but not limited to topical authority assessment (such as computing an authority score of a particular website given a particular topic), ordering and presenting quality and authoritative web search results through a web search engine page tagging, searching, search relevance, and others.

[0083] In this way the key phrase extraction model is trained on annotated data based on a labeled loss function to compute cross entropy loss of the final key phrase score of each n-gram compared to a label from the annotated dataset.

[0084] Pre-training using Weak Supervision from Search Queries

[0085] In one embodiment the key phrase extraction model used by the key phrase module 100 is pre-trained using weak supervision from search queries or search clicks.

One application of key phrases is information retrieval. One purpose of extracting key phrases is to capture the topic(s) of the document. As such the extracted key phrases can provide high quality document indexing terms or new semantic ranking features. Looking at it from the reverse direction, then, user clicks convey a user’s perception of the document during search and therefore can provide significant feedback signals for document understanding. Accordingly, in one embodiment weak supervision from search clicks is formulated as a pre-training task referred to herein as“Query Prediction.” In Query Prediction the model is pre-trained to predict which phrase in the document has been used as a“click query,” i.e., a query that a user issued to search and click on the document. Thus Query Prediction treats a click query as a key phrase to be used in key phrase extraction. As click queries on a document reflect a user’s perceptions of relevance and importance when searching the document they can therefore be considered to be “pseudo key phrases.” Pre-training on this weak supervision can utilize a large amount of pre-training signals available at scale in search systems including commercial search logs.

[0086] In this way the key phrase module 100 according to an example embodiment leverages user feedback signals as weak supervision, such that search queries from users are used as a dataset. In particular, given document d, the key phrase module 100 leams from its click queries Q = {q\, ..., q m \. This pre-training step uses the same cross entropy loss:

[0087] \ pre = Cross Entropy(yi, f(qi, d)) (11)

[0088] In this equation y[ indicates whether the query q, is a click query and also appears as an n-gram in the document d.

[0089] A Query Prediction pre-training dataset can be created or accessed and then utilized as the pre-training dataset. For example, an example dataset can be created by sampling data from a search log of a commercial search engine during a given interval (e.g., one week) wherein navigational and offensive inquiries are filtered out. Preferably only the click queries that are included as an n-gram in the document are kept. By virtue of the features described herein, the key phrase extraction model can preferably be pre trained using weak supervision from search queries based on whether a click query also appears as an n-gram in a document.

[0090] Training the Key Phrase Extraction Model

[0091] As noted above, the key phrase extraction model is trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram as compared with a label from the annotated dataset. In one embodiment this step involves training on a large scale open domain key phrase extraction dataset that has been manually labeled. The dataset provides a series of word sequences, each word sequence being labeled with a key phrase or topic that appears in the word sequence. One example of such manually labeled dataset is referred to herein as“OpenKP,” a dataset that includes tens of thousands or more web documents that have been manually labeled with key phrase annotations. The web documents are randomly sampled from a large web corpus and reflect the characteristics of typical web pages, with a large amount of variation in their domains and content quality. As an example, a training dataset such as OpenKP can contain a web page providing information about an actor in which labeled as key phrases are both the actor’s name and the name of a character the actor plays in a movie. OpenKP represents the first publicly available open domain key phrase extraction dataset with annotations at this scale. By virtue of learning from open domain data, compared to data of a specific domain, the key phrase extraction model can generalize well to a broader array of domains.

[0092] Of course, OpenKP is just an example training dataset and other training datasets can be created or accessed and then utilized as the training dataset with the techniques disclosed herein. A training dataset similar to OpenKP can be created using the same basic principles that were used to create OpenKP. The documents in OpenKP were sampled from the index of a commercial search engine. The sampling was conducted on the pool of pages seen by United State users during a time period spanning 2-3 months. There was little to no restriction on the domain or type of the documents. The documents are content-oriented pages such as news articles, multi-media pages from video sites, indexing pages with many hyperlinks, and others. OpenKP is designed to reflect the diverse properties of web documents on the internet.

[0093] A method of creating OpenKP or a similar dataset according to one example aspect includes generating key phrase labels. Key phrase labels can be generated by rendering and examining a web page and manually labeling a number of key phrases (e.g., 1-3 key phrases or more) using criteria such as the following: (1) salience: a key phrase captures essential meaning of the page with no ambiguity; (2) extraction: the key phrase must appear in the document; (3) fine-grained: the key phrase cannot be a general topic or a topic that is too abstract, such as“Sports” or“Politics”; correct and succinct: the key phrase must form a correct noun phrase, while it also should not be clauses or sentences.

[0094] Settling on an appropriate amount of training data points requires a cost-benefit analysis. A larger amount of training data points can reduce missing positives and therefore can be more effective than using smaller data with slightly better labels when training neural models; however, the amount of training data points should not be too large (selecting three key phrases as labels as in OpenKP may be preferable). It is noted that a training dataset as created does not have to be perfect to work well and indeed different page annotators can arrive at different manual labels. Substantial overlap should exist when measured over many pages but achieving perfect manual labels for all pages in the dataset is not feasible or required. The dataset should consist of reasonable choices for key phrases as manual labels.

[0095] Table 1 shows an example of the OpenKP dataset. In this example OpenKP documents were classified into 5,000 predefined domains. The top 15 most popular classes and their distributions are shown in Table 1. As expected, these documents have large variation in their topic domains. The most popular domain,“healthcare,” only covers 3.7% of documents; the tenth most popular topic only covers 1% of documents. Moreover, the top 15 classes make up less than 25% of the entire dataset thereby showing how domain diverse the OpenKP dataset is.

Open KP Document Topics (top 15)

[0096]

[0097] Table 1: The 15 most popular topics in OpenKP

[0098] Table 2 lists some of the specifications of OpenKP. In Table 3 the document length is the length of the text parsed from the HTML of the web page using a production HTML parser. These statistics reflect the large variations in the document contents; their length varies significantly and they share few common key phrases, as shown by the large number of unique key phrases.

Statistics

Doc Lengt

# of KPs p

Kev phrase

Doc Vocab

KP Vocabu

# of Docu

# of Uniqu

[0099]

[00100] Table 2: Statistics of OpenKP

[00101] Using the Key Phrase Module to Produce Topical Authority Ranking at Web

Scale

[00102] The present disclosure according to another aspect is a system for using the KPE module 100 of Fig. 1 and the method of Figs. 2A and 2B to produce topical authority ranking at web or internet scale. Practical applications of topical authority include, for example, ordering and presenting the results of search engines, or for the process where a series of text snippets are displayed in relation to search terms, each text snippet followed by a link to the source. The techniques described herein can also be used for supplying by a search engine personalized news and blogs (for example on a mobile app) in the form of an infinite scroll down.

[00103] The notion of perceived authority is closely connected to topics. Consider as an example several sites for the topic "American Museum of Natural History." At one end of the spectrum there is amnh.org that is the most authoritative site for "American Museum of Natural History." At the other end of the spectrum there are sites such as heart.org (i.e., the American Heart Association's site) that are authoritative in other topics (here, heart topics) but irrelevant to“American Museum of Natural History.” Somewhere in between, there are sites that cover the“American Museum of Natural History” topic with reasonable quality, such as wikipedia.org.

[00104] An aspect of this disclosure includes finding the site level (i.e., domain, host level) topical authority as per Definition 1 below. It is noted that working at site level as opposed to webpage level can reduce the damage from model errors introduced by any single page.

[00105] Definition 1. Topical authority A(s,t) measures the authority score of site s given topic t.

[00106] Consider an example of ranking the American Museum of Natural History in New York. An ideal topical authority model should rank:

[00107] A(amnh. org, American Museum of Natural History) > A(wikipedia. org, American Museum of Natural History).

[00108] Afwikipedia.org, American Museum of Natural History) > A(espn.com,

American Museum of Natural History).

[00109] Embodiments comprise a general model that computes A s.l) such that A(s,t) aligns with the perceived authoritativeness on any given topic among all relevant sites. By virtue of the features of the system described herein search engine quality can be improved, and in particular the trustworthiness of web search results, for example, can be improved.

[00110] Fig. 3 shows a schematic representation of a system for producing topical authority ranking according to an embodiment of the present disclosure. The system includes a topical authority ranking (TAR) server or platform 10 that outputs a signal to a search engine server 70. Embodiments of the TAR platform 10 can also be incorporated into a search engine via hardware or software or a combination thereof. The search engine server 70 can be for example a web search engine server or a search engine server for searching an internal network or an intranet.

[00111] The search engine server 70 communicates with a computing device 50. The computing device 50 can be a user device requesting search results and includes an input device 52 and an output device 54. The input device 52 allows a user to input data through text, speech, audio, or video and may include one or more of a microphone, a keyboard, a camera, and a touchscreen (not shown). The output device 54 may include one or more of a display and a speaker (not shown). The computing device 50 also includes a processor 56 and a memory 58 and may be, for example, a laptop computer, a smartphone, a tablet, a desktop computer, a headless device, or others.

[00112] The TAR platform 10 has a processor 12 and a memory 14 and executes a key phrase module 100 and an aggregation and ranking module 20.

[00113] As noted above the key phrase model of this aspect can be the key phrase module 100 of Fig. 1, as shown in Fig. 3, using the method of Figs. 2A and 2B.

[00114] Referring again to Fig. 2B, as described above, in step 216 a key phrase score for each n-gram (which may be a final key phrase score) is produced, i.e., 1-gram scores, 2-gram scores, etc. Each score is a topic or key phrase. This topic candidate scoring is also designated herein as a site topic purity factor T(s, I):

[00115] Definition 2. T(s, t) e [0, 1] is the percentage of pages within a site s that are tagged with topic t.

[00116] This topic purity factor T(s. t) is a component in later authority computation and can be used by the aggregation and ranking module 20 of Fig. 3.

[00117] The aggregation and ranking module 20 is a hybrid authority ranking model that is used to compute topic-site-level authority scores. This model takes site level PageRank topic features and other site features as inputs and produces site topical authority ranking.

[00118] The aggregation and ranking module 20 of embodiments is a topical authority solution that can be applied to the massive and heterogeneous internet across a great many extracted topics. Fig. 4 shows an exemplary method 400 for executing the aggregation and ranking module 20 according to an embodiment.

[00119] As an overall description of the method of Fig. 4, website authoritativeness A(s,t ) is approximated as a function of popularity and site level topical purity as in Definition 3 below. The aggregation and ranking module 20 considers both the site’s PageRank and the site’s clicks as primary popularity signals. These two signals are susceptible to different types of spam attacks such as link farms and clickbait. Combining the two signals provides a more robust estimate of a site’s popularity and quality.

However, popularity and quality alone are not sufficient to reflect quality topical authoritativeness. For instance, a website for a search engine may be more popular than amnh.org as a site, amnh.org is far more authoritative on the’’American Museum of Natural History” topic.

[00120] To overcome this drawback, the aggregation and ranking module 20 incorporates a topical dimension into the equation. Instead of merely accessing PageRank of a site s, or site rank SR(s), the aggregation and ranking module 20 measures site rank of a site on a topic SR(s,t). Similarly, for user clicks on a site ( '(s). the aggregation and ranking module 20 computes U(s,t), a metric that measures the count of user clicks towards a site s given that the user is interested in topic I. Topical authority is defined in Definition 3 by combining these two factors.

[00121] Definition 3. A(s,t) = <F(SR(s,t), U(s,t )), where A(s.t) is website

authoritativeness, SR(s,t) is a measure of site rank of a site on a topic, U(s,t) is a measure of user clicks towards a site s given that the user is interested in topic t, and F is the final combiner function which can be empirically tuned or machine learned.

[00122] The aggregation and ranking module 20 adapts PageRank to run on a graph where each node is a site, to compute a topic independent site rank. The intra-site links are dropped and links between sites are directed and weighted by the number of links from all pages in the source site pointing to the destination site. This site level graph allows the aggregation and ranking module 20 to compute in Step 402 the topic independent site rank, SR(s) as follows:

[00123] In this equation, d is the damping factor and N is the number of sites in the graph. M(s\) is the set of sites that link to w. L(sj,si) is the count of links from pages in ¾ to pages in «, and I.(s ) denotes the count of total inter-site out-links from pages in ¾. Also, n is number of iterations in site rank propagation.

[00124] In Step 404 the topic dependent site rank SR(s,t ) is calculated, using the topic independent site rank SR(s) from Equation (12). The topic dependent site rank SR(s,t ) may perform best when it is defined as in Equation (13):

[00125] SR(s,t) = SR(s) P(t\s ) = SR(s) T(s,t ) (13) [00126] PageRank estimates the probability of a user visit onto a node via hyperlinks. P(t\s), in contrast, measures the probability of a user interested in topic I given that she visited a page on site s. Under Assumption Al, all webpages within the same site are equally likely to receive clicks. Using this assumption the aggregation and ranking module 20 can compute P(s|t) = T(s,t). It will be recalled that T(s,t), the topic purity factor, is the percentage of pages within the site s that are tagged with topic t. T(s,t) was defined above in Definition 2 as T(s, t) e [0, 1], and was calculated by the key phrase module 100 in step 216 of Fig. 2B which produced a final key phrase score for each n- gram which is used as T(s,t).

[00127] The aggregation and ranking module 20 weights the final score with topic purity after site rank has converged. It is noted that Assumption Al is not strictly true across the internet and therefore is not necessarily an ideal assumption. Nevertheless embodiments can overcome problems arising in tail topics, which are topics mentioned by relatively few pages on the internet.

[00128] In Step 406 U(s,t) is derived. As noted above, U(s,t) measures the count of user clicks towards a site s given that the user is interested in topic t. U(s,t ) = C · P(s.t). where C denotes the total user click traffic on the internet and P(s.l) is the probability of users interested in topic t and clicked onto site s. Since C is a constant across all sites and topics, computing the ranking of U(s,t) essentially comes down to finding P(s.t):

[00129] Let U(s,t) oc P(s,t) = P(s)P(t\s ) (14)

[00130] Here P(s) is the probability of a user click on site s, which is proportional to the count of clicks on site s. This click count is denoted as C(s), which is calculated in Step 408. One way to measure C(s ) is to leverage Bing’s anonymized traffic log to measure C(s ) over an arbitrary period of time.

[00131] P(t\s) measures the probability of a click on a page tagged with topic I given that it occurred on site s. Under the same Assumption A 1 (all webpages within the same site are equally likely to receive clicks), P(t\s) is equivalent to T(s.l).

[00132] In Step 410 let U(s,t) oc a.v)7(.v./)( 15)

[00133] Equation (13) and Equation (15) together produce the final topical authority A(s.t) defined in Equation (17).

[00134] The combination function F dictates how the system leverages clicks, site rank, and topic purity signals to produce the final topical authority A(s,t ):

[00135] A(s,t) = <\HSR(s)T(s.i). C(s)T(s,t)) (16) [00136] The baseline analytical model set out below in Eq. (17) and calculated in Step 412 is the product of the major topical authority factors. The factors are combined with equal importance and are therefore agnostic to the magnitude of their values during ranking:

[00137] A(s,t) = SR(s)C(s)T(s,t) 2 (17)

[00138] There are other variations beyond the baseline. An improved analytical solution Eq. (18) can increase model accuracy. The method is to give a promotion to larger sites and to sites where the topic model is more confident that their pages are related to topic t.

[00139] A(s,t) = SR(s)C(s)T(s ,t) 2 log(# of pages in s) (18)

[00140] -Avg(bt for pages tagged with / in s)

[00141] Returning again to FIG. 3, the output from the aggregation and ranking module 20 of the TAR platform 10, i.e., the final topical authority A(s.t). feeds in to the search engine server 70. As noted above, alternatively the key-phrase model and the aggregation and ranking model can be incorporated into a search engine server. These models can run on one or more computers depending on how big the corpus is, with a scheduler if desired to direct the machines how often to run the models. Embodiments can be incorporated into a web search engine via hardware or software or a combination thereof. With the input into the web engine server the search engine server can learn and use the input and train the input in producing its search results.

[00142] Example Implementations

[00143] The techniques disclosed herein are optimized for the deep learning and neural network environment on a computer network in contrast with previous computerized systems. The techniques disclosed herein with respect to the key phrase module 100 and the aggregation and ranking module 20 may be implemented for example as code of a search engine or as a software and/or hardware system that feeds a signal into a search engine for improving the functioning of a search engine and therefore its quality.

Accordingly the techniques described herein are, in one aspect, integrated into the practical application of key phrase extraction. In another aspect the techniques described herein are integrated into the practical application of ordering and presenting quality and authoritative search results through a search engine including, but not limited to, a web search engine. Other practical applications are contemplated as well.

[00144] Fig. 5 schematically shows a non-limiting embodiment of a computing system 500 that can enact one or more of the methods and processes described above. Computing system 500 is shown in simplified form. Computing system 500 may embody one or more of the key phrase extraction module 100, the aggregation and ranking module 20, and the TAR platform 10, among other elements shown in the Figures and described herein.

Computing system 500 may take the form of one or more personal computers, server computers, tablet computers, home-entertainment computers, network computing devices, gaming devices, mobile computing devices, mobile communication devices (e.g., smart phone), and/or other computing devices, and wearable computing devices such as smart wristwatches and head mounted augmented reality devices.

[00145] Computing system 500 includes a logic processor 502 volatile memory 503, and a non-volatile storage device 504. Computing system 500 may optionally include a display subsystem 506, input subsystem 508, communication subsystem 510, and/or other components not shown in FIG. 5.

[00146] Logic processor 502 includes one or more physical devices configured to execute instructions. For example, the logic processor may be configured to execute instructions that are part of one or more applications, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions may be implemented to perform a task, implement a data type, transform the state of one or more components, achieve a technical effect, or otherwise arrive at a desired result.

[00147] The logic processor may include one or more physical processors (hardware) configured to execute software instructions. Additionally or alternatively, the logic processor may include one or more hardware logic circuits or firmware devices configured to execute hardware-implemented logic or firmware instructions. Processors of the logic processor 502 may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel, and/or distributed processing. Individual components of the logic processor optionally may be distributed among two or more separate devices, which may be remotely located and/or configured for coordinated processing. Aspects of the logic processor may be virtualized and executed by remotely accessible, networked computing devices configured in a cloud-computing configuration. In such a case, these virtualized aspects are run on different physical logic processors of various different machines, it will be understood.

[00148] Non-volatile storage device 504 includes one or more physical devices configured to hold instructions executable by the logic processors to implement the methods and processes described herein. When such methods and processes are implemented, the state of non-volatile storage device 504 may be transformed— e.g., to hold different data. [00149] Non-volatile storage device 504 may include physical devices that are removable and/or built-in. Non-volatile storage device 504 may include optical memory (e.g., CD, DVD, HD-DVD, Blu-Ray Disc, etc.), semiconductor memory (e.g., ROM, EPROM, EEPROM, FLASH memory, etc.), and/or magnetic memory (e.g., hard-disk drive, floppy-disk drive, tape drive, MRAM, etc.), or other mass storage device technology. Non-volatile storage device 504 may include nonvolatile, dynamic, static, read/write, read-only, sequential-access, location-addressable, file-addressable, and/or content-addressable devices. It will be appreciated that non-volatile storage device 504 is configured to hold instructions even when power is cut to the non-volatile storage device 504.

[00150] Volatile memory 503 may include physical devices that include random access memory. Volatile memory 503 is typically utilized by logic processor 502 to temporarily store information during processing of software instructions. It will be appreciated that volatile memory 503 typically does not continue to store instructions when power is cut to the volatile memory 503.

[00151] Aspects of logic processor 502, volatile memory 503, and non-volatile storage device 504 may be integrated together into one or more hardware-logic components. Such hardware-logic components may include field-programmable gate arrays (FPGAs), program- and application-specific integrated circuits (PASIC/ASICs), program- and application-specific standard products (PSSP/ASSPs), system-on-a-chip (SOC), and complex programmable logic devices (CPLDs), for example.

[00152] The terms“module,”“program,”“mechanism,” and“engine” may be used to describe an aspect of computing system 500 typically implemented in software by a processor to perform a particular function using portions of volatile memory, which function involves transformative processing that specially configures the processor to perform the function. Thus, a module, program, or engine may be instantiated via logic processor 502 executing instructions held by non-volatile storage device 504, using portions of volatile memory 503. It will be understood that different modules, programs, mechanisms and/or engines may be instantiated from the same application, service, code block, object, library, routine, API, function, etc. Likewise, the same module, program, mechanism and/or engine may be instantiated by different applications, services, code blocks, objects, routines, APIs, functions, etc. The terms“module,”“program,” “mechanism” and“engine” may encompass individual or groups of executable files, data files, libraries, drivers, scripts, database records, etc. [00153] When included, display subsystem 506 may be used to present a visual representation of data held by non-volatile storage device 504. The visual representation may take the form of a graphical user interface (GUI). As the herein described methods and processes change the data held by the non-volatile storage device, and thus transform the state of the non-volatile storage device, the state of display subsystem 506 may likewise be transformed to visually represent changes in the underlying data. Display subsystem 506 may include one or more display devices utilizing virtually any type of technology. Such display devices may be combined with logic processor 502, volatile memory 503, and/or non-volatile storage device 504 in a shared enclosure, or such display devices may be peripheral display devices.

[00154] When included, input subsystem 508 may comprise or interface with one or more user-input devices such as a keyboard, mouse, touch screen, or game controller. In some embodiments, the input subsystem may comprise or interface with selected natural user input (NUI) componentry. Such componentry may be integrated or peripheral, and the transduction and/or processing of input actions may be handled on- or off-board. Example NUI componentry may include a microphone for speech and/or voice recognition; an infrared, color, stereoscopic, and/or depth camera for machine vision and/or gesture recognition; a head tracker, eye tracker, accelerometer, and/or gyroscope for motion detection and/or intent recognition; as well as electric-field sensing componentry for assessing brain activity; and/or any other suitable sensor.

[00155] When included, communication subsystem 510 may be configured to communicatively couple various computing devices described herein with each other, and with other devices. Communication subsystem 510 may include wired and/or wireless communication devices compatible with one or more different communication protocols. As non-limiting examples, the communication subsystem may be configured for communication via a wireless telephone network, or a wired or wireless local- or wide- area network, such as a HDMI over Wi-Fi connection. In some embodiments, the communication subsystem may allow computing system 500 to send and/or receive messages to and/or from other devices via a network such as the Internet.

[00156] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a”,“an” and“the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms“comprises,” “includes,”“has,”“comprising,”“including” and/or“having,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

[00157] The corresponding structures, materials, acts, and equivalents of all means or step plus function elements, if any, in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. This description has been presented for purposes of illustration and description, but is not intended to be exhaustive or limiting in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the technology. The embodiment was chosen and described in order to best explain the principles of the technology and the practical application, and to enable others of ordinary skill in the art to understand the technology for various embodiments with various modifications as are suited to the particular use contemplated.

[00158] Although specific embodiments have been described, it will be understood by those of skill in the art that there are other embodiments that are equivalent to the described embodiments. Accordingly, it is to be understood that the technology is not to be limited by the specific illustrated embodiments, but only by the scope of the appended claims.

[00159] CONCEPTS

[00160] Concept 1. A system for extracting a key phrase from a document, the system comprising: a processor and a memory, wherein a program executing on the processor is configured to run a neural key phrase extraction model having: a first layer to extract a word sequence from the document; a second layer to represent each word in the word sequence by word embedding and visual features; a third layer to concatenate the word embedding and the visual features to produce hybrid word embeddings; a convolutional transformer to model the hybrid word embeddings to n-gram embeddings; and a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram, wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram as compared with a label from the annotated dataset, and wherein the key phrase score of each n-gram is used in a computer- implemented application.

[00161] Concept 2. The system of any preceding and/or succeeding Concept(s), wherein the labeled loss function is cross entropy loss.

[00162] Concept 3. The system of any preceding and/or succeeding Concept(s), wherein the word embedding is ELMo embedding.

[00163] Concept 4. The system of any preceding and/or succeeding Concept(s), wherein the computer-implemented application is an aggregation and ranking model that uses the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

[00164] Concept 5. The system of any preceding and/or succeeding Concept(s), wherein the documents are webpages.

[00165] Concept 6. The system of any preceding and/or succeeding Concept(s), wherein the visual features of each word include at least one of location, size, font, and HTML structure of each word.

[00166] Concept 7. The system of any preceding and/or succeeding Concept(s), wherein the neural key phrase extraction model was pre-trained using weak supervision from search queries based on whether a click query also appears as an n-gram in the document.

[00167] Concept 8. The system of any preceding and/or succeeding Concept(s), wherein the second layer also represents each word in the word sequence by position embedding, and the third layer concatenates the word embedding, the visual features, and the position embedding to produce the hybrid word embeddings.

[00168] Concept 9. The system of any preceding and/or succeeding Concept(s), wherein n < 5, and wherein if the document is greater than 256 words the document is truncated to 256 words.

[00169] Concept 10. A computer-implemented method for implementing a neural key phrase extraction model to extract a key phrase from a document, the method comprising: extracting a word sequence from the document; representing each word in the word sequence by word embedding and visual features; concatenating the word embedding and the visual features to produce hybrid word embeddings; using a convolutional transformer to model the hybrid word embeddings to n-gram embeddings; using a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram; wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute loss of the key phrase score of each n-gram compared to a label from the annotated dataset; and using the key phrase score of each n-gram in a computer-implemented application. [00170] Concept 11. The method of any preceding and/or succeeding Concept(s), wherein the representing step further includes representing each word in the word sequence by position embedding, and the concatenating step includes concatenating the word embedding, the visual features, and the position embedding to produce the hybrid word embeddings.

[00171] Concept 12. The method of any preceding and/or succeeding Concept(s), wherein the word embedding is ELMo embedding.

[00172] Concept 13. The method of any preceding and/or succeeding Concept(s), wherein the computer-implemented application is an aggregation and ranking model that uses the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

[00173] Concept 14. The method of any preceding and/or succeeding Concept(s), wherein the documents are web documents.

[00174] Concept 15. The method of any preceding and/or succeeding Concept(s), wherein the visual features of each word include at least one of location, size, font, and HTML structure of each word.

[00175] Concept 16. The method of any preceding and/or succeeding Concept(s), wherein the neural key phrase extraction model is pre-trained using weak supervision from search queries based on whether a click query also appears as an n-gram in the document.

[00176] Concept 17. A system for producing topical authority ranking of a website, the system comprising: a processor and a memory, wherein a program executing on the processor is configured to run: a neural key phrase extraction model for extracting a key phrase from a document, the neural key phrase extraction model having: a word sequence representation layer to extract a word sequence of the document; an ELMo embedding layer to represent each word in the word sequence by ELMo embedding; a position embedding layer to represent each word in the word sequence by position embedding; a visual feature layer to represent each word in the word sequence by visual features; a hybrid word embedding layer to concatenate the ELMo embedding, the position embedding, and the visual features to produce hybrid word embeddings; a convolutional transformer to model the hybrid word embeddings to n-gram embeddings; and a feedforward layer to convert the n-gram embeddings into a probability distribution over a set of n-grams and calculate a key phrase score of each n-gram, wherein the neural key phrase extraction model was trained on annotated data based on a labeled loss function to compute cross entropy loss of the key phrase score of each n-gram compared to a label from the annotated dataset; and wherein the program executed on the processor is also configured to run: an aggregation and ranking model to use the key phrase score of each n-gram to compute an authority score A(s,t) of website s given topic t.

[00177] Concept 18. The system of any preceding and/or succeeding Concept(s), wherein the aggregation and ranking model: computes a topic independent site rank

SRfsJ: computes a topic dependent site rank SR(s,t) using SRfsJ : computes a count of user clicks U(s,t) towards site s given interest in topic t, using SR(s,t) computes a count of clicks Cfs) on site s using the final key-phrase score of each n-gram; and calculates the topical authority score A(s,t) of website s given topic t, as a function of SRfsJ. C(s), and the final key -phrase score of each n-gram.

[00178] Concept 19. The system of any preceding and/or succeeding Concept(s), wherein the visual features of each word include at least one of location, size, font, and HTML structure of each word.

[00179] Concept 20. The system of any preceding and/or succeeding Concept(s), wherein the neural key phrase extraction model is pre-trained using weak supervision from search queries based on whether a click query also appears as an n-gram in the document.