Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, member
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
In the present invention, " module ", " system " etc. refer to the related entities applied to computer, such as hardware, hardware and soft
Combination, software or software in execution of part etc..In detail, for example, element can with but be not limited to run on processor
Process, processor, object, executable element, execution thread, program and/or computer.In addition, running on answering on server
Can be element with program or shell script, server.One or more elements can in the process of execution and/or thread,
And element can be localized and/or be distributed between two or multiple stage computers on one computer, and can be by various
Computer-readable medium is run.Element can also be according to the signal with one or more data packets, for example, from one and this
Another element interacts in ground system, distributed system, and/or the network in internet passes through signal and other system interactions
The signal of data is communicated by locally and/or remotely process.
Finally, it is to be noted that, herein, the terms "include", "comprise" include not only those elements, but also
Further include other elements that are not explicitly listed, or further include for this process, method, article or equipment it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
As shown in Figure 1, the method for skill training of one embodiment of the invention, including:
S11, when detecting that developer completes change to the training resource of technical ability, judge the resource version of the technical ability
It is whether corresponding with the current inner version of the technical ability.
Developer to the edit operation of technical ability has further been changed the technical ability created in development platform
Kind carried out edit operation.For example, developer, which is the technical ability created, increases a new saying, or increase new
Semantic slot, either carried out new mark or had modified reference resource etc..In the present embodiment, by detecting exploitation in real time
Edit operation of the person to technical ability, and the training of progress technical ability at once once detecting after edit operation, to realize
The real-time training of technical ability, can timely obtain newest technical ability.
During carrying out skill development in development platform, developer is that technical ability is made to realize specific function, needs to quote
Resource with specific function.For example, when the technical ability that developer will develop a inquiry weather, then need by calling a look into
The API for asking weather, can be specifically called by call address, such as:https://s.dui.ai/webhook/air.This
The API resources called for user in development platform can be that the either third-party platform that development platform is provided is provided,
And when can may carry out version updating to these API resources over time, therefore will appear client development technical ability
The API resource versions called, the version of corresponding API resources differs when developed technical ability is reused or edited to user
The case where cause.At this moment if developer has carried out technical ability new edit operation, it is necessary to full dose update is carried out to entire technical ability,
It is consistent between technical ability and cited API resource kernels version to ensure, it is ensured that the normal operation of technical ability.
If S12, be not correspond to, it is determined that the atom that platform carries out needed for full dose update the technical ability trains operation,
To generate the first training list.
When determining the resource version and the inconsistent current inner version of the technical ability of technical ability, required for exercise skill
The training operation of progress is split as the atom training operation of many minimum units, can so be performed simultaneously all originals
Son training operation carries out according to entire training operation without step-by-step, improves the efficiency to skill training, ensure that
The real-time of skill training.
If S13, corresponding, it is determined that according to material alteration content (being influenced by the edit operation) to the technical ability
The atom training operation carried out needed for being updated is to generate the second training list.
When determining that the resource version of technical ability is consistent with the current inner version of the technical ability, only determine in technical ability by
Atom training operation has been carried out required for the part influenced to edit operation, and there is targetedly part to technical ability to realize
Training, reduces training burden, saves training resource.
S14, described first is trained the atom training operation in list or the second training list distribute to difference
Training process into line asynchronous train.The atom in the first training list or the second training list is trained into behaviour in the present embodiment
Distribute the process pool pre-established to one, with dispatch different process subprograms respectively to all atom training operate into
Row training.
In addition, the asynchronous monitoring queue also registered in advance that exit signal for monitoring all process subprograms, does not listen to
As soon as a subprogram has handled an atom training operation, corresponding to record in the queue, until all atoms train operation
All training are completed, so as to grasp trained progress in real time, and ensures that institute is skilled and orderly correctly carries out, avoid
Appearance blocks.
The embodiment of the present invention will produce a full dose training if resource version and existing kernel version are inconsistent,
The version inconsistence problems come for part training band.Multiple inseparable atom instructions are disassembled into one complete training
It drills work, influenced data are operated by developer calculates the atoms of needs and train operation, these atoms are trained and are operated
It is distributed in process pool into line asynchronous and trains.
Inventor has found, is similarly the technical problem for solving the present invention, the possible nothing of improvement in the presence of the prior art
Non- is exactly following several respects:
A. in terms of the direction of server software:Training is distributed to more machines by distributed training.
B. in terms of interior nuclear engineering:Improve the algorithm of training, improving performance.
C. from the point of view of product design:Change the opportunity of training, delay training.
But in the scheme of the embodiment of the present invention, the relevant optimization of distributed training is not only focused on, while by attention
The inside for being transferred to each round training is tracked and parallel training, needs simultaneously to have centainly server exploitation and interior nuclear engineering
Understanding.
In some embodiments, specifically, the determination is influenced to be updated institute to the technical ability by the edit operation
The atom training that need to be carried out, which is operated to generate the second training list, includes:Determine the task that is influenced by the edit operation and/or
Task classifies and/or the required atom training operation carried out of dictionary, to generate the second training list.
May include multiple task in the same technical ability, if developer only edits some task,
And simply increase a saying, it is determined that some task is the task influenced by edit operation.Further,
If developer to the classification of some task (including efficiency tool, service for life, traffic trip, audio-visual audiovisual, shopping,
Education, smart home, social activity shares, Domestic News etc.) be modified, then determine simultaneously some task be classified as by
The task that edit operation influences.Further, it if developer increases some task new semantic slot, is associated with new
Dictionary then determines that the associated dictionary is the part influenced by edit operation simultaneously.Pass through the division of above-mentioned training operation, energy
It is enough to realize that, simultaneously to the task by edit operation, task classification and dictionary are trained into line asynchronous, to not only realize pair
The part training of technical ability, and also achieves the parallel training of different level, improves trained efficiency, trained real-time,
Thus when developer carries out edit operation and is trained (because during actual development, when developer carries out skill development
Immediately exploitation training immediately), technical ability after training can be obtained and be tested by withouting waiting for the long time, be ensured
User experience.
In some embodiments, the material alteration content includes the change carried out to task, task classification and dictionary
More.
As shown in Fig. 2, in some embodiments, the determination is updated the technical ability according to material alteration content
The atom training of required progress operates, and includes to generate the second training list:
S21, the first atomic operation instruction for determining required progress of classifying to the task according to the material alteration content
Practice collection;
S22, it determines and operation set is trained to the second atom carried out needed for the task according to the material alteration content;
S23, it determines and operation set is trained to the third atom carried out needed for the dictionary according to the material alteration content;
S24, determination task associated with the dictionary and task classification, to determine according to the material alteration content
The 4th atom training operation set carried out required to task associated with the dictionary and task classification;
S25, operation set is trained to generate the second training list according to first to fourth atom.
In the embodiment of the present invention, by classifying according to task, the priority orders of task and dictionary (task classification, task
Continuously decreased with dictionary successively priority) determine the required atom training operation carried out for the substantial modifications content, no
Only can be more rapidly and efficiently determine updates the required atom training operation carried out of exercise skill, but also will not omit and be directed to
The atom training operation carried out required for the change operation of developer.Specifically, because preferentially corresponding to institute by determining first
Task classification and the task for stating material alteration content, determine whether there is again later corresponding to the material alteration content
Dictionary, and when determining for the atomic operation carried out needed for dictionary, it is specific that the task classification for quoting the dictionary is determined again
And task, it is lost when being directed to task classification to even directly determine before and train operation with the atom carried out needed for task
Leakage is operated due to further being trained by the atom for determining with being carried out required for the associated task classification of dictionary and task herein,
Also omission that may be present before can overcome the disadvantages that.So the change operation that the embodiment of the present invention can be directed to developer is realized to technical ability
More thoroughly comprehensive training update.
As shown in figure 3, in some embodiments, the training behaviour carried out needed for the change that the determination is carried out for dictionary
Work includes:
S31, dictionary to be trained is determined according to material alteration content;
S32, determination task and task associated with the dictionary to be trained classify;
S33, determination are for dictionary to be trained described in training and task and task points associated with the dictionary to be trained
The atom training operation of class.
In the present embodiment, it when it is the edit operation to dictionary to determine the edit operation of developer, not only determines
To the training operation that dictionary is trained, while further defining with the dictionary associated task and task classification (for example, current skill
The mark for the saying added in a certain task that can lower included refers to the dictionary operated.Specifically, in a certain technical ability
" Beijing " is labelled with there are saying " how is Pekinese's weather ", under the technical ability to be " domestic city " and refer to " domestic city "
Dictionary necessarily will train a certain technical ability accordingly when developer edits " domestic city " this dictionary), and
The training operation for the response that needs carry out is determined.
The present embodiment be not it is simple and mechanical to technical ability carry out targetedly part training, when determine developer institute directly
After the content for operating editor, further determined with this directly by the associated other contents of the content of edit operation, from
And the thorough part training to energy is realized, it is associated with the operation of developer's direct editing without being omitted because of specific aim
Content training.
In some embodiments, the determining atom training operation carried out needed for full dose update is to generate the first training row
Table includes:Determine all task, task classification and dictionary that the technical ability is included;It determines respectively described all for training
Task, task classify and the atom of dictionary training operation is to generate the first training list.
As shown in figure 4, for the flow diagram of a specific embodiment of the invention, the method for skill training packet of the present embodiment
It includes:
Step 1, developer submit a change, one change of submission to be herein embodied in developer to current technical ability
The edit operation of progress, and the edit operation detected in real time by background server later again grasp the editor detected
Make carry out analysis summary, determine to exercise skill resource (saying that i.e. technical ability is included, dictionary, the classification of strong saying, dialogue,
Reply etc.) change that is of practical significance.
Step 2 checks whether resource version consistent with kernel version, that is, judge kernel version associated by current technical ability with
Whether associated kernel version is consistent when before trained the resource of skills of version till now.
Step 3 updates required atom training operation if it is inconsistent, calculating and carrying out a full dose to technical ability,
And it will be in obtained all atom training operation storages to task list.
If step 4, consistent, determine whether the change caused by the edit operation of developer has influenced the skill respectively
Task, task classification that can included and dictionary, and determined respectively according to affected task, task classification and dictionary
The atom training operation carried out required for going out, will be in determining atom training operation storage to task list.
Specifically, when determining that a certain dictionary is influenced by change, need further determination associated for the dictionary
Task and task classification, and determine that the atom training operation carried out required for the associated task and task classification is deposited accordingly
It puts into task list.
Step 5, by the atom stored in the task list obtained in step 3 and step 4 training operation break up be transferred to it is different
It walks in process flow, and the balanced different training process that is allocated to is trained.
Step 6, carried out in main program during executing training operation in steps of 5 registration monitor all training into
Journey is tied with detecting the completion situation of training process in real time after snoop results show to have completed all atom training operations
Shu Benci skill trainings.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Action merge, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
As shown in figure 5, the embodiment of the present invention provides a kind of skill training system 500 comprising:Version determining program module
510, the first training list generation programs module 520, second trains list generation programs module 530 and training operation distribution program
Module 540.Wherein,
Version determining program module 510, for when detecting that developer completes change to the training resource of technical ability, sentencing
Whether the resource version and the current inner version of the technical ability for the technical ability of breaking are corresponding.
Developer to the edit operation of technical ability has further been changed the technical ability created in development platform
Kind carried out edit operation.For example, developer, which is the technical ability created, increases a new saying, or increase new
Semantic slot, either carried out new mark or had modified reference resource etc..In the present embodiment, by detecting exploitation in real time
Edit operation of the person to technical ability, and the re -training of progress technical ability at once once detecting after edit operation, to
The real-time training of technical ability is realized, newest technical ability can be timely obtained.
During carrying out skill development in development platform, developer is that technical ability is made to realize specific function, needs to quote
Resource with specific function.For example, when the technical ability that developer will develop a inquiry weather, then need by calling a look into
The API for asking weather, can be specifically called by call address, such as:https://s.dui.ai/webhook/air.This
The API resources called for user in development platform can be that the either third-party platform that development platform is provided is provided,
And when can may carry out version updating to these API resources over time, therefore will appear client development technical ability
The API resource versions called, the version of corresponding API resources differs when developed technical ability is reused or edited to user
The case where cause.At this moment if developer has carried out technical ability new edit operation, it is necessary to full dose update is carried out to entire technical ability,
It is consistent between technical ability and cited API resource kernels version to ensure, it is ensured that the normal operation of technical ability.
First training list generation programs module 520, for the current of resource version and the technical ability when the technical ability
When kernel version is not correspond to, determine that the atom carried out needed for full dose update to the technical ability trains operation, to generate the first instruction
Practice list.
When determining that the resource version of technical ability is not correspond to the current inner version of the technical ability, the first training list life
The atom that the training operation carried out required for exercise skill is split as to many minimum units at program module 520 trains operation,
So all atom training operations can be performed simultaneously, without it is step-by-step according to entire training operate into
Row, improves the efficiency to skill training, ensure that the real-time of skill training.
Second training list generation programs module 530, for the current of resource version and the technical ability when the technical ability
When kernel version is corresponding, determination is updated the technical ability according to material alteration content (being influenced by the edit operation)
The atom training operation of required progress, to generate the second training list.
When determining that the resource version of technical ability is consistent with the current inner version of the technical ability, the second training list generates journey
Sequence module 530, which only determines, has carried out atom training operation required for the part influenced by edit operation in technical ability, to
Realize has targetedly part training to technical ability, reduces training burden, saves training resource.
Training operation distribution program module 540, for being trained described first in list or the second training list
Atom training operation distribution to different training processes into line asynchronous train.
In some embodiments, the determination is updated required progress according to material alteration content to the technical ability
Atom training operates, and includes to generate the second training list:
Determine the atom training operation carried out needed for the change carried out for task and/or task classification and/or dictionary,
To generate the second training list.
As shown in fig. 6, in some embodiments, the first training list generation programs module 520 includes:
Resource of skills determines program unit 521, for determining all task, task classification and word that the technical ability included
Library;
First list generates program unit 522, for being determined respectively for training all task, task classification and word
The atom training operation in library is to generate the first training list.
As shown in fig. 7, in some embodiments, the second training list generation programs module 530 includes:
Dictionary to be trained determines program unit 531, for being determined by the modification information shadow according to material alteration content
Loud dictionary is dictionary to be trained;
Associated task determines program unit 532, task and task points associated with the dictionary to be trained for determining
Class;
Second list generates program unit 533, for determining for dictionary to be trained described in training and waiting training with described
The atom training operation of dictionary associated task and task classification is to generate the second training list.
The said goods can perform the method that the embodiment of the present application is provided, and has the corresponding function module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The embodiment of the present invention also provides a kind of electronic equipment comprising:At least one processor, and with described at least one
The memory of a processor communication connection, wherein the memory is stored with the finger that can be executed by least one processor
It enables, described instruction is executed by least one processor, so as to be able to carry out the present invention any at least one processor
The realization method of skill training of embodiment.
Fig. 8 is the hardware configuration signal of the electronic equipment for the execution method of skill training that another embodiment of the application provides
Figure, as shown in figure 8, the equipment includes:
One or more processors 810 and memory 820, in Fig. 8 by taking a processor 810 as an example.
Execute method of skill training equipment can also include:Input unit 830 and output device 840.
Processor 810, memory 820, input unit 830 and output device 840 can pass through bus or other modes
It connects, in Fig. 8 for being connected by bus.
Memory 820 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the corresponding program of method of skill training in the embodiment of the present application
Instruction/module.Processor 810 is stored in non-volatile software program, instruction and module in memory 820 by operation,
Above method embodiment method of skill training is realized in various function application to execute server and data processing.
Memory 820 may include storing program area and storage data field, wherein storing program area can store operation system
System, the required application program of at least one function;Storage data field can be stored to be created according to using for device for training skill
Data etc..In addition, memory 820 may include high-speed random access memory, can also include nonvolatile memory, example
Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, it deposits
It includes the memory remotely located relative to processor 810 that reservoir 820 is optional, these remote memories can pass through network connection
To device for training skill.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication
And combinations thereof.
Input unit 830 can receive the number or character information of input, and generates and set with the user of device for training skill
It sets and the related signal of function control.Output device 840 may include that display screen etc. shows equipment.
One or more of modules are stored in the memory 820, when by one or more of processors
When 810 execution, the method for skill training in above-mentioned any means embodiment is executed.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can
It is physically separated with being or may not be, the component shown as unit may or may not be physics list
Member, you can be located at a place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of module achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It is realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, above-mentioned technology
Scheme substantially in other words can be expressed in the form of software products the part that the relevant technologies contribute, the computer
Software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions to
So that computer equipment (can be personal computer, server either network equipment etc.) execute each embodiment or
Method described in certain parts of embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;
And these modifications or replacements, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.