Open source contribution guide generation method, device and equipment based on human-computer interaction

By constructing a tree-shaped hierarchical contribution guide model and providing a human-computer interaction interface, the problem of time-consuming manual editing of traditional open source contribution guides is solved, personalized contribution guides can be quickly generated, and the efficiency and quality of collaborative development of open source projects are improved.

CN119883359BActive Publication Date: 2025-09-19NAT UNIV OF DEFENSE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510087823.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-09-19
Estimated Expiration
2045-01-20

AI Technical Summary

Technical Problem

Traditional open source software project contribution guidelines rely on manual editing, which is time-consuming and labor-intensive. New projects lack immediate references, resulting in slow start-up of open source projects and low collaborative development efficiency.

Method used

A human-computer interaction-based method is adopted to obtain the open source community contribution guide documents, build a tree-shaped hierarchical contribution guide model, and use semantic extraction of example texts for interaction to generate a target contribution guide document content model that meets user needs. A visual interface is provided for user interaction to generate personalized contribution guides.

Benefits of technology

It improves the efficiency of open source project management, reduces the communication costs caused by unclear or inapplicable contribution guidelines, and improves the efficiency and quality of collaborative development of open source projects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883359B_ABST
    Figure CN119883359B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and apparatus for generating open source contribution guide guidance based on human-computer interaction. The method comprises: obtaining a set of contribution guide documents of typical open source software in the open source community, classifying and summarizing the guide items of the contribution guide documents, and constructing a contribution guide document content model; when the user clicks the generate button on the interactive interface, a contribution guide requirement guidance and acquisition page for visualizing the contribution guide document content model is displayed; the user interacts with the summary description of the internal nodes, the summary description of the terminal nodes and the example text on the displayed contribution guide requirement guidance and acquisition page, and when the user clicks the confirm button on the interactive interface, a target contribution guide document that meets the user's needs is automatically generated based on the user's interaction results at each node. The use of this method can improve the efficiency of open source project management and assist the open source management team in quickly generating complete and personalized open source contribution guides.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, and device for generating an open source contribution guide based on human-computer interaction. Background Art

[0002] An open source community is a community that develops, communicates, shares, and collaborates around open source software projects. It brings together developers, enthusiasts, users, and other stakeholders from around the world. Members of the open source community work together to develop, maintain, improve, and promote open source software. A key characteristic of open source software is its reliance on free contributions from the internet public. This means that unlike traditional closed-source software, which is developed internally by a specific company or team, open source software allows any developer with development skills and interest in the project to participate. For example, the development of the renowned open source operating system Linux involves the participation of numerous developers from around the world. These developers may participate for personal interest, for learning purposes, or to meet the specific needs of their organizations.

[0003] Open source software relies on the free contributions of the Internet public. Any developer can participate in the open source software projects they are interested in. In order to lower the participation threshold of open source projects and ensure the efficiency of open source software collaborative development, open source software projects usually need to set up open source contribution guidelines. The quality of the contribution guidelines directly affects the quality of the open source group collaboration process.

[0004] However, the current traditional approach to setting up contribution guidelines for open source software projects relies primarily on project managers manually editing and generating documents, filling them out from scratch. This process is extremely time-consuming and labor-intensive. Furthermore, when creating a new project, most open source platforms fail to provide managers with immediate reference or suggestions, making it difficult to determine what content should be covered in the contribution guide. This hinders the rapid launch and efficient advancement of open source projects. Summary of the Invention

[0005] Based on this, it is necessary to provide a method, device and equipment for generating open source contribution guides based on human-computer interaction to address the above technical problems.

[0006] A method for generating an open source contribution guide based on human-computer interaction, the method comprising:

[0007] A set of contribution guide documents for typical open source software in an open source community is obtained, the guideline items in the contribution guide documents are classified and summarized, and a contribution guide document content model is constructed; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guideline item set identifier, a summary description of the guideline item set, and a child node set, and the attributes of the terminal nodes include a guideline item identifier, a summary description of the guideline item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guideline item in each contribution guide document;

[0008] When the user clicks the Generate button on the interactive interface, a contribution guide requirement guidance and acquisition page is displayed; the contribution guide requirement guidance and acquisition page is used to visualize the contribution guide document content model;

[0009] The user interacts with the summary description of the internal nodes, the summary description of the terminal nodes, and the sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0010] A device for generating an open source contribution guide based on human-computer interaction, the device comprising:

[0011] A content model construction module is used to obtain a set of contribution guide documents for typical open source software in the open source community, classify and summarize the guidance items in the contribution guide documents, and construct a contribution guide document content model; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guide item set identifier, a summary description of the guide item set, and a child node set, and the attributes of the terminal nodes include a guide item identifier, a summary description of the guide item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guide item in each contribution guide document;

[0012] A model visualization module, configured to display a contribution guide requirement guidance and acquisition page when a user clicks a generate button on the interactive interface; the contribution guide requirement guidance and acquisition page is configured to visualize the contribution guide document content model;

[0013] The result output module is used for users to interact with the summary descriptions of internal nodes, summary descriptions of terminal nodes, and sample texts on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0014] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0015] A set of contribution guide documents for typical open source software in an open source community is obtained, the guideline items in the contribution guide documents are classified and summarized, and a contribution guide document content model is constructed; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guideline item set identifier, a summary description of the guideline item set, and a child node set, and the attributes of the terminal nodes include a guideline item identifier, a summary description of the guideline item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guideline item in each contribution guide document;

[0016] When the user clicks the Generate button on the interactive interface, a contribution guide requirement guidance and acquisition page is displayed; the contribution guide requirement guidance and acquisition page is used to visualize the contribution guide document content model;

[0017] The user interacts with the summary description of the internal nodes, the summary description of the terminal nodes, and the sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0018] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0019] A set of contribution guide documents for typical open source software in an open source community is obtained, the guideline items in the contribution guide documents are classified and summarized, and a contribution guide document content model is constructed; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guideline item set identifier, a summary description of the guideline item set, and a child node set, and the attributes of the terminal nodes include a guideline item identifier, a summary description of the guideline item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guideline item in each contribution guide document;

[0020] When the user clicks the Generate button on the interactive interface, a contribution guide requirement guidance and acquisition page is displayed; the contribution guide requirement guidance and acquisition page is used to visualize the contribution guide document content model;

[0021] The user interacts with the summary description of the internal nodes, the summary description of the terminal nodes, and the sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0022] The above-mentioned human-computer interaction-based open source contribution guide guidance generation method, device, and apparatus, by classifying and summarizing the guide items of the contribution guide document and constructing a hierarchical and semantically annotated contribution guide model, greatly improves the systematization and applicability of the open source contribution guide knowledge base, thereby providing users with accurate and efficient guidance. When the user clicks the "Generate" button on the interactive interface, a contribution guide requirement guidance and acquisition page generated by visualizing the contribution guide document content model is displayed, allowing the user to intuitively and clearly understand the overall structure and details of the contribution guide. The user interacts with the summary descriptions of the internal nodes, summary descriptions of the terminal nodes, and sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the "Confirm" button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results at each node, helping open source project managers to quickly build a complete contribution guide document. The embodiments of the present invention can improve the efficiency of open source project management, assist open source management teams in quickly generating complete and personalized open source contribution guides, thereby helping to lower the threshold for developers to participate in open source projects and improve the efficiency and quality of open source project collaborative development. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a method for generating an open source contribution guide based on human-computer interaction in one embodiment is provided;

[0024] Figure 2 A schematic diagram of the content model structure of a contribution guide document in one embodiment;

[0025] Figure 3 A schematic diagram of the data structure of a contribution guide item in one embodiment;

[0026] Figure 4 A schematic diagram of a portion of a visual interface in an embodiment;

[0027] Figure 5 A structural block diagram of an open source contribution guide generation device based on human-computer interaction in one embodiment;

[0028] Figure 6 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0030] The open source contribution guide generation method based on human-computer interaction provided in this application can be applied to the following application environment. The users targeted by this application are the creators or managers of open source projects. When an open source software project is newly created, or when the number of contributors to an open source software project reaches a certain scale, the creators or managers of the open source software project usually set up an open source contribution guide document to clarify some norms and standards that open source contributors should follow during the participation process. Developers click the "Generate" button on a dedicated interactive interface to call out the contribution guide requirement guidance and acquisition page. This page is visually displayed based on the pre-built open source contribution guide document content model. Developers interact based on the summary description of the internal nodes, the summary description of the terminal nodes, and the sample text. When the developer clicks the confirm button on the interactive interface, the system integrates, sorts, and formats the selected content based on these operations of the developer to generate a contribution guide document that meets the developer's needs, thereby helping developers quickly and accurately generate contribution guides suitable for the project, improving the development efficiency and collaboration of open source projects, and reducing the communication costs and development risks caused by unclear or inapplicable contribution guides.

[0031] In one embodiment, Figure 1 As shown, a method for generating an open source contribution guide based on human-computer interaction is provided, which includes the following steps:

[0032] Step 102: Obtain a set of contribution guide documents of typical open source software in the open source community, classify and summarize the guide items in the contribution guide documents, and construct a contribution guide document content model.

[0033] The content model of the contribution guide document is a tree-like hierarchical structure, in which the root node represents the contribution guide document, the attributes of the internal nodes include the guide item set identifier, the summary description of the guide item set and the child node set, and the attributes of the terminal node include the guide item identifier, the summary description of the guide item and the example text; the example text is obtained by semantically extracting the associated instance text set of the guide item in each contribution guide document.

[0034] This hierarchical relationship makes the structure of the entire open source contribution guideline knowledge base clear at a glance, and the different guideline contents are clearly presented according to logical relationships, making it easier for developers to find and understand. Semantic annotation makes the meaning of each guideline item more clear and precise, and developers can intuitively understand the specific requirements and semantic scenarios of the guideline items in real-world applications through example text.

[0035] Step 104: When the user clicks the Generate button on the interactive interface, a contribution guide requirement guidance and acquisition page is displayed.

[0036] The Contribution Guide Requirements Guidance and Acquisition page is used to visualize the content model of the Contribution Guide document. Visualizing the content model of the Contribution Guide document includes visualizing the root node, internal nodes, and terminal nodes.

[0037] In step 106, the user interacts with the summary description of the internal nodes, the summary description of the terminal nodes, and the sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0038] When the user clicks the "Generate" button on the interactive interface, the contribution guide requirement guidance and acquisition page will be displayed. This page is visually displayed based on the contribution guide document content model. Users can interact with the elements on the page and select the content they want to include in the contribution guide according to their needs. For internal nodes, users can choose whether to include the entire set of guide items, and can also expand to view and further select child nodes; for terminal nodes, users can view their summary descriptions and sample texts, and decide whether to select and edit the sample texts. This interactive method allows project managers to flexibly customize the contribution guide according to the actual needs and characteristics of the project. It greatly saves the time and energy of project managers and improves the efficiency of building contribution guide documents.

[0039] In the above-mentioned human-computer interaction-based open source contribution guide guidance generation method, by classifying and summarizing the guide items of the contribution guide document and constructing a hierarchical and semantically annotated contribution guide model, the systematization and applicability of the open source contribution guide knowledge base are greatly improved, thereby providing users with accurate and efficient guidance. When the user clicks the "Generate" button on the interactive interface, a contribution guide requirement guidance and acquisition page generated by visualizing the contribution guide document content model is displayed, allowing the user to intuitively and clearly understand the overall structure and details of the contribution guide. The user interacts with the summary descriptions of the internal nodes, summary descriptions of the terminal nodes, and sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the "Confirm" button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results at each node, helping open source project managers to quickly build a complete contribution guide document. The embodiment of the present invention can improve the efficiency of open source project management, assist open source management teams in quickly generating complete and personalized open source contribution guides, thereby helping to lower the threshold for developers to participate in open source projects and improve the efficiency and quality of open source project collaborative development.

[0040] like Figure 2 As shown, a schematic diagram of the contribution guide document content model structure is provided. First, a collection of well-known open source software in the open source community is selected, and contribution guide documents are identified and collected from these projects to construct an original data set. Then, the basic elements (i.e., guide items) contained in these contribution guide documents are classified and summarized by card sorting and other methods to form an open source contribution guide document content model. Each terminal node corresponds to a guide item in the contribution guide and contains two attributes, of which the attribute label is the unique identifier of the guide item and desc is a brief description of the guide item. In this model, multiple guide items may belong to the same category, that is, the terminal nodes corresponding to these guide items in the model have a common parent node. The parent node has three attributes, of which the attribute label is the unique identifier of the node, the attribute desc is a general description of the guide item set, and the attribute subs points to all child nodes. This hierarchical inclusion relationship is iteratively traced back to the root node, and the root node represents the entire guide document. Figure 3 A data structure diagram of a contribution guide item is provided. The data structure of the contribution guide item is updated as follows: Figure 3 As shown, the examples attribute represents example text for the contribution guideline item. For each basic contribution guideline item e_i, its corresponding instance text in each contribution specification document in the original dataset is associated. Based on this text set, example text for the basic element e_i is established. The semantics of the example text encompasses all instance texts. When multiple semantics appear in the text set (i.e., multiple projects have adopted different implementation plans for a contribution guideline item), multiple optional example texts are generated.

[0041] In one embodiment, when the instance text set includes multiple instance texts with different semantics, corresponding example texts are generated for the instance texts with different semantics.

[0042] In one embodiment, a user interacts with the summary description of the internal nodes, the summary description of the terminal nodes, and the example text on the contribution guide requirement guidance and acquisition page, including: selecting whether to include the set of guide items corresponding to the current internal node in the target contribution guide document based on the summary description of the internal node; selecting whether to include the guide item corresponding to the current terminal node in the target contribution guide document based on the summary description of the terminal node, and after checking the check box corresponding to the terminal node, the example text of the terminal node can be switched and edited.

[0043] Specifically, when the user clicks the "Generate" button, the contribution guide requirement guidance and acquisition page is displayed, and all nodes (i.e., guide items or sets of pointed items) are displayed layer by layer according to the hierarchical structure of the contribution guide model. For each node in the nth layer, different interaction methods are used depending on the node type:

[0044] When a node is an internal node (i.e., it corresponds to a set of pointed items), its summary description is displayed, with a checkbox to the left. The user can select whether to include the corresponding guide item set in the final guide. To the right of the summary description is an expand / collapse button, which expands / collapses all child nodes contained in the node. Selecting any child node will simultaneously affect the state of the parent node's checkbox (all child nodes are selected, none of the child nodes are selected, or some of the child nodes are selected). The user can also choose to add a child node to the node.

[0045] When a node is a terminal node (i.e., corresponds to a pointing item), its brief description is displayed. There is a checkbox next to the description, and the user can choose whether to include the guidance item corresponding to the node in the final guidance. Figure 4 The diagram of a partial visual interface is shown. Below the summary description is the sample text of the guide item. When the check box is selected, the user can switch the sample text (when there are multiple candidate sample texts) and edit and modify it.

[0046] In one embodiment, a target contribution guide document that meets user needs is generated based on the user's interaction results on each node, including: collecting the user's interaction results at each layer, traversing each node at each layer in the interaction results, and if the current node is partially selected or fully selected, performing inclusion processing and outputting the corresponding text content, otherwise, performing skipping processing; generating a target contribution guide document that meets user needs based on the text content output by the inclusion processing; the inclusion processing includes: if the node is an internal node, generating a title based on the summary description of the guide item set in the internal node; if the node is a terminal node, outputting the example text selected by the user in the terminal node.

[0047] Specifically, when the user clicks the "Confirm" button at the bottom of the interactive page, all the user's choices and operations at each level are collected and recorded, and a corresponding markdown format document is generated. The process is as follows:

[0048] For each node in a certain layer, if the node is partially or fully selected, it will be included, otherwise it will be skipped. For nodes that need to be included, the following operations are performed according to the node type:

[0049] If the node is an internal node, a title is generated based on the desc attribute value of the node. The title begins with n "#" characters, where n is the number of layers the node is on, followed by the desc text content.

[0050] If the node is a terminal node, the item selected by the user in the node's examples attribute value set is directly output.

[0051] Ultimately, all the text forms a completed target contribution guide document in markdown format, and users can still edit and modify the content.

[0052] In one embodiment, the method also includes: obtaining the collaborative scenario in the target contribution guide document, and constructing a collaborative model based on the contribution behavior list and the corresponding decision-making behavior under the collaborative scenario; the contribution behavior list includes several contribution behaviors; obtaining historical open source collaborative data, using the collaborative model to obtain the decision-making behavior and the historical value set of each contribution behavior under the corresponding collaborative scenario from the historical open source collaborative data, and constructing a corresponding data table, performing regression analysis based on the data table to obtain a correlation list under the collaborative scenario; each element in the correlation list represents the correlation between the contribution behavior and the decision-making behavior; performing a correlation relationship judgment on each element in the correlation list, and when the correlation between the contribution behavior and the decision-making behavior meets the preset conditions, generating a corresponding implicit collaborative specification statement; inserting the implicit collaborative specification statement into the location of the collaborative scenario corresponding to the target contribution guide document to obtain a perfected target contribution guide document.

[0053] In this embodiment, the target contribution guide document is generated by human-computer interaction, which can quickly and accurately integrate various guide items according to user needs to form a structured, clear and clear basic contribution guide framework to meet the personalized customization needs of different open source projects for basic contribution rules. Considering that in actual open source project collaboration scenarios, there are a large number of implicit collaboration specifications that are not explicitly stated but are silently followed by developers in their daily collaboration. These specifications play a potentially important role in the efficient advancement of projects and the harmonious collaboration of teams. Mining implicit collaboration specifications can transform these rules hidden behind practical operations into clear textual expressions, fill in the blank areas that may exist in the contribution guide, and make it more comprehensive and detailed. Cover the code of conduct and collaboration requirements for the entire project development process. Significantly improve the efficiency, quality and stability of collaborative development of open source projects. Moreover, the implicit collaboration specification mining method of the present invention can realize diversified scenario modeling, flexibly adapt to multiple data sources, and dynamically generate implicit specifications that meet the characteristics of the current scenario. It can fully mine implicit collaboration specifications in different scenarios, thereby more comprehensively and accurately following the project development specifications, improving the development efficiency and collaboration of open source projects, and further reducing communication costs and development risks caused by loopholes or incompleteness in contribution guidelines.

[0054] In one embodiment, a collaborative model is constructed based on a contribution behavior list and corresponding decision behaviors in a collaborative scenario, including: storing the collaborative scenario name, contribution behavior list, and decision behavior in the form of fields to construct a collaborative model of the corresponding collaborative scenario; each contribution behavior in the contribution behavior list is represented by a contribution behavior indicator; the contribution behavior indicator is a triple consisting of a contribution behavior name, a value type, and a reading source; the value type includes continuous or categorical types; the decision behavior is a triple consisting of a decision behavior name, a decision meaning, and a reading source; the decision meaning is the physical meaning of the positive value of the decision behavior.

[0055] In one embodiment, a collaborative model is used to obtain a historical value set of the decision-making behavior and each contribution behavior in the corresponding collaborative scenario from historical open source collaborative data, and a corresponding data table is constructed, including: using a collaborative model to obtain a historical value set of the decision-making behavior and each contribution behavior in the corresponding collaborative scenario from historical open source collaborative data; obtaining a contribution behavior data matrix based on the historical value set of all contribution behaviors, obtaining a decision behavior data vector based on the historical value set of the decision behavior, and constructing a corresponding data table based on the contribution behavior data matrix and the decision behavior data vector.

[0056] In one embodiment, a regression analysis is performed based on a data table to obtain a list of correlations in a collaborative scenario, including: obtaining a data table, preprocessing the data table to obtain a preprocessed data table; preprocessing the data table, including: performing dummy variable processing on contribution behavior indicators in the data table whose value types are categorical; inputting the preprocessed data table into a logistic regression model to obtain the regression coefficient and significance value corresponding to each contribution behavior; and obtaining a list of correlations in the collaborative scenario based on the regression coefficient and significance value corresponding to each contribution behavior.

[0057] In one embodiment, a correlation judgment is performed on each element in the correlation list, and when the correlation between the contribution behavior and the decision-making behavior meets the preset conditions, a corresponding implicit collaborative specification statement is generated, including: traversing each element in the correlation list, if the significance value in the current element is less than the threshold and the correlation coefficient is greater than 0, then there is a positive correlation between the contribution behavior corresponding to the current element and the decision-making behavior, and a corresponding implicit collaborative specification statement is generated; if the significance value in the current element is less than the threshold and the correlation coefficient is less than 0, then there is a negative correlation between the contribution behavior corresponding to the current element and the decision-making behavior, and a corresponding implicit collaborative specification statement is generated.

[0058] In a specific embodiment, the specific steps of mining implicit collaboration specifications and improving the target contribution guide document include:

[0059] S1. Open source collaborative scenario modeling.

[0060] First, select typical contribution scenarios in the target contribution guidelines document, such as submitting a code merge request, reporting software issues, etc. Then, under each collaboration scenario, construct a collaboration model as shown below to represent the open-source contribution behaviors and decision-making behaviors involved in that scenario.

[0061] {

[0062] context: C_name;

[0063] action: [(A1_name, A1_type, A1_source), …, (A n _name, A n _type, A n _source)];

[0064] decision: (D_name, D_meaning, D_source)

[0065] }

[0066] Among them, "context" is used to represent the scenario name; the "action" field represents a list of contribution behaviors. Each item in the list represents an indicator related to the open-source contribution behavior, which is represented by a triple, respectively representing the name, type, and value source of the contribution behavior indicator. For example, the i-th contribution behavior indicator A i is represented by (A i _name, A i _type, A i _source). The values of the contribution behavior indicators are of two types, namely continuous type and categorical type. The value source indicates where to read the value of the contribution behavior indicator, such as a database or a local file, etc. "decision" represents the decision-making behavior D of the core management team related to the open-source contribution behavior, which is also represented by a triple, respectively representing the decision name, decision meaning, and value source. The value of the decision-making behavior is of binary type, and the decision meaning indicates the physical meaning represented when the decision-making behavior takes a positive value. The value source indicates where to read the value of the decision.

[0067] S2. Measurement of behavior correlation.

[0068] The correlation between contribution behaviors and decision-making behaviors is analyzed using a logistic regression model. First, according to the defined open-source collaboration scenario model, obtain the measurement values of each contribution behavior and decision-making behavior from the historical open-source group collaboration data, and obtain the contribution behavior data matrix a and the decision-making behavior data vector d. Each element a_i (0 < i < n; i is the number of contribution behaviors) in a represents the i-th contribution behavior indicator A iThe historical value set of , d represents the historical measurement value set of decision-making behavior, and a_i has the same dimension as d. The data table (a_1, a_2, ..., a_n, d) consisting of vectors a and d is input into the logistic regression model for fitting. For behavioral indicators with categorical readings, dummy variables need to be processed before fitting. After the regression analysis is completed, the regression coefficient and significance value corresponding to each behavioral indicator are extracted from the analysis results, and a correlation table C (<β1, p1>, <β2, p2>, ..., <β n ,p n >), where <β i ,p i >Corresponding contribution behavior A i and the correlation between decision-making behavior D.

[0069] S3. Implicit collaboration specification generation.

[0070] Based on the dependency list C obtained in the previous step, an implicit collaboration specification is generated. Specifically, for each element in C < β i ,p i >, when p i The value of is less than 0.05 and β i When the value of is greater than 0, a standard statement is generated: "There is a potential positive correlation between contribution behavior A1_name and decision behavior D_name". i The value of is less than 0.05 and β i When the value of is less than 0, a standard statement is generated: "There is a potential negative correlation between the contribution behavior A1_name and the decision behavior D_name". The generated statements are inserted one by one into the paragraph where the collaborative scenario C_name of the target contribution guide document is located.

[0071] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0072] In one embodiment, Figure 5 As shown, a device for generating an open source contribution guide based on human-computer interaction is provided, comprising:

[0073] Content model construction module 502 is used to obtain a set of typical open source software contribution guide documents in the open source community, classify and summarize the guideline items in the contribution guide documents, and construct a contribution guide document content model. The contribution guide document content model has a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include the guideline item set identifier, the guideline item set summary description, and the child node set, and the attributes of the terminal nodes include the guideline item identifier, the guideline item summary description, and example text. The example text is obtained by semantically extracting the associated instance text set of the guideline item in each contribution guide document.

[0074] The model visualization module 504 is used to display the contribution guide requirement guidance and acquisition page when the user clicks the generate button on the interactive interface; the contribution guide requirement guidance and acquisition page is used to visualize the contribution guide document content model;

[0075] The result output module 506 is used for the user to interact with the summary description of the internal nodes, the summary description of the terminal nodes and the example text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

[0076] In one embodiment, the model visualization module 504 is further configured to generate corresponding example texts for the instance texts with different semantics when the instance text set includes multiple instance texts with different semantics.

[0077] In one embodiment, the result output module 506 is also used to select whether to include a set of guidance items corresponding to the current internal node in the target contribution guidance document based on the summary description of the internal node; select whether to include a guidance item corresponding to the current terminal node in the target contribution guidance document based on the summary description of the terminal node, and after checking the check box corresponding to the terminal node, the example text of the terminal node can be switched and edited.

[0078] In one embodiment, the result output module 506 is also used to collect the user's interaction results at each layer, traverse each node of each layer in the interaction results, and if the current node is partially selected or fully selected, perform inclusion processing and output the corresponding text content; otherwise, skip processing; generate a target contribution guide document that meets user needs based on the text content output by the inclusion processing.

[0079] In one embodiment, the result output module 506 is further configured to generate a title based on the summary description of the guide item set in the internal node if the node is an internal node; and output the example text selected by the user in the terminal node if the node is a terminal node.

[0080] In one embodiment, the structure output module 506 is also used to obtain the collaborative scenario in the target contribution guide document, and construct a collaborative model based on the contribution behavior list and the corresponding decision-making behavior under the collaborative scenario; the contribution behavior list includes several contribution behaviors; historical open source collaborative data is obtained, and the collaborative model is used to obtain the historical value set of the decision-making behavior and each contribution behavior under the corresponding collaborative scenario from the historical open source collaborative data, and a corresponding data table is constructed, and regression analysis is performed based on the data table to obtain a correlation list under the collaborative scenario; each element in the correlation list represents the correlation between the contribution behavior and the decision-making behavior; a correlation relationship judgment is performed on each element in the correlation list, and when the correlation relationship between the contribution behavior and the decision-making behavior meets the preset conditions, a corresponding implicit collaborative specification statement is generated; the implicit collaborative specification statement is inserted into the location of the collaborative scenario corresponding to the target contribution guide document to obtain a perfected target contribution guide document.

[0081] In one embodiment, the result output module 506 is also used to store the collaborative scenario name, contribution behavior list and decision behavior in the form of fields to construct a collaborative model corresponding to the collaborative scenario; each contribution behavior in the contribution behavior list is represented by a contribution behavior indicator; the contribution behavior indicator is a triple consisting of the contribution behavior name, value type and reading source; the value type includes continuous type or categorical type; the decision behavior is a triple consisting of the decision behavior name, decision meaning and reading source; the decision meaning is the physical meaning of the positive value of the decision behavior.

[0082] Regarding the specific definition of the open source contribution guide guide generation device based on human-computer interaction, please refer to the definition of the open source contribution guide guide generation method based on human-computer interaction above, which will not be repeated here. The various modules in the above-mentioned open source contribution guide guide generation device based on human-computer interaction can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0083] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for generating an open source contribution guide based on human-computer interaction is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse.

[0084] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0085] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the method in the above embodiment when executing the computer program.

[0086] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in the above embodiment are implemented.

[0087] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0088] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0089] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for generating open source contribution guidelines based on human-computer interaction, characterized in that: The method comprises: A set of contribution guide documents for typical open source software in an open source community is obtained, the guideline items in the contribution guide documents are classified and summarized, and a contribution guide document content model is constructed; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guideline item set identifier, a summary description of the guideline item set, and a child node set, and the attributes of the terminal nodes include a guideline item identifier, a summary description of the guideline item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guideline item in each contribution guide document; When the user clicks the Generate button on the interactive interface, a contribution guide requirement guidance and acquisition page is displayed; the contribution guide requirement guidance and acquisition page is used to visualize the contribution guide document content model; The user interacts with the summary descriptions of the internal nodes, the summary descriptions of the terminal nodes, and the sample text on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node; Generate a target contribution guide document that meets user needs based on the user's interaction results at each node, including: Collect the user's interaction results at each layer, traverse each node at each layer in the interaction results, and if the current node is partially or fully selected, perform inclusion processing and output the corresponding text content; otherwise, skip processing; Generate a target contribution guide document that meets user needs based on the text content containing the processed output; The inclusion process includes: If the node is an internal node, a title is generated based on the summary description of the set of guide items in the internal node; If the node is a terminal node, the example text selected by the user in the terminal node is output.

2. The method according to claim 1, characterized in that When the instance text set includes multiple instance texts with different semantics, corresponding example texts are generated for the instance texts with different semantics.

3. The method according to claim 1, characterized in that Users interact with the summary descriptions of internal nodes, summary descriptions of terminal nodes, and example text on the display contribution guide requirement guidance and acquisition pages, including: Select whether to include the guideline item set corresponding to the current internal node in the target contribution guideline document based on the summary description of the internal node; Based on the endpoint's summary description, select whether to include the guidance item corresponding to the current endpoint in the target contribution guidance document. After checking the checkbox corresponding to the endpoint, you can switch and edit the example text of the endpoint.

4. The method according to claim 1, wherein The method further comprises: Obtaining a collaborative scenario in the target contribution guide document, and building a collaborative model based on a contribution behavior list and corresponding decision behaviors in the collaborative scenario; the contribution behavior list includes a plurality of contribution behaviors; Obtain historical open source collaboration data, use the collaboration model to obtain a set of historical values ​​of decision-making behaviors and each contribution behavior in the corresponding collaboration scenario from the historical open source collaboration data, construct a corresponding data table, perform regression analysis based on the data table, and obtain a correlation list in the collaboration scenario; each element in the correlation list represents the correlation between the contribution behavior and the decision-making behavior; Perform correlation judgment on each element in the correlation list. When the correlation between the contribution behavior and the decision-making behavior meets the preset conditions, generate the corresponding implicit collaboration specification statement. The implicit collaboration specification statement is inserted into the location of the collaboration scenario corresponding to the target contribution guide document to obtain a perfected target contribution guide document.

5. The method according to claim 4, characterized in that A collaborative model is constructed based on the list of contribution behaviors and corresponding decision-making behaviors in the collaborative scenario, including: The collaborative scenario name, contribution behavior list, and decision behavior are stored as fields to build a collaborative model corresponding to the collaborative scenario. Each contribution behavior in the contribution behavior list is represented by a contribution behavior indicator; the contribution behavior indicator is a triple consisting of a contribution behavior name, a value type, and a reading source; the value type includes a continuous type or a categorical type; The decision behavior is a triple consisting of a decision behavior name, a decision meaning, and a reading source; the decision meaning is the physical meaning of the positive value of the decision behavior.

6. A device for generating an open source contribution guide based on human-computer interaction implemented in the method according to any one of claims 1 to 5, characterized in that: The device comprises: A content model construction module is used to obtain a set of contribution guide documents for typical open source software in the open source community, classify and summarize the guidance items in the contribution guide documents, and construct a contribution guide document content model; the contribution guide document content model is a tree-like hierarchical structure, wherein the root node represents the contribution guide document, the attributes of the internal nodes include a guide item set identifier, a summary description of the guide item set, and a child node set, and the attributes of the terminal nodes include a guide item identifier, a summary description of the guide item set, and example text; the example text is obtained by semantically extracting the associated instance text set of the guide item in each contribution guide document; A model visualization module, configured to display a contribution guide requirement guidance and acquisition page when a user clicks a generate button on the interactive interface; the contribution guide requirement guidance and acquisition page is configured to visualize the contribution guide document content model; The result output module is used for users to interact with the summary descriptions of internal nodes, summary descriptions of terminal nodes, and sample texts on the contribution guide requirement guidance and acquisition page. When the user clicks the confirmation button on the interactive interface, a target contribution guide document that meets the user's needs is generated based on the user's interaction results on each node.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Cross-project reviewer recommending method based on software association library

    CN108171485A

  • Page guide configuration method, page guide method and equipment

    CN117742832A