# US 2022/0292086 A1 · Methods and systems to automatically generate search queries from software documents to validate software component search engines

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292086 A1
- Document ID: US20220292086A1
- Status: Published application
- Kind: A1
- Application number: 17/679,588
- Filed: 2022-02-24
- Published: 2022-09-15
- Earliest claimed: 2021-02-24
- Assignees: Open Weaver Inc.
- Applicants: Open Weaver Inc.
- Inventors: Ashok Balasubramanian; Karthikeyan Krishnaswamy Raja; Arul Reagan S
- Web page: https://patentgrep.com/patent/US20220292086A1

## CPC

- G06F 16/243: {Natural language query formulation}
- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F 16/285: {Clustering or classification}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 40/30: Semantic analysis
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 40/216: using statistical methods
- G06F 40/237: Lexical tools
- G06F 40/295: Named entity recognition
- G06F 40/56: Natural language generation
- G10L 2015/223: {Execution procedure of a spoken command}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

Systems and methods for automatically detecting search queries from software documents to validate component searches are provided. An example method includes receiving a number of documents, parsing a number of documents to extract a number of sentences, mapping each of the number of sentences to a number of sections, filtering the number of sentences, consolidating the number of sections and the number of filtered sentences into a summary, partitioning the summary into a first number of sentences, replacing one or more of the number of sentences with one or more paraphrase sentences generated by a machine learning model to generate a second number of sentences, and generating a number of search queries based on the second number of sentences.

## Claims

### Claim 1

A system to automatically generate search queries from software documents, the system comprising:
one or more processors and memory storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
receiving a plurality of documents;
parsing the plurality of documents to extract a plurality of sentences;
mapping each of the plurality of sentences to a plurality of sections;
filtering the plurality of sentences
consolidating the plurality of sections and the plurality of filtered sentences into a summary;
partitioning the summary into a first plurality of sentences;
replacing one or more of the plurality of sentences with one or more paraphrase sentences generated by a machine learning model to generate a second plurality of sentences; and
generating a plurality of search queries based on the second plurality of sentences.

### Claim 2 (depends on 1)

The system of claim 1, wherein parsing the plurality of documents to extract a plurality of sentences comprises converting a plurality of programming code snippets to a plurality of text snippets.

### Claim 3 (depends on 1)

The system of claim 1, wherein filtering the plurality of sentences comprises removing stop words, duplicate sentences, and natural language sentences that are not associated with software components.

### Claim 4 (depends on 1)

The system of claim 1, wherein the machine learning model is trained with training data comprising a plurality of software dictionaries, hierarchies, synonyms, sentence variations, and summary representations.

### Claim 5 (depends on 1)

The system of claim 1, wherein generating the plurality of search queries based on the second plurality of sentences comprises the machine learning model using at least on of part of speech tagging, named entity recognition, computing character combination, word length detection, and inverse document frequency scoring.

### Claim 6 (depends on 1)

The system of claim 1, the operations further comprising providing a user with a comparison of between the plurality of search queries and the plurality of sentences.

### Claim 7 (depends on 1)

The system of claim 1, wherein the machine learning model is trained with training data comprising meta-data retrieved form license and credit information associated with the plurality of documents.

### Claim 8

A method for automatically generating search queries from software documents, the method comprising:
receiving a plurality of documents;
parsing the plurality of documents to extract a plurality of sentences;
mapping each of the plurality of sentences to a plurality of sections;
filtering the plurality of sentences
consolidating the plurality of sections and the plurality of filtered sentences into a summary;
partitioning the summary into a first plurality of sentences;
replacing one or more of the plurality of sentences with one or more paraphrase sentences generated by a machine learning model to generate a second plurality of sentences; and
generating a plurality of search queries based on the second plurality of sentences.

### Claim 9 (depends on 8)

The method of claim 8, wherein parsing the plurality of documents to extract a plurality of sentences comprises converting a plurality of programming code snippets to a plurality of text snippets.

### Claim 10 (depends on 8)

The method of claim 8, wherein filtering the plurality of sentences comprises removing stop words, duplicate sentences, and natural language sentences that are not associated with software components.

### Claim 11 (depends on 8)

The method of claim 8, wherein the machine learning model is trained with training data comprising a plurality of software dictionaries, hierarchies, synonyms, sentence variations, and summary representations.

### Claim 12 (depends on 8)

The method of claim 8, wherein generating the plurality of search queries based on the second plurality of sentences comprises the machine learning model using at least on of part of speech tagging, named entity recognition, computing character combination, word length detection, and inverse document frequency scoring.

### Claim 13 (depends on 8)

The method of claim 8, further comprising providing a user with a comparison of between the plurality of search queries and the plurality of sentences.

### Claim 14 (depends on 8)

The method of claim 8, wherein the machine learning model is trained with training data comprising meta-data retrieved form license and credit information associated with the plurality of documents.

### Claim 15

One or more non-transitory computer-readable media for automatically generating search queries from software documents, the computer-readable media storing instructions thereon, wherein the instructions when executed by one or more processors cause the one or more processors to:
receive a plurality of documents;
parse the plurality of documents to extract a plurality of sentences;
map each of the plurality of sentences to a plurality of sections;
filter the plurality of sentences
consolidate the plurality of sections and the plurality of filtered sentences into a summary;
partition the summary into a first plurality of sentences;
replace one or more of the plurality of sentences with one or more paraphrase sentences generated by a machine learning model to generate a second plurality of sentences; and
generate a plurality of search queries based on the second plurality of sentences.

### Claim 16 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein parsing the plurality of documents to extract a plurality of sentences comprises converting a plurality of programming code snippets to a plurality of text snippets.

### Claim 17 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein filtering the plurality of sentences comprises removing stop words, duplicate sentences, and natural language sentences that are not associated with software components.

### Claim 18 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein the machine learning model is trained with training data comprising a plurality of software dictionaries, hierarchies, synonyms, sentence variations, and summary representations.

### Claim 19 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein generating the plurality of search queries based on the second plurality of sentences comprises the machine learning model using at least on of part of speech tagging, named entity recognition, computing character combination, word length detection, and inverse document frequency scoring.

### Claim 20 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein the instructions cause the one or more processors to provide a user with a comparison of between the plurality of search queries and the plurality of sentences.
