CN111126052B - Function point generation method, device, electronic equipment and computer readable storage medium - Google Patents

Function point generation method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111126052B
CN111126052B CN201911372793.9A CN201911372793A CN111126052B CN 111126052 B CN111126052 B CN 111126052B CN 201911372793 A CN201911372793 A CN 201911372793A CN 111126052 B CN111126052 B CN 111126052B
Authority
CN
China
Prior art keywords
dominated
objects
sentence
object group
dominant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911372793.9A
Other languages
Chinese (zh)
Other versions
CN111126052A (en
Inventor
任宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dingfu Intelligent Technology Co ltd
Original Assignee
Dingfu Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dingfu Intelligent Technology Co ltd filed Critical Dingfu Intelligent Technology Co ltd
Priority to CN201911372793.9A priority Critical patent/CN111126052B/en
Publication of CN111126052A publication Critical patent/CN111126052A/en
Application granted granted Critical
Publication of CN111126052B publication Critical patent/CN111126052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a method and a device for generating functional points, electronic equipment and a computer readable storage medium, belonging to the field of natural language processing. The method comprises the following steps: for each sentence, firstly determining the sentence pattern of the sentence, verbs corresponding to the function points and the dominated object groups in the sentence, then determining search intervals corresponding to the dominated object groups in different modes according to different sentence patterns, and then combining verbs corresponding to the function points in the search intervals with all dominated objects included in the dominated object groups corresponding to the search intervals to obtain the function points. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specifications, meanwhile, the concept of the dominant object group is introduced, the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.

Description

Function point generation method, device, electronic equipment and computer readable storage medium
Technical Field
The application belongs to the field of natural language processing, and particularly relates to a method and a device for generating functional points, electronic equipment and a computer readable storage medium.
Background
The software needs to build the requirements specifications before it is developed. For a software developer, the size of a software item needs to be primarily estimated according to a functional term or a functional point (a specific business process that can be completed independently, such as user query, user modification, user deletion, etc.) recorded in a requirement specification, so that the time cost and the economic cost required for software development are measured, and therefore, the requirement specification needs to be decomposed to generate the functional point.
In the prior art, the requirement specification is decomposed by manual work. However, when a person faces a large amount of text content, errors or omissions are likely to occur, and the efficiency is low.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, an apparatus, an electronic device, and a computer readable storage medium for generating a function point, which can improve the working efficiency and the working quality, and reduce the error phenomenon or omission phenomenon caused by carelessness.
Embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a method for generating a function point, including: determining a sentence pattern of a sentence; identifying a dominant object group and a verb corresponding to the function point, which are included in the sentence; determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to one search interval; and combining verbs corresponding to the function points in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function points. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specifications, meanwhile, the concept of the dominant object group is introduced, the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.
With reference to the first aspect embodiment, in a possible implementation manner, the determining a search interval according to the sentence pattern, where each of the dominant object groups corresponds to one search interval includes:
when the sentence pattern is determined to be a verb before, starting from each dominated object group, and ending with a previous dominated object group relative to each dominated object group to determine a search interval;
when the sentence pattern is determined to be a verb later or a mixed sentence pattern, starting from each dominated object group, and ending with the next dominated object group relative to each dominated object group to determine a search interval; wherein when the next subject group does not exist, the end position of the sentence is taken as the end point, and when the previous subject group does not exist, the start position of the sentence is taken as the end point.
With reference to the embodiment of the first aspect, in a possible implementation manner, the identifying the dominant object group and verb corresponding to the function point included in the sentence includes: inputting the sentence into a pre-stored part-of-speech recognition model, and recognizing a dominated object and a verb corresponding to a functional point in the sentence; determining the dominated object as the dominated object group when the number of dominated objects included in the sentence is judged to be one; otherwise, determining the dominant object group of the sentence according to the number of characters and the characters among the multiple dominant objects.
With reference to the first aspect embodiment, in a possible implementation manner, the determining the dominant object group of the sentence according to the number of characters and characters among the multiple dominant objects includes: determining the number of characters and characters between two adjacent dominated objects; aggregating a plurality of dominated objects, of which the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group; the remaining dominated objects are each individually formed into a new dominated object group.
With reference to the first aspect embodiment, in a possible implementation manner, the determining a sentence pattern of a sentence includes: and inputting the sentence into a pre-stored sentence pattern recognition model, and determining the sentence pattern.
In a second aspect, an embodiment of the present application provides a function point generating apparatus, including: the determining module is used for determining the sentence pattern of the sentence; the identification module is used for identifying the dominant object group and verbs corresponding to the function points included in the sentence; the determining module is further configured to determine a search interval according to the sentence pattern, where each of the dominated object groups corresponds to one search interval; and the combination module is used for combining each verb corresponding to the function point in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function point.
With reference to the second aspect of the embodiment, in a possible implementation manner, the determining module is configured to determine, when determining that the sentence is a verb preceding, a search interval with each dominant object group as a starting point and with a previous dominant object group relative to each dominant object group as an ending point; when the sentence pattern is determined to be a verb later or a mixed sentence pattern, starting from each dominated object group, and ending with the next dominated object group relative to each dominated object group to determine a search interval; wherein when the next subject group does not exist, the end position of the sentence is taken as the end point, and when the previous subject group does not exist, the start position of the sentence is taken as the end point.
With reference to the second aspect of the embodiment, in one possible implementation manner, the identifying module is configured to input the sentence into a pre-stored part-of-speech identifying model, and identify a dominated object and a verb corresponding to a functional point in the sentence; determining the dominated object as the dominated object group when the number of dominated objects included in the sentence is judged to be one; otherwise, determining the dominant object group of the sentence according to the number of characters and the characters among the multiple dominant objects.
With reference to the second aspect of the embodiment, in one possible implementation manner, the identifying module is configured to determine a number of characters and characters between two adjacent dominated objects; aggregating a plurality of dominated objects, of which the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group; the remaining dominated objects are each individually formed into a new dominated object group.
With reference to the second aspect of the embodiment, in one possible implementation manner, the determining module is configured to input the sentence into a pre-stored sentence pattern recognition model, and determine the sentence pattern.
In a third aspect, an embodiment of the present application further provides an electronic device including: the device comprises a memory and a processor, wherein the memory is connected with the processor; the memory is used for storing programs; the processor invokes a program stored in the memory to perform the above-described first aspect embodiment and/or the method provided in connection with any one of the possible implementations of the first aspect embodiment.
In a fourth aspect, embodiments of the present application further provide a non-volatile computer readable storage medium (hereinafter referred to as computer readable storage medium), on which a computer program is stored, which when executed by a computer performs the above-described embodiments of the first aspect and/or the method provided in connection with any one of the possible implementations of the embodiments of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. The above and other objects, features and advantages of the present application will become more apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the several views of the drawings. The drawings are not intended to be drawn to scale, with emphasis instead being placed upon illustrating the principles of the application.
Fig. 1 shows a flowchart of a method for generating a function point according to an embodiment of the present application.
Fig. 2 is a block diagram of a function point generating device according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals: 100-an electronic device; 110-a processor; 120-memory; 400-function point generating means; 410-a determination module; 420-an identification module; 430-a combination module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
It should be noted that: the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the term "and/or" in the present application is merely an association relationship describing the association object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone.
In addition, the defects of the prior art for generating the function points, which are easy to generate errors and have low efficiency, are the results obtained by the applicant after practice and careful study, so that the discovery process of the defects and the solutions for the defects, which are proposed by the embodiments of the present application below, should be all contributions of the applicant to the process of the present application.
In order to solve the above-mentioned drawbacks, embodiments of the present application provide a method, an apparatus, an electronic device, and a computer-readable storage medium for generating a function point, which can improve the working efficiency, improve the working quality, and reduce the error phenomenon or omission phenomenon caused by carelessness of a worker. The technology can be realized by adopting corresponding software, hardware and a combination of the software and the hardware. Embodiments of the present application are described in detail below.
First, description will be made regarding a function point generation method provided by the present application.
Referring to fig. 1, an embodiment of the present application provides a method for generating a function point applied to an electronic device. The method can be applied to the electronic equipment, an Application (APP) installed in the electronic equipment, and an applet embedded in a public platform installed in the electronic equipment, such as a WeChat applet.
The steps involved will be described below in connection with fig. 2.
Step S110: the sentence pattern of the sentence is determined.
The electronic device may read the requirement specification to be decomposed, so as to obtain character information of each character included in the requirement specification. Subsequently, the electronic equipment searches the characters which are the same as the preset characters in the requirement specification according to the character information, and splits the requirement specification into a plurality of sentences by taking the characters as the segmentation characters.
Alternatively, the preset characters may include, but are not limited to, "line feed", "chinese semicolon", "english semicolon", "period", and the like.
After obtaining a plurality of sentences, the electronic device inputs each sentence into a pre-stored sentence pattern recognition model by taking the sentences as units, so as to determine the sentence pattern of each sentence.
The sentence pattern recognition model is a pre-trained network model, can recognize the part of speech of each language entity in a sentence, and judges the sentence pattern of the sentence by recognizing the sequence relationship between verbs and nouns in the sentence.
Alternatively, the sentence pattern may include: "verb before", "verb after", "mixed sentence pattern".
When only the verb precedes the noun in one sentence, the sentence pattern of the sentence is judged as "verb precedes", for example, the verb "maintenance" precedes the noun "company", "personnel constitution", "organizational structure" with respect to the sentence "personnel constitution and organizational structure of the maintainable company", and thus the sentence pattern of the sentence is "verb precedes".
When only the verb is present in a sentence after the noun, the sentence pattern of the sentence is judged to be "verb after", for example, for the sentence "maintenance and graphic presentation can be performed on personnel constitution and organization structure of a company", the verb "maintenance" and "presentation" are located after the noun "company", "personnel constitution", "organization structure", and thus the sentence pattern of the sentence is "verb after".
When a verb is present before a noun and a verb is present after a noun in a sentence, the sentence pattern of the sentence is judged to be a "mixed sentence pattern". For example, for a sentence "can show the staff formation of a company and maintain the organizational structure of a company," the verb "show" is located before the noun "company", "staff formation" and "organizational structure," and the verb "maintain" is located after the noun "company", "staff formation" and "organizational structure," so the sentence pattern of the sentence is a "mixed sentence pattern".
Step S120: and identifying the dominant object group and verb corresponding to the function point included in the sentence.
In the embodiment of the application, a part-of-speech recognition model can be pre-established, and the part-of-speech recognition model can recognize parts of speech of each language entity in the sentence so as to determine nouns and verbs in the sentence. Further, the verb and the subject corresponding to the function point, which are commonly used, are stored in advance in the part-of-speech recognition model, and a function point word library is formed. Subsequently, the part-of-speech recognition model can also match the language entity with the function point word stock after recognizing the part of speech of the language entity included in the sentence, so as to recognize the verb and the dominated object corresponding to the function point in the sentence.
Alternatively, the part-of-speech recognition model and the sentence recognition model may be integrated into the same model, or may exist in different models.
After verbs and dominated objects corresponding to the function points in the sentence are obtained, the dominated objects in the sentence can be formed into a dominated object group in order to facilitate the improvement of the integrity of the function points obtained subsequently.
The process of forming the set of dominant objects will be described below.
The electronic device first obtains the number of dominant objects included in the sentence.
When the electronic device judges that only one dominated object exists in the sentence, the dominated object is directly determined to be a dominated object group.
When the electronic device determines that there are a plurality of dominated objects in the sentence, it is necessary to allocate dominated object groups according to the relationship between the dominated objects.
Alternatively, the electronic device may determine the relationship between the plurality of dominant objects based on the number of characters and the characters between the plurality of dominant objects. Wherein the number of characters between two dominated objects characterizes the number of characters present between the two dominated objects, and the relationship between dominated objects includes a juxtaposition relationship and a non-juxtaposition relationship.
Optionally, the electronic device first obtains the number of characters and characters between the plurality of dominated objects, when it is determined that the number of characters between two adjacent dominated objects is smaller than a threshold (for example, 3, the value may be modified according to the actual situation), and when a preset character exists between two adjacent dominated objects, it is determined that the two adjacent dominated objects are in a parallel relationship, otherwise, it is determined that the two adjacent dominated objects are in a non-parallel relationship.
Wherein, the liquid crystal display device comprises a liquid crystal display device, the preset characters may be "," and "," and "etc. for indicating connected characters.
For example, the sentences "a and B are presented while C" is deleted, and when "a", "B" and "C" are all determined as the dominant objects, and the threshold is 5, the number of characters between adjacent dominant objects "a" and "B" is 2, which is smaller than the threshold 5, and furthermore, the characters between "a" and "B" are "and" belong to preset characters, so that the "a" and "B" are in parallel relationship; the number of characters between adjacent dominated objects "B" and "C" is 9, which is greater than the threshold value 5, and the characters between "B" and "C" do not belong to the preset characters, so that the relationship between "B" and "C" is non-parallel.
After determining the relationship between the respective dominated objects, if the relationships between the dominated objects are all non-parallel relationships (for convenience of description, referred to herein as dominated objects of a drop list), the electronic device forms a plurality of dominated object groups individually according to the number of dominated objects of the drop list, and each dominated object group includes a dominated object of the drop list.
If there is a juxtaposition between the plurality of dominated objects and the plurality of dominated objects belong to the same juxtaposition, the electronic device groups the dominated objects into one dominated object group, for example, there are only A, B, C dominated objects, a and B are in juxtaposition, B and C are in juxtaposition, A, B, C belong to the same juxtaposition, and the electronic device groups A, B, C into the same dominated object group.
If there is a parallel relationship or a non-parallel relationship between a plurality of managed objects, the electronic device groups the managed objects having a parallel relationship and belonging to the same parallel relationship into one managed object group. In this embodiment, alternatively, there may be multiple juxtaposition relationships in a sentence, for example, there are only A, B, C, D four dominated objects, a and B are juxtaposition, C and D are juxtaposition, B and C are not juxtaposition, a and B are in the same juxtaposition (for convenience of distinction, referred to herein as juxtaposition 1), C and D are in the same juxtaposition (for convenience of distinction, referred to herein as juxtaposition 2), and juxtaposition 1 is different from juxtaposition 2. At this point, the electronic device aggregates A, B into the same dominant object group and C, D into another dominant object group. In addition, a sentence may have one or more juxtaposition relationships and a subject of a drop list. In this case, the electronic device needs to form a plurality of managed object groups according to the number of managed objects in the drop list, and each of the managed object groups includes one drop list of the managed objects, in addition to aggregating the managed objects having a parallel relationship and belonging to the same parallel relationship into one managed object group. For example, there are only A, B, C three controlled objects, a and B have a parallel relationship, B and C have no parallel relationship, a and B belong to the same parallel relationship, and C is a controlled object of a drop list. At this point, the electronic device aggregates A, B into the same dominated object group, forming C alone into one dominated object group.
Also taking the sentence "can maintain and graphically display personnel constitution and organization structure of a company" as an example, when the terms "personnel constitution" and "organization structure" are dominant objects according to the above rule, the dominant objects in the sentence are in parallel relationship, so that the group of the dominant objects is one, and two dominant objects are included in the group, namely "personnel constitution" and "organization structure".
Step S130: and determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to one search interval.
For a certain sentence, when the sentence pattern is 'verb before', the electronic device locates each dominated object group in the sentence. Then, for each dominant object, the electronic device determines a search interval starting from the dominant object group and ending with the previous dominant object group of the dominant object group. Through the above operation, there is a corresponding search interval for each dominant object group.
For a certain sentence, when its sentence pattern is "verb after" or "mixed sentence pattern", the electronic device locates each dominated object group in the sentence first. Then, for each of the dominated objects, the electronic device determines a search interval starting from the dominated object group and ending with a dominated object group that is subsequent to the dominated object group. Through the above operation, there is a corresponding search interval for each dominant object group.
As a fault tolerant process, when there is no subsequent subject group (e.g., a sentence includes only one subject group) for a certain subject group, the electronic device ends at the termination position of the sentence; when there is no previous dominant object group for a certain dominant object group (e.g., a sentence includes only one dominant object group), the electronic device ends with the start position of the sentence.
The sentence "personnel configuration and organization structure of maintenance company" is taken as an example for explanation. The sentence pattern of the sentence is 'verb before', and in the sentence, the dominated object group is 'personnel constitution and organization architecture'. The search is performed forward with the subject object group as a starting point, and since there is no preceding subject object group, the end point is the start position of the sentence, and it is determined that the search section corresponding to the subject object group is "maintenance company".
The sentence "can maintain and graphically display the personnel constitution and organization architecture of a company" will be described as an example. The sentence pattern of the sentence is 'verb after', and in the sentence, the dominated object group is 'personnel constitution and organization structure'. The search is performed backward with the dominant object group as a starting point, and since there is no subsequent dominant object group, the end point is the end position of the sentence, and the search section corresponding to the dominant object group is determined to be "maintenance and graphical presentation".
Take the sentence "can graphically show the personnel constitution of the company and maintain the organization structure" as an example. The sentence pattern of the sentence is a 'mixed sentence pattern', and in the sentence, the number of the dominated object groups is two, namely 'personnel composition' and 'organization framework'. When searching backwards by taking the 'person constitution' as a starting point, searching the next 'organization structure' of the dominated object group, taking the next organization structure 'as an ending point, and determining the searching interval corresponding to the' person constitution 'of the dominated object group as' graphical display and 'graphical display'.
Step S140: and combining verbs corresponding to the function points in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function points.
For each search interval, there may be one verb corresponding to a function point, or there may be a plurality of verbs corresponding to function points. For the group of dominated objects corresponding to each search interval, only one dominated object may be included in the group, and a plurality of dominated objects may be included. In order to avoid omission, the electronic device forms a one-to-one correspondence between each verb corresponding to the function point in the search interval and each dominated object in the dominated object group corresponding to the search interval, so that the function point is obtained.
For example, when the dominant object group is "personnel composition and organization architecture", and the search interval corresponding to the dominant object group is "maintenance company", a function point may be obtained: maintenance-personnel formation, maintenance-organization architecture.
According to the function point generation method provided by the embodiment of the application, for each sentence, firstly, the sentence pattern of the sentence, the verbs corresponding to the function points and the dominated object groups in the sentence are determined, then, according to the difference of the sentence patterns, the search interval corresponding to the dominated object groups is determined in different modes, and then, each verb corresponding to the function points in the search interval and each dominated object included in the dominated object groups corresponding to the search interval are combined to obtain the function points. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specifications, meanwhile, the concept of the dominant object group is introduced, the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.
As shown in fig. 2, the embodiment of the present application further provides a function point generating apparatus 400, where the function point generating apparatus 400 may include: a determining module 410, an identifying module 420, a combining module 430.
A determining module 410, configured to determine a sentence pattern of a sentence;
an identifying module 420, configured to identify a dominant object group and a verb corresponding to a function point included in the sentence;
the determining module 410 is further configured to determine a search interval according to the sentence pattern, where each of the dominated object groups corresponds to one search interval;
and a combination module 430, configured to combine each verb corresponding to a function point in the search interval with each dominant object included in the dominant object group corresponding to the search interval, so as to obtain the function point.
Optionally, the determining module 410 is configured to determine, when determining that the sentence pattern is a verb preceding, a search interval starting from each of the dominated object groups and ending with a dominated object group preceding the dominated object group; when the sentence pattern is determined to be a verb later or a mixed sentence pattern, starting from each dominated object group, and ending with the next dominated object group relative to each dominated object group to determine a search interval; wherein when the next subject group does not exist, the end position of the sentence is taken as the end point, and when the previous subject group does not exist, the start position of the sentence is taken as the end point.
Optionally, the recognition module 420 is configured to input the sentence into a pre-stored part-of-speech recognition model, and recognize a dominant object and a verb corresponding to a functional point in the sentence; determining the dominated object as the dominated object group when the number of dominated objects included in the sentence is judged to be one; otherwise, determining the dominant object group of the sentence according to the number of characters and the characters among the multiple dominant objects.
Optionally, the recognition module 420 is configured to determine the number of characters and characters between two adjacent dominated objects; aggregating a plurality of dominated objects, of which the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group; the remaining dominated objects are each individually formed into a new dominated object group.
Optionally, the determining module 410 is configured to input the sentence into a pre-stored sentence pattern recognition model, and determine the sentence pattern.
The functional point generating apparatus 400 according to the embodiment of the present application has the same implementation principle and technical effects as those of the foregoing method embodiment, and for brevity, reference may be made to the corresponding content in the foregoing method embodiment where the apparatus embodiment portion is not mentioned.
In addition, the embodiment of the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and when the computer program is executed by a computer, the computer program executes the steps included in the function point generating method.
In addition, referring to fig. 3, an embodiment of the present application further provides an electronic device 100 for implementing the method and the apparatus for generating a functional point according to the embodiments of the present application.
Alternatively, the electronic device 100 may be, but is not limited to, a personal computer (Personal computer, PC), a smart phone, a tablet computer, a mobile Internet device (Mobile Internet Device, MID), a personal digital assistant, a server, and the like.
Wherein the electronic device 100 may include: a processor 110, a memory 120.
It should be noted that the components and structures of the electronic device 100 shown in fig. 3 are exemplary only and not limiting, as the electronic device 100 may have other components and structures as desired.
The processor 110, the memory 120, and other components that may be present in the electronic device 100 are electrically connected to each other, either directly or indirectly, to enable transmission or interaction of data. For example, the processor 110, the memory 120, and possibly other components may be electrically connected to each other by one or more communication buses or signal lines.
The memory 120 is used for storing a program, for example, a program corresponding to the function point generation method appearing in the foregoing or the function point generation device appearing in the foregoing. Alternatively, when the function point generating means is stored in the memory 120, the function point generating means includes at least one software function module that may be stored in the memory 120 in the form of software or firmware (firmware).
Alternatively, the software function modules included in the function point generating apparatus may be solidified in an Operating System (OS) of the electronic device 100.
The processor 110 is configured to execute executable modules stored in the memory 120, such as software function modules or computer programs included in the function point generating device. When the processor 110 receives the execution instructions, it may execute a computer program, for example, to perform: determining a sentence pattern of a sentence; identifying a dominant object group and a verb corresponding to the function point, which are included in the sentence; determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to one search interval; and combining verbs corresponding to the function points in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function points.
Of course, the methods disclosed in any of the embodiments of the present application may be applied to the processor 110 or implemented by the processor 110.
In summary, the method, the device, the electronic device and the computer readable storage medium for generating the function point according to the embodiments of the present application include: for each sentence, firstly determining the sentence pattern of the sentence, verbs corresponding to the function points and the dominated object groups in the sentence, then determining search intervals corresponding to the dominated object groups in different modes according to different sentence patterns, and then combining verbs corresponding to the function points in the search intervals with all dominated objects included in the dominated object groups corresponding to the search intervals to obtain the function points. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specifications, meanwhile, the concept of the dominant object group is introduced, the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application.

Claims (7)

1. A method for generating a function point, the method comprising:
determining a sentence pattern of a sentence;
identifying the dominant object group and verb corresponding to the function point included in the sentence comprises the following steps:
inputting the sentence into a pre-stored part-of-speech recognition model, and recognizing a dominated object and a verb corresponding to a functional point in the sentence;
determining the dominated object as the dominated object group when the number of dominated objects included in the sentence is judged to be one;
otherwise, determining the dominant object group of the sentence according to the number of characters and characters among the multiple dominant objects, including:
determining the number of characters and characters between two adjacent dominated objects;
aggregating a plurality of dominated objects, of which the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group;
forming each of the remaining dominated objects individually into a new dominated object group;
determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to one search interval;
combining verbs corresponding to the function points in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function points;
the method comprises the steps of gathering a plurality of dominated objects, wherein the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group; forming each of the remaining dominated objects individually into a new dominated set of objects, comprising:
distributing the dominant object group according to the relation among the dominant objects, and judging that the adjacent two dominant objects are in parallel relation when the number of characters between the adjacent two dominant objects is smaller than a threshold value and preset characters exist between the adjacent two dominant objects according to the number of characters and the characters among the plurality of dominant objects, or judging that the adjacent two dominant objects are in non-parallel relation;
if the relation among the plurality of the dominated objects is in a non-parallel relation, a plurality of dominated object groups are formed independently according to the number of the dominated objects of a drop list, and each dominated object group comprises the dominated objects of one drop list;
if a parallel relationship exists among a plurality of the dominated objects and the dominated objects belong to the same parallel relationship, aggregating the dominated objects into one dominated object group;
if there is a parallel relationship or a non-parallel relationship between the plurality of managed objects, the managed objects having a parallel relationship and belonging to the same parallel relationship are aggregated into one managed object group.
2. The method of claim 1, wherein the determining search intervals from the sentence patterns, wherein each of the dominant object groups corresponds to a search interval, comprises:
when the sentence pattern is determined to be a verb before, starting from each dominated object group, and ending with a previous dominated object group relative to each dominated object group to determine a search interval;
when the sentence pattern is determined to be a verb later or a mixed sentence pattern, starting from each dominated object group, and ending with the next dominated object group relative to each dominated object group to determine a search interval;
wherein when the next subject group does not exist, the end position of the sentence is taken as the end point, and when the previous subject group does not exist, the start position of the sentence is taken as the end point.
3. The method of claim 1, wherein determining the sentence pattern of the sentence comprises:
and inputting the sentence into a pre-stored sentence pattern recognition model, and determining the sentence pattern.
4. A function point generating apparatus, characterized in that the apparatus comprises:
the determining module is used for determining the sentence pattern of the sentence;
the recognition module is used for recognizing the dominant object group and verb corresponding to the function point included in the sentence, and is used for inputting the sentence into a pre-stored part-of-speech recognition model to recognize the dominant object and verb corresponding to the function point in the sentence; determining the dominated object as the dominated object group when the number of dominated objects included in the sentence is judged to be one; otherwise, determining the dominant object group of the sentence according to the number of characters and characters among the multiple dominant objects, including: determining the number of characters and characters between two adjacent dominated objects; aggregating a plurality of dominated objects, of which the number of characters is smaller than a threshold value and the characters are preset characters, into a dominated object group; forming each of the remaining dominated objects individually into a new dominated object group;
the recognition module is further configured to allocate the dominant object group according to a relationship between the dominant objects, and determine that two adjacent dominant objects are in a parallel relationship when it is determined that the number of characters between two adjacent dominant objects is smaller than a threshold value and a preset character exists between the two adjacent dominant objects according to the number of characters and the characters between the multiple dominant objects, or determine that two adjacent dominant objects are in a non-parallel relationship;
if the relation among the plurality of the dominated objects is in a non-parallel relation, a plurality of dominated object groups are formed independently according to the number of the dominated objects of a drop list, and each dominated object group comprises the dominated objects of one drop list;
if a parallel relationship exists among a plurality of the dominated objects and the dominated objects belong to the same parallel relationship, aggregating the dominated objects into one dominated object group;
if the plurality of the dominated objects have a parallel relation and a non-parallel relation, aggregating the dominated objects which have the parallel relation and belong to the same parallel relation into one dominated object group;
the determining module is further configured to determine a search interval according to the sentence pattern, where each of the dominated object groups corresponds to one search interval;
and the combination module is used for combining each verb corresponding to the function point in the search interval with each dominated object included in the dominated object group corresponding to the search interval to obtain the function point.
5. The apparatus of claim 4, wherein the means for determining, when determining that the sentence pattern is a verb preceded, determines a search interval starting at each of the groups of dominant objects and ending at a group of dominant objects that is previous to the each group of dominant objects; when the sentence pattern is determined to be a verb later or a mixed sentence pattern, starting from each dominated object group, and ending with the next dominated object group relative to each dominated object group to determine a search interval;
wherein when the next subject group does not exist, the end position of the sentence is taken as the end point, and when the previous subject group does not exist, the start position of the sentence is taken as the end point.
6. An electronic device, comprising: the device comprises a memory and a processor, wherein the memory is connected with the processor;
the memory is used for storing programs;
the processor invokes a program stored in the memory to perform the method of any one of claims 1-3.
7. A computer-readable storage medium, on which a computer program is stored, which computer program, when run by a computer, performs the method according to any of claims 1-3.
CN201911372793.9A 2019-12-26 2019-12-26 Function point generation method, device, electronic equipment and computer readable storage medium Active CN111126052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911372793.9A CN111126052B (en) 2019-12-26 2019-12-26 Function point generation method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911372793.9A CN111126052B (en) 2019-12-26 2019-12-26 Function point generation method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111126052A CN111126052A (en) 2020-05-08
CN111126052B true CN111126052B (en) 2023-11-03

Family

ID=70503669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911372793.9A Active CN111126052B (en) 2019-12-26 2019-12-26 Function point generation method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111126052B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247707A (en) * 2017-06-27 2017-10-13 北京神州泰岳软件股份有限公司 Enterprise's incidence relation information extracting method and device based on completion strategy
CN107392436A (en) * 2017-06-27 2017-11-24 北京神州泰岳软件股份有限公司 A kind of method and apparatus for extracting enterprise's incidence relation information
CN107392433A (en) * 2017-06-27 2017-11-24 北京神州泰岳软件股份有限公司 A kind of method and apparatus for extracting enterprise's incidence relation information
CN109241538A (en) * 2018-09-26 2019-01-18 上海德拓信息技术股份有限公司 Based on the interdependent Chinese entity relation extraction method of keyword and verb
CN109271527A (en) * 2018-09-27 2019-01-25 华东师范大学 A kind of appellative function point intelligent identification Method
CN110532567A (en) * 2019-09-04 2019-12-03 北京百度网讯科技有限公司 Extracting method, device, electronic equipment and the storage medium of phrase

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107247707A (en) * 2017-06-27 2017-10-13 北京神州泰岳软件股份有限公司 Enterprise's incidence relation information extracting method and device based on completion strategy
CN107392436A (en) * 2017-06-27 2017-11-24 北京神州泰岳软件股份有限公司 A kind of method and apparatus for extracting enterprise's incidence relation information
CN107392433A (en) * 2017-06-27 2017-11-24 北京神州泰岳软件股份有限公司 A kind of method and apparatus for extracting enterprise's incidence relation information
CN109241538A (en) * 2018-09-26 2019-01-18 上海德拓信息技术股份有限公司 Based on the interdependent Chinese entity relation extraction method of keyword and verb
CN109271527A (en) * 2018-09-27 2019-01-25 华东师范大学 A kind of appellative function point intelligent identification Method
CN110532567A (en) * 2019-09-04 2019-12-03 北京百度网讯科技有限公司 Extracting method, device, electronic equipment and the storage medium of phrase

Also Published As

Publication number Publication date
CN111126052A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
US10565444B2 (en) Using visual features to identify document sections
CN108983748B (en) Vehicle fault detection method and terminal equipment
US20170364495A1 (en) Propagation of changes in master content to variant content
CN112287914B (en) PPT video segment extraction method, device, equipment and medium
CN111339250B (en) Mining method for new category labels, electronic equipment and computer readable medium
AU2017201629B2 (en) Identifying trends associated with topics from natural language text
CN111737961B (en) Method and device for generating story, computer equipment and medium
CN109324956B (en) System testing method, apparatus and computer readable storage medium
CN111652658A (en) Portrait fusion method, apparatus, electronic device and computer readable storage medium
WO2019015133A1 (en) Lexicon management method and device for input method
US20200395004A1 (en) Computer System, Model Generation Method, and Computer Readable Recording Medium
CN111126052B (en) Function point generation method, device, electronic equipment and computer readable storage medium
US20230186212A1 (en) System, method, electronic device, and storage medium for identifying risk event based on social information
CN111797633A (en) Feature submission deduplication engine
CN108197101B (en) Corpus labeling method and apparatus
JP2005276040A (en) Degrade confirming examining method and system, and program for the same
CN105095513B (en) A kind of method and apparatus cracking oracle database account password
CN113791860A (en) Information conversion method, device and storage medium
CN113050933A (en) Brain graph data processing method, device, equipment and storage medium
CN112416983B (en) Data processing method and device and computer readable storage medium
CN114924703B (en) Resolution and refresh rate switching method, device and medium
US20240143161A1 (en) System and method for digitizing and mining handwritten notes to enable real-time collaboration
CN116795978A (en) Complaint information processing method and device, electronic equipment and medium
CN115510871A (en) Text recognition method, device and equipment
CN115510835A (en) Method and device for acquiring text template and method and device for generating medical record text

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 230000 zone B, 19th floor, building A1, 3333 Xiyou Road, hi tech Zone, Hefei City, Anhui Province

Applicant after: Dingfu Intelligent Technology Co.,Ltd.

Address before: Room 630, 6th floor, Block A, Wanliu Xingui Building, 28 Wanquanzhuang Road, Haidian District, Beijing

Applicant before: DINFO (BEIJING) SCIENCE DEVELOPMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant