Form filling method and device, equipment, storage medium and program product
By using natural language models to match and automatically fill form fields and data, the problem of cumbersome form filling and high error rate in the engineering consulting industry is solved, and efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411383711.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-02-28
AI Technical Summary
In the engineering consulting industry, the online form filling process is cumbersome and errors are prone to occur, resulting in project budget distortion, equipment selection errors, material procurement errors, etc., affecting project quality and work efficiency.
By responding to the form to be filled in the current web page, extracting fields from the form, obtaining the target text, using the pre-trained natural language model to match the form fields and form data, establishing a correspondence relationship, and automatically filling the form data.
It improves the efficiency of form filling, saves user time, reduces the probability of filling incorrectly, and improves user experience and work quality.
Smart Images

Figure 00000000_0000_ABST
Abstract
Claims
1. A form filling method, characterized in that: The method comprises: In response to a form to be filled out on the current webpage, extracting at least one form field from the form; Acquire a target text, wherein the target text includes at least one form data; Inputting the form fields and the target text into a pre-trained natural language model, obtaining at least one set of successfully matched form fields and form data output by the natural language model, and establishing a corresponding relationship between the successfully matched form fields and form data; For each successfully matched form data, based on the corresponding relationship, the form data is filled into the data filling position of the corresponding form field.
2. The method according to claim 1, characterized in that The method is applicable to a browser plug-in. In response to a form to be filled in the current webpage, before extracting at least one form field from the form, the method further includes: Get the page source code of the current web page; The input box elements in the page source code are detected, and when at least two of the input box elements are detected, it is determined that there is a form to be filled in the current webpage.
3. The method according to claim 1, characterized in that The obtaining of the target text comprises: Based on a preset text input control, obtaining the target text cut and / or copied by the user; and / or: Based on a preset file upload control, the target text is extracted from the target file uploaded by the user.
4. The method according to claim 1, characterized in that: Before matching the form field with the target text, the method further includes: Extracting first form data matching the cached historical form data from the target text; For each first form data, matching the form field with a historical form field corresponding to the historical form data that matches the first form data, and determining a first form field corresponding to the first form data from the form fields; Fill the first form data into the data filling position of the first form field.
5. The method according to claim 4, characterized in that The matching of the form field and the target text to determine the corresponding relationship between the form field and the form data includes: Matching a second form field with the target text to determine a corresponding relationship between the second form field and second form data, where the second form field is other form fields in the form fields except the first form field; The step of filling each successfully matched form data into a data filling position of a corresponding form field based on the corresponding relationship includes: For each successfully matched second form data, the second form data is filled into the data filling position of the corresponding second form field based on the corresponding relationship.
6. A form filling device, characterized in that: include: A first extraction module, configured to extract at least one form field from a form to be filled in in response to a current webpage having the form to be filled in; A first acquisition module, used for acquiring a target text, wherein the target text includes at least one form data; A first matching module, configured to input the form fields and the target text into a pre-trained natural language model, obtain at least one set of successfully matched form fields and form data output by the natural language model, and establish a corresponding relationship between the successfully matched form fields and form data; The first filling module is used to fill each successfully matched form data into the data filling position of the corresponding form field based on the corresponding relationship.
7. The device according to claim 6, characterized in that The device is applicable to a browser plug-in, and the device also includes: The second acquisition module is used to obtain the page source code of the current web page; The detection module is used to detect the input box elements in the page source code, and when at least two of the input box elements are detected, determine that there is a form to be filled in the current web page.
8. A computer device, characterized in that: include: Memory; processor; And a computer program; wherein the computer program is stored in the memory and is configured to be executed by the processor to implement the form filling method as described in any one of claims 1-5.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the form filling method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the form filling method according to any one of claims 1 to 5 is implemented.