CN113448848B - Conversion method and device based on use case method, electronic equipment and storage medium - Google Patents
Conversion method and device based on use case method, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113448848B CN113448848B CN202110715629.4A CN202110715629A CN113448848B CN 113448848 B CN113448848 B CN 113448848B CN 202110715629 A CN202110715629 A CN 202110715629A CN 113448848 B CN113448848 B CN 113448848B
- Authority
- CN
- China
- Prior art keywords
- role
- diagram
- keyword
- keywords
- business
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Machine Translation (AREA)
Abstract
The disclosure provides a conversion method and device based on use case law, electronic equipment and storage medium. The present disclosure relates to the field of artificial intelligence technology, and may be used in the field of financial technology. The transformation method based on the use case method comprises the following steps: extracting keywords in an operation description natural language for expressing a business operation total flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword; generating a character lane diagram for expressing the business operation sub-process executed by each operator character according to each keyword; and combining all the role lane diagrams according to the operation sequence of the business operation total flow so as to generate a use case total diagram for expressing the business operation total flow.
Description
Technical Field
The present disclosure relates to the field of artificial intelligence, and more particularly, to a transformation method and apparatus based on use case law, an electronic device, a computer readable storage medium, and a computer program product.
Background
The current use case method is widely applied to the writing of business requirements. The use case method realizes the expression of the business requirement by using the standardized use case diagram and the structured use case specification together. When the service requirement is expressed in a natural language mode, the case specification inevitably has the problem of language conversion effect, which causes ambiguity, and the requirement integrity is difficult to evaluate rapidly by using the requirement of natural language expression, so that the uncertainty of the requirement quality is increased; the use case diagram can satisfy expression integrity, but is complex to operate for users and has high learning cost.
Disclosure of Invention
In view of this, the present disclosure provides a transformation method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product based on use case law.
The transformation method based on the use case method comprises the following steps:
extracting keywords in an operation description natural language for expressing a business operation total flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
Generating a character lane diagram for expressing the business operation sub-flow executed by each operator character according to the keywords, wherein each character lane diagram comprises character diagram elements and at least one operation diagram element associated with each character diagram element, the character diagram elements are used for expressing the meanings of the character keywords, and the operation diagram elements are used for expressing the meanings of the action keywords and the operation object keywords corresponding to the action keywords; and
And combining all the role lane diagrams according to the operation sequence of the business operation total flow to generate a use case total diagram for expressing the business operation total flow.
According to an embodiment of the present disclosure, further comprising: and adding the business processing rules followed by each business operation sub-flow in each role lane diagram.
According to an embodiment of the present disclosure, extracting keywords in an original natural language for expressing a business operation total flow includes:
Acquiring a role keyword, at least one action keyword corresponding to the role keyword and at least one operation object word corresponding to each action keyword from an original natural language; and
An operation object keyword corresponding to each action keyword is determined from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, wherein determining an operation object keyword corresponding to each action keyword from at least one operation object word corresponding to each action keyword includes:
determining a service type corresponding to the total flow of service operation;
obtaining standard weight of each operation object word under the service type;
and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the present disclosure, generating a character lane diagram corresponding to each character keyword according to each keyword includes:
converting the character keywords into character map elements by adopting an approximate matching method; and
And converting the action keywords and the operation object keywords corresponding to the action keywords into operation map elements by adopting an approximate matching method.
According to embodiments of the present disclosure:
Keywords also include keyword ties;
Each character lane diagram also comprises a gateway judgment diagram element, wherein the gateway judgment diagram element is associated with the key link and is used for expressing the branch operation of the business operation sub-flow;
generating a character lane diagram corresponding to each character keyword according to each keyword further comprises: and converting the key interlinking words into gateway judgment graph elements.
According to an embodiment of the present disclosure, further comprising:
Extracting key elements corresponding to each business operation sub-flow from each role lane diagram of the use case total diagram respectively, wherein the key elements comprise role diagram elements corresponding to each business operation sub-flow and at least one operation diagram element associated with the role diagram elements;
Generating character operation descriptions corresponding to the business operation sub-flows according to the key elements, wherein each character operation description is expressed in a natural language form, each character operation description comprises a character main body, at least one operation predicate associated with the character main body and an operation object associated with each operation predicate, the character main body is used for expressing the meaning of a character graph element, and the operation predicates and the operation object objects associated with the operation predicates are used for expressing the meaning of the operation graph element;
And combining all the character operation descriptions according to the operation sequence of the business operation total flow so as to generate an operation description natural language for expressing the business operation total flow.
According to an embodiment of the present disclosure, wherein: each role lane diagram is added with a business processing rule followed by each business operation sub-flow;
generating a character operation description corresponding to each character map element according to each key element comprises:
And generating role operation descriptions corresponding to the various role graph elements according to the various key elements and the business processing rules followed by each business operation sub-flow.
Another aspect of the disclosure provides a use case law-based conversion device, including a first extraction module, a first generation module, and a first combination module.
The first extraction module is used for extracting keywords in the operation description natural language for expressing the total flow of business operation, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and operation object keywords corresponding to each action keyword.
The first generation module is used for generating a role lane diagram for expressing the business operation sub-flow executed by each operator role according to the keywords, each role lane diagram comprises a role diagram element and at least one operation diagram element associated with each role diagram element, the role diagram element is used for expressing the meaning of the role keywords, and the operation diagram element is used for expressing the meaning of the action keywords and the operation object keywords corresponding to the action keywords.
And the first combination module is used for combining all the role lane diagrams according to the operation sequence of the business operation total flow so as to generate a use case total diagram for expressing the business operation total flow.
According to an embodiment of the present disclosure, the above apparatus further includes: and the adding module is used for adding the business processing rules followed by each business operation sub-flow in each role lane diagram.
According to an embodiment of the disclosure, the first extraction module includes an acquisition unit and a determination unit.
The acquiring unit is used for acquiring the character keywords, at least one action keyword corresponding to the character keywords and at least one operation object word corresponding to each action keyword from the original natural language. And a determining unit configured to determine an operation object keyword corresponding to each action keyword from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, the determining unit includes a first determining subunit, an acquiring subunit, and a second determining subunit.
The first determining subunit is used for determining the service type corresponding to the total flow of the service operation; the obtaining subunit is used for obtaining the standard weight of each operation object word under the service type; and the second determining subunit is used for determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the disclosure, the first generation module includes a first conversion unit and a second conversion unit.
The first conversion unit is used for converting the character keywords into character graph elements by adopting an approximate matching method; and a second conversion unit for converting the action keyword and the operation object keyword corresponding to the action keyword into operation map elements by using an approximate matching method.
According to an embodiment of the present disclosure, the keywords further include keyword links; each character swim lane diagram also includes a gateway judgment diagram element, wherein the gateway judgment diagram element is associated with the keyword and is used for expressing branching operations of the business operation sub-flow.
The first generation module further includes: and the third conversion unit is used for converting the key connecting words into gateway judgment graph elements.
According to an embodiment of the disclosure, the apparatus further includes a second extraction module, a second generation module, and a second combination module.
The second extraction module is used for respectively extracting key elements corresponding to each business operation sub-flow from each role lane diagram of the use case total diagram, wherein the key elements comprise the role diagram elements corresponding to each business operation sub-flow and at least one operation diagram element associated with the role diagram elements.
The second generation module is used for generating character operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each character operation description is expressed in a natural language form, each character operation description comprises a character main body, at least one operation predicate associated with the character main body and operation object objects associated with each operation predicate, the character main body is used for expressing the meaning of the character graph element, and the operation predicates and the operation object objects associated with the operation predicates are used for expressing the meaning of the operation graph element.
And the second combination module combines all the character operation descriptions according to the operation sequence of the business operation total flow so as to generate an operation description natural language for expressing the business operation total flow.
According to an embodiment of the present disclosure, wherein: each role lane diagram is added with the business processing rules followed by each business operation sub-flow.
Generating a character operation description corresponding to each character map element according to each key element comprises: and generating role operation descriptions corresponding to the various role graph elements according to the various key elements and the business processing rules followed by each business operation sub-flow.
Another aspect of the present disclosure provides an electronic device, comprising: one or more processors, and memory; wherein the memory is for storing one or more programs; wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the use case method based transformation method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed, are configured to implement a use case law based transformation method as described above.
Another aspect of the present disclosure provides a computer program product comprising computer executable instructions which, when executed, are for implementing a use case law based transformation method as described above.
According to the embodiment of the disclosure, by adopting the conversion method, key words in the operation description natural language for expressing the total flow of the business operation are extracted, so that key information in the business operation flow is prevented from being missed; and generating a role lane diagram for expressing the business operation sub-flow executed by each operator role according to each keyword, constructing the association relation between the keywords and standardized use case diagram elements, and converting the main flow and alternative flow described by natural language in the use case specification into a standardized activity diagram for expression. Through conversion, the problems of long learning period and great difficulty in drawing an activity diagram can be effectively avoided, and the content of a use case specification expressed in natural language can be explained in an assisted mode, so that service processing logic and rules to be followed by the service processing logic are more complete, semantics are clearer, the quality of the use case specification is improved, meanwhile, the learning cost of operators is saved, and the working efficiency is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the use case based transformation methods and apparatus of the present disclosure may be applied;
FIG. 2 schematically illustrates a flow chart of a use case based conversion method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart of extracting keywords in an original natural language for expressing a business operation overall flow, according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a flow chart of a use case based conversion method according to another embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of a use case based conversion apparatus according to an embodiment of the present disclosure; and
Fig. 6 schematically illustrates a block diagram of an electronic device for implementing a use case based transformation method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
It should be noted that the transformation method and device based on the use case method of the present disclosure may be used in the technical field of artificial intelligence, the technical field of finance, and any field other than the technical field of artificial intelligence and the financial field, and the application field of the transformation method and device based on the use case method of the present disclosure is not limited.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the public order harmony is not violated.
Embodiments of the present disclosure provide a use case based transformation method comprising:
extracting keywords in an operation description natural language for expressing a business operation total flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
Generating a character lane diagram for expressing a business operation sub-process executed by each operator character according to each keyword, wherein each character lane diagram is expressed in a use diagram form, each character lane diagram comprises character diagram elements and at least one operation diagram element associated with each character diagram element, each character diagram element is used for expressing the meaning of the character keyword, and each operation diagram element is used for expressing the meaning of the action keyword and the operation object keyword corresponding to the action keyword; and combining all the role lane diagrams according to the operation sequence of the business operation total flow so as to generate a use case total diagram for expressing the business operation total flow.
Before describing embodiments of the present disclosure in detail, the following description is given to a system structure and an application scenario related to the method provided by the embodiments of the present disclosure.
FIG. 1 schematically illustrates an exemplary system architecture 100 to which the use case based transformation methods and apparatus of the present disclosure may be applied. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a client 101 and a server 102. The client 101 and the server 102 may communicate over a network, which may include various connection types, such as wired and/or wireless communication links, and the like.
A user may interact with the server 102 through the client 101 to receive or send messages, etc. The client 101 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 102 may be a server providing various services, and may perform analysis processing according to a request from the client 101, and feed back processing results (e.g., information, data, etc. acquired or generated according to a user request) to the terminal device.
It should be noted that the use case method-based transformation method provided in the embodiments of the present disclosure may be generally performed by the server 102. Accordingly, the use case law based conversion device provided by the embodiments of the present disclosure may be generally disposed in the server 102. The use case based translation method provided by the embodiments of the present disclosure may also be performed by a server or cluster of servers other than the server 102 and capable of communicating with the server 102. Accordingly, the use case based conversion device provided by the embodiments of the present disclosure may also be disposed in a server or a server cluster different from the server 102 and capable of communicating with the server 102. Or the use case law-based conversion method provided by the embodiment of the present disclosure may also be executed by the terminal device of the client 101. Accordingly, the conversion device based on use case law provided in the embodiment of the present disclosure may also be disposed in the terminal device of the client 101.
According to the embodiment of the disclosure, the conversion method based on the use case method provided by the embodiment of the disclosure can realize the mutual conversion between the natural language and the use case diagram, and a user can freely select the display mode according to the needs.
The user inputs the case name to be queried in the terminal device through the client 101, the server 102 returns the request result related to the case name according to the user request, namely, the request result is displayed to the user in a pre-stored display mode (the case specification expressed in natural language or the activity diagram expressed in an illustration mode) in the system, and after the user obtains the case display result, the user can select to convert the case display result into another display mode.
For example, a system pre-stores a case specification display mode expressed in natural language, a user selects a mode of converting the case specification display mode into a case diagram, the display mode can be selected as the case diagram, a request of converting a format is initiated to a server 102 through a client 101, after the request is received by the server 102, the case-based conversion method provided by the embodiment is adopted to realize conversion between the natural language and the case diagram, in the process of executing conversion by using the method, a word library table (including a role word library, an action word library and an operation object keyword library) in a database can be queried, standard words with the same semantics as corresponding role words, verbs and operation object words in the natural language are obtained, the standard words are filled in corresponding filling positions in the case diagram, and finally the user is displayed in the form of the case diagram.
When the service requirement is expressed in a natural language mode based on the use case specification, the problem of language conversion effect can be avoided, ambiguity can be caused, the requirement of natural language expression is difficult to quickly evaluate, and the uncertainty of the requirement quality is increased; the use case diagram can satisfy expression integrity, but is complex to operate for users and has high learning cost. Accordingly, embodiments of the present disclosure provide a use case based transformation method that can achieve inter-transformation between natural language and use case diagrams.
FIG. 2 schematically illustrates a flow chart of a use case based conversion method according to an embodiment of the disclosure.
As shown in fig. 2, the method includes operations S201 to S203.
In operation S201, keywords in an operation description natural language for expressing a total flow of business operations are extracted, wherein the keywords include at least one character keyword, at least one action keyword corresponding to each character keyword, and an operation object keyword corresponding to each action keyword.
In operation S202, a character lane diagram for expressing a business operation sub-process performed by each operator character is generated according to the respective keywords, wherein each character lane diagram is expressed in the form of a graph, each character lane diagram includes a character diagram element and at least one operation diagram element associated with each character diagram element, the character diagram element is used for expressing meanings of character keywords, and the operation diagram element is used for expressing meanings of action keywords and operation object keywords corresponding to the action keywords.
In operation S203, all the character lane diagrams are combined in the operation order of the business operation total flow to generate a use case total diagram for expressing the business operation total flow.
According to the embodiment of the disclosure, in the application scenario of the embodiment of the disclosure, a user inputs a case name to be queried in a terminal device, a server displays the case name to the user in a pre-stored display mode (a case specification expressed in natural language or an activity diagram expressed in an illustration mode) in a system according to a user request, and after the user obtains a case display result, the user can select to convert the case display result into another display mode.
According to an embodiment of the disclosure, the method is a method for converting a natural language into a use case diagram, wherein a use case specification expresses a service scene by using the natural language, and the use case specification includes a main scene and an alternative scene, which are both expressed by using the natural language. The elements of the scene comprise words such as roles, descriptions, verbs and conjunctions, and in order to ensure effective and accurate word segmentation conversion between the active graph and the natural language, a standard word stock needs to be established in advance, wherein the standard word stock comprises a role word stock, an active word stock, an operation object keyword stock and the like, and standard words of the roles, the execution actions and the operation object are respectively pre-stored in association with corresponding business processes, are used for constructing a usage graph and are used for filling corresponding graph elements in the usage graph.
According to an embodiment of the present disclosure, in particular, in operation S201, extracting keywords from operation description natural language for expressing the total flow of business operations, the method specifically comprises character keywords, action keywords operation object keywords. For example, in natural language: the teller opens two kinds of accounts for the user and binds one kind of accounts, and the role keywords are extracted as follows: the teller, the action key words are opened and bound; the operation object keywords corresponding to the corresponding action keywords are two types of accounts and one type of account.
According to an embodiment of the present disclosure, in particular, a character lane diagram for expressing a business operation sub-process performed by each operator character is generated according to respective keywords in operation S202. For example, in the above illustration, based on the extracted role keyword: teller, action keywords: and opening and binding the two kinds of accounts and the one kind of accounts of the operation object keywords corresponding to the corresponding action keywords, and generating a role lane diagram.
The character map elements of the character lane map are filled with character class standard words converted from character keywords: teller (standard words pre-stored in standard word stock are also teller, so conversion is not needed here).
The operation diagram elements of the character lane diagram comprise two operation diagram elements which respectively represent two sequential actions executed by the character, and the two operation diagram elements are respectively filled with standard operation words converted by action keywords: open an account, and associate an account. The standard operation word is formed by combining an execution action class standard word and an operation object keyword corresponding to a corresponding action keyword, for example, the execution action class standard word is used in the above example: opening and operating object keyword accounts, and forming: opening an account; by the execution action class standard word: binding and operating the object keyword account, and forming: an account is associated.
According to the embodiment of the disclosure, the character class standard words, the execution action class standard words and the operation object keywords are obtained from a standard word library, the standard words are used for being filled in corresponding graph elements in the usage graph to construct and form each character lane graph, and finally all the character lane graphs are combined according to the operation sequence of the total business operation flow to generate a usage total graph for expressing the total business operation flow and are displayed to a user.
According to an embodiment of the present disclosure, in the foregoing operations, each business operation step is a minimum unit in the graph, each operation step has an operation type, which may be a start point, an end point, a judgment, an intermediate step, and so on, each operation has a corresponding role, corresponds to a role lane in the application graph, and each operation allows to own and access to its previous step and next step, but is not necessary, for example, the start point is no previous step, the end point is no next step, the judgment may allow a plurality of next steps, and each next step has a condition attribute. In addition, the graphic location of the use case diagram may be generated by default, and the user may manually adjust the location and save it.
According to the embodiment of the disclosure, in the above operation, after the use case total graph is generated, the operation may be manually adjusted so as to perfect the presentation of the business process.
According to embodiments of the present disclosure, in order to distinguish between new operations or reference to a pre-stored operation, special symbols may be added to the new operation steps to denote the new steps.
According to the embodiment of the disclosure, by adopting the conversion method, key words in the operation description natural language for expressing the total flow of the business operation are extracted, so that key information in the business operation flow is prevented from being missed; and generating a role lane diagram for expressing the business operation sub-flow executed by each operator role according to each keyword, constructing the association relation between the keywords and standardized use case diagram elements, and converting the main flow and alternative flow described by natural language in the use case specification into a standardized activity diagram for expression. Through conversion, the problems of long learning period and great difficulty in drawing an activity diagram can be effectively avoided, and the content of a use case specification expressed in natural language can be explained in an assisted mode, so that service processing logic and rules to be followed by the service processing logic are more complete, semantics are clearer, the quality of the use case specification is improved, meanwhile, the learning cost of operators is saved, and the working efficiency is improved.
According to an embodiment of the present disclosure, the above-mentioned use case law-based transformation method further includes: and adding the business processing rules followed by each business operation sub-flow in each role lane diagram.
According to the embodiments of the present disclosure, the business processes represented by the illustrations, while being relatively straightforward, are relatively general, and business persons unfamiliar with the business processes are sometimes difficult to understand by way of illustration only the specific operation methods required to execute the business processes, and thus, the business processing rules to be followed by the specific operation steps in the business operation sub-processes are added at the corresponding positions in the illustrations. For example, business rules to be followed for performing the operation may be added at the positions of the block diagram of the operation chart elements corresponding to the operation steps displayed only with "open account" in the usage chart, for example, it may be explained what kind of account is opened, what information needs to be verified when the account is opened, and so on.
According to the embodiment of the disclosure, by adding the business processing rule followed by each business operation sub-flow, for the business with more complex business processing rule, separation of the processing steps from the business rule followed by the business processing rule increases the implementation difficulty of the requirement list and research and development, and the integration of the activity diagrams is beneficial to reducing the risk, so that the business personnel can be helped to know the specific operation method required by executing the business flow, and misoperation in the business execution process is avoided. On the other hand, in the process of converting the use case diagram into natural language, the information in the diagram element is combined with the description of the business processing rule to convert the use case diagram into accurate natural language.
Fig. 3 schematically illustrates a flowchart of extracting keywords in an original natural language for expressing a total flow of business operations according to an embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S301 to S302.
In operation S301, the original natural language is segmented so as to obtain a character keyword, at least one action keyword corresponding to the character keyword, and at least one operation object word corresponding to each action keyword from the original natural language; and
In operation S302, an operation object keyword corresponding to each action keyword is determined from at least one operation object word corresponding to each action keyword. Specifically, the specific operation of this operation is: determining a service type corresponding to the total flow of service operation; obtaining standard weight of each operation object word under the service type; and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to the embodiment of the disclosure, specifically, in the above operation S301, the original natural language is segmented, so that the natural language description input by the user may be segmented by using a segmentation technique, and the accurate segmentation may be implemented by using a segmentation model and combining the well-constructed role library and verb library, for example, "a domain architect logs in a framework analysis platform, inputs approval comments", and segments the results into: the method comprises the steps of inputting/approving/opinion by a domain architect/login/architecture analysis/platform, wherein character keywords are the domain architects, and the character keywords are the operator characters which are to be used as the primary flow steps of an activity diagram and are as follows: "login", "enter"; nouns following the action keyword are operation object words.
According to the embodiment of the present disclosure, specifically, in the above-described operation S302, since the number of operation object words may be large, it is necessary to determine an operation object keyword corresponding to each action keyword from the operation object words, as the filling content in the operation map element of the activity map flow step. When the operation is executed, specifically, a standard word stock can be queried, and various keywords under different types of services and weights of the keywords are recorded in the standard word stock, so that standard weights of each operation object word under the service type can be obtained from the standard word stock, a word with the highest standard weight is selected as the operation object keyword, and the operation step with the highest association degree is matched and corresponds to the operation diagram element in the activity diagram.
According to the embodiment of the disclosure, the standard word library includes a character word library, an action word library, an operation object keyword library, and the like, wherein standard words of a character class, an execution action class, and an operation object class related to a corresponding business process, and weights of the individual standard words are respectively pre-stored, and when the weights are set, the weights are set according to the occurrence proportion of the segmentation words. For example: an asset named card open, described as providing a card open function for a customer and a binding saving function. The word segmentation and weight configuration are as follows: customer 3, offer 2, open card 5, function 1, and 1, bind 2, save 5, function 1. The standardization is as follows: providing 2/14, opening a card 5/14, binding 2/14, saving 5/14, (normalized word segmentation weight of each asset is added to be 1), and calculating a weight value corresponding to the business to be 5/14 assuming that the keyword is removed and the customer is opened.
According to the embodiment of the disclosure, standard words and weight configurations thereof in the standard word library can be updated periodically according to service requirements. For example, the character words of the operators matched with the positions can be used as new character words to be put in storage, so that the update of the word library is realized, and the matching accuracy of the word segmentation is ensured to be higher.
According to an embodiment of the present disclosure, in a standard thesaurus, various keywords under different types of services, and weights of the keywords are recorded, for example: keywords of the word include account opening, providing, binding, saving and the like, the weight of the keywords is different for different businesses, the weight coefficient of the account opening is 5 for corresponding debit cards, the debit card is 3, the saving is 2, the normalized saving is 5/10,3/10 and 2/10 respectively, the saving is 7 for corresponding debit card access, the debit card is 3, the other is 0, and the normalized saving is 7/10,3/10 respectively.
According to an embodiment of the present disclosure, generating a character lane diagram corresponding to each character keyword according to each keyword includes:
converting the character keywords into character map elements by adopting an approximate matching method; and
And converting the action keywords and the operation object keywords corresponding to the action keywords into operation map elements by adopting an approximate matching method.
For example, the action keyword extracted by word segmentation is "open", and the standard word which is not similar or identical to the semantic meaning of the action keyword is not retrieved in the standard word library is: and (3) associating, namely matching the "on-off operation" into an "associated" keyword, extracting standard operation matched with the "associated" keyword from the use case diagram library according to the "associated" keyword, and finally filling the matched standard operation into the corresponding diagram element of the use case diagram.
According to embodiments of the present disclosure: keywords extracted from natural language also include keywords; each character lane diagram also comprises a gateway judgment diagram element, wherein the gateway judgment diagram element is associated with the key link and is used for expressing the branch operation of the business operation sub-flow; generating a character lane diagram corresponding to each character keyword according to each keyword further comprises: and converting the key interlinking words into gateway judgment graph elements.
According to embodiments of the present disclosure, keywords may be, for example, if, then, vice versa, etc., which would be important words of the gateway judgment element of the use case diagram. In the conversion matching process, if the action keywords are not matched, no corresponding graph node is generated in the graph element, whether the keyword exists or not is judged, and if the keyword exists, the keyword is converted into a gateway judgment element, for example, a plurality of branches are generated.
According to an embodiment of the present disclosure, the above scenario may be, for example: if the customer is a star customer, only a teller is required to take the customer to finish the common card opening on the card opening machine; if the client is a five-star client card opening, the client manager is required to take the window to complete the diamond card opening, and the gateway can be split according to the scene matching keyword: customer level- [ one star level customer ] - [ teller ] machine common card opening, customer level- [ five star level customer ] - [ customer manager ] window diamond card opening.
In the application scenario of the embodiment of the disclosure, when the presentation form of the business process queried in the user system is the use case diagram form, the presentation form of the use case specification instruction expressed in natural language can be selectively converted.
FIG. 4 schematically illustrates a flow chart of a use case based conversion method according to another embodiment of the present disclosure, in accordance with an embodiment of the present disclosure; as shown in fig. 4, the method of converting an instance diagram into natural language includes operations S401 to S403.
In operation S401, key elements corresponding to each business operation sub-flow are extracted from each character lane diagram of the use case total diagram, respectively, wherein the key elements include character diagram elements corresponding to each business operation sub-flow and at least one operation diagram element associated with the character diagram elements.
In operation S402, character operation descriptions corresponding to the respective business operation sub-flows are generated according to the respective key elements, wherein each character operation description is expressed in a natural language form, each character operation description includes a character subject, at least one operation predicate associated with the character subject, and an operation object associated with each operation predicate, the character subject is used to express meanings of character map elements, and the operation predicates and the operation object objects associated with the operation predicates are used to express meanings of operation map elements.
In operation S403, all character operation descriptions are combined in the operation order of the business operation total flow to generate an operation description natural language for expressing the business operation total flow.
According to an embodiment of the present disclosure, wherein: each role lane diagram is added with the business processing rules followed by each business operation sub-flow.
Generating a character operation description corresponding to each character map element according to each key element comprises: and generating role operation descriptions corresponding to the various role graph elements according to the various key elements and the business processing rules followed by each business operation sub-flow.
According to the embodiment of the disclosure, when the case diagram is converted into the natural language, the role diagram elements and at least one operation diagram element associated with the role diagram elements are respectively extracted from each role lane diagram, the key words in the role diagram elements and the operation diagram elements are further extracted, and the key words are accurately converted into the business processing flow described in the natural language by combining with the business processing rule description. For example, the keyword is extracted from the usage graph as "teller opens an account", and the usage graph is combined with the description of the business rule, for example: "open class two accounts, need to verify the number of class two accounts that the user has transacted", convert to natural language: "the teller opens the second class account for the user and verifies the number of the second class accounts that the user has transacted.
According to the embodiment of the disclosure, the use case diagram is converted into the natural language, so that the learning difficulty of readers who are not good at reading the patterns is reduced, and the working efficiency is improved. Meanwhile, the character operation description corresponding to each character image element is generated by combining the business processing rules followed by each business operation sub-flow, so that key information in the business operation flow is prevented from being missed, and the conversion accuracy is improved.
Fig. 5 schematically illustrates a block diagram of a use case based conversion apparatus 500 in accordance with an embodiment of the present disclosure.
The conversion apparatus 500 may be used to implement the method described with reference to fig. 2.
As shown in fig. 5, the conversion apparatus 500 includes: a first extraction module 501, a first generation module 502 and a first combination module 503.
The first extraction module 501 is configured to extract keywords in an operation description natural language for expressing a total flow of business operations, where the keywords include at least one role keyword, at least one action keyword corresponding to each role keyword, and an operation object keyword corresponding to each action keyword.
A first generating module 502, configured to generate, according to the respective keywords, a role lane diagram for expressing a business operation sub-process executed by each operator role, where each role lane diagram is expressed in the form of a usage graph, each role lane diagram includes a role graph element, and at least one operation graph element associated with each role graph element, where the role graph element is used to express meanings of the role keywords, and the operation graph element is used to express meanings of the action keywords and operation object keywords corresponding to the action keywords.
A first combining module 503, configured to combine all role lanes according to the operation sequence of the total business operation flow, so as to generate a use case total graph for expressing the total business operation flow.
According to the embodiment of the disclosure, the first extraction module 501 is adopted to avoid missing key information in the business operation flow by extracting keywords in the operation description natural language for expressing the business operation total flow; through the first generating module 502, a role lane diagram for expressing the business operation sub-flow executed by each operator role is generated according to each keyword, and the association relation between the keywords and standardized use case diagram elements is constructed, so that the main flow and alternative flow described by natural language in the use case specification can be converted into standardized activity diagrams for expression. Through conversion, the problems of long learning period and great difficulty in drawing an activity diagram can be effectively avoided, and the content of a use case specification expressed in natural language can be explained in an assisted mode, so that service processing logic and rules to be followed by the service processing logic are more complete, semantics are clearer, the quality of the use case specification is improved, meanwhile, the learning cost of operators is saved, and the working efficiency is improved.
According to an embodiment of the present disclosure, the above apparatus further includes: and the adding module is used for adding the business processing rules followed by each business operation sub-flow in each role lane diagram.
According to the embodiment of the disclosure, the first extraction module 501 includes a word segmentation unit and a determination unit.
The word segmentation unit is used for segmenting the original natural language so as to acquire character keywords, at least one action keyword corresponding to the character keywords and at least one operation object word corresponding to each action keyword from the original natural language. And a determining unit configured to determine an operation object keyword corresponding to each action keyword from at least one operation object word corresponding to each action keyword.
According to an embodiment of the present disclosure, the determining unit includes a first determining subunit, an acquiring subunit, and a second determining subunit.
The first determining subunit is used for determining the service type corresponding to the total flow of the service operation; the obtaining subunit is used for obtaining the standard weight of each operation object word under the service type; and the second determining subunit is used for determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
According to an embodiment of the present disclosure, the first generating module 502 includes a first converting unit, a second converting unit.
The first conversion unit is used for converting the character keywords into character graph elements by adopting an approximate matching method; and a second conversion unit for converting the action keyword and the operation object keyword corresponding to the action keyword into operation map elements by using an approximate matching method.
According to an embodiment of the present disclosure, the keywords further include keyword links; each character swim lane diagram also includes a gateway judgment diagram element, wherein the gateway judgment diagram element is associated with the keyword and is used for expressing branching operations of the business operation sub-flow.
The first generation module further includes: and the third conversion unit is used for converting the key connecting words into gateway judgment graph elements.
According to an embodiment of the disclosure, the apparatus further includes a second extraction module, a second generation module, and a second combination module.
The second extraction module is used for respectively extracting key elements corresponding to each business operation sub-flow from each role lane diagram of the use case total diagram, wherein the key elements comprise the role diagram elements corresponding to each business operation sub-flow and at least one operation diagram element associated with the role diagram elements.
The second generation module is used for generating character operation descriptions corresponding to the business operation sub-processes according to the key elements, wherein each character operation description is expressed in a natural language form, each character operation description comprises a character main body, at least one operation predicate associated with the character main body and operation object objects associated with each operation predicate, the character main body is used for expressing the meaning of the character graph element, and the operation predicates and the operation object objects associated with the operation predicates are used for expressing the meaning of the operation graph element.
And the second combination module combines all the character operation descriptions according to the operation sequence of the business operation total flow so as to generate an operation description natural language for expressing the business operation total flow.
According to an embodiment of the present disclosure, wherein: each role lane diagram is added with the business processing rules followed by each business operation sub-flow.
Generating a character operation description corresponding to each character map element according to each key element comprises: and generating role operation descriptions corresponding to the various role graph elements according to the various key elements and the business processing rules followed by each business operation sub-flow.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Or one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which, when executed, may perform the corresponding functions.
For example, any of the first extraction module 501, the first generation module 502, and the first combination module 503 may be combined in one module/unit/sub-unit, or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Or at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the first extraction module 501, the first generation module 502, and the first combination module 503 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging the circuits, or in any one of or a suitable combination of three of software, hardware, and firmware. Or at least one of the first extraction module 501, the first generation module 502 and the first combination module 503 may be at least partly implemented as computer program modules which, when run, may perform the respective functions.
Fig. 6 schematically illustrates a block diagram of an electronic device for implementing a use case based transformation method according to an embodiment of the disclosure. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. The processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 601 may also include on-board memory for caching purposes. The processor 601 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM602, and the RAM 603 are connected to each other through a bus 604. The processor 601 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM602 and/or the RAM 603. Note that the program may be stored in one or more memories other than the ROM602 and the RAM 603. The processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 600 may also include an input/output (I/O) interface 605, the input/output (I/O) interface 605 also being connected to the bus 604. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 602 and/or RAM 603 and/or one or more memories other than ROM 602 and RAM 603 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the use case law based transformation methods provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 601. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and/or installed from the removable medium 611. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.
Claims (10)
1. A use case based transformation method comprising:
Extracting keywords in an operation description natural language for expressing a business operation total flow, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
Generating a role lane diagram for expressing a business operation sub-process executed by each operator role according to the keywords, wherein each role lane diagram comprises a role diagram element and at least one operation diagram element associated with each role diagram element, the role diagram element is used for expressing the meaning of the role keywords, and the operation diagram element is used for expressing the meaning of the action keywords and operation object keywords corresponding to the action keywords; and
Combining all the role lane diagrams according to the operation sequence of the business operation total flow so as to generate a use case total diagram for expressing the business operation total flow;
Extracting key elements corresponding to each business operation sub-flow from each role lane diagram of the use case total diagram, wherein the key elements comprise the role diagram elements corresponding to each business operation sub-flow and at least one operation diagram element associated with the role diagram elements;
Generating character operation descriptions corresponding to the business operation sub-flows according to the key elements, wherein each character operation description is expressed in a natural language form, and each character operation description comprises a character main object, at least one operation predicate associated with the character main object and an operation object associated with each operation predicate, wherein the character main object is used for expressing the meaning of the character graph element, and the operation predicates and the operation object objects associated with the operation predicates are used for expressing the meaning of the operation graph element;
and combining all the role operation descriptions according to the operation sequence of the business operation total flow so as to generate the operation description natural language for expressing the business operation total flow.
2. The method of claim 1, further comprising:
And adding the business processing rules followed by each business operation sub-flow in each role lane diagram.
3. The method of claim 1, wherein the extracting keywords in the original natural language used to express the business operation total flow comprises:
Acquiring the role keywords, at least one action keyword corresponding to the role keywords and at least one operation object word corresponding to each action keyword from the original natural language;
determining a service type corresponding to the service operation total flow;
obtaining standard weight of each operation object word under the service type;
and determining the operation object keywords corresponding to each action keyword according to the standard weight of each operation object word under the service type.
4. The method of claim 1, wherein the generating a character lane graph corresponding to each of the character keywords from each of the keywords comprises:
Converting the character keywords into character map elements by adopting an approximate matching method; and
And converting the action keywords and the operation object keywords corresponding to the action keywords into the operation graph elements by adopting an approximate matching method.
5. The method according to claim 1:
The keywords also comprise keyword interlinkers;
Each role lane diagram further comprises a gateway judgment diagram element, wherein the gateway judgment diagram element is associated with the keyword and is used for expressing branching operation of the business operation sub-flow;
The generating a role lane diagram corresponding to each role keyword according to each keyword further comprises: and converting the key connecting words into the gateway judgment graph elements.
6. The method according to claim 1, wherein: the role lane diagrams are added with business processing rules followed by the business operation sub-flows;
The generating a role operation description corresponding to each role graph element according to each key element comprises the following steps:
And generating role operation descriptions corresponding to the respective role graph elements according to the key elements and the business processing rules followed by each business operation sub-flow.
7. A use case law based conversion device comprising:
The extraction module is used for extracting keywords in the operation description natural language for expressing the total flow of business operation, wherein the keywords comprise at least one role keyword, at least one action keyword corresponding to each role keyword and an operation object keyword corresponding to each action keyword;
A generating module, configured to generate, according to each keyword, a role lane diagram for expressing a business operation sub-process executed by each operator role, where each role lane diagram includes a role diagram element, and at least one operation diagram element associated with each role diagram element, where the role diagram element is used to express a meaning of the role keyword, and the operation diagram element is used to express a meaning of the action keyword and an operation object keyword corresponding to the action keyword; and
The combination module is used for combining all the role lane diagrams according to the operation sequence of the business operation total flow so as to generate a use case total diagram for expressing the business operation total flow;
A second extraction module, configured to extract key elements corresponding to each business operation sub-flow from each role lane diagram of the use case total diagram, where the key elements include a role diagram element corresponding to each business operation sub-flow and at least one operation diagram element associated with the role diagram element;
A second generating module, configured to generate, according to each key element, a role operation description corresponding to each business operation sub-flow, where each role operation description is expressed in a natural language form, each role operation description includes a role main body, at least one operation predicate associated with the role main body, and an operation object associated with each operation predicate, the role main body is used to express a meaning of a role map element, and the operation predicates and the operation object objects associated with the operation predicates are used to express a meaning of the operation map element;
And the second combination module is used for combining all the role operation descriptions according to the operation sequence of the business operation total flow so as to generate an operation description natural language for expressing the business operation total flow.
8. An electronic device, comprising:
One or more processors;
a memory for storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 6.
9. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 6.
10. A computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110715629.4A CN113448848B (en) | 2021-06-25 | 2021-06-25 | Conversion method and device based on use case method, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110715629.4A CN113448848B (en) | 2021-06-25 | 2021-06-25 | Conversion method and device based on use case method, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113448848A CN113448848A (en) | 2021-09-28 |
| CN113448848B true CN113448848B (en) | 2024-08-02 |
Family
ID=77813402
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110715629.4A Active CN113448848B (en) | 2021-06-25 | 2021-06-25 | Conversion method and device based on use case method, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113448848B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114676694B (en) * | 2022-03-25 | 2024-12-24 | 中国工商银行股份有限公司 | Business model generation method, device, equipment, medium and program product |
| CN114638221B (en) * | 2022-03-31 | 2024-11-01 | 中国工商银行股份有限公司 | Business model generation method and device based on business requirements |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104700214A (en) * | 2015-03-12 | 2015-06-10 | 国家电网公司 | Method of managing intelligent distribution and utilization case |
| US20180357998A1 (en) * | 2017-06-13 | 2018-12-13 | Intel IP Corporation | Wake-on-voice keyword detection with integrated language identification |
-
2021
- 2021-06-25 CN CN202110715629.4A patent/CN113448848B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104700214A (en) * | 2015-03-12 | 2015-06-10 | 国家电网公司 | Method of managing intelligent distribution and utilization case |
| US20180357998A1 (en) * | 2017-06-13 | 2018-12-13 | Intel IP Corporation | Wake-on-voice keyword detection with integrated language identification |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113448848A (en) | 2021-09-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10025980B2 (en) | Assisting people with understanding charts | |
| US20180018311A1 (en) | Method and system for automatically extracting relevant tax terms from forms and instructions | |
| CN114358147A (en) | Training method, identification method, device and equipment of abnormal account identification model | |
| CN113469732B (en) | Audit method, device and electronic equipment based on content understanding | |
| US20110022943A1 (en) | Document object model (dom) application framework | |
| US20210295453A1 (en) | Methods, systems and computer program products for facilitating user interaction with tax return preparation programs | |
| CN108073429A (en) | A kind of means of payment collocation method, device, equipment and storage medium | |
| CN113448848B (en) | Conversion method and device based on use case method, electronic equipment and storage medium | |
| CN113507419B (en) | Training method of traffic distribution model, traffic distribution method and device | |
| CN117473066A (en) | Dialogue data processing method and device, electronic equipment and readable storage medium | |
| CN114881739A (en) | Order event processing method and device, electronic equipment and storage medium | |
| CN111897883B (en) | Solid model construction method, device, electronic device and medium | |
| CN114201964B (en) | Public opinion risk identification method, device, electronic device and storage medium | |
| CN116308602A (en) | Recommended product information generation method and device, electronic equipment and medium | |
| CN113935334B (en) | Text information processing method, device, equipment and medium | |
| CN116757430A (en) | Human resource determination method, device and equipment based on project research and development requirements | |
| CN116341945A (en) | Object evaluation method and device, electronic equipment and computer readable storage medium | |
| CN119357042A (en) | Index test methods, devices, equipment, media and program products | |
| CN116414600A (en) | Data automatic checking method, device, equipment and storage medium | |
| CN121166500A (en) | Information processing method, apparatus, device, medium, and program product | |
| CN117788166A (en) | Investment type analysis method, apparatus, device, medium, and program product | |
| CN114707486A (en) | Text processing method, device, equipment, medium and program product | |
| CN119849446A (en) | Design document generation method, device, medium and electronic equipment | |
| CN121328531A (en) | Business document processing method, device, equipment, medium and program product | |
| CN120216800A (en) | HTML5 page processing method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |