A method and apparatus for setting a label based on a project custom setting
By using a method of customizing project tags, a tag database is built and intelligent annotation is performed, which solves the problem of messy project content in the project management system and achieves efficient and intelligent project management and trend prediction.
Patent Information
- Application Number
- CN202210975885.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-15
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-08-15
AI Technical Summary
Existing project management systems often contain large and disorganized project content, making management cumbersome and inefficient, and failing to meet personalized management needs.
This paper provides a method for setting custom tags based on projects. By building a tag database and intelligent tag annotation, it can identify similar projects, perform hierarchical permission management and visualization, predict project trends, and meet the management needs of different levels.
It improved project management efficiency, reduced labor costs, enabled intelligent labeling and personalized management, and lowered development costs.
Smart Images

Figure CN115345584B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and in particular to a method and apparatus for setting tags based on project customization. Background Technology
[0002] With the rapid development of big data technology, the number of projects in development or daily management is increasing, and project-based management is becoming increasingly important.
[0003] Currently, project management systems typically store and manage a large number of projects, all displayed in list format. Due to the sheer number of projects and their varying statuses, manual management using spreadsheets like Excel is commonly employed. However, managing projects within a project management system is cumbersome and inefficient due to the vast and complex nature of the project content.
[0004] Therefore, it is particularly important to provide a method for improving project management efficiency by providing a method based on custom project tag settings. Summary of the Invention
[0005] This invention provides a method and apparatus for customizing project tags, which can quickly generate a tag library, identify similar projects, improve project management efficiency, and reduce labor costs. The intelligent tagging method enhances the intelligence of this solution. Hierarchical permission management meets the personalized management needs of different levels, and visualization technology intuitively reflects project distribution and predicts project trends. Simultaneously, projects are managed hierarchically and categorized according to tags, allowing for the tracking of special investment destinations and completion based on tag definitions. This information is shared with various business domains such as infrastructure, projects, and finance, meeting the management requirements of each business stage. Project tag information can be customized according to different management needs without adding project fields to the system backend or redeveloping the system, significantly reducing development costs.
[0006] To address the aforementioned technical problems, the first aspect of this invention discloses a method for setting custom tags based on projects, the method comprising:
[0007] Obtain the target labels for the projects that need to be predicted;
[0008] For any of the target tags, determine whether the status information of the target tag is in an enabled state;
[0009] When it is determined that the status information of the target label is enabled, labeling operations are performed on all items based on the target label to obtain the labeling result corresponding to the target label;
[0010] Data analysis is performed on the labeling results corresponding to the target label to obtain the predicted trend of related items corresponding to the target label.
[0011] As an optional implementation, in the first aspect of the invention, before obtaining the target labels for project prediction, the method further includes:
[0012] Construct a tag database, wherein the tag database includes tags of several categories;
[0013] The construction of the tag database includes:
[0014] For any predetermined intention tag construction requirement, obtain the model information corresponding to the intention tag, wherein the model information includes a preset tag database model, a preset version data model, a preset tag association data model, a preset tag start / stop model, a preset project model, and a preset project version model;
[0015] Based on the model information corresponding to the intention tag, construct the basic data corresponding to the intention tag;
[0016] Obtain the business process approval result corresponding to the intention tag, and determine whether the approval result meets the preset approval requirements;
[0017] When the judgment result is yes, the basic data corresponding to the intention tag is initialized to the tag database.
[0018] As an optional implementation, in the first aspect of the present invention, the step of performing tagging operations on all items based on the target tag to obtain the tagging result corresponding to the target tag includes:
[0019] Based on preset project filtering rules, filter out all associated projects related to the target tag from all projects;
[0020] Construct the correspondence information between the target tag and any of the associated projects, wherein the correspondence information includes the target tag version ID, the associated project version ID, the target tag year information, and the construction unit data corresponding to the associated project;
[0021] The correspondence information between the target label and all the associated items is determined as the label annotation result corresponding to the target label.
[0022] As an optional implementation, in the first aspect of the present invention, the step of performing data analysis on the tag annotation results corresponding to the target tag to obtain the predicted trend of associated items corresponding to the target tag includes:
[0023] The tag labeling results corresponding to the target tag are divided into data segments to obtain a set of data segments corresponding to the tag labeling results. The data format of each data segment in the set of data segments is a key-value pair. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target tag, and the version ID of the target tag. The data value of the key-value pair is the version ID of the associated project.
[0024] A map task is constructed for each data segment, and the map function corresponding to the map task is run to process the data corresponding to the data segment, so as to obtain the processing result corresponding to each data segment.
[0025] The processing results corresponding to all the data shards are merged and input into a predefined reduce function. The same key values are grouped and statistically analyzed to obtain the statistical results.
[0026] Based on the statistical results and the preset predictive analysis algorithm, the predicted trend of related items corresponding to the target label is obtained.
[0027] As an optional implementation, in the first aspect of the present invention, obtaining the predicted trend of associated items corresponding to the target tag based on the statistical results and a preset predictive analysis algorithm includes:
[0028] Determine whether the current forecast year is less than a preset threshold;
[0029] When it is determined that the current predicted year is less than the preset threshold, the predicted number of related projects is calculated as follows:
[0030] Z = Y * a%;
[0031] Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current predicted year, and a% is a preset percentage;
[0032] When it is determined that the current predicted year is greater than or equal to the preset threshold, the predicted number of related projects is calculated as follows:
[0033] Z = Y + ((YX) / Y) * 100)%;
[0034] Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current forecast year, and X is the actual number of related projects in the previous year corresponding to the current forecast year.
[0035] As an optional implementation, in the first aspect of the present invention, the method further includes:
[0036] Determine whether a management request for the tag database has been received;
[0037] When the judgment result is yes, it is determined whether the management permission corresponding to the management request meets the preset permission requirements;
[0038] When it is determined that the management permission corresponding to the management request meets the preset permission requirements, the target management tag is determined according to the management request;
[0039] Perform the management operation corresponding to the management request on the target management tag.
[0040] As an optional implementation, in the first aspect of the present invention, after performing tagging operations on all items based on the target tag to obtain the tagging result corresponding to the target tag, the method further includes:
[0041] Obtain the target display requirements;
[0042] Based on the target display requirements, determine the visualization model corresponding to the target display requirements;
[0043] Based on the visualization model and the label annotation results corresponding to the target label, the display results corresponding to the target display requirements are shown.
[0044] A second aspect of the present invention discloses an apparatus for setting tags based on project customization, the apparatus comprising:
[0045] The acquisition module is used to acquire the target labels that need to be used for project prediction.
[0046] The judgment module is used to determine whether the status information of any target tag is in an enabled state;
[0047] The annotation module is used to perform tag annotation operations on all items based on the target tag when the judgment module determines that the status information of the target tag is enabled, and to obtain the tag annotation result corresponding to the target tag.
[0048] The analysis module is used to perform data analysis on the labeling results corresponding to the target label to obtain the predicted trend of the associated items corresponding to the target label.
[0049] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0050] A building module is used to build a tag database before the acquisition module, wherein the tag database includes tags of several categories;
[0051] The specific method by which the building module constructs the tag database is as follows:
[0052] For any predetermined intention tag construction requirement, obtain the model information corresponding to the intention tag, wherein the model information includes a preset tag database model, a preset version data model, a preset tag association data model, a preset tag start / stop model, a preset project model, and a preset project version model;
[0053] Based on the model information corresponding to the intention tag, construct the basic data corresponding to the intention tag;
[0054] Obtain the business process approval result corresponding to the intention tag, and determine whether the approval result meets the preset approval requirements;
[0055] When the judgment result is yes, the basic data corresponding to the intention tag is initialized to the tag database.
[0056] As an optional implementation, in a second aspect of the invention, the annotation module includes:
[0057] The filtering submodule is used to filter out all associated items related to the target tag from all items according to preset item filtering rules;
[0058] The association submodule is used to construct the correspondence information between the target tag and any of the associated projects, wherein the correspondence information includes the target tag version ID, the associated project version ID, the target tag year information, and the construction unit data corresponding to the associated project;
[0059] The determination submodule is used to determine the correspondence information between the target label and all the associated items as the label annotation result corresponding to the target label.
[0060] As an optional implementation, in a second aspect of the invention, the analysis module includes:
[0061] The partitioning submodule is used to partition the tag labeling results corresponding to the target tag to obtain a set of data fragments corresponding to the tag labeling results. The data format of each data fragment in the set of data fragments is in the form of key-value pairs. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target tag, and the version ID of the target tag. The data value of the key-value pair is the version ID of the associated project.
[0062] The processing submodule is used to construct a map task for each data shard, and the map task runs the map function corresponding to the map task to process the data corresponding to the data shard, so as to obtain the processing result corresponding to each data shard.
[0063] The statistics submodule is used to merge the processing results corresponding to all the data shards and input them into a predefined reduce function, and to perform group statistics on the same key values to obtain the statistical results.
[0064] The analysis submodule is used to obtain the predicted trend of related items corresponding to the target label based on the statistical results and the preset predictive analysis algorithm.
[0065] As an optional implementation, in the second aspect of the present invention, the specific method by which the analysis submodule obtains the predicted trend of associated items corresponding to the target tag based on the statistical results and a preset predictive analysis algorithm is as follows:
[0066] Determine whether the current forecast year is less than a preset threshold;
[0067] When it is determined that the current predicted year is less than the preset threshold, the predicted number of related projects is calculated as follows:
[0068] Z = Y * a%;
[0069] Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current predicted year, and a% is a preset percentage;
[0070] When it is determined that the current predicted year is greater than or equal to the preset threshold, the predicted number of related projects is calculated as follows:
[0071] Z = Y + ((YX) / Y) * 100)%;
[0072] Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current forecast year, and X is the actual number of related projects in the previous year corresponding to the current forecast year.
[0073] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0074] The management module is used to determine whether a management request for the tag database has been received; when the determination result is yes, it determines whether the management permission corresponding to the management request meets the preset permission requirements; when it is determined that the management permission corresponding to the management request meets the preset permission requirements, it determines the target management tag according to the management request; and performs the management operation corresponding to the management request on the target management tag.
[0075] As an optional implementation, in a second aspect of the invention, the apparatus further includes:
[0076] The display module is used to obtain the target display requirements after the annotation module.
[0077] Based on the target display requirements, determine the visualization model corresponding to the target display requirements;
[0078] Based on the visualization model and the label annotation results corresponding to the target label, the display results corresponding to the target display requirements are shown.
[0079] A third aspect of the present invention discloses another device for setting tags based on project customization, the device comprising:
[0080] Memory containing executable program code;
[0081] A processor coupled to the memory;
[0082] The processor calls the executable program code stored in the memory to execute some or all of the steps in any of the methods for setting custom tags based on projects disclosed in the first aspect of the present invention.
[0083] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute some or all of the steps in any of the methods for setting custom tags based on projects disclosed in the first aspect of the present invention.
[0084] Compared with the prior art, the present invention has the following beneficial effects:
[0085] This invention discloses a method and apparatus for custom-setting tags based on projects. The method includes: acquiring target tags for project prediction; determining whether the status information of any target tag is enabled; when the status information of the target tag is enabled, performing tagging operations on all projects based on the target tag to obtain the tagging results corresponding to the target tag; and performing data analysis on the tagging results corresponding to the target tag to obtain the prediction trend of related projects corresponding to the target tag. It is evident that this invention can quickly generate a tag library, identify similar projects, improve project management efficiency, and reduce labor costs. Simultaneously, the intelligent tagging method enhances the intelligence of this solution. Through hierarchical permission management, it meets the personalized management needs of different levels. Through visualization technology, it intuitively reflects the project distribution and predicts project trends. Furthermore, it manages projects hierarchically and categorizes them according to tags, grasping the destination and completion of special investments based on the tag definitions, and sharing this information with various business domains such as infrastructure, projects, and finance to meet the management requirements of each business stage. Project tag information can be customized according to different management needs without adding project fields to the system backend or redeveloping the system, greatly reducing development costs. Attached Figure Description
[0086] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0087] Figure 1 This is a flowchart illustrating a method for setting custom tags based on projects, as disclosed in an embodiment of the present invention.
[0088] Figure 2 This is a flowchart illustrating another method for setting custom tags based on projects, as disclosed in an embodiment of the present invention.
[0089] Figure 3 This is a schematic diagram of the structure of a device based on custom tag settings for projects, as disclosed in an embodiment of the present invention.
[0090] Figure 4 This is a schematic diagram of another device based on custom tag settings for projects disclosed in an embodiment of the present invention;
[0091] Figure 5 This is a schematic diagram of the structure of another device for setting tags based on project customization, as disclosed in an embodiment of the present invention. Detailed Implementation
[0092] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0093] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.
[0094] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0095] This invention discloses a method and apparatus for custom-setting tags based on projects. This method and apparatus can quickly generate a tag library, identify similar projects, improve project management efficiency, and reduce labor costs. Simultaneously, the intelligent tagging method enhances the intelligence of this solution. Through hierarchical permission management, it meets the personalized management needs of different levels. Visualization technology intuitively reflects the project distribution and predicts project trends. These will be described in detail below.
[0096] This invention employs a microservice architecture with a layered design and interface-oriented programming principles. First, service interfaces are defined, then service logic is implemented, achieving separation of interface and implementation. The service access layer uses the RESTful protocol for invocation. It supports clients across different terminal devices, operating systems, language environments, and network environments, enabling the service layer microservice components to interact with various client systems and devices. The transport layer primarily contains a service gateway, which responds to requests from the application layer, calls the service layer's business service interfaces to obtain business data, and returns it to the application service layer. The service gateway significantly enhances the ability to manage and control the microservice APIs within the entire system architecture. The service layer provides service invocations to other layers and external applications using the HTTP REST interface protocol, achieving loose coupling between the service implementation layer and the business function layer. It possesses capabilities such as service encapsulation, contract-based description, discoverability, remote invocation, and runtime information monitoring. Regardless of whether the service request originates from within or outside the system, it must pass through the service layer to invoke the various business components of the service implementation layer.
[0097] Example 1
[0098] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for setting custom tags based on project specifications, as disclosed in an embodiment of the present invention. Figure 1 The described method can be applied to a device for setting custom tags based on project specifications. This device can be a standalone device or integrated into a processing device for setting custom tags based on project specifications; the embodiments of the present invention do not limit this. Figure 1 As shown, this method for setting tags based on project customization can include the following operations:
[0099] 101. Obtain the target labels for the projects that need to be predicted.
[0100] In this embodiment of the invention, the required target labels need to be determined before project prediction.
[0101] 102. For any target tag, determine whether the target tag's status information is enabled.
[0102] In this embodiment of the invention, the status information of the target tag is divided into two types: enabled and disabled. For tags in the enabled state, subsequent tagging operations can be performed; for tags in the disabled state, tagging is not allowed.
[0103] 103. When the status information of the target label is determined to be enabled, labeling operations are performed on all items based on the target label to obtain the labeling results corresponding to the target label.
[0104] In this embodiment of the invention, when the status information of the target tag is determined to be in the enabled state, a "tag" operation is performed on all items based on the target tag, so as to dynamically and flexibly tag the items and obtain the corresponding tag annotation results.
[0105] 104. Perform data analysis on the labeling results corresponding to the target label to obtain the predicted trend of related items corresponding to the target label.
[0106] In this embodiment of the invention, by statistically analyzing the labeling results and conducting big data analysis, the classification of projects over the years can be obtained, enabling the prediction of project conditions for the following year, while also analyzing the reasons for differences and adjusting the direction accordingly.
[0107] As can be seen, the method described in the embodiments of the present invention can quickly generate a tag library, identify similar projects, improve project management efficiency, reduce labor costs, and enhance the intelligence of the solution through intelligent tag labeling. It can also meet the personalized management needs of different levels through hierarchical permission management and intuitively reflect the distribution of projects and predict project trends through visualization technology.
[0108] In an optional embodiment, tagging all items based on the target tag to obtain the tagging results corresponding to the target tag may include the following operations:
[0109] Based on the preset project filtering rules, filter out all related projects that are associated with the target tag from all projects;
[0110] Construct the correspondence information between the target tag and any associated project, wherein the correspondence information includes the target tag version ID, the associated project version ID, the target tag year information, and the construction unit data corresponding to the associated project;
[0111] The correspondence between the target label and all associated items is determined as the label annotation result corresponding to the target label.
[0112] In this embodiment of the invention, preset project filtering rules are related to the target tag. Based on these preset rules, related projects are selected from the projects. Hadoop MapReduce technology is used to perform statistical analysis on the project tags. For example, after tagging, target tag version ID, related project version ID, target tag year information (version information, etc.), and data on the construction unit corresponding to the related project are generated. The correspondence information formed between these data is determined as the tag labeling result corresponding to the target tag and uploaded to the HDFS system distributed file system.
[0113] As can be seen, the method described in the embodiments of the present invention can construct a correspondence between target tags and associated projects, which is conducive to obtaining more comprehensive and clear tag annotation results, and facilitates the hierarchical and classified management of projects based on tags, meeting the management requirements of various business stages and greatly reducing development costs.
[0114] In another optional embodiment, data analysis is performed on the labeling results corresponding to the target label to obtain the predicted trend of related items corresponding to the target label, which may include the following operations:
[0115] The labeling results corresponding to the target label are divided into data segments to obtain a set of data segments corresponding to the labeling results. The data in each data segment of the data segment set is in the form of key-value pairs. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target label, and the version ID of the target label. The data value of the key-value pair is the version ID of the associated project.
[0116] A map task is constructed for each data shard, and the map function corresponding to the map task is run to process the data corresponding to the data shard, so as to obtain the processing result for each data shard.
[0117] The processing results corresponding to all data shards are merged and input into a predefined reduce function. The same key values are grouped and statistically analyzed to obtain the statistical results.
[0118] Based on the statistical results and the preset predictive analysis algorithm, the predicted trend of related items corresponding to the target label is obtained.
[0119] In this embodiment of the invention, the tag labeling results corresponding to the target tag are first divided into several data slices. Each data slice has a key-value pair format, where the associated project's corresponding construction unit data, the target tag's year information, and the target tag's version ID are key-value pairs, and the associated project's version ID corresponds to the data value. For each data slice, a map task is constructed, and this map function processes the corresponding data slice. Then, the processing results of all data slices are merged and input into a predefined reduce function. The same key-value pairs are grouped and statistically analyzed to obtain the final statistical results (e.g., the number of projects corresponding to the same tag in the same year for the same unit). The number visually reflects the tag usage rate, providing information on the associated projects for each tag in each unit, and is displayed in a list.
[0120] As can be seen, the method described in the embodiments of the present invention can facilitate the rapid parsing of labeling results by processing data in segments, thereby obtaining corresponding statistical results, improving project management efficiency, reducing labor costs, and enhancing the intelligence of the solution through intelligent labeling.
[0121] In another optional embodiment, based on statistical results and a preset predictive analysis algorithm, the predicted trend of associated items corresponding to the target label is obtained, which may include the following operations:
[0122] Determine whether the current forecast year is less than a preset threshold;
[0123] When it is determined that the current forecast year is less than a preset threshold, the number of related project forecasts is calculated as follows:
[0124] Z = Y * a%;
[0125] Where Z represents the predicted number of related projects, Y represents the actual number of related projects in the current forecast year, and a% represents the preset percentage;
[0126] When it is determined that the current forecast year is greater than or equal to a preset threshold, the number of related project forecasts is calculated as follows:
[0127] Z = Y + ((YX) / Y) * 100)%;
[0128] Where Z represents the predicted number of related projects, Y represents the actual number of related projects in the current forecast year, and X represents the actual number of related projects in the previous year corresponding to the current forecast year.
[0129] In this embodiment of the invention, for example, if it is the first year, the rule is as follows: the predicted number of related projects = the actual situation in the first year + the actual situation in the first year * 5%; if it is the second year or the nth year, the situation of related projects in the following year is predicted by the actual increase or decrease. For example, the predicted number of related projects in the Nth year = the actual situation in the Nth year + (((the actual situation in the Nth year - the actual situation in the N-1th year) / the actual situation in the Nth year) * 100)).
[0130] As can be seen, the method described in the embodiments of the present invention can quickly and efficiently calculate the predicted trend of related projects according to the prediction rules, which is conducive to improving the analysis and decision-making of managers, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0131] Example 2
[0132] Please see Figure 2 , Figure 2 This is a schematic diagram of another process for setting custom tags based on projects, as disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to a device for setting custom tags based on project specifications. This device can be a standalone device or integrated into a processing device for setting custom tags based on project specifications; the embodiments of the present invention do not limit this. Figure 2 As shown, this method for setting tags based on project customization can include the following operations:
[0133] 201. Construct a tag database.
[0134] In this embodiment of the invention, for any predetermined intention tag construction requirement, the model information corresponding to the intention tag is obtained, wherein the model information includes a preset tag database model, a preset version data model, a preset tag association data model, a preset tag start / stop model, a preset project model, and a preset project version model; based on the model information corresponding to the intention tag, the basic data corresponding to the intention tag is constructed; the business process approval result corresponding to the intention tag is obtained, and it is determined whether the approval result meets the preset approval requirements; when the determination result is yes, the basic data corresponding to the intention tag is initialized to the tag database.
[0135] In this embodiment of the invention, the intention tag construction requirement is parsed to determine the corresponding model information. Basic data for the intention tag is constructed using a preset tag database model, a preset version data model, a preset tag association data model, a preset tag start / stop model, a preset project model, and a preset project version model. Simultaneously, the approval result for the intention tag is obtained through a hierarchical approval process implemented via BPMS. When the approval result meets the preset approval requirements, the basic data corresponding to the intention tag is initialized to the tag database using a DM tool.
[0136] 202. Obtain the target labels for the projects that need to be predicted.
[0137] 203. For any target tag, determine whether the target tag's status information is enabled.
[0138] 204. When the status information of the target label is determined to be enabled, labeling operations are performed on all items based on the target label to obtain the labeling results corresponding to the target label.
[0139] 205. Perform data analysis on the labeling results corresponding to the target label to obtain the predicted trend of related items corresponding to the target label.
[0140] In this embodiment of the invention, for other descriptions of steps 202-205, please refer to the detailed description of steps 101-104 in Embodiment 1 respectively. This embodiment of the invention will not repeat them.
[0141] As can be seen, the method described in the embodiments of the present invention can construct intention tags through preset multi-style models, which is conducive to the rapid generation of intention tags. At the same time, through the hierarchical approval process, it is conducive to meeting the personalized management requirements of different levels and different systems, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0142] In an optional embodiment, the method may further include the following operations:
[0143] Determine whether a management request for the tag database has been received;
[0144] If the judgment result is yes, then determine whether the management permission corresponding to the management request meets the preset permission requirements;
[0145] When it is determined that the management permission corresponding to the management request meets the preset permission requirements, the target management tag is determined based on the management request;
[0146] Perform the management operation corresponding to the management request for the target management tag.
[0147] In this embodiment of the invention, each level can send a management request to the tag database. When the management request matches the preset permissions of that level, the relevant tags can be initialized, or the relevant tags can be added, deleted, or modified, thereby realizing personalized permission management.
[0148] As can be seen, the method described in the embodiments of the present invention can enable different users and different levels to manage their respective tag libraries through permission management, realize hierarchical management of tags and tag libraries, enhance personalized permission management, meet users' personalized management needs, further improve project management efficiency, reduce labor costs, and enhance the intelligence level of the solution.
[0149] In yet another optional embodiment, after performing labeling operations on all items based on the target label to obtain the labeling results corresponding to the target label, the method may further include the following operations:
[0150] Obtain the target display requirements;
[0151] Based on the target display requirements, determine the visualization model corresponding to the target display requirements;
[0152] Based on the visualization model and the label annotation results corresponding to the target labels, the display results corresponding to the target display requirements are presented.
[0153] In this embodiment of the invention, after obtaining the labeling results or the predicted trend of related projects, a visualization model (tree diagram, line chart, histogram, etc.) corresponding to the target display requirements can be determined based on the obtained target display requirements, and then the display results corresponding to the target display requirements can be displayed based on the visualization model.
[0154] As can be seen, the method described in the embodiments of the present invention can highlight the labeling results or the predicted trends of related projects through a visualization model, and analyze and compare the differences from a time dimension, which is conducive to carrying out targeted work, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0155] Example 3
[0156] Please see Figure 3 , Figure 3 This is a schematic diagram of a device for setting custom tags based on projects, as disclosed in an embodiment of the present invention. Figure 3 The described device can be a standalone device or integrated into a processing device for custom-setting tags based on project specifications; this embodiment of the invention does not impose any limitations. It should be noted that the device for custom-setting tags based on project specifications refers to the steps in the method for custom-setting tags based on project specifications described in Embodiments 1 and 2. Detailed descriptions will not be repeated in this embodiment. Figure 3 As shown, the device for setting tags based on project customization may include:
[0157] Module 301 is used to acquire the target labels that need to be used for project prediction.
[0158] The judgment module 302 is used to determine whether the status information of any target tag is enabled for any target tag.
[0159] The annotation module 303 is used to perform label annotation operations on all items based on the target label when the judgment module determines that the status information of the target label is enabled, and obtain the label annotation result corresponding to the target label.
[0160] Analysis module 304 is used to perform data analysis on the label annotation results corresponding to the target label to obtain the predicted trend of related items corresponding to the target label.
[0161] As can be seen, the device described in the embodiments of the present invention can quickly generate a tag library, identify similar projects, improve project management efficiency, reduce labor costs, and enhance the intelligence of the solution through intelligent tag labeling. It can also meet the personalized management needs of different levels through hierarchical permission management and intuitively reflect the project distribution and predict project trends through visualization technology.
[0162] In an optional embodiment, such as Figure 4 As shown, the annotation module 303 may include:
[0163] The filtering submodule 3031 is used to filter out all associated items related to the target tag from all items according to the preset item filtering rules;
[0164] The association submodule 3032 is used to construct the correspondence information between the target tag and any associated project. The correspondence information includes the target tag version ID, the associated project version ID, the target tag annual information, and the construction unit data corresponding to the associated project.
[0165] The determination submodule 3033 is used to determine the correspondence information between the target label and all associated items, and to determine the label annotation result corresponding to the target label.
[0166] As can be seen, the device described in the embodiments of the present invention can construct a correspondence between target tags and associated projects, which is conducive to obtaining more comprehensive and clear tag labeling results, and facilitates the hierarchical and classified management of projects according to tags, meeting the management requirements of various business stages and greatly reducing development costs.
[0167] In another alternative embodiment, such as Figure 4 As shown, the analysis module 304 may include:
[0168] The partitioning submodule 3041 is used to partition the labeling results corresponding to the target label to obtain a set of data fragments corresponding to the labeling results. The data format of each data fragment in the data fragment set is in key-value pair form. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target label, and the version ID of the target label. The data value of the key-value pair is the version ID of the associated project.
[0169] The processing submodule 3042 is used to construct a map task for each data shard, and the map task runs the map function corresponding to the map task to process the data corresponding to the data shard and obtain the processing result corresponding to each data shard.
[0170] The statistics submodule 3043 is used to merge the processing results corresponding to all data shards and input them into a predefined reduce function, and to perform group statistics on the same key values to obtain the statistical results.
[0171] The analysis submodule 3044 is used to obtain the predicted trend of related items corresponding to the target label based on statistical results and preset predictive analysis algorithms.
[0172] As can be seen, the device described in the embodiments of the present invention can facilitate the rapid parsing of labeling results by processing data in segments, thereby obtaining corresponding statistical results, improving project management efficiency, reducing labor costs, and enhancing the intelligence of the solution through intelligent labeling.
[0173] In this optional embodiment, the analysis submodule 3044 obtains the predicted trend of associated items corresponding to the target label in the following specific way based on statistical results and a preset predictive analysis algorithm:
[0174] Determine whether the current forecast year is less than a preset threshold;
[0175] When it is determined that the current forecast year is less than a preset threshold, the number of related project forecasts is calculated as follows:
[0176] Z = Y * a%;
[0177] Where Z represents the predicted number of related projects, Y represents the actual number of related projects in the current forecast year, and a% represents the preset percentage;
[0178] When it is determined that the current forecast year is greater than or equal to a preset threshold, the number of related project forecasts is calculated as follows:
[0179] Z = Y + ((YX) / Y) * 100)%;
[0180] Where Z represents the predicted number of related projects, Y represents the actual number of related projects in the current forecast year, and X represents the actual number of related projects in the previous year corresponding to the current forecast year.
[0181] As can be seen, the device described in the embodiments of the present invention can quickly and efficiently calculate the predicted trend of related projects according to the prediction rules, which is conducive to improving the analysis and decision-making of managers, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0182] In yet another alternative embodiment, such as Figure 4 As shown, the device may further include:
[0183] Module 305 is used to build a tag database before obtaining the module, wherein the tag database includes tags of several categories;
[0184] The specific method by which the construction module 305 constructs the tag database is as follows:
[0185] For any predetermined intention tag construction requirement, obtain the model information corresponding to the intention tag. The model information includes a preset tag database model, a preset version data model, a preset tag association data model, a preset tag start / stop model, a preset project model, and a preset project version model.
[0186] Based on the model information corresponding to the intention tags, construct the basic data corresponding to the intention tags;
[0187] Obtain the business process approval results corresponding to the intention tags, and determine whether the approval results meet the preset approval requirements;
[0188] When the judgment result is yes, the basic data corresponding to the intention tag is initialized to the tag database.
[0189] As can be seen, the device described in the embodiments of the present invention can construct intention tags through preset multi-style models, which is conducive to the rapid generation of intention tags. At the same time, through the hierarchical approval process, it is conducive to meeting the personalized management requirements of different levels and different systems, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0190] In yet another alternative embodiment, such as Figure 4 As shown, the device may further include:
[0191] The management module 306 is used to determine whether a management request for the tag database has been received; when the result is yes, it determines whether the management permission corresponding to the management request meets the preset permission requirements; when it is determined that the management permission corresponding to the management request meets the preset permission requirements, it determines the target management tag according to the management request; and performs the management operation corresponding to the management request on the target management tag.
[0192] As can be seen, the device described in the embodiments of the present invention can enable different users and different levels to manage their respective tag libraries through permission management, realize hierarchical management of tags and tag libraries, enhance personalized permission management, meet users' personalized management needs, further improve project management efficiency, reduce labor costs, and enhance the intelligence level of the solution.
[0193] In yet another alternative embodiment, such as Figure 4 As shown, the device may further include:
[0194] Display module 307 is used to obtain the target display requirements after the annotation module;
[0195] Based on the target display requirements, determine the visualization model corresponding to the target display requirements;
[0196] Based on the visualization model and the label annotation results corresponding to the target labels, the display results corresponding to the target display requirements are presented.
[0197] As can be seen, the device described in the embodiments of the present invention can highlight the labeling results or the predicted trend of related projects through a visualization model, and analyze and compare the differences from a time dimension, which is conducive to carrying out targeted work, further improving project management efficiency, reducing labor costs, and enhancing the intelligence level of the solution.
[0198] Example 4
[0199] Please see Figure 5 , Figure 5 This is a schematic diagram of another device based on customizable tag settings for projects, as disclosed in an embodiment of the present invention. Figure 5 The described device can be a standalone device or integrated into a processing device based on project-customizable tag settings; this embodiment of the invention does not impose any limitations. Figure 5 As shown, the device for setting tags based on project customization may include:
[0200] Memory 401 storing executable program code;
[0201] Processor 402 coupled to memory 401;
[0202] The processor 402 calls the executable program code stored in the memory 401 to execute some or all of the steps in the method for setting tags based on project customization disclosed in Embodiment 1 or Embodiment 2 of the present invention.
[0203] Example 5
[0204] This invention discloses a computer storage medium storing computer instructions. When these computer instructions are invoked, they are used to execute the steps in the method for setting tags based on project customization disclosed in Embodiment 1 or Embodiment 2 of this invention.
[0205] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0206] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0207] It should be noted that the computer program code required for the operation of each part of this manual can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc.; conventional procedural programming languages such as C, Visual Basic, Fortran2003, Perl, COBOL 2002, PHP, ABAP; dynamic programming languages such as Python, Ruby, and Groovy; or other programming languages. This program code can run entirely on a computer (PC, embedded intelligent device, etc.), or as a standalone software package on the user's computer, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network, such as a local area network (LAN) or wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as Software as a Service (SaaS).
[0208] Finally, it should be noted that the method and apparatus for setting custom tags based on projects disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for setting custom tags based on projects, characterized in that, The method includes: Obtain the target labels for the projects that need to be predicted; For any of the target tags, determine whether the status information of the target tag is in an enabled state; When it is determined that the status information of the target label is enabled, labeling operations are performed on all items based on the target label to obtain the labeling result corresponding to the target label; Data analysis is performed on the tag annotation results corresponding to the target tag to obtain the predicted trend of related items corresponding to the target tag; The step of performing tagging operations on all items based on the target tag to obtain the tagging results corresponding to the target tag includes: Based on preset project filtering rules, filter out all associated projects related to the target tag from all projects; Construct the correspondence information between the target tag and any of the associated projects, wherein the correspondence information includes the target tag version ID, the associated project version ID, the target tag year information, and the construction unit data corresponding to the associated project; The correspondence information between the target label and all the associated items is determined as the label annotation result corresponding to the target label; The step of performing data analysis on the tag labeling results corresponding to the target tag to obtain the predicted trend of related items corresponding to the target tag includes: The tag labeling results corresponding to the target tag are divided into data segments to obtain a set of data segments corresponding to the tag labeling results. The data format of each data segment in the set of data segments is a key-value pair. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target tag, and the version ID of the target tag. The data value of the key-value pair is the version ID of the associated project. A map task is constructed for each data segment, and the map function corresponding to the map task is run to process the data corresponding to the data segment, so as to obtain the processing result corresponding to each data segment. The processing results corresponding to all the data shards are merged and input into a predefined reduce function. The same key values are grouped and statistically analyzed to obtain the statistical results. Based on the statistical results and the preset predictive analysis algorithm, the predicted trend of related items corresponding to the target label is obtained; The step of obtaining the predicted trend of associated items corresponding to the target tag based on the statistical results and a preset predictive analysis algorithm includes: Determine whether the current forecast year is less than a preset threshold; When it is determined that the current predicted year is less than the preset threshold, the predicted number of related projects is calculated as follows: Z=Y*a%; Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current predicted year, and a% is a preset percentage; When it is determined that the current predicted year is greater than or equal to the preset threshold, the predicted number of related projects is calculated as follows: Z = Y + ((YX) / Y) * 100)%; Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current forecast year, and X is the actual number of related projects in the previous year corresponding to the current forecast year.
2. The method for setting custom tags based on projects according to claim 1, characterized in that, The method further includes: Determine whether a management request for the tag database has been received; When the judgment result is yes, it is determined whether the management permission corresponding to the management request meets the preset permission requirements; When it is determined that the management permission corresponding to the management request meets the preset permission requirements, the target management tag is determined according to the management request; Perform the management operation corresponding to the management request on the target management tag.
3. The method for setting custom tags based on projects according to claim 2, characterized in that, After performing tagging operations on all items based on the target tag to obtain the tagging results corresponding to the target tag, the method further includes: Obtain the target display requirements; Based on the target display requirements, determine the visualization model corresponding to the target display requirements; Based on the visualization model and the label annotation results corresponding to the target label, the display results corresponding to the target display requirements are shown.
4. A device for setting custom tags based on projects, characterized in that, The device includes: The acquisition module is used to acquire the target labels that need to be used for project prediction. The judgment module is used to determine whether the status information of any target tag is in an enabled state; The annotation module is used to perform tag annotation operations on all items based on the target tag when the judgment module determines that the status information of the target tag is enabled, and to obtain the tag annotation result corresponding to the target tag. The analysis module is used to perform data analysis on the tag annotation results corresponding to the target tag to obtain the predicted trend of the associated items corresponding to the target tag; The annotation module includes: The filtering submodule is used to filter out all associated items related to the target tag from all items according to preset item filtering rules; The association submodule is used to construct the correspondence information between the target tag and any of the associated projects, wherein the correspondence information includes the target tag version ID, the associated project version ID, the target tag year information, and the construction unit data corresponding to the associated project; The determination submodule is used to determine the correspondence information between the target label and all the associated items as the label annotation result corresponding to the target label; The analysis module includes: The partitioning submodule is used to partition the tag labeling results corresponding to the target tag to obtain a set of data fragments corresponding to the tag labeling results. The data format of each data fragment in the set of data fragments is in the form of key-value pairs. The key value of the key-value pair is the construction unit data corresponding to the associated project, the annual information of the target tag, and the version ID of the target tag. The data value of the key-value pair is the version ID of the associated project. The processing submodule is used to construct a map task for each data shard, and the map task runs the map function corresponding to the map task to process the data corresponding to the data shard, so as to obtain the processing result corresponding to each data shard. The statistics submodule is used to merge the processing results corresponding to all the data shards and input them into a predefined reduce function, and to perform group statistics on the same key values to obtain the statistical results. The analysis submodule is used to obtain the predicted trend of related items corresponding to the target label based on the statistical results and the preset predictive analysis algorithm. The analysis submodule obtains the predicted trend of related items corresponding to the target tag in the following specific way based on the statistical results and the preset predictive analysis algorithm: Determine whether the current forecast year is less than a preset threshold; When it is determined that the current predicted year is less than the preset threshold, the predicted number of related projects is calculated as follows: Z=Y*a%; Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current predicted year, and a% is a preset percentage; When it is determined that the current predicted year is greater than or equal to the preset threshold, the predicted number of related projects is calculated as follows: Z = Y + ((YX) / Y) * 100)%; Wherein, Z is the predicted number of related projects, Y is the actual number of related projects in the current forecast year, and X is the actual number of related projects in the previous year corresponding to the current forecast year.
5. A device for setting custom tags based on projects, characterized in that, The device includes: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method based on project-customized setting tags as described in any one of claims 1-3.
6. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which, when invoked, are used to execute the method for setting tags based on project customization as described in any one of claims 1-3.
Citation Information
Patent Citations
Tool and method applied to massive labeled entity data storage
CN108874971A
Data security intelligent management and control platform suitable for power industry
CN112215505A