CN115345584A - Method and device for setting label based on project customization - Google Patents

Method and device for setting label based on project customization Download PDF

Info

Publication number
CN115345584A
CN115345584A CN202210975885.1A CN202210975885A CN115345584A CN 115345584 A CN115345584 A CN 115345584A CN 202210975885 A CN202210975885 A CN 202210975885A CN 115345584 A CN115345584 A CN 115345584A
Authority
CN
China
Prior art keywords
label
target
tag
project
preset
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
CN202210975885.1A
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.)
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Shenzhen Digital Power Grid Research Institute of China Southern Power Grid 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 Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd filed Critical Shenzhen Digital Power Grid Research Institute of China Southern Power Grid Co Ltd
Priority to CN202210975885.1A priority Critical patent/CN115345584A/en
Publication of CN115345584A publication Critical patent/CN115345584A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for setting a label based on project customization, wherein the method comprises the following steps: acquiring a target label needing project prediction; for any target label, judging whether the state information of the target label is in an enabling state; when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label; and performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label. Therefore, the method and the system can quickly generate the tag library, identify similar projects, improve project management efficiency, reduce labor cost, improve the intelligence of the scheme by an intelligent tag labeling mode, meet personalized management requirements of different levels by hierarchical authority management, intuitively reflect project distribution conditions by a visualization technology and predict project trends.

Description

Method and device for setting label based on project customization
Technical Field
The invention relates to the field of data processing, in particular to a method and a device for setting a label based on project customization.
Background
With the rapid development of big data technology, the number of items in development or daily management becomes more and more, and project-based management also becomes more and more important.
Currently, in a project management system, because a large number of projects are stored and managed in each project management system, and all the projects are displayed in the system in a list form, because the number of the projects and the contents of the project states of the projects are more, manual management is conventionally performed in the form of Excel tables and the like. However, when a project is managed in the project management system, the contents of the project are huge and messy, so that the management process of a manager is complicated and the management efficiency is low.
Therefore, it is important to provide a method for setting a tag based on project customization to improve project management efficiency.
Disclosure of Invention
The invention provides a method and a device for setting a label based on project customization, which can quickly generate a label library, identify similar projects, improve project management efficiency, reduce labor cost, improve the intelligence of the scheme by an intelligent label marking mode, meet personalized management requirements of different levels by hierarchical authority management, intuitively reflect project distribution conditions by a visualization technology and predict project trends; meanwhile, the project is hierarchically and hierarchically managed according to the labels, the special investment is mastered based on the caliber of the labels to go to and be completed, the project is shared to each service domain such as capital construction, projects and finance, the management requirements of each service stage are met, the project label information can be set in a user-defined mode according to different management requirements, project fields do not need to be added at the rear end of the system, the project fields are not developed again, and the development cost is greatly reduced.
In order to solve the technical problem, a first aspect of the present invention discloses a method for setting a tag based on project customization, where the method includes:
acquiring a target label needing project prediction;
for any target label, judging whether the state information of the target label is in an enabling state;
when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label;
and performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
As an optional implementation manner, in the first aspect of the present invention, before the obtaining the target tag for which item prediction is required, the method further includes:
constructing a tag database, wherein the tag database comprises a plurality of types of tags;
wherein the constructing a tag database comprises:
for any predetermined intention label construction requirement, obtaining model information corresponding to an intention label, wherein the model information comprises a preset label database model, a preset version data model, a preset label association data model, a preset label start-stop model, a preset project model and a preset project version model;
constructing basic data corresponding to the intention label according to the model information corresponding to the intention label;
acquiring a business process approval result corresponding to the intention label, and judging whether the approval result meets a preset approval requirement;
and when the judgment result is yes, initializing the basic data corresponding to the intention label to the label database.
As an optional implementation manner, in the first aspect of the present invention, the performing, on all items, a tag tagging operation based on the target tag to obtain a tag tagging result corresponding to the target tag includes:
screening all associated items associated with the target tag from all items according to a preset item screening rule;
constructing corresponding relation information of the target tag and any associated item, wherein the corresponding relation information comprises a target tag version ID, an associated item version ID, target tag year information and associated item corresponding construction unit data;
and determining the corresponding relation information of the target label and all the associated items as a label labeling result corresponding to the target label.
As an optional implementation manner, in the first aspect of the present invention, the performing data analysis on the tag labeling result corresponding to the target tag to obtain a predicted trend of the associated item corresponding to the target tag includes:
performing data division on a tag labeling result corresponding to the target tag to obtain a data fragment set corresponding to the tag labeling result, wherein a data format in each data fragment in the data fragment set is in a key-value pair form, a key value in the key-value pair is construction unit data corresponding to the associated project, target tag year information and a target tag version ID, and a data value in the key-value pair is the associated project version ID;
constructing a map task for each data fragment, and running a map function corresponding to the map task by the map task to process data corresponding to the data fragment to obtain a processing result corresponding to each data fragment;
merging and inputting the processing results corresponding to all the data fragments into a predefined reduce function, and performing grouping statistics on the same key values to obtain statistical results;
and obtaining the associated project prediction trend corresponding to the target label according to the statistical result and a preset prediction analysis algorithm.
As an optional implementation manner, in the first aspect of the present invention, the obtaining, according to the statistical result and a preset predictive analysis algorithm, a predicted trend of an associated item corresponding to the target tag includes:
judging whether the current predicted year is smaller than a preset threshold value or not;
when the current prediction year is judged to be smaller than the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y*a%;
wherein Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and a% is a preset proportion;
when the current prediction year is judged to be greater than or equal to the preset threshold value, calculating the prediction number of the associated items as follows:
Z=Y+((Y-X)/Y)*100)%;
and Z is the predicted number of the associated items, Y is the actual associated item number of the current prediction year, and X is the actual associated item number of the previous year corresponding to the current prediction year.
As an optional implementation manner, in the first aspect of the present invention, the method further comprises:
judging whether a management request of the tag database is received or not;
when the judgment result is yes, judging whether the management authority corresponding to the management request meets the preset authority requirement or not;
when the management authority corresponding to the management request is judged to meet the preset authority requirement, determining a target management label according to the management request;
and executing the management operation corresponding to the management request on the target management tag.
As an optional implementation manner, in the first aspect of the present invention, after performing a tag tagging operation on all items based on the target tag and obtaining a tag tagging result corresponding to the target tag, the method further includes:
acquiring a target display requirement;
determining a visual model corresponding to the target display requirement according to the target display requirement;
and displaying a display result corresponding to the target display requirement based on the visual model and the label labeling result corresponding to the target label.
The second aspect of the present invention discloses a device for setting a tag based on project customization, which comprises:
the acquisition module is used for acquiring a target label needing project prediction;
the judging module is used for judging whether the state information of any target label is in a starting state;
the labeling module is used for performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label when the judging module judges that the state information of the target label is in the starting state;
and the analysis module is used for carrying out data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
a building module for building a tag database before the obtaining module, wherein the tag database comprises a plurality of types of tags;
the specific way for constructing the tag database by the construction module is as follows:
for any predetermined intention label construction requirement, obtaining model information corresponding to an intention label, wherein the model information comprises a preset label database model, a preset version data model, a preset label association data model, a preset label start-stop model, a preset project model and a preset project version model;
constructing basic data corresponding to the intention label according to the model information corresponding to the intention label;
acquiring a business process approval result corresponding to the intention label, and judging whether the approval result meets a preset approval requirement;
and when the judgment result is yes, initializing the basic data corresponding to the intention label to the label database.
As an optional implementation manner, in the second aspect of the present invention, the labeling module includes:
the screening submodule is used for screening all the associated items associated with the target tag from all the items according to a preset item screening rule;
the association submodule is used for constructing corresponding relationship information of the target tag and any associated item, wherein the corresponding relationship information comprises a target tag version ID, an associated item version ID, target tag year information and associated item corresponding construction unit data;
and the determining submodule is used for determining the corresponding relation information of the target label and all the associated items as a label labeling result corresponding to the target label.
As an alternative implementation, in the second aspect of the present invention, the analysis module includes:
the partitioning submodule is configured to perform data partitioning on a tag tagging result corresponding to the target tag to obtain a data shard set corresponding to the tag tagging result, where a data format in each data shard in the data shard set is a key-value pair format, a key value in the key-value pair is the construction unit data corresponding to the associated item, the target tag year information, and the target tag version ID, and a data value in the key-value pair is the associated item version ID;
the processing submodule is used for constructing a map task for each data fragment, the map task runs a map function corresponding to the map task to process data corresponding to the data fragment, and a processing result corresponding to each data fragment is obtained;
the statistical submodule is used for merging and inputting the processing results corresponding to all the data fragments into a predefined reduce function, and performing grouping statistics on the same key values to obtain statistical results;
and the analysis submodule is used for obtaining the associated project prediction trend corresponding to the target label according to the statistical result and a preset prediction analysis algorithm.
As an optional implementation manner, in the second aspect of the present invention, the specific manner of obtaining the associated item predicted trend corresponding to the target tag by the analysis sub-module according to the statistical result and a preset predictive analysis algorithm is as follows:
judging whether the current predicted year is smaller than a preset threshold value or not;
when the current prediction year is judged to be smaller than the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y*a%;
wherein Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and a% is a preset proportion;
when the current prediction year is judged to be greater than or equal to the preset threshold value, calculating the prediction number of the associated items as follows:
Z=Y+((Y-X)/Y)*100)%;
and Z is the predicted number of the associated items, Y is the actual associated item number of the current prediction year, and X is the actual associated item number of the previous year corresponding to the current prediction year.
As an optional embodiment, in the second aspect of the present invention, the apparatus further comprises:
the management module is used for judging whether a management request of the label database is received or not; when the judgment result is yes, judging whether the management authority corresponding to the management request meets the preset authority requirement or not; when the management authority corresponding to the management request is judged to meet the preset authority requirement, determining a target management label according to the management request; and executing the management operation corresponding to the management request on the target management tag.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further comprises:
the display module is used for acquiring a target display requirement after the marking module;
determining a visual model corresponding to the target display requirement according to the target display requirement;
and displaying a display result corresponding to the target display requirement based on the visual model and the label labeling result corresponding to the target label.
The third aspect of the invention discloses another apparatus for setting a tag based on project customization, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of any method for setting the tag based on the item customization disclosed by the first aspect of the invention.
In a fourth aspect, the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute part or all of the steps in any method for setting a tag based on item customization disclosed in the first aspect of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
the invention discloses a method and a device for setting a label based on project customization, wherein the method comprises the following steps: acquiring a target label needing project prediction; for any target label, judging whether the state information of the target label is in an enabling state; when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label; and performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label. Therefore, the method can quickly generate the tag library, identify similar projects, improve project management efficiency, reduce labor cost, improve the intelligence of the scheme by an intelligent tag labeling mode, meet personalized management requirements of different levels by hierarchical authority management, intuitively reflect project distribution conditions by a visualization technology and predict project trends; meanwhile, the project is subjected to hierarchical classification management according to the tags, the special investment is mastered to go to and be completed based on the caliber of the tags, and the special investment is shared to each business domain such as capital construction, project and financial affairs, so that the management requirements of each business stage are met, the project tag information can be set in a user-defined mode according to different management requirements, project fields do not need to be added at the rear end of the system, the project fields are redeveloped, and the development cost is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for setting a tag based on project customization, disclosed in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for setting a tag based on item customization, according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of an apparatus for setting a tag based on item customization, according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another apparatus for setting a tag based on project customization, disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for setting a tag based on item customization, which is disclosed by an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method and a device for setting a label based on project customization, which can quickly generate a label library, identify similar projects, improve project management efficiency, reduce labor cost, improve the intelligence of the scheme by an intelligent label marking mode, meet personalized management requirements of different levels through hierarchical authority management, intuitively reflect project distribution conditions through a visualization technology and predict project trends. The following are detailed descriptions of the respective components.
The invention adopts a micro-service architecture, uses a layered design and adopts an interface-oriented programming principle, firstly defines a service interface, then programs to realize service logic so as to achieve the aim of separating the interface from the realization, and a service access layer is called by a Restful protocol. The method can be used for supporting client sides in different terminal devices, operating systems, language environments and network environments, and enables the service layer micro-service assembly to have the capability of interacting with various client systems and devices. The transmission layer is mainly provided with a service gateway, the service gateway is used for responding to the request of the application layer, then calling an interface of service of the service layer to obtain service data and returning the service data to the application service layer, and the service gateway can greatly improve the combing and control capacity of the micro-service API under the whole system architecture. The service layer provides service calling for other layers and external applications by an HTTP REST interface technical protocol, realizes loose coupling between the service implementation layer and the service function layer, and has the capabilities of service encapsulation, contractual description, discoverability, remote calling, running information monitoring and the like. Whether the service request comes from the inside of the system or the outside of the system, various service components of the service implementation layer can be called only through the service layer.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for setting a tag based on project customization according to an embodiment of the present invention. The method described in fig. 1 may be applied to a device for setting a tag based on item self-definition, where the device for setting a tag based on item self-definition may be an independent device, or may be integrated in a processing device for setting a tag based on item self-definition, and the embodiment of the present invention is not limited thereto. As shown in fig. 1, the method for custom setting tags based on items may include the following operations:
101. and acquiring a target label needing project prediction.
In the embodiment of the invention, the required target label needs to be determined before project prediction is carried out.
102. And for any target label, judging whether the state information of the target label is in an enabling state.
In the embodiment of the invention, the state information of the target tag is divided into two types, one is an activated state, and the other is a deactivated state. For the label in the starting state, subsequent label marking operation can be carried out; for tags in the deactivated state, the tag labeling function is not allowed.
103. And when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label.
In the embodiment of the invention, when the state information of the target label is judged to be the starting state, all items are labeled based on the target label, so that the items are dynamically and flexibly labeled to obtain the corresponding label labeling result.
104. And performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
In the embodiment of the invention, by carrying out statistics and big data analysis on the label labeling result, the classification condition of the project over the years can be analyzed, the related prediction of the project condition of the next year can be realized, and meanwhile, the reason for the difference is analyzed, namely the direction is adjusted.
Therefore, the method described in the embodiment of the invention can rapidly generate the tag library, identify similar items, improve the management efficiency of the items, reduce the labor cost, simultaneously improve the intelligence of the scheme by an intelligent tag labeling mode, meet the personalized management requirements of different levels by hierarchical authority management, intuitively reflect the distribution condition of the items by a visualization technology, and predict the trend of the items.
In an optional embodiment, performing a tag tagging operation on all items based on a target tag to obtain a tag tagging result corresponding to the target tag may include the following operations:
screening all associated items associated with the target tag from all items according to a preset item screening rule;
constructing corresponding relation information of a target tag and any associated project, wherein the corresponding relation information comprises a target tag version ID, an associated project version ID, target tag year information and construction unit data corresponding to the associated project;
and determining the corresponding relation information of the target label and all associated items as a label labeling result corresponding to the target label.
In the embodiment of the invention, the preset project screening rule is related to the target label, and the related projects are screened from the projects according to the preset project screening rule. The statistical analysis of the project labels is realized by using a Hadoop MapReduce technology, for example, after the labels are marked, target label version ID, associated project version ID, target label annual information (version information and the like), construction unit data corresponding to the associated projects and the like are generated, the corresponding relation information formed among the data is determined as a label marking result corresponding to the target labels, and the label marking result is uploaded to a distributed file of the HDFS system.
Therefore, the method described in the embodiment of the invention can be used for constructing the corresponding relation between the target label and the associated project, is favorable for obtaining more comprehensive and clear label marking results, is favorable for carrying out layering and classification management on the project according to the label, meets the management requirements of each service stage, and greatly reduces the development cost.
In another optional embodiment, performing data analysis on the tag labeling result corresponding to the target tag to obtain the predicted trend of the associated item corresponding to the target tag may include the following operations:
performing data division on a tag labeling result corresponding to a target tag to obtain a data fragment set corresponding to the tag labeling result, wherein the data format of each data fragment in the data fragment set is in a key value pair form, key values in key value pairs are building unit data corresponding to an associated project, target tag year information and a target tag version ID, and data values in the key value pairs are associated project version IDs;
constructing a map task for each data fragment, and operating a map function corresponding to the map task by the map task to process data corresponding to the data fragment to obtain a processing result corresponding to each data fragment;
merging and inputting processing results corresponding to all the data fragments into a predefined reduce function, and performing grouping statistics on the same key values to obtain statistical results;
and obtaining the associated project prediction trend corresponding to the target label according to the statistical result and a preset prediction analysis algorithm.
In the embodiment of the invention, firstly, data division is carried out on a label labeling result corresponding to a target label, the label labeling result is divided into a plurality of data fragments, the data format of each data fragment is in a key value pair form, wherein an associated project corresponds to construction unit data, target label year information and a target label version ID corresponds to a key value, and an associated project version ID corresponds to a data value. And constructing a map task for each data fragment, and processing the corresponding data fragment by the map function. And then merging and inputting the processing results corresponding to all the data fragments into a predefined reduce function, performing grouping statistics on the same key values, and finally obtaining a statistical result (for example, the number of items corresponding to the same label in the same year in the same unit). Through the visual feedback of the tag utilization rate through the quantity, the associated item condition of each tag of each unit can be obtained and displayed in a list
Therefore, the method described in the embodiment of the invention can be used for rapidly analyzing the label marking result in a mode of carrying out fragment processing on the data, obtaining the corresponding statistical result, improving the project management efficiency and reducing the labor cost, and meanwhile, the intelligence of the scheme is improved by an intelligent label marking mode.
In yet another optional embodiment, obtaining the predicted trend of the associated item corresponding to the target tag according to the statistical result and a preset predictive analysis algorithm may include the following operations:
judging whether the current predicted year is smaller than a preset threshold value or not;
when the current prediction year is judged to be smaller than the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y*a%;
wherein Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and a% is a preset proportion;
when the current prediction year is judged to be more than or equal to the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y+((Y-X)/Y)*100)%;
wherein, Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and X is the actual number of the associated items of the previous year corresponding to the current prediction year.
In the embodiment of the present invention, for example, if it is the case of the first year, the rule is as follows: the predicted number of associated items = 5% of first year actual condition + first year actual condition; in the case of the second year or the nth year, the situation of the related items in the next year is predicted through actual increase or decrease, for example, the number of predicted N-year related items = nth year actual situation + ((nth year actual situation-nth-1 year actual situation)/nth year actual situation) × 100)%.
Therefore, the method described in the embodiment of the invention can quickly and efficiently calculate the prediction trend of the associated project according to the prediction rule, is beneficial to improving the analysis decision of management personnel, further improves the project management efficiency, reduces the labor cost, and enhances the intelligent level of the scheme.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another tag setting based on item customization according to an embodiment of the disclosure. The method described in fig. 2 may be applied to a device for setting a tag based on item self-definition, where the device for setting a tag based on item self-definition may be an independent device, or may be integrated in a processing device for setting a tag based on item self-definition, and the embodiment of the present invention is not limited thereto. As shown in fig. 2, the method for setting a tag based on item customization may include the following operations:
201. and constructing a label database.
In the embodiment of the invention, model information corresponding to an intention label is acquired according to any predetermined intention label construction requirement, wherein the model information comprises a preset label database model, a preset version data model, a preset label association data model, a preset label start-stop model, a preset project model and a preset project version model; constructing basic data corresponding to the intention label according to the model information corresponding to the intention label; acquiring a business process approval result corresponding to the intention label, and judging whether the approval result meets a preset approval requirement; and when the judgment result is yes, initializing the basic data corresponding to the intention label to the label database.
In the embodiment of the invention, the intention label construction requirement is analyzed, the model information corresponding to the requirement is determined, and the basic data of the intention label is constructed through a preset label database model, a preset version data model, a preset label associated data model, a preset label start-stop model, a preset project model and a preset project version model. Meanwhile, the examination and approval result of the intention label is obtained through a hierarchical examination and approval process realized in bpms, and when the examination and approval result meets the preset examination and approval requirement, basic data corresponding to the intention label are initialized to a label database through a dm tool.
202. And acquiring a target label needing project prediction.
203. And for any target label, judging whether the state information of the target label is in an enabling state.
204. And when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label.
205. And performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
In the embodiment of the present invention, for other descriptions of steps 202 to 205, please refer to the detailed descriptions of steps 101 to 104 in the first embodiment, which is not repeated herein.
Therefore, the method described in the embodiment of the invention can construct the intention label through the preset multi-style model, is beneficial to quickly generating the intention label, and simultaneously meets the personalized management requirements of different levels and different systems through the hierarchical approval process, thereby further improving the project management efficiency, reducing the labor cost and enhancing the intelligent level of the scheme.
In an optional embodiment, the method may further comprise the operations of:
judging whether a management request of a tag database is received or not;
when the judgment result is yes, judging whether the management authority corresponding to the management request meets the preset authority requirement or not;
when the management authority corresponding to the management request is judged to meet the preset authority requirement, determining a target management label according to the management request;
and executing management operation corresponding to the management request on the target management tag.
In the embodiment of the invention, each level can send the management request to the tag database, and when the management request is matched with the preset authority of the level, the initialization of the related tag can be realized, or the operations of adding, deleting and changing the related tag can be performed, so that the personalized authority management is realized.
Therefore, the method described in the embodiment of the invention can manage the respective label libraries of different users and different levels through the authority management, realize the hierarchical management of the labels and the label libraries, facilitate the enhancement of the personalized authority management, meet the personalized management requirements of the users, further improve the project management efficiency, reduce the labor cost, and enhance the intelligent level of the scheme.
In yet another optional embodiment, after performing tag tagging operation on all items based on the target tag and obtaining a tag tagging result corresponding to the target tag, the method may further include the following operations:
acquiring a target display requirement;
determining a visual model corresponding to the target display requirement according to the target display requirement;
and displaying a display result corresponding to the target display requirement based on the visual model and the label labeling result corresponding to the target label.
In the embodiment of the invention, after the label labeling result is obtained or the prediction trend of the associated project is obtained, the visualization model (a dendrogram, a broken line graph, a histogram and the like) corresponding to the target display requirement can be determined according to the obtained target display requirement, and then the display result corresponding to the target display requirement is displayed based on the visualization model.
Therefore, the method described in the embodiment of the invention can prominently display the label labeling result or the associated project prediction trend through the visual model, analyze and compare the difference from the time dimension, is favorable for developing targeted work, further improves the project management efficiency, reduces the labor cost, and enhances the intelligent level of the scheme.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for setting a tag based on item customization according to an embodiment of the present invention. The apparatus described in fig. 3 may be an independent apparatus, or may be integrated into a processing device that sets a tag based on a project customization, which is not limited in the embodiment of the present invention. It should be noted that the apparatus for setting a tag by self-definition based on an item refers to the steps in the method for setting a tag by self-definition based on an item described in the first embodiment and the second embodiment, and detailed description is not repeated in this embodiment, as shown in fig. 3, the apparatus for setting a tag by self-definition based on an item may include:
an obtaining module 301, configured to obtain a target tag that needs to be subjected to project prediction;
a determining module 302, configured to determine, for any target tag, whether state information of the target tag is in an enabled state;
the labeling module 303 is configured to, when the judging module judges that the state information of the target tag is the enabled state, perform a tag labeling operation on all items based on the target tag to obtain a tag labeling result corresponding to the target tag;
the analysis module 304 is configured to perform data analysis on the tag labeling result corresponding to the target tag to obtain a predicted trend of the associated item corresponding to the target tag.
The device described in the embodiment of the invention can rapidly generate the label library, identify similar items, improve the management efficiency of the items, reduce the labor cost, simultaneously improve the intelligence of the scheme by an intelligent label marking mode, meet the personalized management requirements of different levels by hierarchical authority management, intuitively reflect the distribution condition of the items by a visualization technology, and predict the trend of the items.
In an alternative embodiment, as shown in fig. 4, the labeling module 303 may include:
the screening submodule 3031 is configured to screen all associated items associated with the target tag from all items according to a preset item screening rule;
the association submodule 3032 is configured to construct correspondence information between the target tag and any associated item, where the correspondence information includes a target tag version ID, an associated item version ID, target tag year information, and building unit data corresponding to the associated item;
the determining sub-module 3033 is configured to determine, as a tag labeling result corresponding to the target tag, the information of the correspondence between the target tag and all the associated items.
Therefore, the device described in the embodiment of the invention can be used for constructing the corresponding relation between the target label and the associated project, so that more comprehensive and clear label marking results can be obtained, the project can be managed hierarchically and in a classified manner according to the label, the management requirements of each service stage are met, and the development cost is greatly reduced.
In another alternative embodiment, as shown in fig. 4, the analysis module 304 may include:
the partitioning submodule 3041 is configured to perform data partitioning on a tag labeling result corresponding to a target tag to obtain a data fragment set corresponding to the tag labeling result, where a data format in each data fragment in the data fragment set is a key-value pair, a key value in the key-value pair is construction unit data, target tag year information, and a target tag version ID corresponding to an associated item, and a data value in the key-value pair is an associated item version ID;
the processing submodule 3042 is configured to construct a map task for each data fragment, and the map task runs a map function corresponding to the map task to process data corresponding to the data fragment, so as to obtain a processing result corresponding to each data fragment;
a statistics submodule 3043, configured to merge and input processing results corresponding to all data fragments to a predefined reduce function, and perform group statistics on the same key values to obtain a statistical result;
the analysis submodule 3044 is configured to obtain a prediction trend of the associated item corresponding to the target tag according to the statistical result and a preset prediction analysis algorithm.
Therefore, the device described in the embodiment of the invention can perform fragmentation processing on the data, is beneficial to realizing rapid analysis of the label marking result, obtains the corresponding statistical result, improves the project management efficiency, reduces the labor cost, and improves the intelligence of the scheme by the intelligent label marking mode.
In this alternative embodiment, the specific way for obtaining the associated item prediction trend corresponding to the target tag by the analysis submodule 3044 according to the statistical result and the preset prediction analysis algorithm is as follows:
judging whether the current prediction year is smaller than a preset threshold value or not;
when the current prediction year is judged to be smaller than the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y*a%;
wherein Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and a% is a preset proportion;
when the current prediction year is judged to be more than or equal to the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y+((Y-X)/Y)*100)%;
wherein, Z is the predicted number of the associated items, Y is the actual associated item number of the current prediction year, and X is the actual associated item number of the previous year corresponding to the current prediction year.
Therefore, the device described in the embodiment of the invention can quickly and efficiently calculate the prediction trend of the associated project according to the prediction rule, is beneficial to improving the analysis decision of management personnel, further improves the project management efficiency, reduces the labor cost, and enhances the intelligent level of the scheme.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a building module 305 for building a tag database before the obtaining module, wherein the tag database comprises several kinds of tags;
the specific way for the building module 305 to build the tag database is as follows:
acquiring model information corresponding to an intention label for any predetermined intention label construction requirement, wherein the model information comprises a preset label database model, a preset version data model, a preset label association data model, a preset label start-stop model, a preset project model and a preset project version model;
constructing basic data corresponding to the intention label according to the model information corresponding to the intention label;
acquiring a business process approval result corresponding to the intention label, and judging whether the approval result meets a preset approval requirement or not;
and when the judgment result is yes, initializing the basic data corresponding to the intention label to the label database.
Therefore, the device described in the embodiment of the invention can construct the intention label through the preset multi-style model, is beneficial to quickly generating the intention label, and is beneficial to meeting the personalized management requirements of different levels and different systems through the hierarchical approval process, thereby further improving the project management efficiency, reducing the labor cost and enhancing the intelligent level of the scheme.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
a management module 306, configured to determine whether a management request of the tag database is received; when the judgment result is yes, judging whether the management authority corresponding to the management request meets the preset authority requirement or not; when the management authority corresponding to the management request is judged to meet the preset authority requirement, determining a target management label according to the management request; and executing management operation corresponding to the management request on the target management tag.
Therefore, the device described in the embodiment of the invention can manage the label libraries of different users and different levels through the authority management, realize the hierarchical management of the labels and the label libraries, facilitate the enhancement of the personalized authority management, meet the personalized management requirements of the users, further improve the project management efficiency, reduce the labor cost, and enhance the intelligent level of the scheme.
In yet another alternative embodiment, as shown in fig. 4, the apparatus may further include:
the display module 307 is used for acquiring a target display requirement after the labeling module;
determining a visual model corresponding to the target display requirement according to the target display requirement;
and displaying a display result corresponding to the target display requirement based on the visual model and the label labeling result corresponding to the target label.
Therefore, the device described in the embodiment of the invention can prominently display the label marking result or the associated project prediction trend through the visual model, analyze and compare the difference from the time dimension, is beneficial to developing targeted work, further improves the project management efficiency, reduces the labor cost, and enhances the intelligent level of the scheme.
Example four
Referring to fig. 5, fig. 5 is a schematic structural diagram of another apparatus for setting a tag based on project customization, according to an embodiment of the present invention. The apparatus described in fig. 5 may be an independent apparatus, or may be integrated into a processing device that sets a tag based on a project customization, which is not limited in the embodiment of the present invention. As shown in fig. 5, the apparatus for customizing a tag based on an item may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute some or all of the steps of the method for setting tags based on the item customization disclosed in the first embodiment or the second embodiment of the present invention.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer instructions are used for executing steps of the method for setting the tags based on the project customization, which is disclosed by the first embodiment or the second embodiment of the invention.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above technical solutions may essentially or in part contribute to the prior art, be embodied in the form of a software product, which may be stored in a computer-readable storage medium, including a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable Programmable Read-Only Memory (EEPROM), an optical Disc-Read (CD-ROM) or other storage medium capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
It should be noted that computer program code required for the operation of various portions of this specification can be written in any one or more programming languages, including an object oriented programming language such as Java, scala, smalltalk, eiffel, JADE, emerald, C + +, C #, VB.NET, python, and the like, a conventional programming language such as C, visual Basic, fortran2003, perl, COBOL 2002, PHP, ABAP, a dynamic programming language such as Python, ruby, and Groovy, or other programming languages. The program code may run entirely on a computer (PC, embedded smart device, etc.), or as a stand-alone software package on the user's computer, or partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any form of network, such as a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet), or in a cloud computing environment, or as a service using, for example, software as a service (SaaS).
Finally, it should be noted that: the method and apparatus for setting a tag by self-definition based on a project disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solution of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for setting a tag based on project customization is characterized by comprising the following steps:
acquiring a target label needing project prediction;
for any target label, judging whether the state information of the target label is in an enabling state;
when the state information of the target label is judged to be the starting state, performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label;
and performing data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
2. The method for custom setting tags based on items according to claim 1, wherein before obtaining the target tags for item prediction, the method further comprises:
constructing a label database, wherein the label database comprises a plurality of types of labels;
wherein the constructing a tag database comprises:
acquiring model information corresponding to any predetermined intention label construction requirement, wherein the model information comprises a preset label database model, a preset version data model, a preset label association data model, a preset label start-stop model, a preset project model and a preset project version model;
constructing basic data corresponding to the intention label according to the model information corresponding to the intention label;
acquiring a business process approval result corresponding to the intention label, and judging whether the approval result meets a preset approval requirement;
and when the judgment result is yes, initializing the basic data corresponding to the intention label to the label database.
3. The method for setting the tag based on the item customization according to claim 2 or 3, wherein the tag labeling operation is performed on all the items based on the target tag to obtain the tag labeling result corresponding to the target tag, and the method comprises:
screening all associated items associated with the target tag from all items according to a preset item screening rule;
constructing corresponding relation information of the target tag and any associated item, wherein the corresponding relation information comprises a target tag version ID, an associated item version ID, target tag year information and associated item corresponding construction unit data;
and determining the corresponding relation information of the target label and all the associated items as a label labeling result corresponding to the target label.
4. The method for setting the tag based on the project customization according to claim 3, wherein the step of performing data analysis on the tag labeling result corresponding to the target tag to obtain the associated project prediction trend corresponding to the target tag includes:
performing data division on a tag labeling result corresponding to the target tag to obtain a data fragment set corresponding to the tag labeling result, wherein a data format in each data fragment in the data fragment set is in a key-value pair form, a key value in the key-value pair is construction unit data corresponding to the associated project, target tag year information and a target tag version ID, and a data value in the key-value pair is the associated project version ID;
constructing a map task for each data fragment, and running a map function corresponding to the map task by the map task to process data corresponding to the data fragment to obtain a processing result corresponding to each data fragment;
merging and inputting the processing results corresponding to all the data fragments into a predefined reduce function, and performing grouping statistics on the same key values to obtain statistical results;
and obtaining the associated project prediction trend corresponding to the target label according to the statistical result and a preset prediction analysis algorithm.
5. The method for setting the tag based on the project customization according to claim 4, wherein obtaining the associated project prediction trend corresponding to the target tag according to the statistical result and a preset prediction analysis algorithm comprises:
judging whether the current prediction year is smaller than a preset threshold value or not;
when the current prediction year is judged to be smaller than the preset threshold value, calculating the prediction quantity of the associated items as follows:
Z=Y*a%;
wherein Z is the predicted number of the associated items, Y is the actual number of the associated items of the current prediction year, and a% is a preset proportion;
when the current prediction year is judged to be greater than or equal to the preset threshold value, calculating the prediction number of the associated items as follows:
Z=Y+((Y-X)/Y)*100)%;
and Z is the predicted number of the associated items, Y is the actual number of the associated items in the current prediction year, and X is the actual number of the associated items in the previous year corresponding to the current prediction year.
6. The method for custom setting tags based on items according to claim 4 or 5, characterized in that the method further comprises:
judging whether a management request of the tag database is received or not;
when the judgment result is yes, judging whether the management authority corresponding to the management request meets the preset authority requirement or not;
when the management authority corresponding to the management request is judged to meet the preset authority requirement, determining a target management label according to the management request;
and executing the management operation corresponding to the management request on the target management tag.
7. The method for setting the tag based on the item customization according to claim 6, wherein after the tag labeling operation is performed on all the items based on the target tag to obtain the tag labeling result corresponding to the target tag, the method further comprises:
acquiring a target display requirement;
determining a visual model corresponding to the target display requirement according to the target display requirement;
and displaying a display result corresponding to the target display requirement based on the visual model and the label labeling result corresponding to the target label.
8. An apparatus for custom setting a tag based on an item, the apparatus comprising:
the acquisition module is used for acquiring a target label needing project prediction;
the judging module is used for judging whether the state information of the target label is in a starting state or not for any target label;
the labeling module is used for performing label labeling operation on all items based on the target label to obtain a label labeling result corresponding to the target label when the judging module judges that the state information of the target label is in the starting state;
and the analysis module is used for carrying out data analysis on the label labeling result corresponding to the target label to obtain the associated project prediction trend corresponding to the target label.
9. An apparatus for custom setting a tag based on an item, the apparatus comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method for custom setting tags based on items according to any of claims 1-7.
10. A computer storage medium storing computer instructions which, when invoked, perform a method of custom setting tags based on items according to any of claims 1-7.
CN202210975885.1A 2022-08-15 2022-08-15 Method and device for setting label based on project customization Pending CN115345584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210975885.1A CN115345584A (en) 2022-08-15 2022-08-15 Method and device for setting label based on project customization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210975885.1A CN115345584A (en) 2022-08-15 2022-08-15 Method and device for setting label based on project customization

Publications (1)

Publication Number Publication Date
CN115345584A true CN115345584A (en) 2022-11-15

Family

ID=83951348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210975885.1A Pending CN115345584A (en) 2022-08-15 2022-08-15 Method and device for setting label based on project customization

Country Status (1)

Country Link
CN (1) CN115345584A (en)

Similar Documents

Publication Publication Date Title
CN110109750B (en) Virtual resource acquisition method, device, computer equipment and storage medium
WO2021083713A1 (en) Ml-based event handling
CN109766142B (en) Method for customizing user interface, self-service terminal equipment, server and storage medium
CN112711581B (en) Medical data checking method and device, electronic equipment and storage medium
US20210191759A1 (en) Elastic Execution of Machine Learning Workloads Using Application Based Profiling
CN115392501A (en) Data acquisition method and device, electronic equipment and storage medium
US20200301997A1 (en) Fuzzy Cohorts for Provenance Chain Exploration
US11614963B2 (en) Machine learning based runtime optimization
da Silva et al. Online machine learning for auto-scaling in the edge computing
US11663228B2 (en) Automated management of data transformation flows based on semantics
CN111448551B (en) Method and system for tracking application activity data from a remote device and generating a corrective action data structure for the remote device
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN115345584A (en) Method and device for setting label based on project customization
CN115712422A (en) Form page generation method and device, computer equipment and storage medium
CN115543428A (en) Simulated data generation method and device based on strategy template
US11789774B2 (en) Optimization of workload scheduling in a distributed shared resource environment
CN112631719B (en) Data prediction model calling method, device, equipment and storage medium
US11836612B2 (en) Maintaining master data using hierarchical classification
CN114077976A (en) Scheduling processing method, device, equipment and storage medium
CN113722341B (en) Operation data processing method and related device
US11907194B2 (en) Systems and methods for executing and hashing modeling flows
US11334716B2 (en) Document anonymization including selective token modification
US20220270122A1 (en) Information delivery method, apparatus, and device, and computer-readable storage medium
CN113298645A (en) Resource limit adjusting method and device and electronic equipment

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