CN110134929A - Document verification method, apparatus, computer equipment and storage medium - Google Patents

Document verification method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN110134929A
CN110134929A CN201910308387.XA CN201910308387A CN110134929A CN 110134929 A CN110134929 A CN 110134929A CN 201910308387 A CN201910308387 A CN 201910308387A CN 110134929 A CN110134929 A CN 110134929A
Authority
CN
China
Prior art keywords
document
template
verified
content keyword
verification
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
Application number
CN201910308387.XA
Other languages
Chinese (zh)
Inventor
葛舒婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910308387.XA priority Critical patent/CN110134929A/en
Publication of CN110134929A publication Critical patent/CN110134929A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

This application involves process optimization techniques, a kind of document verification method, apparatus, computer equipment and storage medium are provided.This method comprises: being instructed by presetting the document verification that document verification interface terminal is sent;The instruction analytical function parsing document verification instruction in default document verification interface is called, document to be verified and template identification are obtained;It calls template to obtain function and obtains the document template being pre-configured according to template identification;Keyword extraction function is called to extract the preset content keyword of pre-configuration from document template;It calls document verification function to inquire the object content keyword to match with preset content keyword in document to be verified, document to be verified is verified to obtain check results according to query result;The result feedback function in default document verification interface is called, check results, document to be verified and document template are sent to terminal and are shown.Verification efficiency and accuracy rate can be improved using this method.

Description

Document verification method, apparatus, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of document verification method, apparatus, computer equipment and Storage medium.
Background technique
Project refers to a series of activities carried out to create unique product, service or achievement.In each rank of project Duan Tongchang can be related to corresponding document, such as the requirement documents of demand stage, the design documentation and test phase of design phase Test plan document etc..The auditor of company would generally check whether in each stage of project has created corresponding text Shelves, and verify whether the document created meets preset requirement.
Currently, being usually whether the document created by auditor's desk checking meets preset requirement.But it is limited to The personal experience of auditor and efficiency have that the verification efficiency of document and accuracy rate are low, when especially project is more, The case where document verified needed for auditor is various, may cause omission or check errors, to reduce the school of document Test efficiency and accuracy rate.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of verification efficiency and accuracy rate that can be improved document Document verification method, apparatus, computer equipment and storage medium.
A kind of document verification method, which comprises
The document verification instruction sent by presetting document verification interface terminal;
It calls the instruction analytical function in the default document verification interface to parse document verification instruction, obtains text to be verified Shelves and template identification;
It calls the template in the default document verification interface to obtain function, pre-configuration is obtained according to the template identification Document template;
The keyword extraction function in the default document verification interface is called, extracts and is pre-configured from the document template Preset content keyword;
Call the document verification function in the default document verification interface, in the document to be verified inquiry with it is described The object content keyword that preset content keyword matches is verified to obtain according to query result to the document to be verified Check results;
The result feedback function in the default document verification interface is called, by the check results, the text to be verified Shelves and the document template are sent to terminal and are shown.
The preset content keyword has multiple in one of the embodiments,;It is described according to query result to it is described to Verification document is verified to obtain check results, comprising:
When inquiring the corresponding object content keyword of each preset content keyword, each object content is determined Keyword putting in order in the document to be verified;
When it is described put in order it is corresponding with the document template it is default put in order consistent when, then determine that check results are Verification passes through.
The document verification function called in the default document verification interface in one of the embodiments, in institute The object content keyword inquired in document to be verified and matched with the preset content keyword is stated, according to query result to institute Document to be verified is stated to be verified to obtain check results, comprising:
The keyword extraction function is called, it is corresponding pre- that the preset content keyword is extracted from the document template If character feature;
Call the document verification function in the default document verification interface, in the document to be verified inquiry with it is described The object content keyword that preset content keyword matches and corresponding character feature and the default character feature match, The document to be verified is verified to obtain check results according to query result.
The inquiry in the document to be verified and the preset content keyword phase in one of the embodiments, Match and object content keyword that corresponding character feature and the default character feature match, comprising:
The content keyword that character feature and the default character feature match is inquired in the document to be verified;
When inquiring the content keyword, inquiry and the preset content keyword phase in the content keyword Matched object content keyword.
The inquiry in the document to be verified and the preset content keyword phase in one of the embodiments, The object content keyword matched is verified to obtain check results according to query result to the document to be verified, comprising:
Using the document to be verified and the preset content keyword as input feature vector, the document verification trained is inputted Model is predicted, the check results of the document to be verified are obtained.
In one of the embodiments, the method also includes:
The template configuration instruction sent by presetting template configuration interface terminal;
It calls the template configuration function in the default template configuration interface to parse the template configuration instruction, obtains wait match The template name and preset content keyword set;
Document template is generated according to the template name and the preset content keyword;
Template identification corresponding with the document template is generated, and the document template and template identification correspondence are deposited Storage.
In one of the embodiments, the method also includes:
The template renewal instruction sent by presetting terminal described in template renewal interface;
The template renewal function in the default template renewal interface is called, is determined according to template renewal instruction to more New template identification and target update data is inquired document template to be updated according to the template identification to be updated, and is pressed The document template to be updated is updated according to the target update data.
A kind of document verification device, described device include:
Receiving module, for being instructed by presetting the document verification that document verification interface terminal is sent;
Parsing module refers to for calling the instruction analytical function in the default document verification interface to parse document verification It enables, obtains document to be verified and template identification;
Module is obtained, for calling the template in the default document verification interface to obtain function, according to the template mark Know the document template for obtaining and being pre-configured;
Extraction module, for calling the keyword extraction function in the default document verification interface, from the document mould The preset content keyword of pre-configuration is extracted in plate;
Correction verification module, for calling the document verification function in the default document verification interface, in the text to be verified The object content keyword that inquiry matches with the preset content keyword in shelves, according to query result to the text to be verified Shelves are verified to obtain check results;
Calling module, for calling the result feedback function in the default document verification interface, by the check results, The document to be verified and the document template are sent to terminal and are shown.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes above-mentioned each document verification method as described in the examples when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned each document verification method as described in the examples is realized when row.
Above-mentioned document verification method, apparatus, computer equipment and storage medium are receiving terminal by presetting document school When testing the document verification instruction of interface transmission, the instruction analytical function in the default document verification interface, template is called to obtain letter Number, keyword extraction function and document verification function, the to be verified document specified to document verification instruction verify, and obtain phase The check results answered, and the result feedback function in the default document verification interface is called, by the check results, document to be verified Terminal is fed back to document template to be shown, and to realize the automatic Verification of document to be verified, is effectively prevented because of auditor Personal experience and efficiency caused by document verification efficiency and the low problem of accuracy rate.It instructs to obtain according to document verification to be verified Document and template identification according to the document template that template identification inquiry is pre-configured, and extract preset content from document template Keyword, and then automatic Verification is carried out to document to be verified according to preset content keyword, the verification efficiency of document can be improved And accuracy rate.
Detailed description of the invention
Fig. 1 is the application scenario diagram of document method of calibration in one embodiment;
Fig. 2 is the flow diagram of document method of calibration in one embodiment;
Fig. 3 is the flow diagram of document method of calibration in another embodiment;
Fig. 4 is the structural block diagram of document calibration equipment in one embodiment;
Fig. 5 is the structural block diagram of document calibration equipment in another embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Document verification method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102 It is communicated by network with server 104.The text that server 104 is sent by presetting document verification interface terminal 102 Shelves checking command calls the instruction analytical function parsing document verification in default document verification interface to instruct to obtain document to be verified And template identification, it calls the template in default document verification interface to obtain function and obtain and corresponds to the document that template identification is pre-configured Template calls the keyword extraction function in default document verification interface to extract the preset content being pre-configured in document template crucial Word calls the document verification function in default document verification interface, inquiry and preset content keyword phase in document to be verified Matched object content keyword to be verified to obtain check results to document to be verified according to query result, and calls pre- If the result feedback function in document verification interface, check results, document to be verified and document template are sent to terminal and carried out It shows.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop, smart phone, tablet computer and Portable wearable device, server 104 can use the server cluster of the either multiple server compositions of independent server To realize.
In one embodiment, as shown in Fig. 2, providing a kind of document verification method, it is applied in Fig. 1 in this way It is illustrated for server, comprising the following steps:
S202 is instructed by presetting the document verification that document verification interface terminal is sent.
Wherein, document verification instruction is the instruction for triggering document verification operation.Specifically, terminal real-time detection user Document verification trigger action, when detecting document verification trigger action, obtain user current presentation user's operation circle The template identification of pre-selection and the document to be verified imported in advance on face, according to the template identification of acquisition and document structure tree phase to be verified The document verification instruction answered, and the instruction of the document verification of generation is sent to server.
In one embodiment, when detecting document verification trigger action, terminal obtains user in the use of current presentation The template name of pre-selection and the document to be verified imported in advance, determine template according to acquired template name in the operation interface of family Mark, and the document verification for carrying template identification and document to be verified instruction is sent to server.In one embodiment, Terminal is instructed according to accessed template name and document structure tree document verification to be verified, and the document verification of generation is instructed It is sent to server.The document verification that server parsing receives instructs to obtain template name and document to be verified, and according to mould Board name determines template identification.
S204 calls the instruction analytical function parsing document verification instruction in default document verification interface, obtains to be verified Document and template identification.
Wherein, document to be verified refers to the document of pending completeness check, such as requirement documents, design documentation and test Document etc..Template identification is used for unique identification template.Template identification specifically can be by the characters such as number, letter and symbol The character string of at least one composition.Document template is preconfigured for verifying the template of document integrality.Document can be Project document, project are corresponding with different documents, such as requirement documents, the design of design phase of demand stage in different phase Document and the test document of test phase etc., test document such as test plan or test case etc..Document template is for verifying Whether the project document in each stage, which meets to preset, is write specification/requirement.It is understood that disparity items is corresponding in same phase Document template can be identical, for example disparity items is identical in demand stage corresponding document template.Document template can be by template name Claim characterization, for example the corresponding template name of document template of demand stage is requirement documents template.
Specifically, when receiving the document verification instruction that terminal is sent by default document verification interface, server tune The instruction analytical function in document verification interface is preset with this, is referred to by the document verification that instruction analytical function parsing receives So that corresponding document to be verified and template identification.
S206 calls the template in default document verification interface to obtain function, the text being pre-configured is obtained according to template identification Shelves template.
Specifically, server calls preset the template in document verification interface and obtain function, and the template that parsing is obtained It identifies and enters ginseng as template acquisition function, it is pre- to be inquired in the database by template acquisition function according to the template identification The document template of configuration.
In one embodiment, server stores the document template of pre-configuration according to default storage catalogue, and will Default storage catalogue is corresponding is stored in tables of data with this for the corresponding template identification of document template.When parsing obtains template identification When, server calls preset the template in document interface and obtain function, inquiry and template identification pair in the tables of data of pre-configuration The default storage catalogue answered, and the document template of pre-configuration is obtained according to default storage catalogue in the database.
S208 calls the keyword extraction function in default document verification interface, pre-configuration is extracted from document template Preset content keyword.
Wherein, document template is corresponding for specifying the content module that should include in respective document and each content module Preset content keyword.For example, requirement documents template includes that three interior molaies are described in detail in requirement background, business process map and demand Block, the corresponding preset content keyword of each content module can be regarded as module theme/module title of corresponding contents module.By This, the preset content keyword in the requirement documents template includes that requirement background, business process map and demand are described in detail.
Specifically, when inquiring the corresponding document template of template identification, server calls are preset in document verification interface Keyword extraction function, the preset content keyword of pre-configuration is extracted from document template by the keyword extraction function. Server calls keyword extraction function inquires the keyword set of pre-configuration in the database, and based on each in the keyword set Candidate keywords extract preset content keyword from document template.
In one embodiment, server by each candidate keywords in keyword set respectively with document template carry out Match, the candidate keywords of successful match are determined as to the preset content keyword extracted from document template, with from the document mould One or more preset content keywords of pre-configuration are extracted in plate.It is understood that the text formatting of document template is not It is confined to word document, is also possible to excel table, pdf document or txt document etc..When the text formatting of document template is When word document, pdf document or txt document, server can based on newline to the preset content keyword in document template into Row divides;When text formatting is excel table, server can be divided preset content keyword based on cell, i.e., Content in one cell is as a preset content keyword.
It in one embodiment, include one or more content module titles and each content module title pair in document template The preset content keyword answered, such as " content module one: requirement background ".Server is according to content module title from document module Middle extraction preset content keyword.Specifically, server is based on default regular expression and matches interior molar from document template Block title extracts corresponding preset content keyword further according to content module title from the document template.Such as based on pre- If regular expression matching goes out " content module one ", can extract preset content keyword according to the content module title " is needed Seek background ".
In one embodiment, server is pre-configured in the tables of data of pre-configuration for template identification corresponding default Content keyword.Server inquires corresponding preset content keyword according to the template identification that parsing obtains in tables of data, makees For the preset content keyword extracted from document template.
S210, calling preset the document verification function in document verification interface, inquire in document to be verified and default interior Hold the object content keyword that keyword matches, document to be verified is verified to obtain check results according to query result.
Specifically, when extracting the preset content keyword of pre-configuration from document template, the default text of server calls Shelves verification interface in document verification function, by the document verify function by the preset content keyword extracted with it is to be verified Document is matched, to inquire the object content keyword to match with preset content keyword in the document to be verified.When When inquiring the object content keyword to match with preset content keyword in document to be verified, server then determines should be to The check results of verification document are that verification passes through;When not inquiring the object content keyword to match with preset content keyword When, server then determines that the check results of the document to be verified do not pass through for verification.
In one embodiment, the preset content keyword extracted from document template has multiple.Server calls text Shelves verification function matches each preset content keyword extracted with document to be verified respectively, with from the document to be verified It is middle to inquire the object content keyword to match with each preset content keyword respectively.It is looked into when for each preset content keyword When asking the object content keyword to match, server then determines that the check results of document to be verified pass through for verification;When depositing When at least one preset content keyword does not inquire the object content keyword to match in document to be verified, then determine Check results are that verification does not pass through.
In one embodiment, preset content keyword has multiple;Document to be verified is verified according to query result Obtain check results, comprising: when inquiring the corresponding object content keyword of each preset content keyword, determine in each target Hold keyword putting in order in document to be verified;When putting in order, preset corresponding with document template puts in order unanimously When, then determine that check results pass through for verification.
Wherein, putting in order is sequencing that each object content keyword occurs in document to be verified.Predetermined order Sequence is preset each object content keyword putting in order in document to be verified.It is understood that default row Sequence sequence can refer to each preset content keyword putting in order in document template.
Specifically, it closes when inquiring the object content to match with each preset content keyword respectively in document to be verified When keyword, server calls document verification function determines each object content keyword putting in order in the document to be verified, Determine that specified default of document template puts in order according to template identification, and by it is determining put in order with predetermined order sequence into Row compares.When put in order with it is default put in order consistent when, server then determines the check results of the document to be verified for school It tests and passes through.Thereby it is ensured that each content module in document to be verified is disposed according to default put in order, to increase The readability of document to be verified.For example, whether verification requirement documents are according to the progress that puts in order as follows in the manner described above It writes, first part is requirement background, and second part is business process map, and Part III is demand detailed description.
In one embodiment, when determining putting in order and default arrangement for each object content keyword in document to be verified When sequence consensus, server judge in the document to be verified between two object content keywords of arbitrary neighborhood with the presence or absence of point Page symbol determines that check results pass through for verification if there is page break.
S212 calls the result feedback function in default document verification interface, by check results, document to be verified and document Template is sent to terminal and is shown.
Specifically, when determining the check results of document to be verified, server calls preset the knot in document verification interface Check results, document to be verified and document template are sent to terminal by the result feedback function by fruit feedback function.Terminal will Document and document template to be verified are shown in user interface, and on user interface and/or document to be verified In mark out check results.When check results are that verification passes through, terminal is on user interface and/or in document to be verified Check results are marked out to pass through for verification.When check results are that the test fails, it may also include verification in check results and do not lead to The preset content keyword crossed, that is, include do not inquired in document to be verified the object content keyword to match it is default in Hold keyword.Terminal is determined according to the check results received verifies unsanctioned preset content keyword, and in text to be verified It is marked out in shelves and lacks the corresponding content module of preset content keyword.
For example, document to be verified is requirement documents, the document template of pre-configuration is requirement documents template, demand text It include that three preset content keywords are described in detail in requirement background, business process map and demand in shelves template.Pass through when receiving terminal When the document verification instruction that default document verification interface is sent, server calls preset the instruction in document verification interface and parse letter Number parsing document verification instruction, obtains the template identification of requirement documents and requirement documents template to be verified;Then template is called to obtain It takes function to inquire requirement documents template corresponding with template identification from database, and calls keyword extraction function from demand text Preset content keyword-requirement background, business process map and demand is extracted in shelves template to be described in detail;And then call document verification letter Number is detailed by each preset content keyword-requirement background, business process map and demand in a manner of traversing requirement documents to be verified It states, is matched respectively with requirement documents to be verified, to determine the check results of requirement documents to be verified according to matching result.Than Such as, when there is the object content keyword to match with preset content keyword in requirement documents to be verified, i.e., need to be verified Asking in document includes requirement background, business process map and demand when three object content keywords are described in detail, then determination check knot Fruit is that verification passes through;When lacking any one object content keyword in document to be verified, then check results are determined to verify not Pass through.
Above-mentioned document verification method is instructed receiving terminal by presetting the document verification that document verification interface is sent When, call the instruction analytical function in the default document verification interface, template to obtain function, keyword extraction function and document school Function is tested, the to be verified document specified to document verification instruction verifies, and obtains corresponding check results, and call this default The check results, document to be verified and document template are fed back to terminal and carried out by the result feedback function in document verification interface It shows, it is literary caused by effectively preventing because of the personal experience of auditor and efficiency to realize the automatic Verification of document to be verified Shelves verification efficiency and the low problem of accuracy rate.It is instructed to obtain document to be verified and template identification according to document verification, according to the mould The document template that panel sign inquiry is pre-configured, and preset content keyword is extracted from document template, and then according to preset content Keyword carries out automatic Verification to document to be verified, and the verification efficiency and accuracy rate of document can be improved.
In one embodiment, step S210 includes: to call keyword extraction function, is extracted in default from document template Hold the corresponding default character feature of keyword;The document verification function in default document verification interface is called, in document to be verified The object content that middle inquiry matches to preset content keyword and corresponding character feature and default character feature match is crucial Word is verified to obtain check results according to query result to document to be verified.
Wherein, default character feature is preset character feature, such as font size and/or font type, font The type such as Song typeface, black matrix or regular script etc., font size such as No. four.
Specifically, preset content keyword and the corresponding predetermined word of each preset content keyword are pre-configured in document template Body characteristics.When extracting preset content keyword from document template, server calls preset the pass in document verification interface Keyword extracts function, and the corresponding default character feature of each preset content keyword is extracted from the document to be verified.Further, Server calls document verification function inquires the object content to match with each preset content keyword from the document to be verified Keyword and the corresponding character feature of each object content keyword, and by the default character feature of preset content keyword with The character feature of respective objects content keyword is matched, to determine the check results of document to be verified according to matching result. When the equal successful match of the character feature of the default character feature of each preset content keyword and respective objects content keyword, table Bright inquire in document to be verified matches and corresponding character feature and default character feature phase to each preset content keyword Matched object content keyword, server then determine that the check results of document to be verified pass through for verification;When in the presence of at least one When the matching result of a default character feature and corresponding character feature is that it fails to match, shows to exist and do not inquire respective objects content The preset content keyword of keyword, server then determine that check results do not pass through for verification.
In one embodiment, server is pre-configured in document template for each preset content keyword corresponding pre- If character feature, in order to can quickly position each preset content keyword in document template according to preset content keyword Default character feature.Each preset content keyword in document template is configured according to corresponding default character feature, i.e., respectively Preset content keyword character feature shown in document template is to preset character feature accordingly.Server is from document mould When extracting preset content keyword in plate, the default character feature of the preset content keyword can be directly detected.Server Default character feature accordingly can also be pre-configured for each preset content keyword in tables of data.
In above-described embodiment, it is double that verification document progress is treated according to preset content keyword and corresponding default character feature Re-graduation is tested, when inquire in preset content keyword matches and character feature and default character feature match target When holding keyword, determines that the check results of document to be verified pass through for verification, improve the accuracy of document verification.
In one embodiment, inquiry matches to preset content keyword in document to be verified and corresponding font is special The object content keyword that sign matches with default character feature, comprising: inquire character feature in document to be verified and preset The content keyword that character feature matches;When inquiring content keyword, inquiry and preset content in content keyword The object content keyword that keyword matches.
Specifically, when extracting the corresponding default character feature of preset content keyword from document template, server The content keyword that character feature and the default character feature match is filtered out from document to be verified, and preset content is closed Keyword is matched with the content keyword filtered out, with according to matching result from the content keyword filtered out, further The object content keyword that screening matches with preset content keyword, as the object content filtered out from document to be verified Keyword, and then determine according to the selection result the check results of document to be verified.
In one embodiment, preset content keyword is matched to obtain by server with the content keyword filtered out Matching rate determines that the object content for whether lacking in document to be verified and matching with preset content keyword is crucial according to matching rate Word, alternatively, determining whether there is the object content keyword with preset content keyword Incomplete matching, i.e. part typing mistake Object content keyword.Specifically, when matching rate is maximum value, such as 100%, then by the content keyword be determined as with The object content keyword that preset content keyword matches;Otherwise, server carries out matching rate and preset matching rate threshold value Compare, when matching rate is greater than preset matching rate threshold value, then determines to exist in document to be verified endless with preset content keyword Complete matched object content keyword;When matching rate is less than preset matching rate threshold value, then determine to lack in document to be verified/no In the presence of the object content keyword to match with preset content keyword.For example, preset content keyword is " business process map ", And the corresponding content keyword inquired is " service logic figure " in document to be verified, then determine to exist in document to be verified with The object content keyword of document template difference (i.e. typing mistake).Further, terminal can be according to check results to be verified The object content keyword of typing mistake is marked out in document, notation methods such as modify font size, type or color etc..
In above-described embodiment, according to the content keyword in default character feature preliminary screening document to be verified, then from interior Hold the object content keyword that inquiry matches with preset content keyword in keyword, improves looking into for object content keyword Efficiency is ask, to improve document verification efficiency.
In one embodiment, it is crucial that the object content to match with preset content keyword is inquired in document to be verified Word is verified to obtain check results according to query result to document to be verified, comprising: closes document to be verified and preset content Keyword inputs the document verification model trained and is predicted, obtain the check results of document to be verified as input feature vector.
Wherein, document verification model is that model training obtains, Neng Gouyong is carried out according to the training sample set obtained in advance In the model verified to document to be verified.Specifically, when extracting preset content keyword from document template, service Device calls document verification function using document to be verified and each preset content keyword extracted as input feature vector, and input is preparatory Trained document verification model predicted, the corresponding check results of the document to be verified are obtained.The instruction of the document Knowledge Verification Model Practicing step includes: that server obtains one or more of multiple destination documents and the corresponding document template of each destination document Preset content keyword, according to each destination document one or more preset content keywords corresponding with the destination document, manually The check results of the destination document are marked out, and using destination document and corresponding one or more preset content keywords as defeated Enter feature, using corresponding check results as desired output feature, the document verification model of initialization is trained, is obtained The document verification model trained.
In one embodiment, document to be verified and each preset content keyword are inputted the text trained by server respectively Shelves Knowledge Verification Model is predicted, obtains the corresponding check results of each preset content keyword, and according to each preset content keyword Corresponding check results obtain the check results of document to be verified.Server can also be looked by document to be verified and according to template identification The document verification model that the document template input ask has been trained is predicted, the check results of document to be verified are obtained.It can be with Understand, the training sample for Training document Knowledge Verification Model concentrates included input feature vector and output feature, with application Input feature vector when the document Knowledge Verification Model is predicted is corresponding with output feature.
In above-described embodiment, document to be verified is verified by means of document verification template, improve verification efficiency and Accuracy.
In one embodiment, above-mentioned document verification method further include: pass through default template configuration interface terminal hair The template configuration instruction sent;Call the template configuration function parsing template configuration instruction in default template configuration interface, obtain to The template name and preset content keyword of configuration;Document template is generated according to template name and preset content keyword;It generates Template identification corresponding with document template, and document template and template identification are corresponded into storage.
Wherein, template configuration instruction is the instruction for triggering template configuration operation.It include wait match in template configuration instruction The template name and preset content keyword set.Specifically, server is sent by presetting template configuration interface terminal Template configuration instruction.When receiving template configuration instruction, server calls preset the template configuration letter in template configuration interface Number parses template configurations instruction, obtains template name to be configured, and one or more content modules are corresponding pre- If content keyword, the template name and each preset content keyword obtained according to parsing generates corresponding document template, will give birth to At document template stored according to default store path.When successfully storing the document template according to default store path, Server is the document template allocation template mark, and in the database by template identification and the corresponding storage of document template.
In one embodiment, when successfully storing the document template according to default store path, server obtains corresponding Storage catalogue, by the corresponding configuration of the storage catalogue of the document template and template identification in tables of data.
In one embodiment, when terminal detects that the template of user saves trigger action, user is obtained in current presentation User interface on pre- typing template name and the corresponding preset content keyword of each content template, and according to getting Template name and preset content keyword generate template configuration instruction.
In above-described embodiment, it is pre-configured with document template and corresponding template identification, in order to when carrying out document verification It can improve document template quickly according to template identification locating documents template and obtain efficiency, so as to improve document exchange Efficiency.
In one embodiment, above-mentioned document verification method further include: pass through default template renewal interface terminal hair The template renewal instruction sent;Call the template renewal function in default template renewal interface, instructed according to template renewal determine to The template identification and target update data of update, inquire document template to be updated according to template identification to be updated, and according to Target update data update document template to be updated.
Wherein, template renewal instruction is the instruction for triggering template renewal operation.Template renewal data are for updating The data of document template are particularly used for updating the data of the preset content keyword in document template, such as wait increase newly or delete The preset content keyword removed.
Specifically, server is instructed by presetting the template renewal that template renewal interface terminal is sent.When receiving When template renewal instructs, the template renewal function parsing template renewal in the server calls default template renewal interface is instructed, Template identification and target update data to be updated is obtained, is inquired in the database according to template identification to be updated to be updated Document template, and the document template to be updated is updated according to target update data are corresponding.For example, true according to target update data The preset content keyword of fixed (increase newly, be deleted or modified) to be updated, and updated according to the preset content keyword to be updated Respective document template.
In one embodiment, server determines that preset content to be updated in document template closes according to target update data Keyword, and identified preset content keyword is updated according to target update data.It is understood that in target update data It may also include default character feature to be updated.
In above-described embodiment, document template more new function is provided, in order to which dynamic updates document mould according to the actual situation Plate improves the applicability of document template.
It is understood that the default document verification interface, default template configuration in said one or multiple embodiments connect Mouth or default template renewal interface, can be the same calling interface, be also possible to provide respectively for different functional modules Calling interface.
As shown in figure 3, in one embodiment, providing a kind of document verification method, this method specifically includes following step It is rapid:
S302 is instructed by presetting the document verification that document verification interface terminal is sent.
S304 calls the instruction analytical function parsing document verification instruction in default document verification interface, obtains to be verified Document and template identification.
S306 calls the template in default document verification interface to obtain function, the text being pre-configured is obtained according to template identification Shelves template.
S308 calls the keyword extraction function in default document verification interface, pre-configuration is extracted from document template Preset content keyword.
S310 calls keyword extraction function, and the corresponding default font of preset content keyword is extracted from document template Feature.
S312 calls the document verification function in default document verification interface, inquires character feature in document to be verified The content keyword to match with default character feature.
S314, when inquiring content keyword, inquiry matches with preset content keyword in content keyword Object content keyword is verified to obtain check results according to query result to document to be verified.
S316 calls the result feedback function in default document verification interface, by check results, document to be verified and document Template is sent to terminal and is shown.
In above-described embodiment, when being instructed by presetting document verification interface to the document verification that terminal is sent, adjust The instruction parsing in document verification interface is preset with this, template obtains function, keyword extraction function and document verification function pair The document to be verified is verified, and call the result feedback function in the default document verification interface by check results, to school It tests document and document template is sent to terminal and is shown.The efficiency and accuracy rate for improving document verification as a result, can be effective It avoids the problem that being easy to omit because manually checking.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of document verification device 400, comprising: receiving module 402, Parsing module 404 obtains module 406, extraction module 408, correction verification module 410 and calling module 412, in which:
Receiving module 402, for being instructed by presetting the document verification that document verification interface terminal is sent;
Parsing module 404, for calling the instruction analytical function in default document verification interface to parse document verification instruction, Obtain document to be verified and template identification;
Module 406 is obtained, for calling the template in default document verification interface to obtain function, is obtained according to template identification The document template of pre-configuration;
Extraction module 408 is mentioned from document template for calling the keyword extraction function in default document verification interface Take the preset content keyword of pre-configuration;
Correction verification module 410 is looked into document to be verified for calling the document verification function in default document verification interface The object content keyword to match with preset content keyword is ask, document to be verified is verified to obtain according to query result Check results;
Calling module 412, for calling the result feedback function in default document verification interface, by check results, to school It tests document and document template is sent to terminal and is shown.
In one embodiment, preset content keyword has multiple;Correction verification module 410 is also used to each default when inquiring When the corresponding object content keyword of content keyword, determine that arrangement of each object content keyword in document to be verified is suitable Sequence;When put in order it is corresponding with document template it is default put in order consistent when, then determine that check results pass through for verification.
In one embodiment, correction verification module 410 are also used to call keyword extraction function, extract from document template The corresponding default character feature of preset content keyword;The document verification function in default document verification interface is called, to school Test in document inquire in the target that preset content keyword matches and corresponding character feature and default character feature match Hold keyword, document to be verified is verified to obtain check results according to query result.
In one embodiment, correction verification module 410 are also used to inquire character feature and default font in document to be verified The content keyword that feature matches;When inquiring content keyword, inquiry and preset content are crucial in content keyword The object content keyword that word matches.
In one embodiment, correction verification module 410 are also used to using document to be verified and preset content keyword as input Feature inputs the document verification model trained and is predicted, obtains the check results of document to be verified.
As shown in figure 5, in one embodiment, document verification device 400 further include: configuration module 414;
Configuration module 414, for being instructed by presetting the template configuration that template configuration interface terminal is sent;It calls pre- If the template configuration function parsing template configuration instruction in template configuration interface, obtains template name and preset content to be configured Keyword;Document template is generated according to template name and preset content keyword;Template identification corresponding with document template is generated, And document template and template identification are corresponded into storage.
In one embodiment, above-mentioned document verification device 400, further includes: update module 416;
Update module 416, for being instructed by presetting the template renewal that template renewal interface terminal is sent;It calls pre- If the template renewal function in template renewal interface, template identification and target update to be updated are determined according to template renewal instruction Data inquire document template to be updated according to template identification to be updated, and update according to target update data to be updated Document template.
Specific about document verification device limits the restriction that may refer to above for document verification method, herein not It repeats again.Modules in above-mentioned document verification device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used to store the document template being pre-configured.The network interface of the computer equipment is used for and external terminal It is communicated by network connection.To realize a kind of document verification method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with The step of computer program, which realizes the document verification method in above-mentioned each embodiment when executing computer program.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the step of document verification method in above-mentioned each embodiment when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Instruct relevant hardware to complete by computer program, computer program to can be stored in a non-volatile computer readable It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen Please provided by any reference used in each embodiment to memory, storage, database or other media, may each comprise Non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art, Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection scope of the application. Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of document verification method, which comprises
The document verification instruction sent by presetting document verification interface terminal;
Call instruction analytical function in the default document verification interface to parse document verification instruction, obtain document to be verified and Template identification;
It calls the template in the default document verification interface to obtain function, the document being pre-configured is obtained according to the template identification Template;
The keyword extraction function in the default document verification interface is called, the pre- of pre-configuration is extracted from the document template If content keyword;
The document verification function in the default document verification interface is called, inquiry is preset with described in the document to be verified The object content keyword that content keyword matches verifies the document to be verified according to query result As a result;
Call the result feedback function in the default document verification interface, by the check results, the document to be verified and The document template is sent to terminal and is shown.
2. the method according to claim 1, wherein the preset content keyword have it is multiple;The basis is looked into It askes result the document to be verified is verified to obtain check results, comprising:
When inquiring the corresponding object content keyword of each preset content keyword, determine that each object content is crucial Word putting in order in the document to be verified;
When it is described put in order it is corresponding with the document template it is default put in order consistent when, then determine check results for verification Pass through.
3. the method according to claim 1, wherein the document called in the default document verification interface Function is verified, the object content keyword to match with the preset content keyword, root are inquired in the document to be verified The document to be verified is verified to obtain check results according to query result, comprising:
The keyword extraction function is called, the corresponding predetermined word of the preset content keyword is extracted from the document template Body characteristics;
The document verification function in the default document verification interface is called, inquiry is preset with described in the document to be verified The object content keyword that content keyword matches and corresponding character feature and the default character feature match, according to Query result is verified to obtain check results to the document to be verified.
4. according to the method described in claim 3, it is characterized in that, the inquiry in the document to be verified is preset with described The object content keyword that content keyword matches and corresponding character feature and the default character feature match, comprising:
The content keyword that character feature and the default character feature match is inquired in the document to be verified;
When inquiring the content keyword, inquires in the content keyword and match with the preset content keyword Object content keyword.
5. the method according to claim 1, wherein the inquiry in the document to be verified is preset with described The object content keyword that content keyword matches verifies the document to be verified according to query result As a result, comprising:
Using the document to be verified and the preset content keyword as input feature vector, the document verification model trained is inputted It is predicted, obtains the check results of the document to be verified.
6. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
The template configuration instruction sent by presetting template configuration interface terminal;
It calls the template configuration function in the default template configuration interface to parse the template configuration instruction, obtains to be configured Template name and preset content keyword;
Document template is generated according to the template name and the preset content keyword;
Template identification corresponding with the document template is generated, and the document template and the template identification are corresponded into storage.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The template renewal instruction sent by presetting terminal described in template renewal interface;
The template renewal function in the default template renewal interface is called, it is to be updated according to template renewal instruction determination Template identification and target update data inquire document template to be updated according to the template identification to be updated, and according to institute It states target update data and updates the document template to be updated.
8. a kind of document verification device, which is characterized in that described device includes:
Receiving module, for being instructed by presetting the document verification that document verification interface terminal is sent;
Parsing module is obtained for calling the instruction analytical function in the default document verification interface to parse document verification instruction To document to be verified and template identification;
Module is obtained, for calling the template in the default document verification interface to obtain function, is obtained according to the template identification Take the document template of pre-configuration;
Extraction module, for calling the keyword extraction function in the default document verification interface, from the document template Extract the preset content keyword being pre-configured;
Correction verification module, for calling the document verification function in the default document verification interface, in the document to be verified The object content keyword that inquiry matches with the preset content keyword, according to query result to the document to be verified into Row verification obtains check results;
Calling module, for calling the result feedback function in the default document verification interface, by check results, described Document to be verified and the document template are sent to terminal and are shown.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910308387.XA 2019-04-17 2019-04-17 Document verification method, apparatus, computer equipment and storage medium Pending CN110134929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910308387.XA CN110134929A (en) 2019-04-17 2019-04-17 Document verification method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910308387.XA CN110134929A (en) 2019-04-17 2019-04-17 Document verification method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110134929A true CN110134929A (en) 2019-08-16

Family

ID=67570069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910308387.XA Pending CN110134929A (en) 2019-04-17 2019-04-17 Document verification method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110134929A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532487A (en) * 2019-09-11 2019-12-03 北京百度网讯科技有限公司 The generation method and device of label
CN110781673A (en) * 2019-09-06 2020-02-11 平安科技(深圳)有限公司 Document acceptance method and device, computer equipment and storage medium
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN111190946A (en) * 2019-12-10 2020-05-22 平安医疗健康管理股份有限公司 Report generation method and device, computer equipment and storage medium
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium
CN113094508A (en) * 2021-04-27 2021-07-09 平安普惠企业管理有限公司 Data detection method and device, computer equipment and storage medium
CN114201447A (en) * 2021-12-08 2022-03-18 广州明动软件股份有限公司 Archives classification total library based on cloud archives integration platform is realized

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014168961A1 (en) * 2013-04-09 2014-10-16 Einsights Pte. Ltd Generating data analytics using a domain model
US20140355068A1 (en) * 2013-05-29 2014-12-04 International Business Machines Corporation Embedded document destination routing restrictions
US20160070707A1 (en) * 2013-04-05 2016-03-10 Lei Wang Keyword search on databases
CN109032824A (en) * 2018-05-31 2018-12-18 康键信息技术(深圳)有限公司 Database method of calibration, device, computer equipment and storage medium
CN109344234A (en) * 2018-09-06 2019-02-15 和美(深圳)信息技术股份有限公司 Machine reads understanding method, device, computer equipment and storage medium
CN109543942A (en) * 2018-10-16 2019-03-29 平安普惠企业管理有限公司 Data verification method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160070707A1 (en) * 2013-04-05 2016-03-10 Lei Wang Keyword search on databases
WO2014168961A1 (en) * 2013-04-09 2014-10-16 Einsights Pte. Ltd Generating data analytics using a domain model
US20140355068A1 (en) * 2013-05-29 2014-12-04 International Business Machines Corporation Embedded document destination routing restrictions
CN109032824A (en) * 2018-05-31 2018-12-18 康键信息技术(深圳)有限公司 Database method of calibration, device, computer equipment and storage medium
CN109344234A (en) * 2018-09-06 2019-02-15 和美(深圳)信息技术股份有限公司 Machine reads understanding method, device, computer equipment and storage medium
CN109543942A (en) * 2018-10-16 2019-03-29 平安普惠企业管理有限公司 Data verification method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李智, 李敏强: "基金项目评审管理中智能交互式文档检索", 研究与发展管理, no. 03 *
潘若瑛;张忠能;: "多模板多格式论文校验与自动排版系统的研究", 微型电脑应用, no. 03 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781673A (en) * 2019-09-06 2020-02-11 平安科技(深圳)有限公司 Document acceptance method and device, computer equipment and storage medium
CN110781673B (en) * 2019-09-06 2022-06-17 平安科技(深圳)有限公司 Document acceptance method and device, computer equipment and storage medium
CN110532487A (en) * 2019-09-11 2019-12-03 北京百度网讯科技有限公司 The generation method and device of label
CN110532487B (en) * 2019-09-11 2022-07-29 北京百度网讯科技有限公司 Label generation method and device
CN111190946A (en) * 2019-12-10 2020-05-22 平安医疗健康管理股份有限公司 Report generation method and device, computer equipment and storage medium
CN111159982A (en) * 2019-12-24 2020-05-15 中信银行股份有限公司 Document editing method and device, electronic equipment and computer readable storage medium
CN112287009A (en) * 2020-11-03 2021-01-29 平安普惠企业管理有限公司 Interface calling and interface data warehousing method, device, equipment and storage medium
CN113094508A (en) * 2021-04-27 2021-07-09 平安普惠企业管理有限公司 Data detection method and device, computer equipment and storage medium
CN114201447A (en) * 2021-12-08 2022-03-18 广州明动软件股份有限公司 Archives classification total library based on cloud archives integration platform is realized

Similar Documents

Publication Publication Date Title
CN110134929A (en) Document verification method, apparatus, computer equipment and storage medium
WO2021042914A1 (en) Test data generation method and apparatus, computer device and storage medium
CN110704633A (en) Named entity recognition method and device, computer equipment and storage medium
US11379206B2 (en) APP pushing method and device, electronic device and computer-readable storage medium
CN109783604B (en) Information extraction method and device based on small amount of samples and computer equipment
CN111666401B (en) Document recommendation method, device, computer equipment and medium based on graph structure
CN109446173A (en) Daily record data processing method, device, computer equipment and storage medium
CN110442756A (en) Data verification method, device, computer equipment and storage medium
CN110321284B (en) Test data entry method, device, computer equipment and storage medium
CN108874661B (en) Test mapping relation library generation method and device, computer equipment and storage medium
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN110908778B (en) Task deployment method, system and storage medium
CN109766483B (en) Regular expression generation method, device, computer equipment and storage medium
CN109165266A (en) List generation method, device, computer equipment and storage medium
CN109885828A (en) Word error correction method, device, computer equipment and medium based on language model
US20160370959A1 (en) Method and device for updating input method system, computer storage medium, and device
CN110109712A (en) Service Component loading method, device, computer equipment and storage medium
CN109325118A (en) Uneven sample data preprocess method, device and computer equipment
CN110781070A (en) Big data test verification method and device, computer equipment and storage medium
CN110162798A (en) Document translation method, apparatus, computer readable storage medium and computer equipment
CN112286934A (en) Database table importing method, device, equipment and medium
CN110334303A (en) Form validation method, device, computer equipment and storage medium
CN107145538B (en) Table data query method, device and system
US20220058214A1 (en) Document information extraction method, storage medium and terminal
CN108334452B (en) Rule data transfer test method, apparatus, computer device 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