CN113918165A - Method and system for compiling text description type flow description into application automatic operation script - Google Patents

Method and system for compiling text description type flow description into application automatic operation script Download PDF

Info

Publication number
CN113918165A
CN113918165A CN202111178230.3A CN202111178230A CN113918165A CN 113918165 A CN113918165 A CN 113918165A CN 202111178230 A CN202111178230 A CN 202111178230A CN 113918165 A CN113918165 A CN 113918165A
Authority
CN
China
Prior art keywords
flow
description
script
function
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111178230.3A
Other languages
Chinese (zh)
Inventor
谢少翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhiwei Xingyi Shanghai Intelligent Technology Co ltd
Original Assignee
Zhiwei Xingyi Shanghai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhiwei Xingyi Shanghai Intelligent Technology Co ltd filed Critical Zhiwei Xingyi Shanghai Intelligent Technology Co ltd
Priority to CN202111178230.3A priority Critical patent/CN113918165A/en
Publication of CN113918165A publication Critical patent/CN113918165A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/211Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Software Systems (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a system for compiling a text description type flow description into an application automatic operation script, which relate to the technical field of automatic operation systems, wherein the system for compiling the text description type flow description into the application automatic operation script comprises the following steps: and the reading flow description module is used for acquiring the text content of the flow description, opening the file and reading the text content of the flow description mainly through the path of the text file of the flow description provided by the user. The invention can compile the process description into the script of the process automation directly, can greatly reduce the development time for implementing the process automation project, and can effectively standardize the format structure and the annotation structure of the process automation script, improve the readability of the code and the convenience for tracing the problem code, reduce the learning time of the developer for the software, reduce the extra workload and the extra working time, improve the working efficiency, have higher practicability and remarkable progress.

Description

Method and system for compiling text description type flow description into application automatic operation script
Technical Field
The invention relates to the technical field of automatic operation systems, in particular to a method and a system for compiling a text description type flow description into an application automatic operation script.
Background
The traditional robot flow automation software defines operation steps by means of an image-based design tool, and actually additionally increases workload from requirement to development, and the life cycle of a general robot flow automation project is as follows: the method comprises the steps of knowing the existing process, designing the future process, implementing an automatic script, testing, optimizing and online, wherein the description of the process is recorded by text description, drawing a flow chart, and finally completing script development work by drawing the flow chart and compiling codes to a certain degree in robot process automation software by developers.
However, this approach has the following problems:
1. the learning time of a developer for software is additionally increased, and extra workload and extra time are generated due to the fact that the flow chart needs to be drawn for multiple times (when a demand file, a design file and a flow are implemented);
2. different developers often have insufficient comments when designing scripts, resulting in more time spent by others understanding the script or tracing problems.
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a method and a system for compiling a text description type flow description into an application automatic operation script.
In order to achieve the purpose, the invention adopts the following technical scheme: the method and system for compiling the text description type flow description into the application automatic operation script comprises the following steps:
the reading flow description module is used for acquiring the text content of the flow description, opening the file and reading the text content of the flow description mainly through the path of the text file of the flow description provided by the user;
the semantic analysis module is used for extracting a feature vector from the flow description;
the intention identification module is used for identifying the intention of the sentences in the flow description, calculating the intention of each sentence in the flow description through a trained long-short term memory model and a comprehensive algorithm of a keyword rule interpretation method, then storing the intention in a matrix of the sentences and the intention, and after the sentence intention is processed, the system enables a user to provide information of each sentence for completion through an interface, so that the information required for generating a flow automation script is prepared;
and the automatic script generation module is used for generating a flow automation script, after the intention and the information completion of the flow description are processed, the system generates an initial function of the flow automation script, then generates a step function for each sentence, then generates a main function of the script, and finally integrates the functions into the flow automation script and stores the flow automation script in a local script directory.
In order to facilitate semantic analysis, the invention has the improvement that in a semantic analysis module, the semantic analysis module mainly utilizes a natural language processing technology to perform sentence segmentation and part-of-speech analysis on the flow text description, so as to extract the characteristic vector of the flow text description and store the characteristic vector in a matrix of sentences and characteristic vectors.
In order to avoid modification conflict, the invention improves that the text file is locked in the process of opening the file and reading the flow description text content by the reading flow description module so as to prevent data from changing in the middle.
In order to improve the fault tolerance rate, the invention improves the method that the flow description is mainly text content.
The method for compiling the text description type flow description into the application automatic operation script comprises the following steps:
s01: acquiring a flow text description, wherein a user firstly manually inputs the flow text description and stores the flow text description into a text file;
s10: performing semantic processing on the flow text description, and after the contents of the flow text description are read by the flow text description reading module, performing sentence segmentation and part-of-speech analysis on the flow text description by the system through the semantic analysis module so as to extract a feature vector of the flow text description;
s20: step intention judgment is carried out, and intention judgment is carried out on the flow text description through an intention identification module;
s30: obtaining operation control information completion, completing the intention, mainly supplementing some necessary parameters, such as webpage opening intention, requiring a user to manually complete URL addresses of opened websites, and finally storing the completed intention;
s40: and generating an automatic script, generating an initial function, generating a function of which the flow explains each step, and generating a main running function to generate a complete function, integrating all function codes into the automatic script, and storing the automatic script as an independent script file to a local disk of a user computer for persistence.
In order to facilitate the understanding of the working personnel, the invention is improved in that in the step of S01, the flow text description means that the relevant steps in the business flow are described through texts, and the operation of the software application and the generation of the relevant electronic file are included.
In order to improve the generation efficiency, the invention improves that, in the step S40, the generating initial function is specifically: the system generates an initial function when the automatic script runs, wherein the initial function comprises initialization of a core component of the process automation tool and initialization of parameters of a running environment, and the function for generating the process description steps specifically comprises the following steps: the system generates step functions for the respective steps based on the intention of the flow description and the completed information acquired in steps S20 and S30.
In order to improve the readability of the code, the invention improves that, in step S40, the generating the main operation function is specifically: and generating a main running function, wherein the main running function is responsible for fusing the initial function and the step function together to form a running function when the automatic script is started, and simultaneously the main running function also comprises function annotation, function signature and a function main body.
Compared with the prior art, the method and the device can compile the process description into the script with the automatic process by directly compiling the process description, greatly reduce the development time for implementing the process automation project, effectively standardize the format structure and the annotation structure of the script with the automatic process, improve the readability of codes and the convenience for tracking problem codes, reduce the learning time of developers for software, reduce extra workload and extra working time, improve the working efficiency, have higher practicability and have remarkable progress.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an architectural diagram illustrating the compilation of a textual description flow specification into an application automation script method and system in accordance with the present invention;
FIG. 2 is a step diagram of a method and system for compiling a word description flow specification into an application automation script.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first embodiment, referring to fig. 1-2, a textual description flow specification is compiled into an application automation script system, and the textual description flow specification is compiled into the application automation script system including: the reading flow description module is used for acquiring the text content of the flow description, opening the file and reading the text content of the flow description mainly through the path of the text file of the flow description provided by the user; the semantic analysis module is used for extracting a feature vector from the flow description; the intention identification module is used for identifying the intention of the sentences in the flow description, calculating the intention of each sentence in the flow description through a trained long-short term memory model and a comprehensive algorithm of a keyword rule interpretation method, then storing the intention in a matrix of the sentences and the intention, and after the sentence intention is processed, the system enables a user to provide information of each sentence for completion through an interface, so that the information required for generating a flow automation script is prepared; and the automatic script generation module is used for generating a flow automation script, after the intention and the information completion of the flow description are processed, the system generates an initial function of the flow automation script, then generates a step function for each sentence, then generates a main function of the script, and finally integrates the functions into the flow automation script and stores the flow automation script in a local script directory.
In this embodiment, in the semantic analysis module, the semantic analysis module mainly performs sentence segmentation and part-of-speech analysis on the flow text description by using a natural language processing technology, so as to extract a feature vector of the flow text description, and store the feature vector in a matrix of sentences and feature vectors, thereby effectively improving an analysis effect.
In this embodiment, in the process of opening a file and reading the flow description text content by the flow description reading module, the text file is locked, and the flow description is mainly the text content, so as to prevent data from being changed in the middle, avoid conflict of the flow description text content caused by file change, and improve reliability.
The method for compiling the text description type flow description into the application automatic operation script comprises the following steps:
s01: acquiring a flow text description, wherein a user firstly manually inputs the flow text description and stores the flow text description into a text file;
s10: performing semantic processing on the flow text description, and after the contents of the flow text description are read by the flow text description reading module, performing sentence segmentation and part-of-speech analysis on the flow text description by the system through the semantic analysis module so as to extract a feature vector of the flow text description;
s20: step intention judgment is carried out, and intention judgment is carried out on the flow text description through an intention identification module;
s30: obtaining operation control information completion, completing the intention, mainly supplementing some necessary parameters, such as webpage opening intention, requiring a user to manually complete URL addresses of opened websites, and finally storing the completed intention;
s40: and generating an automatic script, generating an initial function, generating a function of which the flow explains each step, and generating a main running function to generate a complete function, integrating all function codes into the automatic script, and storing the automatic script as an independent script file to a local disk of a user computer for persistence.
In this embodiment, in step S01, the process text description means that the relevant steps in the business process are described by text, and includes the operation of the software application and the generation of the relevant electronic file.
In this embodiment, in the step S40, the generating the initial function specifically includes: the system generates an initial function when the automatic script runs, wherein the initial function comprises initialization of a core component of the process automation tool and initialization of parameters of a running environment, and the function for generating the process description steps specifically comprises the following steps: the system generates step functions for each step based on the intention of the flow description and the completed information acquired in steps S20 and S30, and ensures normal operation of function generation.
In this embodiment, in the step S40, the generating the main operation function specifically includes: and generating a main operation function, wherein the main operation function is responsible for fusing the initial function and the step function together to form an operation function when the automatic script is started, and simultaneously, the main operation function also comprises function annotation, function signature and a function main body, so that the maintainability can be improved through the function annotation, the convenience of a worker in code reading is also improved, and the working efficiency is further improved.
It can be seen from the above embodiments that the invention can greatly reduce the development time for implementing the process automation project by directly compiling the process description into the process automation script, and can effectively standardize the format structure and annotation structure of the process automation script, improve the readability of the code and the convenience of tracing the problem code, reduce the learning time of the developer for the software, and also reduce the extra workload and extra working time, thereby improving the working efficiency, having higher practicability and remarkable progress.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. The system for compiling the text description type flow description into the application automatic operation script is characterized in that the system for compiling the text description type flow description into the application automatic operation script comprises the following steps:
the reading flow description module is used for acquiring the text content of the flow description, opening the file and reading the text content of the flow description mainly through the path of the text file of the flow description provided by the user;
the semantic analysis module is used for extracting a feature vector from the flow description;
the intention identification module is used for identifying the intention of the sentences in the flow description, calculating the intention of each sentence in the flow description through a trained long-short term memory model and a comprehensive algorithm of a keyword rule interpretation method, then storing the intention in a matrix of the sentences and the intention, and after the sentence intention is processed, the system enables a user to provide information of each sentence for completion through an interface, so that the information required for generating a flow automation script is prepared;
and the automatic script generation module is used for generating a flow automation script, after the intention and the information completion of the flow description are processed, the system generates an initial function of the flow automation script, then generates a step function for each sentence, then generates a main function of the script, and finally integrates the functions into the flow automation script and stores the flow automation script in a local script directory.
2. The script system for compiling a textual description flow specification according to claim 1, wherein: in the semantic analysis module, the semantic analysis module mainly utilizes natural language processing technology to perform sentence segmentation and part of speech analysis on the flow text description, so as to extract the characteristic vector of the flow text description and store the characteristic vector in a matrix of sentences and characteristic vectors.
3. The script system for compiling a textual description flow specification according to claim 1, wherein: and in the process of opening the file and reading the flow description text content by the flow description reading module, locking the text file to prevent data from being changed in the middle.
4. The script system for compiling a textual description flow specification according to claim 1, wherein: the flow description is mainly text content.
5. The method for compiling the text description type flow description into the application automatic operation script is characterized by comprising the following steps:
s01: acquiring a flow text description, wherein a user firstly manually inputs the flow text description and stores the flow text description into a text file;
s10: performing semantic processing on the flow text description, and after the contents of the flow text description are read by the flow text description reading module, performing sentence segmentation and part-of-speech analysis on the flow text description by the system through the semantic analysis module so as to extract a feature vector of the flow text description;
s20: step intention judgment is carried out, and intention judgment is carried out on the flow text description through an intention identification module;
s30: obtaining operation control information completion, completing the intention, mainly supplementing some necessary parameters, such as webpage opening intention, requiring a user to manually complete URL addresses of opened websites, and finally storing the completed intention;
s40: and generating an automatic script, generating an initial function, generating a function of which the flow explains each step, and generating a main running function to generate a complete function, integrating all function codes into the automatic script, and storing the automatic script as an independent script file to a local disk of a user computer for persistence.
6. The method of claim 5, wherein the script is an application-automation script, and wherein the script comprises: in step S01, the process text description describes the relevant steps in the business process by text, including the operation of the software application and the generation of the relevant electronic file.
7. The method of claim 5, wherein the script is an application-automation script, and wherein the script comprises: in step S40, the generating an initial function specifically includes: the system generates an initial function when the automatic script runs, wherein the initial function comprises initialization of a core component of the process automation tool and initialization of parameters of a running environment, and the function for generating the process description steps specifically comprises the following steps: the system generates step functions for the respective steps based on the intention of the flow description and the completed information acquired in steps S20 and S30.
8. The method of claim 7, wherein the script is an application-automation script comprising: in step S40, the generating the main operation function specifically includes: and generating a main running function, wherein the main running function is responsible for fusing the initial function and the step function together to form a running function when the automatic script is started, and simultaneously the main running function also comprises function annotation, function signature and a function main body.
CN202111178230.3A 2021-10-09 2021-10-09 Method and system for compiling text description type flow description into application automatic operation script Pending CN113918165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111178230.3A CN113918165A (en) 2021-10-09 2021-10-09 Method and system for compiling text description type flow description into application automatic operation script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111178230.3A CN113918165A (en) 2021-10-09 2021-10-09 Method and system for compiling text description type flow description into application automatic operation script

Publications (1)

Publication Number Publication Date
CN113918165A true CN113918165A (en) 2022-01-11

Family

ID=79238584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111178230.3A Pending CN113918165A (en) 2021-10-09 2021-10-09 Method and system for compiling text description type flow description into application automatic operation script

Country Status (1)

Country Link
CN (1) CN113918165A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088825A (en) * 2023-04-03 2023-05-09 广东省信息工程有限公司 Script generation method, visual editor and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088825A (en) * 2023-04-03 2023-05-09 广东省信息工程有限公司 Script generation method, visual editor and storage medium

Similar Documents

Publication Publication Date Title
CN112149399B (en) Table information extraction method, device, equipment and medium based on RPA and AI
CN112015430B (en) JavaScript code translation method, device, computer equipment and storage medium
CN111488174B (en) Method and device for generating application program interface document, computer equipment and medium
CN110347598B (en) Test script generation method and device, server and storage medium
CN111062217B (en) Language information processing method and device, storage medium and electronic equipment
CN113255614A (en) RPA flow automatic generation method and system based on video analysis
CN102804147A (en) Code inspection executing system for performing a code inspection of ABAP source codes
WO2009007181A1 (en) A method, system and computer program for intelligent text annotation
CN111783471B (en) Semantic recognition method, device, equipment and storage medium for natural language
WO2022226716A1 (en) Deep learning-based java program internal annotation generation method and system
CN109710518A (en) Script checking method and device
CN117033249B (en) Test case generation method and device, computer equipment and storage medium
CN113138920B (en) Software defect report allocation method and device based on knowledge graph and semantic role labeling
CN113011461B (en) Software demand tracking link recovery method and electronic device based on classification and enhanced through knowledge learning
CN112417852B (en) Method and device for judging importance of code segment
CN116048610A (en) Flow-driven conversation system implementation method and workflow engine-based conversation robot
CN113918165A (en) Method and system for compiling text description type flow description into application automatic operation script
CN113869789A (en) Risk monitoring method and device, computer equipment and storage medium
CN112965909A (en) Test data, test case generation method and system, and storage medium
CN115878097B (en) Method and system for creating timing task
CN117555519A (en) SysML software demand modeling method and system based on natural language processing
CN115687136A (en) Script program processing method, system, computer equipment and medium
Autili et al. Towards a graphical tool for refining user to system requirements
CN113805861A (en) Code generation method based on machine learning, code editing system and storage medium
CN112559753A (en) Management framework of natural language text processing and analyzing task based on business process management technology

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