Disclosure of Invention
An object of the embodiments of the present application is to provide an information entry method, an information entry device, an electronic device, and a storage medium, which can improve information entry efficiency.
In a first aspect, an embodiment of the present application provides an information entry method, including the following steps:
acquiring initial information to be input;
analyzing the initial information to respectively extract structured data and unstructured data in the initial information;
acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area;
filling the structured data into a structured data template of a structured information publishing area;
and filling the unstructured data into an unstructured information issuing area.
According to the information input method, the initial information is analyzed to obtain the structured data and the unstructured data, and then the two kinds of data are input in different modes, so that the information input efficiency can be improved, and the user experience is improved.
Optionally, in the information entry method according to the embodiment of the present application, after the step of filling the unstructured data in the unstructured information publishing area, the method further includes:
and generating a new structured data template according to the unstructured data filled in the unstructured information publishing area and storing the new structured data template. A
Optionally, in the information entry method according to the embodiment of the present application, the unstructured data includes unstructured sub-data and structured sub-data;
the step of filling the unstructured data into the unstructured information publishing area comprises the following steps:
retrieving the structured sub-data to obtain a corresponding structured sub-data template;
populating the structured sub-data into the structured data sub-template;
and filling the unstructured sub data into an unstructured information issuing area.
Optionally, in the information entry method according to the embodiment of the present application, the step of retrieving the structured sub-data to obtain a corresponding structured sub-data template includes:
retrieving based on keywords in the structured sub-data to obtain a business scene corresponding to the keywords;
and acquiring a structured data sub-template matched with the service scene.
Optionally, in the information entry method according to the embodiment of the present application, the structured data includes at least one of the following data: job number information, business hall information, district and county information, and city and place information.
In a second aspect, an embodiment of the present application further provides an information entry apparatus, including:
the first acquisition module is used for acquiring initial information to be input;
the analysis module is used for analyzing the initial information so as to respectively extract structured data and unstructured data in the initial information;
the second acquisition module is used for acquiring a corresponding structured data template according to the structured data and displaying the structured data template in a structured information release area;
the first filling module is used for filling the structured data into a structured data template of a structured information publishing area;
and the second filling module is used for filling the unstructured data into the unstructured information issuing area.
Optionally, in the information entry apparatus according to the embodiment of the present application, the apparatus further includes:
and the generating module is used for generating a new structured data template according to the unstructured data filled in the unstructured information distribution area and storing the new structured data template. A
Optionally, in the information entry apparatus according to the embodiment of the present application, the unstructured data includes unstructured sub data and structured sub data;
the second filling module includes:
the retrieval unit is used for retrieving the structured sub-data to obtain a corresponding structured sub-data template;
a first filling unit, configured to fill the structured sub-data into the structured data sub-template;
and the second filling unit is used for filling the unstructured sub data into the unstructured information issuing area.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method as provided in the first aspect are executed.
In a fourth aspect, embodiments of the present application provide a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps in the method as provided in the first aspect.
As can be seen from the above, in the embodiment of the present application, the initial information to be entered is obtained; analyzing the initial information to respectively extract structured data and unstructured data in the initial information; acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area; filling the structured data into a structured data template of a structured information publishing area; and filling the unstructured data into an unstructured information publishing area, so that the information is rapidly input, the efficiency can be improved, and the user experience can be improved.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of an information entry method in some embodiments of the present application, where the information entry method is integrated in an electronic device such as a server and a terminal in the form of a computer program. The information entry method comprises the following steps:
and S101, acquiring initial information to be recorded.
S102, analyzing the initial information to respectively extract structured data and unstructured data in the initial information.
S103, acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area.
And S104, filling the structured data into a structured data template of the structured information publishing area.
And S105, filling the unstructured data into an unstructured information publishing area.
In step S101, the initial information to be entered may be downloaded through a network or uploaded by a user, and the structure of the initial information is complex and is not standard data with a standard structure, so that the initial information cannot be automatically filled in by using one template.
However, in step S102, since the initial information has a relatively complex component ratio, and has both structured data and unstructured data, analysis is required to distinguish the standard structured data from the non-standard unstructured data, so as to facilitate data entry by using different methods. In the specific implementation process, the service scene of each segment of data can be judged through keyword identification, so that whether the segment of data is structured data or unstructured data is judged. The structured data refers to data which can be filled in a standard structured data template, and the unstructured data refers to data which cannot be directly filled in the standard structured data template.
In step S103, different structured data need to be filled into different structured data templates, so that the corresponding structured data template needs to be obtained according to the type of the structured data, specifically, different structured data correspond to different service scenarios, and different service scenarios correspond to different structured data templates. Therefore, a service scene corresponding to the structured data needs to be searched and obtained according to the features of the structured data, and then a corresponding structured data template is obtained based on the service scene query.
In step S104, the structured data is directly copied to the structured data template to complete the filling of the structured data. Wherein the structured data comprises at least one of: job number information, business hall information, district and county information, and city and place information.
In step S105, the unstructured data may be filled into the unstructured-information distribution area segment by segment or word by word. In particular, in some embodiments, unstructured data includes unstructured sub-data as well as structured sub-data; that is, the unstructured data includes a portion of structured sub-data and a portion of unstructured sub-data. Thus, the step S105 includes the steps of: s1051, retrieving the structured sub-data to obtain a corresponding structured sub-data template; s1052, filling the structured sub-data into the structured data sub-template; and S1053, filling and writing the unstructured sub-data into an unstructured information issuing area. The structured sub-data comprises at least one of the following data: job number information, business hall information, district and county information, and city and place information. Wherein, the step S1051 includes: retrieving based on keywords in the structured sub-data to obtain a business scene corresponding to the keywords; and acquiring a structured data sub-template matched with the service scene.
It is understood that, in some embodiments, after the step S105 is executed, the following steps are further included: and S106, generating a new structured data template according to the unstructured data filled in the unstructured information distribution area and storing the new structured data template. After one type of unstructured data is input at one time, a corresponding new structured data template is automatically generated based on the input format, so that the template can be used when the unstructured data of the same type is input next time or other users, the information input efficiency is improved, and the user experience can be improved.
As can be seen from the above, in the embodiment of the present application, the initial information to be entered is obtained; analyzing the initial information to respectively extract structured data and unstructured data in the initial information; acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area; filling the structured data into a structured data template of a structured information publishing area; and filling the unstructured data into an unstructured information publishing area, so that the information is rapidly input, the efficiency can be improved, and the user experience can be improved.
Referring to fig. 2, fig. 2 is a structural diagram of an information entry device in some embodiments of the present application. The information entry device includes: a first obtainingmodule 201, aparsing module 202, a second obtainingmodule 203, afirst filling module 204, and asecond filling module 205.
The first obtainingmodule 201 is configured to obtain initial information to be entered; the initial information to be input can be downloaded through a network or uploaded by a user, and the structure of the initial information is complex and is not standard data with a standard structure, so that the initial information to be input can not be quickly and automatically filled in by adopting a template.
The analyzingmodule 202 is configured to analyze the initial information to extract structured data and unstructured data in the initial information respectively; since the initial information has a relatively complex composition ratio, and has both structured data and unstructured data, the initial information needs to be analyzed to distinguish standard structured data from non-standard unstructured data, so as to facilitate data entry by different methods. In the specific implementation process, the service scene of each segment of data can be judged through keyword identification, so that whether the segment of data is structured data or unstructured data is judged. The structured data refers to data which can be filled in a standard structured data template, and the unstructured data refers to data which cannot be directly filled in the standard structured data template.
The second obtainingmodule 203 is configured to obtain a corresponding structured data template according to the structured data, and display the structured data template in a structured information publishing area; different structured data need to be filled into different structured data templates, so that the corresponding structured data template needs to be obtained according to the type of the structured data, specifically, different structured data correspond to different service scenes, and different service scenes correspond to different structured data templates. Therefore, a service scene corresponding to the structured data needs to be searched and obtained according to the features of the structured data, and then a corresponding structured data template is obtained based on the service scene query.
Thefirst filling module 204 is configured to fill the structured data into a structured data template of a structured information distribution area; thefirst filling module 204 directly copies the structured data into the structured data template to complete the filling of the structured data. Wherein the structured data comprises at least one of: job number information, business hall information, district and county information, and city and place information.
Thesecond filling module 205 is configured to fill the unstructured data into the unstructured information publishing area. The unstructured data comprises unstructured sub-data and structured sub-data; the second filling module includes: the retrieval unit is used for retrieving the structured sub-data to obtain a corresponding structured sub-data template; a first filling unit, configured to fill the structured sub-data into the structured data sub-template; and the second filling unit is used for filling the unstructured sub data into the unstructured information issuing area.
Optionally, in some embodiments, the information entry apparatus further comprises: and the generating module is used for generating a new structured data template according to the unstructured data filled in the unstructured information distribution area and storing the new structured data template. After one type of unstructured data is input at one time, a corresponding new structured data template is automatically generated based on the input format, so that the template can be used when the unstructured data of the same type is input next time or other users, the information input efficiency is improved, and the user experience can be improved.
As can be seen from the above, in the embodiment of the present application, the initial information to be entered is obtained; analyzing the initial information to respectively extract structured data and unstructured data in the initial information; acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area; filling the structured data into a structured data template of a structured information publishing area; and filling the unstructured data into an unstructured information publishing area, so that the information is rapidly input, the efficiency can be improved, and the user experience can be improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, where the present disclosure provides anelectronic device 3, including: theprocessor 301 and thememory 302, theprocessor 301 and thememory 302 being interconnected and communicating with each other via acommunication bus 303 and/or other form of connection mechanism (not shown), thememory 302 storing a computer program executable by theprocessor 301, theprocessor 301 executing the computer program when the computing device is running to perform the method of any of the alternative implementations of the embodiments described above.
As can be seen from the above, in the embodiment of the present application, the initial information to be entered is obtained; analyzing the initial information to respectively extract structured data and unstructured data in the initial information; acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area; filling the structured data into a structured data template of a structured information publishing area; and filling the unstructured data into an unstructured information publishing area, so that the information is rapidly input, the efficiency can be improved, and the user experience can be improved.
An embodiment of the present application provides a storage medium, and when being executed by a processor, the computer program performs a method in any optional implementation manner of the foregoing embodiment to implement the following functions: acquiring initial information to be input; analyzing the initial information to respectively extract structured data and unstructured data in the initial information; acquiring a corresponding structured data template according to the structured data, and displaying the structured data template in a structured information publishing area; filling the structured data into a structured data template of a structured information publishing area; and filling the unstructured data into an unstructured information issuing area. The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.