CN110096689A - Template type legal documents information fill method and device - Google Patents
Template type legal documents information fill method and device Download PDFInfo
- Publication number
- CN110096689A CN110096689A CN201910413040.1A CN201910413040A CN110096689A CN 110096689 A CN110096689 A CN 110096689A CN 201910413040 A CN201910413040 A CN 201910413040A CN 110096689 A CN110096689 A CN 110096689A
- Authority
- CN
- China
- Prior art keywords
- template
- label
- configuration
- legal documents
- document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000006243 chemical reaction Methods 0.000 claims description 13
- 238000003860 storage Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 230000001052 transient effect Effects 0.000 claims description 5
- 230000007246 mechanism Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 2
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 241001269238 Data Species 0.000 abstract description 9
- 230000000717 retained effect Effects 0.000 abstract 1
- 238000005516 engineering process Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000009432 framing Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 238000004886 process control Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000002360 preparation method Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/18—Legal services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Primary Health Care (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Technology Law (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention discloses a kind of template type legal documents information fill method and devices, which comprises obtains data source;Template configuration is carried out, the position of case information involved in template is replaced with label;Carry out label configuration;According to the template style of configuration, template is parsed, generates document model;Label in template is extracted by canonical matching, and is parsed, parsing result is for the filling at template mark;Using document model as object, structural data is regenerated in template file.Template type legal documents information fill method and device disclosed by the embodiments of the present invention, it may be implemented based on template, the accurate filling for carrying out case information, automatically generate complete document, the structural datas such as database, XML are supported to be filled as information source, can be accurately by fills in specific mark, and label bookmark can be retained in the document of generation, it is provided a strong guarantee for subsequent statement replacement and format setting.
Description
Technical field
The present embodiments relate to field of computer technology, and in particular to a kind of template type legal documents information fill method
And device.
Background technique
With the development of computer technology, in order to improve the efficiency of legal documents production, information is carried out based on instrument template
Filling, and then realize that the production of legal documents has become possibility.
Currently, the filling of template type information is to carry out filling out for case information manually on the basis of document structural framing mostly
It fills, the building of document structural framing can be saved using the technology, judge only needs case information correspondence being filled up to template phase
It answers position that the production of legal documents can be completed, reduces the workload of judge to a certain extent.
But this scheme in the prior art, it builds while document framework can only be saved, can not automatically fill out case information
It is charged in the document to be made.
Summary of the invention
For this purpose, the embodiment of the present invention provides a kind of template type legal documents information fill method and device, it is existing to solve
Since document frame can only be saved caused by carrying out the filling of case information manually on the basis of document structural framing in technology
It builds to structure, case information can not be filled into the problems in the document to be made automatically.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
A kind of template type legal documents information fill method is provided according to a first aspect of the embodiments of the present invention, comprising:
Obtain data source;
Template configuration is carried out, the position of case information involved in template is replaced with label;
Label configuration is carried out, each label has oneself data source, output template, default value, separator and extension to match
It sets;
According to the template style of configuration, template is parsed, generates document model;
Label in template is extracted by canonical matching, and is parsed, parsing result is at template mark
Filling;
Using document model as object, structural data is regenerated in template file.
Further, the data source is extracted with electronics folder text elements and is intelligently derived, is stored in relationship
Case element in type database.
Further, the format of the data source is tables of data format or extensible markup language format.
Further, the template is Word template.
Further, the document model includes document, table, table row, cell, paragraph and text block.
Further, the label in template is extracted by canonical matching, and is parsed, and is specifically included:
Label library inquiry is gone to obtain the configuration information of label according to the tag number marked in template;
The corresponding SQL statement of data source or the calculating by carrying out Xpath expression formula to XML data are executed, is obtained corresponding
Result set or XML node;
Output template is parsed, is matched by canonical, if encountering attribute tags, is obtained from the result set from front to back
The corresponding value of field;If encountering XML attribute label, the value of the attribute is obtained from the XML node;If encountering subtab,
Then carry out recursion resolution;
The conversion of parsing result is carried out according to data conversion mechanism.
A kind of template type legal documents information filling device is provided according to a second aspect of the embodiments of the present invention, comprising:
Module is obtained, for obtaining data source;
Template configuration module, for carrying out template configuration, the position of case information involved in template is replaced with label;
Label configuration module, for carrying out label configuration, each label has data source, output template, the default of oneself
Value, separator and expanded configuration;
Template parsing module parses template for the template style according to configuration, generates document model;
Tag resolution module for being extracted to the label in template by canonical matching, and is parsed, parsing knot
Fruit is for the filling at template mark;
Module is filled, for using document model as object, structural data to be regenerated in template file.
In another aspect, the embodiment of the present invention provides a kind of electronic equipment, comprising: memory, processor, and it is stored in institute
The computer program that can be run on memory and on the processor is stated, when the processor executes the computer program,
The step of realizing the above method.
Another aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating
Machine program, when the computer program is executed by processor, realize the above method the step of.
The embodiment of the present invention has the advantages that
Template type legal documents information fill method and device disclosed by the embodiments of the present invention may be implemented based on template,
The accurate filling for carrying out case information, automatically generates complete document, supports the structural datas such as database, XML as information
Source is filled, can be accurately by fills in specific mark, and can retain label book in the document of generation
Label provide a strong guarantee for subsequent statement replacement and format setting.
Detailed description of the invention
It, below will be to embodiment party in order to illustrate more clearly of embodiments of the present invention or technical solution in the prior art
Formula or attached drawing needed to be used in the description of the prior art are briefly described.It should be evident that the accompanying drawings in the following description is only
It is merely exemplary, it for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer, which is extended, obtains other implementation attached drawings.
Structure depicted in this specification, ratio, size etc., only to cooperate the revealed content of specification, for
Those skilled in the art understands and reads, and is not intended to limit the invention enforceable qualifications, therefore does not have technical
Essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the function of the invention that can be generated
Under effect and the purpose that can reach, should all still it fall in the range of disclosed technology contents obtain and can cover.
Fig. 1 is template type legal documents information fill method schematic diagram provided in an embodiment of the present invention;
Fig. 2 is template type legal documents information filling device schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Embodiments of the present invention are illustrated by particular specific embodiment below, those skilled in the art can be by this explanation
Content disclosed by book is understood other advantages and efficacy of the present invention easily, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Fig. 1 is template type legal documents information fill method schematic diagram provided in an embodiment of the present invention, as shown in Figure 1, this
Inventive embodiments provide a kind of template type legal documents information fill method, and executing subject is that template type legal documents information is filled out
It fills and sets, hereinafter referred to as filling device, this method comprises:
Step S101, data source is obtained;
Step S102, template configuration is carried out, the position of case information involved in template is replaced with label;
Step S103, label configuration is carried out, each label has the data source of oneself, output template, default value, separator
And expanded configuration;
Step S104, according to the template style of configuration, template is parsed, generates document model;
Step S105, the label in template is extracted by canonical matching, and is parsed, parsing result is used for mould
The filling of plate mark;
Step S106, using document model as object, structural data is regenerated in template file.
Specifically, template type information filling technique is with the text analyzing and intelligence to materials such as the bill of complaint, court's trial notes
The case data that can be extracted are as data source, in the form of a label, configure in instrument template, carry out label by canonical
Case information, is finally filled into document by parsing replacement, realizes that the automation of document generates.
Data preparation: being extracted with folder text elements and is intelligently derived, the case that is stored in relevant database
Element is information (data) source of template type information filling technique.
Template configuration: being reference with document pattern, configures Word template, the position of case information involved in template, with mark
Label replace, the label for subsequent parsing filling.
Label configuration: label need to carry out mating with data source as the label for needing to carry out case information filling in template
Configuration, for parsing the statement text that need to be filled at template mark.In this way, form it is a set of for information filling
Tag library.Each label has data source, output template, default value, separator, the expanded configuration of oneself.
Data source refers at template mark (label) that case data source is divided into two because of the difference of bottom data storage mode
Kind: table and XML are configured respectively with SQL statement and Xpath.
The output template index label content template to be parsed, may include subtab, attribute tags, text, symbol etc..
Attribute tags are divided into two kinds, and literary name segment type and Xml attribute type are indicated respectively with # { } and X { }.Symbol index point, newline
Deng.
When default value refers to tag resolution without value, the Default population content of mark, the usually one section text with space or XXX
This, reserves the position of filled by hand.
When separator refers to that data source has a plurality of, the symbol being separated between every, such as pause mark, newline etc.;
Expanded configuration is replaced after replacing before including, the functions such as packet combining, duplicate removal, data conversion.
Template parsing: the template based on docx format, the OpenXML skill for word processing document increased income using Office
Art carries out template parsing;Based on the template of doc format, template parsing, shape are carried out using Aspose.Words document process control
At document model.Document model includes document, table, table row, cell, paragraph, text block etc., text block according to type not
Together, several comprising plain text, symbol and label.
Tag resolution: the label in template is extracted by canonical matching, is then parsed, parsing result is used for mould
The filling of plate mark.
Information filling: after the completion of tag resolution, using document model as object, encountering newline, restart new one section,
The data of structuring are regenerated in Word file, the information filling of template type is so realized.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
On the basis of the above embodiments, further, the data source is with the extraction of electronics folder text elements and intelligence
It can derive, the case element being stored in relevant database.
Specifically, it in data preparation stage, is derived first with the extraction of electronics folder text elements and intelligently, storage
Case element in relevant database is information (data) source of template type information filling technique.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
On the basis of the above various embodiments, further, the format of the data source is tables of data format or can expand
Open up markup language.
Specifically, data source refers to case data source at template mark (label), not because of bottom data storage mode
Together, be divided into two kinds: table and XML are configured respectively with SQL statement and Xpath.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
On the basis of the above various embodiments, further, the template is Word template.
Specifically, template is Word template, based on the template of docx format, is directed to word processing using Office open source
The OpenXML technology of document carries out template parsing;Based on the template of doc format, Aspose.Words document process control is used
Template parsing is carried out, document model is formed.Document model includes document, table, table row, cell, paragraph, text block etc.,
Text block is several comprising plain text, symbol and label according to type difference.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
On the basis of the above various embodiments, further, the document model includes document, table, table row, unit
Lattice, paragraph and text block.
Specifically, template is Word template, based on the template of docx format, is directed to word processing using Office open source
The OpenXML technology of document carries out template parsing;Based on the template of doc format, Aspose.Words document process control is used
Template parsing is carried out, document model is formed.Document model includes document, table, table row, cell, paragraph, text block etc.,
Text block is several comprising plain text, symbol and label according to type difference.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
On the basis of the above various embodiments, further, the label in template is mentioned by canonical matching
It takes, and is parsed, specifically included:
Label library inquiry is gone to obtain the configuration information of label according to the tag number marked in template;
The corresponding SQL statement of data source or the calculating by carrying out Xpath expression formula to XML data are executed, is obtained corresponding
Result set or XML node;
Output template is parsed, is matched by canonical, if encountering attribute tags, is obtained from the result set from front to back
The corresponding value of field;If encountering XML attribute label, the value of the attribute is obtained from the XML node;If encountering subtab,
Then carry out recursion resolution;
The conversion of parsing result is carried out according to data conversion mechanism.
Specifically, specific step is as follows for tag resolution:
(1) according to the tag number ({ tag number }) marked in template go label library inquiry obtain label with confidence
Breath, such as data source, output template;
(2) the corresponding SQL statement of data source or the calculating by carrying out Xpath expression formula to XML data are executed, phase is obtained
The result set or XML node answered.
(3) output template is parsed, is matched from front to back by canonical, encounters attribute tags (# { field name }), then from second
It walks in obtained result set and obtains the corresponding value of field;Such as XML attribute label (X { attribute-name }), then saved from the XML of second step
The value of the attribute is obtained on point;Such as subtab (& { tag number }), then recurrence returns to the first step and carries out tag resolution.
(4) Content Transformation carries out the conversion of parsing result according to data conversion mechanism, if dictionary value is converted, date format
Conversion, currency style conversion etc..The foundation converted is SourceType, according to literary name section or the corresponding data class of XML attribute
Type configuration is obtained, and is mainly the following, dictionary conversion, contingency table, date format, currency style etc..According to inhomogeneity
Type, program carry out the conversion of different modes, finally obtain ultimate result.
Template type legal documents information fill method disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
Fig. 2 is template type legal documents information filling device schematic diagram provided in an embodiment of the present invention, as shown in Fig. 2, this
Inventive embodiments provide a kind of template type legal documents information filling device, for executing any of the above-described side as described in the examples
Method specifically includes and obtains module 201, template configuration module 202, label configuration module 203, template parsing module 204, label solution
Analyse module 205 and filling module 206, in which:
Module 201 is obtained for obtaining data source;Template configuration module 202 is for carrying out template configuration, involved in template
The position of case information replaced with label;For label configuration module 203 for carrying out label configuration, each label has oneself
Data source, output template, default value, separator and expanded configuration;Template parsing module 204 is used for the template lattice according to configuration
Formula parses template, generates document model;Tag resolution module 205 is used to match the label in template by canonical
It extracts, and is parsed, parsing result is for the filling at template mark;Filling module 206 is used for document model
Object regenerates structural data in template file.
The embodiment of the present invention provides a kind of template type legal documents information filling device, for executing any of the above-described embodiment
Described in method, the device provided through this embodiment execute the specific steps of above-mentioned a certain method as described in the examples with
Above-mentioned corresponding embodiment is identical, and details are not described herein again.
Template type legal documents information filling device disclosed by the embodiments of the present invention may be implemented based on template, accurately into
The filling of row case information automatically generates complete document, and the structural datas such as database, XML is supported to carry out as information source
Filling, can be accurately by fills in specific mark, and can retain label bookmark in the document of generation, after being
Continuous statement replacement and format setting provide a strong guarantee.
Fig. 3 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, the equipment includes: place
Manage device (processor) 301, memory (memory) 302 and bus 303;
Wherein, processor 301 and memory 302 complete mutual communication by the bus 303;
Processor 301 is used to call the program instruction in memory 302, to execute provided by above-mentioned each method embodiment
Method, for example,
Obtain data source;
Template configuration is carried out, the position of case information involved in template is replaced with label;
Label configuration is carried out, each label has oneself data source, output template, default value, separator and extension to match
It sets;
According to the template style of configuration, template is parsed, generates document model;
Label in template is extracted by canonical matching, and is parsed, parsing result is at template mark
Filling;
Using document model as object, structural data is regenerated in template file.
In addition, the logical order in above-mentioned memory can be realized and as independence by way of SFU software functional unit
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
The embodiment of the present invention provides a kind of computer program product, and the computer program product is non-transient including being stored in
Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example,
Obtain data source;
Template configuration is carried out, the position of case information involved in template is replaced with label;
Label configuration is carried out, each label has oneself data source, output template, default value, separator and extension to match
It sets;
According to the template style of configuration, template is parsed, generates document model;
Label in template is extracted by canonical matching, and is parsed, parsing result is at template mark
Filling;
Using document model as object, structural data is regenerated in template file.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage
Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment
Method, for example,
Obtain data source;
Template configuration is carried out, the position of case information involved in template is replaced with label;
Label configuration is carried out, each label has oneself data source, output template, default value, separator and extension to match
It sets;
According to the template style of configuration, template is parsed, generates document model;
Label in template is extracted by canonical matching, and is parsed, parsing result is at template mark
Filling;
Using document model as object, structural data is regenerated in template file.
The embodiments such as device and equipment described above are only schematical, wherein described be used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying
In the case where creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.
Claims (9)
1. a kind of template type legal documents information fill method characterized by comprising
Obtain data source;
Template configuration is carried out, the position of case information involved in template is replaced with label;
Label configuration is carried out, each label has data source, output template, default value, separator and the expanded configuration of oneself;
According to the template style of configuration, template is parsed, generates document model;
Label in template is extracted by canonical matching, and is parsed, parsing result is for filling out at template mark
It fills;
Using document model as object, structural data is regenerated in template file.
2. template type legal documents information fill method according to claim 1, which is characterized in that the data source be with
Electronics folder text elements are extracted and are intelligently derived, the case element that is stored in relevant database.
3. template type legal documents information fill method according to claim 1, which is characterized in that the lattice of the data source
Formula is tables of data format or extensible markup language format.
4. template type legal documents information fill method according to claim 1, which is characterized in that the template is Word
Template.
5. template type legal documents information fill method according to claim 1, which is characterized in that the document model packet
Include document, table, table row, cell, paragraph and text block.
6. template type legal documents information fill method according to claim 1, which is characterized in that described in template
Label is extracted by canonical matching, and is parsed, and is specifically included:
Label library inquiry is gone to obtain the configuration information of label according to the tag number marked in template;
The corresponding SQL statement of data source or the calculating by carrying out Xpath expression formula to XML data are executed, is tied accordingly
Fruit collection or XML node;
Output template is parsed, is matched from front to back by canonical, if encountering attribute tags, obtains field from the result set
Corresponding value;If encountering XML attribute label, the value of the attribute is obtained from the XML node;If encountering subtab, into
Row recursion resolution;
The conversion of parsing result is carried out according to data conversion mechanism.
7. a kind of template type legal documents information filling device characterized by comprising
Module is obtained, for obtaining data source;
Template configuration module, for carrying out template configuration, the position of case information involved in template is replaced with label;
Label configuration module, for carrying out label configuration, each label has the data source of oneself, output template, default value, divides
Every symbol and expanded configuration;
Template parsing module parses template for the template style according to configuration, generates document model;
Tag resolution module for being extracted to the label in template by canonical matching, and is parsed, and parsing result is used
Filling at template mark;
Module is filled, for using document model as object, structural data to be regenerated in template file.
8. a kind of electronic equipment characterized by comprising memory and processor;
The processor and the memory complete mutual communication by bus;The memory is stored with can be by the place
The program instruction that device executes is managed, the processor calls described program instruction to be able to carry out as described in claim 1 to 6 is any
Method.
9. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that when the calculating
When machine program is executed by processor, the method as described in claim 1 to 6 is any is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910413040.1A CN110096689A (en) | 2019-05-17 | 2019-05-17 | Template type legal documents information fill method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910413040.1A CN110096689A (en) | 2019-05-17 | 2019-05-17 | Template type legal documents information fill method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110096689A true CN110096689A (en) | 2019-08-06 |
Family
ID=67448358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910413040.1A Pending CN110096689A (en) | 2019-05-17 | 2019-05-17 | Template type legal documents information fill method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110096689A (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489728A (en) * | 2019-08-20 | 2019-11-22 | 北京市律典通科技有限公司 | Legal documents automatic composing method and device |
CN110516203A (en) * | 2019-08-28 | 2019-11-29 | 北京市律典通科技有限公司 | Central issue analysis method, device, electronic equipment and computer can storage mediums |
CN110956026A (en) * | 2019-11-28 | 2020-04-03 | 北京华宇元典信息服务有限公司 | Legal document generation method and device and electronic equipment |
CN111125026A (en) * | 2019-12-23 | 2020-05-08 | 京东数字科技控股有限公司 | Analysis processing method, device, equipment and storage medium for running file |
CN111145051A (en) * | 2019-11-26 | 2020-05-12 | 方正璞华软件(武汉)股份有限公司 | Method and device for generating arbitration electronic document |
CN111597205A (en) * | 2020-05-26 | 2020-08-28 | 北京金堤科技有限公司 | Template configuration method, information extraction method, device, electronic equipment and medium |
CN111626032A (en) * | 2020-04-23 | 2020-09-04 | 平安国际智慧城市科技股份有限公司 | Dynamic word template exporting method and device and storage medium |
CN111639480A (en) * | 2020-05-28 | 2020-09-08 | 深圳壹账通智能科技有限公司 | Text labeling method based on artificial intelligence, electronic device and storage medium |
CN111709221A (en) * | 2020-06-15 | 2020-09-25 | 广州润普网络科技有限公司 | Document generation method and system |
CN111859899A (en) * | 2020-07-06 | 2020-10-30 | 合肥森亿智能科技有限公司 | Method, device, equipment and storage medium for parsing and filling Word document |
CN112001158A (en) * | 2020-08-24 | 2020-11-27 | 平安国际智慧城市科技股份有限公司 | Document generation method and device, computer equipment and computer readable storage medium |
CN112069784A (en) * | 2020-09-15 | 2020-12-11 | 成都彬果科技有限公司 | Filling type automatic document typesetting method and system based on intelligent identification |
CN112258349A (en) * | 2020-11-16 | 2021-01-22 | 南通知法互联网科技有限公司 | Multi-dimensional mediation, management and analysis system for people mediation |
CN112540964A (en) * | 2019-09-23 | 2021-03-23 | 北京国双科技有限公司 | Document number generation method and related device |
CN112632941A (en) * | 2019-09-23 | 2021-04-09 | 北京国双科技有限公司 | Method, device, equipment and storage medium for generating PDF format public security document |
CN112699633A (en) * | 2020-12-31 | 2021-04-23 | 南京硕材信息科技有限公司 | General middle and primary school teaching material format label and corresponding analysis method |
CN113128189A (en) * | 2019-12-30 | 2021-07-16 | 东软集团(上海)有限公司 | Office commonly-used phrase recording method and device |
CN113128191A (en) * | 2021-03-12 | 2021-07-16 | 广州八爪鱼科技有限公司 | Method and device for scripted generation of arbitration document |
CN113361256A (en) * | 2021-06-24 | 2021-09-07 | 上海真虹信息科技有限公司 | Rapid Word document parsing method based on Aspose technology |
CN113822025A (en) * | 2021-11-25 | 2021-12-21 | 深圳市明源云链互联网科技有限公司 | Office file automatic generation method, device, equipment and storage medium |
CN116011408A (en) * | 2022-12-12 | 2023-04-25 | 北京华宇九品科技有限公司 | Online editable document generation system and method |
CN117350642A (en) * | 2023-08-29 | 2024-01-05 | 前方高能人工智能科技(成都)有限公司 | Man-machine collaboration platform for automatically generating document data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009299A (en) * | 2017-12-28 | 2018-05-08 | 北京市律典通科技有限公司 | Law tries method and device for business processing |
CN108052488A (en) * | 2017-12-06 | 2018-05-18 | 广东技术师范学院天河学院 | Paper automatic generation method based on template |
CN108519968A (en) * | 2018-04-09 | 2018-09-11 | 北京智慧正安科技有限公司 | Criminal case judgement document generation method, device and computer readable storage medium |
CN108763171A (en) * | 2018-04-20 | 2018-11-06 | 中国船舶重工集团公司第七〇九研究所 | A kind of document automation generation method based on format module |
CN109284492A (en) * | 2017-07-19 | 2019-01-29 | 北京国双科技有限公司 | A kind of method and apparatus generating notice document |
CN109753535A (en) * | 2019-01-11 | 2019-05-14 | 深圳讼融通网络科技有限公司 | Input method, equipment and the computer readable storage medium of case data |
-
2019
- 2019-05-17 CN CN201910413040.1A patent/CN110096689A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284492A (en) * | 2017-07-19 | 2019-01-29 | 北京国双科技有限公司 | A kind of method and apparatus generating notice document |
CN108052488A (en) * | 2017-12-06 | 2018-05-18 | 广东技术师范学院天河学院 | Paper automatic generation method based on template |
CN108009299A (en) * | 2017-12-28 | 2018-05-08 | 北京市律典通科技有限公司 | Law tries method and device for business processing |
CN108519968A (en) * | 2018-04-09 | 2018-09-11 | 北京智慧正安科技有限公司 | Criminal case judgement document generation method, device and computer readable storage medium |
CN108763171A (en) * | 2018-04-20 | 2018-11-06 | 中国船舶重工集团公司第七〇九研究所 | A kind of document automation generation method based on format module |
CN109753535A (en) * | 2019-01-11 | 2019-05-14 | 深圳讼融通网络科技有限公司 | Input method, equipment and the computer readable storage medium of case data |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489728A (en) * | 2019-08-20 | 2019-11-22 | 北京市律典通科技有限公司 | Legal documents automatic composing method and device |
CN110516203A (en) * | 2019-08-28 | 2019-11-29 | 北京市律典通科技有限公司 | Central issue analysis method, device, electronic equipment and computer can storage mediums |
CN112632941A (en) * | 2019-09-23 | 2021-04-09 | 北京国双科技有限公司 | Method, device, equipment and storage medium for generating PDF format public security document |
CN112540964A (en) * | 2019-09-23 | 2021-03-23 | 北京国双科技有限公司 | Document number generation method and related device |
CN111145051A (en) * | 2019-11-26 | 2020-05-12 | 方正璞华软件(武汉)股份有限公司 | Method and device for generating arbitration electronic document |
CN110956026A (en) * | 2019-11-28 | 2020-04-03 | 北京华宇元典信息服务有限公司 | Legal document generation method and device and electronic equipment |
CN111125026A (en) * | 2019-12-23 | 2020-05-08 | 京东数字科技控股有限公司 | Analysis processing method, device, equipment and storage medium for running file |
CN113128189A (en) * | 2019-12-30 | 2021-07-16 | 东软集团(上海)有限公司 | Office commonly-used phrase recording method and device |
CN111626032A (en) * | 2020-04-23 | 2020-09-04 | 平安国际智慧城市科技股份有限公司 | Dynamic word template exporting method and device and storage medium |
CN111626032B (en) * | 2020-04-23 | 2024-01-26 | 平安国际智慧城市科技股份有限公司 | word template dynamic export method, device and storage medium |
CN111597205A (en) * | 2020-05-26 | 2020-08-28 | 北京金堤科技有限公司 | Template configuration method, information extraction method, device, electronic equipment and medium |
CN111597205B (en) * | 2020-05-26 | 2024-02-13 | 北京金堤科技有限公司 | Template configuration method, information extraction device, electronic equipment and medium |
CN111639480A (en) * | 2020-05-28 | 2020-09-08 | 深圳壹账通智能科技有限公司 | Text labeling method based on artificial intelligence, electronic device and storage medium |
CN111709221A (en) * | 2020-06-15 | 2020-09-25 | 广州润普网络科技有限公司 | Document generation method and system |
CN111859899A (en) * | 2020-07-06 | 2020-10-30 | 合肥森亿智能科技有限公司 | Method, device, equipment and storage medium for parsing and filling Word document |
CN112001158A (en) * | 2020-08-24 | 2020-11-27 | 平安国际智慧城市科技股份有限公司 | Document generation method and device, computer equipment and computer readable storage medium |
CN112069784A (en) * | 2020-09-15 | 2020-12-11 | 成都彬果科技有限公司 | Filling type automatic document typesetting method and system based on intelligent identification |
CN112258349A (en) * | 2020-11-16 | 2021-01-22 | 南通知法互联网科技有限公司 | Multi-dimensional mediation, management and analysis system for people mediation |
CN112699633A (en) * | 2020-12-31 | 2021-04-23 | 南京硕材信息科技有限公司 | General middle and primary school teaching material format label and corresponding analysis method |
CN113128191A (en) * | 2021-03-12 | 2021-07-16 | 广州八爪鱼科技有限公司 | Method and device for scripted generation of arbitration document |
CN113361256A (en) * | 2021-06-24 | 2021-09-07 | 上海真虹信息科技有限公司 | Rapid Word document parsing method based on Aspose technology |
CN113822025A (en) * | 2021-11-25 | 2021-12-21 | 深圳市明源云链互联网科技有限公司 | Office file automatic generation method, device, equipment and storage medium |
CN116011408A (en) * | 2022-12-12 | 2023-04-25 | 北京华宇九品科技有限公司 | Online editable document generation system and method |
CN117350642A (en) * | 2023-08-29 | 2024-01-05 | 前方高能人工智能科技(成都)有限公司 | Man-machine collaboration platform for automatically generating document data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096689A (en) | Template type legal documents information fill method and device | |
CN104376068B (en) | A kind of data exhibiting system and method based on dynamic statement template | |
CN109582909A (en) | Webpage automatic generation method and device, electronic equipment and storage medium | |
CN109582647B (en) | Unstructured evidence file oriented analysis method and system | |
CN109710703A (en) | A kind of generation method and device of genetic connection network | |
DE102017111438A1 (en) | API LEARNING | |
CN107273122A (en) | Based on decoupling mechanism can iteration set up operation system method and its terminal | |
CN108694214A (en) | Generation method, generating means, readable medium and the electronic equipment of data sheet | |
CN104572813B (en) | A kind of report generation method and device | |
CN110377892A (en) | A kind of government intelligence form templat designing system | |
CN103902269B (en) | System and method for generating MIB files through XML files | |
CN108090104A (en) | For obtaining the method and apparatus of webpage information | |
CN110442343A (en) | A kind of conversion of page method and conversion of page device | |
CN113515564B (en) | J2 EE-based data access method, device, equipment and storage medium | |
CN104021216B (en) | Message proxy server and information publish subscription method and system | |
CN103425692A (en) | Data exporting method and data exporting device | |
CN108446262A (en) | A kind of list generates, analysis method and device | |
CN110489728A (en) | Legal documents automatic composing method and device | |
CN110019315A (en) | A kind of method and apparatus for the parsing of data blood relationship | |
CN105488052B (en) | Structural data is switched to the method and system of format formfile | |
CN114297994A (en) | Method, system, device and storage medium for generating parameterized report | |
CN108427664A (en) | A kind of document analysis method and device | |
CN105224319B (en) | The method for realizing XBRL instance document previews based on dom4j | |
CN104793837A (en) | Picture generation method and device | |
CN115065945B (en) | Short message link generation method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190806 |
|
RJ01 | Rejection of invention patent application after publication |