CN110489087A - A kind of method, apparatus, medium and electronic equipment generating fractal structure - Google Patents
A kind of method, apparatus, medium and electronic equipment generating fractal structure Download PDFInfo
- Publication number
- CN110489087A CN110489087A CN201910699597.6A CN201910699597A CN110489087A CN 110489087 A CN110489087 A CN 110489087A CN 201910699597 A CN201910699597 A CN 201910699597A CN 110489087 A CN110489087 A CN 110489087A
- Authority
- CN
- China
- Prior art keywords
- node
- cell type
- functional
- tree
- document
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Present disclose provides a kind of method, apparatus, medium and electronic equipments for generating fractal structure.Functional characteristic is subjected to nested tissue by tree structure, so as to manage increasingly complex project structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects product structure, and corresponding with product demand, code is more readily maintained.After each functional characteristic is isolated, when in a functional characteristic code revision, reconstruct when, will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, the conflict generated when code merges is avoided.
Description
Technical field
This disclosure relates to which field of computer technology, in particular to a kind of method, apparatus for generating fractal structure, is situated between
Matter and electronic equipment.
Background technique
Currently, the development mode of front end exploitation has developed to the exploitation of facing assembly, and shape is managed with unidirectional traffic
State.This makes originally relatively single code, is divided into different roles.Such as: it is had in React technology stack
The classifications such as Component, Container, Action, Reducer and Saga;Also there is similar division in Vue technology stack, only
Nominally some differences, such as Reducer are referred to as Mutator.
Technology stack is the combination for creating the software product and programming language of Web or mobile application.Using generally comprising
Two component softwares: client and server-side, also referred to as front and rear end.
How the code-group of these different roles to be woven, is the Basic Problems faced in the exploitation of front end.
Currently, there are two types of the normal methods of front end project organization file structure:
1, constituent act structure (File Type First) by file type
It is different according to the role of file content or classification, it is put into different files.Such as: components,
Containers, actions, reducers, sagas and selectors etc..
2, functional characteristic constituent act structure (Feature First) is pressed
Different folder structures is marked off according to the functional characteristic of product.Such as: users, posts and comments
Deng.
Wherein, extensive in management compared to constituent act structure by file type by functional characteristic constituent act structure
In the complexity of project advantageously.
But in the way of functional characteristic constituent act structure, existing scheme still can not be completely disengaged by file
The mode of types of tissue file structure, such mixing application largely reduced the advantage by functional characteristic constituent act structure.
Summary of the invention
The disclosure is designed to provide a kind of method, apparatus, medium and electronic equipment for generating fractal structure, can solve
At least one technical problem certainly mentioned above.Concrete scheme is as follows:
According to the specific embodiment of the disclosure, in a first aspect, the disclosure provides a kind of method for generating fractal structure, packet
It includes:
Obtain first document with function description;
Parse first functional tree of the first document structure tree;Wherein, the leaf node of first functional tree and described the
Have the function of that the first text segment of minimum description is associated in one document, and all first text segment compositions described the
The function of one document describes;
Each first text segment is inputted respectively in the first function interpretive classification model and is obtained and the leaf knot
The associated clip types of point;
Obtain point shape cell type of the corresponding leaf node respectively according to each clip types;
Shape cell type is divided to generate the first faculty-fractal knot according to first functional tree and the leaf node
Structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
Optionally, parsing first functional tree of the first document structure tree, comprising:
Analytic modell analytical model is described according to function, function description parsing is carried out to first document, obtain multiple first parsing knots
Fruit;Wherein, first parsing result, comprising: the second fragment association between the second text segment and the second text segment
Relation information;
The first functional tree is generated according to the second text segment and the second fragment association relation information.
Optionally, point shape unit class for obtaining the corresponding leaf node respectively according to each clip types
Type, comprising:
It is concentrated respectively from preset kind matched data according to each clip types and obtains the corresponding leaf node
Described divide shape cell type.
Optionally, described that shape cell type is divided to generate first according to first functional tree and the leaf node
Faculty-fractal structure, comprising:
A point shape cell type according to the leaf node generates to be divided described in each node of the first functional tree
Shape cell type;
Identical with first node structure described first is generated according to the first node structure of first functional tree
Faculty-fractal structure;
Shape cell type is divided to obtain corresponding first function point according to each node of the first functional tree
The described of the node of shape structure divides shape unit.
Optionally, described that shape cell type is divided to generate each knot of the first functional tree according to the leaf node
Minute shape cell type of point, comprising:
In first functional tree, according to sequence from bottom to top successively according to each sub- knot of each father node
The incidence relation of minute shape cell type of point generates minute shape cell type of the father node respectively.
Optionally, it is described divide according to each node of the first functional tree shape cell type obtain it is corresponding described in
The described of the node of first faculty-fractal structure divides shape unit, comprising:
Obtain point shape cell type of each node of the first functional tree;
It is concentrated to obtain from default point of shape cell data respectively according to each described point of shape cell type and corresponding described divides shape
Unit;
Described divide shape unit and each node of the first functional tree and the first faculty-fractal knot according to corresponding
The corresponding relationship of each node of structure obtains point shape unit of the node of the first faculty-fractal structure.
Optionally, described to divide shape unit, it includes at least: functional unit information and functional unit status information.
According to the specific embodiment of the disclosure, second aspect, the disclosure provides a kind of device for generating fractal structure, packet
It includes:
Document element is obtained, for obtaining the first document with function description;
Resolution unit, for parsing first functional tree of the first document structure tree;Wherein, the leaf of first functional tree
Have the function of that the first text segment of minimum description is associated in node and first document, and all first letter plates
The function of first document described in Duan Zucheng describes;
Taxon is obtained for inputting each first text segment in the first function interpretive classification model respectively
Clip types associated with the leaf node;
Type units are obtained, for obtaining point shape of the corresponding leaf node respectively according to each clip types
Cell type;
Generation unit, for dividing shape cell type to generate the according to first functional tree and the leaf node
One faculty-fractal structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
According to the specific embodiment of the disclosure, the third aspect, the disclosure provides a kind of computer readable storage medium,
On be stored with computer program, when described program is executed by processor realize generate fractal structure as described in any one of first aspect
Method.
According to the specific embodiment of the disclosure, fourth aspect, the disclosure provides a kind of electronic equipment, comprising: one or
Multiple processors;Storage device, for storing one or more programs, when one or more of programs are by one or more
When a processor executes, so that one or more of processors are realized generating fractal structure as described in any one of first aspect
Method.
The above scheme of the embodiment of the present disclosure compared with prior art, at least has the advantages that
Present disclose provides a kind of method, apparatus, medium and electronic equipments for generating fractal structure, which comprises
Obtain first document with function description;Parse first functional tree of the first document structure tree;Wherein, first functional tree
Leaf node and first document in have the function of that the first text segment of minimum description is associated, and all described first
Text segment forms the function description of first document;Each first text segment is inputted into the description of the first function respectively
Clip types associated with the leaf node are obtained in disaggregated model;Correspondence is obtained respectively according to each clip types
The leaf node divide shape cell type;Divide shape unit class according to first functional tree and the leaf node
Type generates the first faculty-fractal structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
Functional characteristic is carried out nested tissue by tree structure by the disclosure, so as to manage increasingly complex project knot
Structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects product structure, with product demand
Corresponding, code is more readily maintained.After each functional characteristic is isolated, when in a functional characteristic code revision, reconstruct when,
It will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, the conflict generated when code merges is avoided.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows the flow chart of the method for the generation fractal structure according to the embodiment of the present disclosure;
Fig. 2 shows the unit block diagrams according to the device of the generation fractal structure of the embodiment of the present disclosure;
Fig. 3 shows electronic equipment attachment structure schematic diagram according to an embodiment of the present disclosure.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to the disclosure make into
It is described in detail to one step, it is clear that described embodiment is only disclosure a part of the embodiment, rather than whole implementation
Example.It is obtained by those of ordinary skill in the art without making creative efforts based on the embodiment in the disclosure
All other embodiment belongs to the range of disclosure protection.
The term used in the embodiments of the present disclosure is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The disclosure.In the embodiment of the present disclosure and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning, " a variety of " generally comprise at least two.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It will be appreciated that though in the embodiments of the present disclosure may be using term first, second, third, etc. come description technique name
Claim, but these technical names should not necessarily be limited by these terms.These terms are only used to distinguish technical name.For example, not taking off
In the case where embodiment of the present disclosure range, the first signature verification can also be referred to as the second signature verification, similarly, the second school
Sign test name can also be referred to as the first signature verification.
Depending on context, word as used in this " if ", " if " can be construed to " ... when " or
" when ... " or " in response to determination " or " in response to detection ".Similarly, context is depended on, phrase " if it is determined that " or " such as
Fruit detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when detection (statement
Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Include, so that commodity or device including a series of elements not only include those elements, but also including not clear
The other element listed, or further include for this commodity or the intrinsic element of device.In the feelings not limited more
Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or device for including the element also
There are other identical elements.
The alternative embodiment of the disclosure is described in detail with reference to the accompanying drawing.
To the first embodiment that the disclosure provides, i.e., a kind of embodiment for the method for generating fractal structure.
The embodiment of the present disclosure is described in detail below with reference to Fig. 1, wherein Fig. 1 is the life that the embodiment of the present disclosure provides
At the flow chart of the method for fractal structure.
Step S101 obtains first document with function description.
Document refers to and software systems and its related text entities of Software engineering process.The type of document includes soft
Part requirement documents, design documentation, test document, user's manual etc..Requirement documents therein, design documentation and test document are general
It is to be write in software development process by developer, and the non-process class document such as user's manual non-technical is write by special
It is write as personnel.
Document can improve the efficiency of software development, guarantee the quality of software, and have in the use process of software guidance,
The effect help, explained the puzzle, especially in maintenance work, document is indispensable data.
For example, preferably describing the content of customer demand in software requirement document, sectional lists is needed to describe software
Function.And there is likely to be the functions of hierarchical description under each catalogue.
In traditional software development process, demand analysis personnel is needed to write out software requirement text according to the demand of client
Shelves.Then by software designer according to software requirement document structure tree software design document.This process needs telephone expenses much smart
Power writes relevant documentation.The purpose of the method for the embodiment of the present disclosure is generated just by the function description of software requirement document
The software design document of step, to reduce the time of design documentation.
Step S102 parses first functional tree of the first document structure tree;Wherein, the leaf node of first functional tree
It is associated with the first text segment in first document with minimum description, and all first text segment groups
It is described at the function of first document.
First document is parsed, is that the first document is disassembled and analysed in depth, that is, is carried out to the first document
Semantic analysis.
Parse first functional tree of the first document structure tree, exactly to the content of the function description in the first document by greatly to
It is small successively to be analyzed and disassembled.During layer-by-layer dismantling, according to be disassembled the descending un-mate sequence of document and from
Category relationship generates the first functional tree, and has the function of minimum retouch in the leaf node of first functional tree and first document
The the first text segment stated is associated, and all first text segments form the function description of first document.
First text segment is the text segment that can not describe to be disassembled to function again during dismantling.
For example, there are four big titles for a software requirement document tool, then the root node of the first functional tree has four sons
Node, and have 6 the second titles below the first headline, then the first of the second layer of the first functional tree node has 6
A child node, and so on, until being resolved to the first text segment with minimum description and generating the first functional tree
Until leaf node.
Optionally, parsing first functional tree of the first document structure tree, comprising the following steps:
Step S102-1 describes analytic modell analytical model according to function and carries out function description parsing to first document, obtains more
A first parsing result;Wherein, first parsing result, comprising: between the second text segment and the second text segment
Second fragment association relation information.
Function describes analytic modell analytical model, can be one and parses the machine learning mould that sample generates by a large amount of function of training
Type.The process embodiment of the present disclosure of function description parsing is carried out not to first document about analytic modell analytical model is described according to function
It is described in detail, can refer to various implementations in the prior art and implement.
Second fragment association relation information, it is same before and after information and the second text segment including upper one layer of text segment
The information of layer text segment.
When the second text segment is the text segment of minimum function description, the second text segment namely the first letter plate
Section.Text segment namely associated with the leaf node of the first functional tree.
Step S102-2 generates the first function according to the second text segment and the second fragment association relation information
Tree.
In general, the first functional tree has multilayer, each father node has multiple child nodes, and the final node of each branch is
Child node is not present in leaf node, leaf node.
Each first text segment is inputted acquisition and institute in the first function interpretive classification model by step S103 respectively
State the associated clip types of leaf node.
First function interpretive classification model can be the machine that sample generation is described by the function that training is largely classified
Device learning model.About by each first text segment input respectively in the first function interpretive classification model obtain with it is described
The process embodiment of the present disclosure of the associated clip types of leaf node is not detailed, and can refer to various realization sides in the prior art
Formula is implemented.
Step S104 obtains point shape unit class of the corresponding leaf node according to each clip types respectively
Type.
Namely corresponding point of shape cell type is obtained respectively according to each clip types.This divides shape cell type to exist
It is a value of corresponding leaf node in first functional tree.
Optionally, point shape unit class for obtaining the corresponding leaf node respectively according to each clip types
Type, comprising:
It is concentrated respectively from preset kind matched data according to each clip types and obtains the corresponding leaf node
Described divide shape cell type.
Preset kind matched data collection, comprising: clip types and divide shape cell type.Wherein, clip types and divide shape list
Element type is one-to-one relationship.To avoid producing ambiguity when generating fractal structure.
It divides shape cell type, is obtained by a point shape cell type model.
Divide shape cell type model, can be the engineering generated by point shape unit sample that training is largely classified
Practise model.
Step S105 divides shape cell type to generate the first function according to first functional tree and the leaf node
It can fractal structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
Described point of shape unit, includes at least: functional unit information and functional unit status information.
For example, by the first faculty-fractal structure of software requirement document structure tree, functional unit information, comprising: functional unit
Title;Functional unit status information, comprising: the movement of functional unit and the action state of functional unit.
It is described that shape cell type is divided to generate the first function point according to first functional tree and the leaf node
Shape structure, comprising the following steps:
Step S105-1 divides shape cell type to generate each knot of the first functional tree according to the leaf node
Minute shape cell type of point.
Optionally, described that shape cell type is divided to generate each knot of the first functional tree according to the leaf node
Minute shape cell type of point, comprising:
In first functional tree, according to sequence from bottom to top successively according to each sub- knot of each father node
The incidence relation of minute shape cell type of point generates minute shape cell type of the father node respectively.
For example, father node has 3 leaf nodes, divide 3 leaf nodes to the combination input point of shape cell type
In shape cell type data set, to obtain point shape cell type of the father node.And so on, available first function
The described of each node can be set and divide shape cell type.
Step S105-2 is generated identical as first node structure according to the first node structure of first functional tree
The first faculty-fractal structure.
The node structure of namely the first faculty-fractal structure is identical as the node structure of the first functional tree, but each knot
The value of point is different.
Step S105-3, divide according to each node of the first functional tree shape cell type obtain it is corresponding described in
The described of the node of first faculty-fractal structure divides shape unit.
Optionally, it is described divide according to each node of the first functional tree shape cell type obtain it is corresponding described in
The described of the node of first faculty-fractal structure divides shape unit, comprising the following steps:
Step S105-3-1 obtains the described of each node of the first functional tree and divides shape cell type.
Step S105-3-2 divides shape cell data to concentrate acquisition pair from default respectively according to each described point of shape cell type
Point shape unit answered.
It is default to divide shape cell data collection, comprising: point shape cell type and to divide shape unit.Wherein, divide shape cell type and divide
Shape unit has one-to-one relationship.
Step S105-3-3 described divides shape unit and each node of the first functional tree and described the according to corresponding
The corresponding relationship of each node of one faculty-fractal structure obtains point shape list of the node of the first faculty-fractal structure
Member.
Since the node structure of the first functional tree is identical as the node structure of the first faculty-fractal structure, pass through
What the node of one functional tree obtained divides shape unit, then the value as the corresponding node of the first faculty-fractal structure.
The first faculty-fractal structure that the method according to the embodiment of the present disclosure obtains can be saved in a manner of file.
Hereof, the node of the first faculty-fractal structure is a branch hereof, in the branch line in addition to including fractal structure
Content outside, the branch that father node is formed further includes characteristics unit, and the child node of the characteristics unit i.e. father node generates
Content.It is mutually indepedent between each characteristics unit, it does not depend on mutually.But characteristics unit can be successively nested.Leaf node is corresponding
File structure does not include characteristics unit.
Functional characteristic is carried out nested tissue by tree structure by the embodiment of the present disclosure, so as to manage increasingly complex item
Mesh structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects product structure, with product
Demand is corresponding, and code is more readily maintained.After each functional characteristic is isolated, when to the code revision, again in a functional characteristic
When structure, it will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, avoids and generate when code merges
Conflict.
Corresponding with the first embodiment that the disclosure provides, the disclosure additionally provides second embodiment, i.e., a kind of generate is divided
The device of shape structure.Since second embodiment is substantially similar to first embodiment, so describe fairly simple, relevant part
Refer to the corresponding explanation of first embodiment.Installation practice described below is only schematical.
Fig. 2 shows a kind of embodiments of the device of generation fractal structure of disclosure offer.Fig. 2 is the embodiment of the present disclosure
The unit block diagram of the device of the generation fractal structure of offer.
Shown in Figure 2, the disclosure provides a kind of device for generating fractal structure, comprising: document element 201 is obtained,
Resolution unit 202, taxon 203 obtain type units 204, generation unit 205.
Document element 201 is obtained, for obtaining the first document with function description;
Resolution unit 202, for parsing first functional tree of the first document structure tree;Wherein, first functional tree
Have the function of that the first text segment of minimum description is associated in leaf node and first document, and all first texts
Word slice section forms the function description of first document;
Taxon 203, for inputting each first text segment in the first function interpretive classification model respectively
Obtain clip types associated with the leaf node;
Type units 204 are obtained, for obtaining the corresponding leaf node respectively according to each clip types
Divide shape cell type;
Generation unit 205, for dividing shape cell type raw according to first functional tree and the leaf node
At the first faculty-fractal structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
Optionally, in the resolution unit 202, comprising:
Model analyzing subelement carries out function description solution to first document for describing analytic modell analytical model according to function
Analysis obtains multiple first parsing results;Wherein, first parsing result, comprising: the second text segment and second text
The second fragment association relation information between segment;
The first functional tree subelement is generated, for believing according to the second text segment and the second fragment association relationship
Breath generates the first functional tree.
Optionally, in the acquisition type units 204, comprising:
Sub-unit is obtained, is obtained for being concentrated respectively from preset kind matched data according to each clip types
The described of the corresponding leaf node divides shape cell type.
Optionally, in the generation unit 205, comprising:
Generation divides shape cell type subelement, for dividing described in the generation of shape cell type according to the leaf node
The described of each node of first functional tree divides shape cell type;
Structural sub-units are generated, for generating and first node according to the first node structure of first functional tree
The identical first faculty-fractal structure of structure;
First acquisition divides shape unit subelement, for dividing shape unit class according to each node of the first functional tree
Type obtains point shape unit of the node of the corresponding first faculty-fractal structure.
Optionally, divide in shape cell type subelement in the generation, comprising:
Father node subelement is traversed, in first functional tree, successively basis to be every according to sequence from bottom to top
The incidence relation of point shape cell type of each child node of a father node generates the described of the father node respectively
Divide shape cell type.
Optionally, it obtains and divides in shape unit subelement described first, comprising:
Each node point shape cell type subelement is obtained, for obtaining point shape described in each node of the first functional tree
Cell type;
Second acquisition divides shape unit subelement, for dividing shape unit from default respectively according to each described point of shape cell type
The corresponding point shape unit is obtained in data set;
Third acquisition divides shape unit subelement, for described dividing shape unit and first functional tree each according to corresponding
The corresponding relationship of a node and each node of the first faculty-fractal structure obtains the knot of the first faculty-fractal structure
Minute shape unit of point.
Optionally, described to divide shape unit, it includes at least: functional unit information and functional unit status information.
Functional characteristic is carried out nested tissue by tree structure by the embodiment of the present disclosure, so as to manage increasingly complex item
Mesh structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects product structure, with product
Demand is corresponding, and code is more readily maintained.After each functional characteristic is isolated, when to the code revision, again in a functional characteristic
When structure, it will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, avoids and generate when code merges
Conflict.
The embodiment of the present disclosure provides 3rd embodiment, i.e. a kind of electronic equipment, and the equipment is for generating fractal structure
Method, the electronic equipment, comprising: at least one processor;And the storage being connect at least one described processor communication
Device;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the method for generating fractal structure as in the first embodiment.
The embodiment of the present disclosure provides fourth embodiment, i.e., a kind of computer storage medium for generating fractal structure, described
Computer storage medium is stored with computer executable instructions, which, which can be performed above-mentioned any means, implements
The method of fractal structure is generated described in example.
It refers to described in Fig. 3, it illustrates the structural schematic diagrams for the electronic equipment for being suitable for being used to realize the embodiment of the present disclosure.
Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, Digital Broadcasting Receiver
Device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal are (such as vehicle-mounted
Navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronics shown in Fig. 3
Equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
Shown in Figure 3, electronic equipment may include processing unit (such as central processing unit, graphics processor etc.)
301, random access can be loaded into according to the program being stored in read-only memory (ROM) 302 or from storage device 308
Program in memory (RAM) 303 and execute various movements appropriate and processing.In RAM 303, it is also stored with electronic equipment
Various programs and data needed for operation.Processing unit 301, ROM 302 and RAM 303 are connected with each other by bus 304.It is defeated
Enter/export (I/O) interface 305 and is also connected to bus 304.
In general, following device can connect to I/O interface 305: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 306 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 307 of dynamic device etc.;Storage device 308 including such as tape, hard disk etc.;And communication device 309.Communication device
309, which can permit electronic equipment, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 3, which is shown, to be had respectively
The electronic equipment of kind device, it should be understood that being not required for implementing or having all devices shown.It can be alternatively real
Apply or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 309, or from storage device 308
It is mounted, or is mounted from ROM 302.When the computer program is executed by processing unit 301, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity
When sub- equipment executes, so that the electronic equipment: functional characteristic being carried out nested tissue by tree structure, so as to manage more
Complicated project structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects product knot
Structure, corresponding with product demand, code is more readily maintained.After each functional characteristic is isolated, when to the generation in a functional characteristic
When code modification, reconstruct, it will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, code merging is avoided
When the conflict that generates.
Alternatively, above-mentioned computer-readable medium carries one or more program, when said one or multiple programs
When being executed by the electronic equipment, so that the electronic equipment: functional characteristic being carried out nested tissue by tree structure, so as to pipe
Manage increasingly complex project structure.Learning cost is reduced, makes code be easy to search, positioning, the organizational form of code reflects
Product structure, corresponding with product demand, code is more readily maintained.After each functional characteristic is isolated, when to a functional characteristic
In code revision, reconstruct when, will not influence other functional characteristics.Meanwhile when multiple functional characteristic concurrent developments, generation is avoided
The conflict that code generates when merging.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".
Claims (10)
1. a kind of method for generating fractal structure characterized by comprising
Obtain first document with function description;
Parse first functional tree of the first document structure tree;Wherein, the leaf node of first functional tree and first text
Have the function of that the first text segment of minimum description is associated in shelves, and all first text segment composition, first texts
The function description of shelves;
Each first text segment is inputted respectively in the first function interpretive classification model and is obtained and the leaf node phase
Associated clip types;
Obtain point shape cell type of the corresponding leaf node respectively according to each clip types;
Shape cell type is divided to generate the first faculty-fractal structure according to first functional tree and the leaf node;Its
In, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
2. the method according to claim 1, wherein the parsing first functional tree of the first document structure tree,
Include:
Analytic modell analytical model is described according to function, function description parsing is carried out to first document, obtain multiple first parsing results;
Wherein, first parsing result, comprising: the second fragment association relationship between the second text segment and the second text segment
Information;
The first functional tree is generated according to the second text segment and the second fragment association relation information.
3. the method according to claim 1, wherein described obtain correspondence according to each clip types respectively
The leaf node divide shape cell type, comprising:
Concentrate the institute for obtaining the corresponding leaf node from preset kind matched data respectively according to each clip types
State a point shape cell type.
4. the method according to claim 1, wherein described according to first functional tree and the leaf node
Described shape cell type is divided to generate the first faculty-fractal structure, comprising:
A point shape cell type according to the leaf node generates point shape list described in each node of the first functional tree
Element type;
First function identical with first node structure is generated according to the first node structure of first functional tree
Fractal structure;
Shape cell type is divided to obtain the corresponding first faculty-fractal knot according to each node of the first functional tree
The described of the node of structure divides shape unit.
5. according to the method described in claim 4, it is characterized in that, described divide shape unit class according to the leaf node
Type generates point shape cell type of each node of the first functional tree, comprising:
In first functional tree, according to sequence from bottom to top successively according to each child node of each father node
The incidence relation of described point of shape cell type generates point shape cell type of the father node respectively.
6. according to the method described in claim 4, it is characterized in that, described according to each node of the first functional tree
Point shape cell type obtains point shape unit of the node of the corresponding first faculty-fractal structure, comprising:
Obtain point shape cell type of each node of the first functional tree;
It is concentrated to obtain from default point of shape cell data respectively according to each described point of shape cell type and corresponding described divides shape unit;
According to corresponding shape unit and each node of the first functional tree and the first faculty-fractal structure of dividing
The corresponding relationship of each node obtains point shape unit of the node of the first faculty-fractal structure.
7. method according to claim 1-6, which is characterized in that it is described to divide shape unit, it includes at least: functional group
Part information and functional unit status information.
8. a kind of device for generating fractal structure characterized by comprising
Document element is obtained, for obtaining the first document with function description;
Resolution unit, for parsing first functional tree of the first document structure tree;Wherein, the leaf node of first functional tree
It is associated with the first text segment in first document with minimum description, and all first text segment groups
It is described at the function of first document;
Taxon, for each first text segment to be inputted acquisition and institute in the first function interpretive classification model respectively
State the associated clip types of leaf node;
Type units are obtained, for obtaining point shape unit of the corresponding leaf node respectively according to each clip types
Type;
Generation unit, for dividing shape cell type to generate the first function according to first functional tree and the leaf node
It can fractal structure;Wherein, each node of the first faculty-fractal structure, which includes at least, divides shape unit.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor
The method as described in any one of claims 1 to 7 is realized when execution.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing
When device executes, so that one or more of processors realize the method as described in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910699597.6A CN110489087B (en) | 2019-07-31 | 2019-07-31 | Method, device, medium and electronic equipment for generating fractal structure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910699597.6A CN110489087B (en) | 2019-07-31 | 2019-07-31 | Method, device, medium and electronic equipment for generating fractal structure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489087A true CN110489087A (en) | 2019-11-22 |
CN110489087B CN110489087B (en) | 2023-05-30 |
Family
ID=68548855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910699597.6A Active CN110489087B (en) | 2019-07-31 | 2019-07-31 | Method, device, medium and electronic equipment for generating fractal structure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489087B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111831332A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Control system and method for intelligent processor and electronic equipment |
CN111831331A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Fractal reconfigurable instruction set for fractal intelligent processors |
CN111831339A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Instruction execution method and device for intelligent processor and electronic equipment |
CN111831582A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Memory management device and method for intelligent processor and electronic equipment |
CN111831333A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Instruction decomposition method and device for intelligent processor and electronic equipment |
WO2021135373A1 (en) * | 2019-12-31 | 2021-07-08 | 华为技术有限公司 | Associated conflict block presentation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050166178A1 (en) * | 2004-01-23 | 2005-07-28 | Masticola Stephen P. | Process for global software development |
CN102789484A (en) * | 2012-06-28 | 2012-11-21 | 奇智软件(北京)有限公司 | Method and device for webpage information processing |
CN106250164A (en) * | 2016-08-16 | 2016-12-21 | 广州仕邦人力资源有限公司 | A kind of code generating method based on requirement documents and device |
CN107908602A (en) * | 2017-12-15 | 2018-04-13 | 北京文因互联科技有限公司 | A kind of file test method and its device |
CN108614898A (en) * | 2018-05-10 | 2018-10-02 | 爱因互动科技发展(北京)有限公司 | Document method and device for analyzing |
-
2019
- 2019-07-31 CN CN201910699597.6A patent/CN110489087B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050166178A1 (en) * | 2004-01-23 | 2005-07-28 | Masticola Stephen P. | Process for global software development |
CN102789484A (en) * | 2012-06-28 | 2012-11-21 | 奇智软件(北京)有限公司 | Method and device for webpage information processing |
CN106250164A (en) * | 2016-08-16 | 2016-12-21 | 广州仕邦人力资源有限公司 | A kind of code generating method based on requirement documents and device |
CN107908602A (en) * | 2017-12-15 | 2018-04-13 | 北京文因互联科技有限公司 | A kind of file test method and its device |
CN108614898A (en) * | 2018-05-10 | 2018-10-02 | 爱因互动科技发展(北京)有限公司 | Document method and device for analyzing |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021135373A1 (en) * | 2019-12-31 | 2021-07-08 | 华为技术有限公司 | Associated conflict block presentation method and device |
CN111831332A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Control system and method for intelligent processor and electronic equipment |
CN111831331A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Fractal reconfigurable instruction set for fractal intelligent processors |
CN111831339A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Instruction execution method and device for intelligent processor and electronic equipment |
CN111831582A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Memory management device and method for intelligent processor and electronic equipment |
CN111831333A (en) * | 2020-07-16 | 2020-10-27 | 中国科学院计算技术研究所 | Instruction decomposition method and device for intelligent processor and electronic equipment |
CN111831333B (en) * | 2020-07-16 | 2024-03-29 | 中国科学院计算技术研究所 | Instruction decomposition method and device for intelligent processor and electronic equipment |
CN111831582B (en) * | 2020-07-16 | 2024-03-29 | 中国科学院计算技术研究所 | Memory management device and method for intelligent processor and electronic equipment |
CN111831339B (en) * | 2020-07-16 | 2024-04-02 | 中国科学院计算技术研究所 | Instruction execution method and device for intelligent processor and electronic equipment |
CN111831331B (en) * | 2020-07-16 | 2024-04-05 | 中国科学院计算技术研究所 | Fractal reconfigurable instruction set for fractal intelligent processor |
Also Published As
Publication number | Publication date |
---|---|
CN110489087B (en) | 2023-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110489087A (en) | A kind of method, apparatus, medium and electronic equipment generating fractal structure | |
CN109034907A (en) | Ad data put-on method and device, electronic equipment, storage medium | |
CN109739478A (en) | Front end project automated construction method, device, storage medium and electronic equipment | |
CN109635100A (en) | A kind of recommended method, device, electronic equipment and the storage medium of similar topic | |
CN109683953A (en) | A kind of method and device carrying out configuration file processing based on visualization interface | |
CN108804327A (en) | A kind of method and apparatus of automatic Data Generation Test | |
CN103049271A (en) | Method and device for automatically generating description document of API (application program interface) | |
US8756407B2 (en) | Configuration rule prototyping tool | |
CN114424257A (en) | Automatic rendering and extraction of form data using machine learning | |
CN112187558B (en) | Data verification method and device and electronic equipment | |
CN106503268B (en) | Data comparison methods, devices and systems | |
US10061761B2 (en) | Real-time dynamic visual aid implementation based on context obtained from heterogeneous sources | |
CN110097341A (en) | A kind of automation O&M management-control method, device, medium and electronic equipment | |
CN110347428A (en) | A kind of detection method and device of code similarity | |
CN110096444A (en) | A kind of management system, application method and equipment generating test case based on excel | |
CN109858024B (en) | Word2 vec-based room source word vector training method and device | |
CN109947431A (en) | A kind of code generating method, device, equipment and storage medium | |
CN112219200A (en) | Facet-based query improvement based on multiple query interpretations | |
Serrano et al. | Multimodal interaction on mobile phones: development and evaluation using ACICARE | |
CN110489106A (en) | A kind of generation method, device, medium and the electronic equipment of project initial code | |
Ryabinin et al. | Novel Circular Graph Capabilities for Comprehensive Visual Analytics of Interconnected Data in Digital Humanities | |
CN106471492A (en) | The action of index resource | |
CN110110153A (en) | A kind of method and apparatus of node searching | |
CN108959294A (en) | A kind of method and apparatus accessing search engine | |
CN110443034A (en) | The recognition methods of risk program file, calculates equipment and medium at device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |