Automatic labeling of text data
Abstract
The technology described herein determines whether a candidate text is in a requested class by using a generative model that may not be trained on the requested class. The present technology may use of a model trained primarily in an unsupervised mode, without requiring a large number of manual user-input examples of a label class. The may produce a semantically rich positive example of label text from a candidate text and label. Likewise, the technology may produce from the candidate text and the label a semantically rich negative example of label text. The labeling service makes use of a generative model to produce a generative result, which estimates the likelihood that the label properly applies to the candidate text. In another aspect, the technology is directed toward a method for obtaining a semantically rich example that is similar to a candidate text.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 1.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for determining a correspondence between a class label and a text comprising: receiving a candidate text; receiving a label description; using the label description to generate a query; communicating the query to a search engine; receiving from the search engine a text string that is responsive to the query; inputting the text string and the candidate text to a generative model; receiving a generated text from the generative model, the generated text comprising a plurality of tokens and associated probabilities; determining a label probability estimate based on the generated text; and outputting an indication whether the candidate text corresponds to the label description based on the label probability estimate.
- Claim 2Depends on #1
The method of claim 1, wherein the label probability estimate is determined from a token probability of the generated text that corresponds to a label.
- Claim 3Depends on #2
The method of claim 2, wherein the label is a positive label or an anti-label.
- Claim 4Depends on #1
The method of claim 1, wherein the label probability estimate is determined from a token probability of the generated text that corresponds to a keyword of the label description or a keyword of an anti-label.
- Claim 5Depends on #1
The method of claim 1, wherein a search engine technology for the search engine is selected from a group consisting of a rule-based search, a semantic search based on semantic nearness, or a contextualized search that uses a transformer model.
- Claim 6Depends on #1
The method of claim 1, wherein determining the label probability estimate based on the generated text comprises using a first weight applied to a first label score that is based on the generated text and a second weight applied to a second label score that is based on a second generated text received from a second generative model when the candidate text is input to the second generative model.
- Claim 7Depends on #6
The method of claim 6, wherein the first weight and the second weight are determined by finding a set of stored weights for a different label description that is similar to the label description.
- Claim 8Independent Claim
A computer storage media comprising instructions that when executed by a computing device cause the computing device to perform a method for determining a correspondence between a class label and a text comprising: receiving a candidate text; receiving a label description; generating a candidate result from a generative model with the candidate text as input to the generative model; generating a positive example result from the generative model with a positive example text as input to the generative model, the positive example text embodying the label description; generating a negative example result from a generative model with a negative example text as input to the generative model, the negative example text embodying a concept opposite to the label description; determining a first ranked score of the positive example result based on a response from submitting the candidate result to a search engine as a query over a corpus comprising the positive example result and the negative example result; determining a second ranked score of the negative example result based on the response from submitting the candidate result to the search engine as the query over a corpus comprising the positive example result and the negative example result; determining a label probability estimate by comparing the first ranked score of the positive example result to the second ranked score of the negative example result; and outputting an indication whether the candidate text corresponds to the label description based on the label probability estimate.
- Claim 9Depends on #8
The media of claim 8, wherein the search engine is a semantic search engine.
- Claim 10Depends on #8
The media of claim 8, wherein the generative model is GPT 3 run in zero shot mode.
- Claim 11Depends on #8
The media of claim 8, wherein the indication is based on a weighted combination of the label probability estimate and a second label probability estimate calculated by a different method.
- Claim 12Depends on #11
The media of claim 11, wherein the candidate text is a corpus of documents.
- Claim 13Independent Claim
A system comprising: one or more processors; and one or more computer storage media storing computer-useable instructions that, when used by the one or more processors, cause the one or more processors to perform a method, the method comprising: receiving, for a classifier, a training data instance comprising example text associated with a class label; determining a first set of priority keywords for the example text; determining a second set of priority keywords for the class label; determining a set of context aware keywords from the first set of priority keywords and the second set of priority keywords; communicating a query comprising the set of context aware keywords to a search engine; receiving from the search engine, in response to the query, a text snippet; generating an augmented training data instance comprising the text snippet and the class label; classifying a candidate text using the classifier trained with the augmented training data instance into a class; and outputting an indication that the candidate text corresponds to a label corresponding to the class.
- Claim 14Depends on #13
The system of claim 13, wherein the example text is a positive example of the class label.
- Claim 15Depends on #13
The system of claim 13, wherein the example text is a negative example of the class label.
- Claim 16Depends on #12
The system of claim 12, further comprising storing the first set of priority keywords for the example text and the second set of priority keywords for the class label in a graph structure.
- Claim 17Depends on #12
The system of claim 12, further comprising: obtaining first embeddings for terms of the first set of priority keywords for the for example text; obtaining second embeddings for terms of the second set of priority keywords for the class label; and using an operation on the first embeddings and the second embeddings to determine the context aware keywords.
- Claim 18Depends on #17
The system of claim 17, wherein using the operation comprises calculating cosine similarity between terms of the first set of priority keywords for the example text and the terms of the second set of priority keywords for the class label.
- Claim 19Depends on #12
The system of claim 12, wherein determining the set of context aware keywords comprises filtering the keywords for the example text according to relevance of each term of the first set of priority keywords for the example text to the context of the keywords for the class label.
- Claim 20Depends on #12
The system of claim 12, further comprising confirming that the text snippet is likely to represent the class label by using a label scoring method that receives the text snippet and the class label and returns an indication that the probability that the text snippet embodies the class label is above a threshold.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to India Application No. 202141029147, filed 29 Jun. 2021, and entitled, “ Automatic Labeling of Text Data. ” BACKGROUND The search technology of modern times has made great advances for simplicity and ease of use. However, as beneficial as these changes have been, they are generally limited in two important ways. First, these methods depend upon the user providing the right, concrete nouns or keywords to receive a set of results relevant to the subject, by finding the documents for which those keywords are used and have a high relevance. If the vocabulary and experience of the human who writes the query is limited, it can take hours of attempt and failure before the user finds out the nouns he should have been using from the beginning. If the user does not know the keywords that appear in the index of the subject that he would like to research, he is not likely to get results that are relevant to the subject without a painful process of trial and error. Second, the search techniques that are commonly available generally only scratch the surface of relevant documents. Many documents that are more relevant may exist. However, these documents use different terminology, different vocabulary and expression. Therefore, these documents will not score as high in relevance to the query of the user. These two limitations are partially the result of the failure of past attempts to label linguistic data. Methods that existed were not amenable to user-definition, they used taxonomies of nouns that were not necessarily known or meaningful to the user who performed the search. Manual labelling systems are developed at great amounts of processing power and cost to the user and they are not generally available to a search process or to an index of the search process. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Descr
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,792,658 B2 | Label management system for an electronic document management service | 2026 | 0 |
References Cited — Backward Prior Art (5)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- “
- International Search Report and Written Opinion Issued in PCT Application No. PCT/US22/030464
- ”
- , Mailed Date: Sep. 2, 2022, 11 Pages.
- “
- Automatic Data Labeller
- ”
- , Retrieved from: https://autodatalabeller.azurewebsites.net/, Retrieved Date: May 6, 2020, 2 Pages.
- “
- GPT-3