Specific embodiment
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
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.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, member
Part, data structure etc..The present invention can also be practiced 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 equipment.
In the present invention, " module ", " system " etc. refer to the related entities for being 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
It can be element with program or shell script, server.One or more elements can in the process and/or thread of execution,
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 operation.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" not only include 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, comprising:
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 is further to have been modified in development platform the technical ability created to the edit operation of technical ability
Kind carried out edit operation.For example, developer is that the technical ability created increases a new saying, or increases new
Semantic slot, perhaps carried out new mark or had modified reference resource etc..In the present embodiment, developed by real-time detection
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, then needing when the technical ability that developer will develop a inquiry weather 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 resource called in development platform for user can be provided by development platform or provided by third-party platform,
And when can may carry out version updating to these API resources over time, therefore will appear client development technical ability
The API resource version called, the version that corresponding API resource when developed technical ability is reused or edited to user are different
The case where cause.At this moment if developer has carried out new edit operation to technical ability, it is necessary to full dose update is carried out to entire technical ability,
It is consistent between technical ability and cited API resource kernel version to guarantee, it is ensured that the normal operation of technical ability.
If S12, be not correspond to, it is determined that platform carries out the atom training operation needed for full dose updates to the technical ability,
To generate the first training list.
It, will be required for exercise skill when the current inner version of the resource version and the technical ability that determine technical ability is inconsistent
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 the resource version for determining technical ability is consistent with the current inner version of the technical ability, only determined in technical ability by
Atom training operation is carried out required for the part influenced to edit operation, so that realizing has targetedly part to technical ability
Training, reduces training burden, saves training resource.
S14, the atom training operation in the first training list or the second training list is distributed to difference
Training process carry out asynchronous training.By the atom training behaviour in the first training list or the second training list 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 atom training operations
All training are completed, so as to grasp trained progress in real time, and guarantees that institute is skilled and orderly correctly carries out, avoid
Appearance blocks.
The embodiment of the present invention can generate a full dose training if resource version and existing kernel version are inconsistent,
For partially training bring version inconsistence problems.Multiple inseparable atom instructions are disassembled into one complete training
It drills work, the atom training operation that influenced data calculate needs is operated by developer, the training of these atoms is operated
It is distributed in process pool and carries out asynchronous training.
Technical problem of the invention is solved inventors have found that being similarly, 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: improving trained algorithm, improving performance.
C. from the point of view of product design: changing trained opportunity, 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
Need to carry out atom training operation with generate second training list comprise determining that the task influenced by the edit operation and/or
The atom training operation carried out needed for task classification and/or dictionary, to generate the second training list.
It 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 sharings, Domestic News etc.) be modified, then simultaneously determination some task be classified as by
The task that edit operation influences.Further, it if developer increases new semantic slot to some task, 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 carry out asynchronous training, 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 guaranteed
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 atom training behaviour carried out needed for classifying according to the material alteration content to the task is determined
Work collects;
S22, it determines and trains operation set according to second atom of the material alteration content to progress needed for the task;
S23, it determines and trains operation set according to third atom of the material alteration content to progress needed for the dictionary;
S24, determination task associated with the dictionary and task classification, to determine according to the material alteration content
To the 4th atom training operation set carried out needed for task associated with the dictionary and task classification;
S25, the second training list is generated according to first to fourth atom training operation set.
In the embodiment of the present invention, by classifying according to task, the priority orders of task and dictionary (task classification, task
Successively priority gradually decreases with dictionary) the required atom training operation carried out is determined for the substantial modifications content, no
It only can more rapidly and efficiently determine the atom training operation carried out needed for updating 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 preferential first correspond to institute by determining
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 the atomic operation of progress needed for for dictionary, it is specific that the task classification for quoting the dictionary has been determined again
And task, it is lost when to directly determining the atom training operation for progress needed for task classification and task before even
Leakage, herein as further being operated by the determining atom training with progress required for the associated task classification of dictionary and task,
Also omission that may be present before can overcome the disadvantages that.So the embodiment of the present invention can be realized for the change operation of developer to technical ability
More thoroughly comprehensive training updates.
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, it determines and divides for training dictionary train and task and task associated with the dictionary to be trained
The atom training operation of class.
In the present embodiment, it when the edit operation for determining developer is the edit operation to dictionary, has not only determined
To the training operation that dictionary is trained, while further defining and classifying with the dictionary associated task and task (for example, current skill
The mark of added saying refers to the dictionary operated in a certain task that can lower included.Specifically, in a certain technical ability
There are saying " how is Pekinese's weather ", " Beijing " is labelled under the technical ability and is " domestic city " and refers to " domestic city "
Dictionary necessarily will train accordingly a certain technical ability when developer edits " domestic city " this dictionary), and
The training operation for the response that needs carry out has been determined.
The present embodiment be not it is simple and mechanical to technical ability carry out targetedly part training, when determined 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 updates is to generate the first training column
Table comprises determining that all task, task classification and dictionary that the technical ability is included;It determines respectively described all for training
Task, task classification and the atom training operation of dictionary are 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 Xiang Biangeng, and submission one change herein is embodied in developer to current technical ability
The edit operation of progress, and by background server real-time detection to the edit operation, the editor that detects is grasped again later
Make carry out analysis summary, determine to exercise skill resource (i.e. technical ability included saying, dictionary, strong saying classification, dialogue,
Reply etc.) change that is of practical significance.
Step 2, check resource version it is whether 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 carries out atom training operation required for a full dose updates to technical ability if it is inconsistent, calculating,
And by obtained all atom training operation storages into task list.
If step 4, consistent, determine whether 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 out, by determining atom training operation storage into 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 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 after snoop results show to have completed all atom training operations with the completion situation of real-time detection training process
Shu Benci skill training.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Movement merge, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is 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, reference can be made to the related descriptions of other embodiments.
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 training list generation programs module 530 and training operation distribution program
Module 540.Wherein,
Version determining program module 510, for sentencing when detecting that developer completes change to the training resource of technical ability
Whether the resource version for the technical ability of breaking and the current inner version of the technical ability are corresponding.
Developer is further to have been modified in development platform the technical ability created to the edit operation of technical ability
Kind carried out edit operation.For example, developer is that the technical ability created increases a new saying, or increases new
Semantic slot, perhaps carried out new mark or had modified reference resource etc..In the present embodiment, developed by real-time detection
Edit operation of the person to technical ability, and the re -training of progress technical ability at once once detecting after edit operation, thus
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, then needing when the technical ability that developer will develop a inquiry weather 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 resource called in development platform for user can be provided by development platform or provided by third-party platform,
And when can may carry out version updating to these API resources over time, therefore will appear client development technical ability
The API resource version called, the version that corresponding API resource when developed technical ability is reused or edited to user are different
The case where cause.At this moment if developer has carried out new edit operation to technical ability, it is necessary to full dose update is carried out to entire technical ability,
It is consistent between technical ability and cited API resource kernel version to guarantee, 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 updates to the technical ability trains operation, to generate the first instruction
Practice list.
When the current inner version of the resource version and the technical ability that determine technical ability is not correspond to, the first training list is raw
The training operation of progress required for exercise skill is split as to the atom training operation of many minimum units at program module 520,
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 the resource version for determining technical ability is consistent with the current inner version of the technical ability, the second training list generates journey
Sequence module 530, which has only determined, has carried out atom training operation required for the part influenced in technical ability by edit operation, thus
Realizing has targetedly part training to technical ability, reduces training burden, saves training resource.
Training operation distribution program module 540, for will it is described first training list or it is described second train list in
Atom training operation distribution to different training process carry out asynchronous training.
In some embodiments, it is carried out needed for the determination is updated the technical ability according to material alteration content
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 determining according to material alteration content by the modification information shadow
Loud dictionary is dictionary to be trained;
Associated task determines program unit 532, for determining task and task points associated with the dictionary to be trained
Class;
Second list generates program unit 533, for determining for the training dictionary to be trained and with described wait train
The atom training operation of dictionary associated task and task classification is to generate the second training list.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
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 described processor
Enable, described instruction executed by least one described processor so that at least one described processor be able to carry out it is of the invention any
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.
The equipment for executing method of skill training 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.Non-volatile software program, instruction and the module that processor 810 is stored in memory 820 by operation,
Thereby executing the various function application and data processing of server, i.e. realization above method embodiment method of skill training.
Memory 820 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area 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, it 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
Optional reservoir 820 includes the memory remotely located relative to processor 810, these remote memories can pass through network connection
To device for training skill.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, 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 described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules 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 embodied in the form of software products the part that the relevant technologies contribute, the computer
Software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions to
So that computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment or
Method described in certain parts of embodiment.
Finally, it should be noted that above embodiments are 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, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.