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

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

Info

Publication number
CN111126052A
CN111126052A CN201911372793.9A CN201911372793A CN111126052A CN 111126052 A CN111126052 A CN 111126052A CN 201911372793 A CN201911372793 A CN 201911372793A CN 111126052 A CN111126052 A CN 111126052A
Authority
CN
China
Prior art keywords
dominated
sentence
object group
determining
objects
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.)
Granted
Application number
CN201911372793.9A
Other languages
Chinese (zh)
Other versions
CN111126052B (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.)
Dinfo Beijing Science Development Co ltd
Original Assignee
Dinfo Beijing Science Development 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 Dinfo Beijing Science Development Co ltd filed Critical Dinfo Beijing Science Development 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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)

Abstract

The invention relates to a method and a device for generating function points, electronic equipment and a computer readable storage medium, and belongs to the field of natural language processing. The method comprises the following steps: for each sentence, determining a sentence pattern of the sentence, verbs corresponding to the function points in the sentence and a dominated object group, then determining a search interval corresponding to the dominated object group in different modes according to different sentence patterns, and then 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. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specification, and meanwhile, the concept of the dominated object group is introduced, so that the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.

Description

Function point generation method and 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 function point generation method and device, electronic equipment and a computer-readable storage medium.
Background
Software requires the establishment of a specification of requirements prior to development. For a software developer, the size of a software project needs to be preliminarily evaluated according to functional terms or functional points (a specific business process that can be separately completed, such as user query, user modification, user deletion, and the like) recorded in a requirement specification, so as to measure the time cost and economic cost required by software development, and therefore the requirement specification needs to be decomposed, so as to generate the functional points.
In the prior art, the requirement specification is generally decomposed manually. However, when people face a large amount of text, errors or omissions are easy to occur, and meanwhile, the efficiency is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device and a computer-readable storage medium for generating function points, which can improve the work efficiency, improve the work quality, and reduce the error or omission phenomenon caused by carelessness of the human being.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for generating a function point, including: determining sentence patterns of sentences; identifying a dominated object group and a verb corresponding to a functional point and included in the sentence; determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to a search interval; and combining verbs corresponding to the function points in the search interval with the dominated objects 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 specification, and meanwhile, the concept of the dominated object group is introduced, so that the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining a search interval according to the sentence pattern, where each dominated object group corresponds to a search interval includes:
determining a search interval with each dominated object group as a starting point and a previous dominated object group relative to the each dominated object group as an end point when the sentence is determined to be verb ahead;
when determining that the sentence pattern is a verb behind or a mixed sentence pattern, determining a search interval with each dominated object group as a starting point and a next dominated object group relative to the each dominated object group as an end point; wherein, when the latter dominated object group does not exist, the ending position of a sentence is taken as the end point, and when the former dominated object group does not exist, the starting 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 a group of dominated objects and verbs included in the sentence and corresponding to the functional point 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 dominated object group of the sentence according to the number of characters and characters among the plurality of dominated objects.
With reference to the embodiment of the first aspect, in a possible implementation manner, the determining a dominated object group of the sentence according to the number of characters and characters between a plurality of dominated 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 less than a threshold value and the characters are preset characters into a dominated object group; the remaining dominated objects are each formed individually as a new dominated object group.
With reference to the embodiment of the first aspect, in one possible implementation manner, the determining a sentence pattern of the sentence includes: and inputting the sentence into a sentence pattern recognition model stored in advance to determine the sentence pattern.
In a second aspect, an embodiment of the present application provides a function point generating apparatus, where the apparatus includes: the determining module is used for determining the sentence pattern of the sentence; the recognition module is used for recognizing the dominated object group and verb corresponding to the functional point and included in the sentence; the determining module is further configured to determine a search interval according to the sentence pattern, where each dominated object group corresponds to one search interval; and the combination module is used for combining verbs corresponding to the function points in the search interval and the dominated objects included in the dominated object group corresponding to the search interval to obtain the function points.
With reference to the second aspect embodiment, in a possible implementation manner, the determining module is configured to, when determining that the sentence is a verb, determine a search interval with each dominated object group as a starting point and with a previous dominated object group relative to each dominated object group as an end point; when determining that the sentence pattern is a verb behind or a mixed sentence pattern, determining a search interval with each dominated object group as a starting point and a next dominated object group relative to the each dominated object group as an end point; wherein, when the latter dominated object group does not exist, the ending position of a sentence is taken as the end point, and when the former dominated object group does not exist, the starting position of the sentence is taken as the end point.
With reference to the second aspect, in a possible implementation manner, the recognition module is configured to input the sentence into a part-of-speech recognition model stored in advance, and recognize 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 dominated object group of the sentence according to the number of characters and characters among the plurality of dominated objects.
With reference to the embodiment of the second aspect, in a possible implementation manner, the identification module 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 less than a threshold value and the characters are preset characters into a dominated object group; the remaining dominated objects are each formed individually as a new dominated object group.
With reference to the second aspect, in a possible implementation manner, the determining module is configured to input the sentence into a sentence pattern recognition model stored in advance, and determine the sentence pattern.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the method of the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fourth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter, referred to as a computer-readable storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect and/or any possible implementation manner 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 obvious from the description, or may be learned by the 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 needed to be used 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 it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a flowchart of a function point generating method provided in an embodiment of the present application.
Fig. 2 shows a block diagram of a function point generating apparatus according to an embodiment of the present application.
Fig. 3 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Reference numbers: 100-an electronic device; 110-a processor; 120-a memory; 400-functional 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 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the method for generating a function point in the prior art has the defects of easy error occurrence and low efficiency, which are also the results obtained after the applicant has practiced and studied carefully, and therefore, the discovery process of the above defects and the solution proposed by the embodiments of the present application in the following for the above defects should be the contribution of the applicant to the present application in the process of the present application.
In order to solve the above-mentioned defects, embodiments of the present application provide a method and an apparatus for generating a function point, an electronic device, and a computer-readable storage medium, which can improve work efficiency, improve work quality, and reduce manual error or omission caused by carelessness. The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
First, a function point generating method provided in the present application will be described.
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 may be applied to the electronic device itself, to an Application (APP) installed in the electronic device, or to an applet embedded in a public platform installed in the electronic device, such as a wechat applet.
The steps involved will be described below in conjunction with fig. 2.
Step S110: determining the sentence pattern of the sentence.
The electronic device can read the requirement specification to be decomposed, and accordingly obtains character information of each character contained 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 information of the characters, takes the characters as segmentation symbols, and splits the requirement specification into a plurality of sentences.
Alternatively, the default characters may include, but are not limited to, "line breaks," "Chinese semicolons," "English semicolons," "periods," and the like.
After obtaining a plurality of sentences, the electronic device inputs each sentence into a sentence pattern recognition model stored in advance by taking the sentence as a unit, thereby determining 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 the sentence, and judges the sentence pattern of the sentence by recognizing the precedence relationship between verbs and nouns in the sentence.
Optionally, the schema may include: "verb before", "verb after", and "mixed sentence".
When there is only a case where a verb precedes a noun in a sentence, it is judged that the sentence is "verb preceding", for example, for the sentence "can maintain the person constitution and organization structure of a company", the verb "maintenance" precedes the noun "company", "person constitution", and organization structure ", and thus, the sentence is" verb preceding ".
When there is only a case where a verb follows a noun in a sentence, it is judged that the sentence of the sentence is "verb behind", for example, maintenance and graphical exhibition of a person composition and organization structure of a company can be performed with respect to the sentence ", and the verbs" maintenance "and" exhibition "are both located behind the nouns" company "," person composition ", and" organization structure ", and thus, the sentence of the sentence is" verb behind ".
When there is a case where a verb is before a noun and a case where a verb is after a noun in a sentence, the sentence pattern of the sentence is judged to be a "mixed sentence pattern". For example, for the sentence "can show the personal composition of a company and maintain the organizational structure of the company", the verb "show" is located before the nouns "company", "personal composition", and "organizational structure", and the verb "maintain" is located after the nouns "company", "personal composition", and "organizational structure", so the sentence is a "mixed sentence".
Step S120: and identifying a dominated object group and a verb which are included in the sentence and correspond to the functional point.
In the embodiment of the application, a part-of-speech recognition model can be established in advance, and the part-of-speech recognition model can recognize the part of speech of each language entity in a sentence so as to determine nouns and verbs in the sentence. In addition, verbs and managed objects corresponding to commonly used function points are stored in the part-of-speech recognition model in advance, and a function point word library is formed. Subsequently, after the part-of-speech recognition model recognizes the part-of-speech of the language entity included in the sentence, the language entity can be matched with the functional point word library, so that a verb corresponding to the functional point and a dominated object in the sentence are recognized.
Optionally, 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, in order to improve the integrity of the subsequently obtained function points, the dominated objects in the sentence can be formed into a dominating object group.
The following will describe a process of forming a dominated object group.
The electronic device first obtains the number of dominated objects included in the sentence.
When the electronic equipment 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 judges that a sentence has a plurality of dominated objects, it is necessary to assign a dominated object group according to the relationship between dominated objects.
Alternatively, the electronic device may determine the relationship between the plurality of governed objects based on the number of characters and the characters between the plurality of governed objects. The number of characters between the two governed objects represents the number of characters existing between the two governed objects, and the relationship between the governed objects includes a parallel relationship and a non-parallel relationship.
Optionally, the electronic device first obtains the number of characters and characters between the multiple governed objects, and when it is determined that the number of characters between two adjacent governed objects is smaller than a threshold (for example, 3, the value may be modified according to an actual situation), and a preset character exists between two adjacent governed objects, it is determined that the two adjacent governed objects are in a parallel relationship, otherwise, it is determined that the two adjacent governed objects are in a non-parallel relationship.
The preset characters can be characters used for representing connection, such as "," and ", etc.
For example, for the sentence "show a and B while deleting C", when "a", "B", and "C" are all determined as dominated objects and the threshold is 5, the number of characters between adjacent dominated objects "a" and "B" is 2, which is less than the threshold 5, and furthermore, the characters between "a" and "B" are "and" belong to a preset character, and therefore, there is a parallel relationship between "a" and "B"; the number of characters between adjacent 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, and therefore, "B" and "C" are in a non-parallel relationship.
After the relationships between the respective governed objects are determined, if the relationships between the plurality of governed objects are all non-parallel (for convenience of description, referred to herein as the governed objects of the drop order), the electronic device forms a plurality of governed object groups individually according to the number of governed objects of the drop order, with each governed object group including one governed object of the drop order.
If a plurality of dominated objects have a parallel relationship and the dominated objects belong to the same parallel relationship, the electronic device aggregates the dominated objects into one dominated object group, for example, only A, B, C dominated objects exist, A and B have a parallel relationship, B and C have a parallel relationship, A, B, C belongs to the same parallel relationship, and the electronic device aggregates A, B, C into the same dominated object group.
If there is both a parallel relationship and a non-parallel relationship between a plurality of controlled objects, the electronic device groups the controlled objects having a parallel relationship and belonging to the same parallel relationship into one controlled object group. In this embodiment, optionally, a sentence may have multiple parallel relations, for example, there are only A, B, C, D four dominated objects, a and B have a parallel relation, C and D have a parallel relation, B and C do not have a parallel relation, a and B belong to the same parallel relation (for convenience of distinction, referred to as parallel relation 1), C and D belong to the same parallel relation (for convenience of distinction, referred to as parallel relation 2), and parallel relation 1 is different from parallel relation 2. At this time, the electronic device aggregates A, B into the same dominated object group and aggregates C, D into another dominated object group. In addition, a sentence may have one or more parallel relationships and also have a single dominated object. In this case, the electronic device needs to form a plurality of dominated object groups each including one dominated object in a single controlled object group according to the number of dominated objects in a single controlled object group, in addition to aggregating dominated objects having a parallel relationship and belonging to the same parallel relationship into one dominated object group. For example, A, B, C are the only three dominated objects, and a has a parallel relationship with B, B has no parallel relationship with C, a and B belong to the same parallel relationship, and C is the dominated object of the drop sheet. At this time, the electronic device aggregates A, B into the same dominated object group, and forms C alone into one dominated object group.
Also taking the sentence "the person composition and the organization architecture of the company can be maintained and graphically illustrated" as an example, according to the above rule, when the terms "person composition" and "organization architecture" are definitely the dominated objects, since the "person composition" and "organization architecture" are in a parallel relationship, in this sentence, the dominated object group is one, and the group includes two dominated objects, which are the "person composition" and the "organization architecture", respectively.
Step S130: and determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to one search interval.
For a sentence, when the sentence pattern is "verb first", the electronic device first locates each dominated object group in the sentence. Then, for each dominated object, the electronic device determines a search interval with the dominated object group as a starting point and with a dominated object group that is one object before the dominated object group as an ending point. Through the above operation, there is one corresponding search interval for each dominated object group.
For a sentence, when the sentence pattern is "verb behind" or "mixed sentence pattern", the electronic device first locates each dominated object group in the sentence. Then, for each dominated object, the electronic device determines a search interval with the dominated object group as a starting point and a subsequent dominated object group of the dominated object group as an ending point. Through the above operation, there is one corresponding search interval for each dominated object group.
As a fault-tolerant process, when there is no subsequent dominated object group for a certain dominated object group (e.g., a sentence includes only one dominated object group), the electronic device ends with the termination position of the sentence; when for a certain dominated object group, there is no previous dominated object group (e.g. a sentence comprises only one dominated object group), the electronic device ends with the start position of the sentence.
The sentence "maintain the personnel organization and organization architecture of the company" is taken as an example for explanation. The sentence pattern of the sentence is "verb first", and in the sentence, the group of governed objects is "human composition and organizational structure". The search is performed forward using the dominated object group as a starting point, and since there is no previous dominated object group, the end point is the starting position of the sentence, and the search space corresponding to the dominated object group is specified as "maintenance company".
The example is described in the sentence "the personnel organization and organization architecture of a company can be maintained and graphically represented". The sentence pattern of the sentence is "verb behind", and in the sentence, the group of governed objects is "human composition and organizational structure". The dominated object group is used as a starting point to search backwards, and since the dominated object group does not exist, the end point is the termination position of a sentence, so that the search interval corresponding to the dominated object group is determined as 'maintenance and graphical presentation'.
The example is given by the sentence "can graphically represent the staff member of a company and maintain the organizational structure". The sentence pattern is a "mixed sentence pattern", and the two ruled object groups are "person composition" and "organizational structure", respectively. When searching backward with the "person composition" as a starting point, the next dominated object group "organization structure" is searched, and with this as an end point, a search interval corresponding to the dominated object group "person composition" is specified as "graphically displayed and".
Step S140: and combining verbs corresponding to the function points in the search interval with the dominated objects 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 the function point, or there may be a plurality of verbs corresponding to the function points. For the dominated object group 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 the group. In order to avoid omission, the electronic device forms verbs corresponding to the function points in the search interval and the dominated objects in the dominated object group corresponding to the search interval in a one-to-one correspondence relationship, so that the function points are obtained.
For example, when the dominated object group is "person composition and organization architecture", and the search space corresponding thereto is "maintenance company", the function point can be obtained: maintenance-personnel composition, maintenance-organization architecture.
According to the method for generating the function point, for each sentence, a sentence pattern of the sentence, verbs corresponding to the function points in the sentence and a dominated object group are determined, then a search interval corresponding to the dominated object group is determined in different modes according to different sentence patterns, and then each verb corresponding to the function point in the search interval and each dominated object included in the dominated object group corresponding to the search interval are combined to obtain the function point. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specification, and meanwhile, the concept of the dominated object group is introduced, so that the integrity of the generated function points is improved, and the omission phenomenon of the function points is avoided.
As shown in fig. 2, an embodiment of the present application further provides a function point generating apparatus 400, where the function point generating apparatus 400 may include: a determination module 410, an identification module 420, a combination module 430.
A determining module 410 for determining a sentence pattern of the sentence;
a recognition module 420, configured to recognize a set of dominated objects and verbs included in the sentence and corresponding to the function point;
the determining module 410 is further configured to determine a search interval according to the sentence pattern, where each dominated object group corresponds to a search interval;
a combination module 430, configured to combine 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, so as to obtain a function point.
Optionally, the determining module 410 is configured to, when determining that the sentence is preceded, determine a search interval with each dominated object group as a starting point and a previous dominated object group relative to the each dominated object group as an end point; when determining that the sentence pattern is a verb behind or a mixed sentence pattern, determining a search interval with each dominated object group as a starting point and a next dominated object group relative to the each dominated object group as an end point; wherein, when the latter dominated object group does not exist, the ending position of a sentence is taken as the end point, and when the former dominated object group does not exist, the starting position of the sentence is taken as the end point.
Optionally, the recognition module 420 is configured to input the sentence into a part-of-speech recognition model stored in advance, and recognize 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 dominated object group of the sentence according to the number of characters and characters among the plurality of dominated 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 less than a threshold value and the characters are preset characters into a dominated object group; the remaining dominated objects are each formed individually as a new dominated object group.
Optionally, the determining module 410 is configured to input the sentence into a sentence pattern recognition model stored in advance, and determine the sentence pattern.
The function point generating apparatus 400 provided in the embodiment of the present application has the same implementation principle and the same technical effect as those of the foregoing method embodiments, and for the sake of brief description, no mention of the apparatus embodiment part can refer to the corresponding contents in the foregoing method embodiments.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computer, the computer program executes the steps included in the above-mentioned function point generating method.
In addition, please refer to fig. 3, an embodiment of the present application further provides an electronic device 100 for implementing the function point generating method and apparatus of the embodiment of the present application.
Alternatively, the electronic Device 100 may be, but is not limited to, a Personal Computer (PC), a smart phone, a tablet PC, a Mobile Internet Device (MID), a Personal digital assistant, a server, and the like.
Among them, the electronic device 100 may include: a processor 110, a memory 120.
It should be noted that the components and structure of electronic device 100 shown in FIG. 3 are exemplary only, and not limiting, and electronic device 100 may have other components and structures as desired.
The processor 110, memory 120, and other components that may be present in the electronic device 100 are electrically connected to each other, directly or indirectly, to enable the transfer or interaction of data. For example, the processor 110, the memory 120, and other components that may be present may be electrically coupled to each other via 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 generating method described above or a function point generating device described above. Optionally, when the function point generating means is stored in the memory 120, the function point generating means includes at least one software function module which can be stored in the memory 120 in the form of software or firmware (firmware).
Alternatively, the software function module included in the function point generating apparatus may also be solidified in an Operating System (OS) of the electronic device 100.
The processor 110 is adapted to execute executable modules stored in the memory 120, such as software functional modules or computer programs comprised by the functional point generating device. When the processor 110 receives the execution instruction, it may execute the computer program, for example, to perform: determining sentence patterns of sentences; identifying a dominated object group and a verb corresponding to a functional point and included in the sentence; determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to a search interval; and combining verbs corresponding to the function points in the search interval with the dominated objects included in the dominated object group corresponding to the search interval to obtain the function points.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
In summary, the method, the apparatus, the electronic device and the computer-readable storage medium for generating function points according to the embodiments of the present invention include: for each sentence, determining a sentence pattern of the sentence, verbs corresponding to the function points in the sentence and a dominated object group, then determining a search interval corresponding to the dominated object group in different modes according to different sentence patterns, and then 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. By the method, the electronic equipment can automatically generate the function points based on the acquired requirement specification, and meanwhile, the concept of the dominated object group is introduced, so that 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, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures 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 an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent 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 such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A method for generating a function point, the method comprising:
determining sentence patterns of sentences;
identifying a dominated object group and a verb corresponding to a functional point and included in the sentence;
determining a search interval according to the sentence pattern, wherein each dominated object group corresponds to a search interval;
and combining verbs corresponding to the function points in the search interval with the dominated objects included in the dominated object group corresponding to the search interval to obtain the function points.
2. The method of claim 1, wherein said determining search intervals according to said schema, wherein each of said dominated object groups corresponds to a search interval, comprises:
determining a search interval with each dominated object group as a starting point and a previous dominated object group relative to the each dominated object group as an end point when the sentence is determined to be verb ahead;
when determining that the sentence pattern is a verb behind or a mixed sentence pattern, determining a search interval with each dominated object group as a starting point and a next dominated object group relative to the each dominated object group as an end point;
wherein, when the latter dominated object group does not exist, the ending position of a sentence is taken as the end point, and when the former dominated object group does not exist, the starting position of the sentence is taken as the end point.
3. The method of claim 1, wherein said identifying the set of dominated objects and verbs included in the sentence that correspond to the functional point comprises:
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 dominated object group of the sentence according to the number of characters and characters among the plurality of dominated objects.
4. The method of claim 3, wherein determining the set of dominated objects of the sentence according to the number of characters and the characters between the plurality of dominated objects comprises:
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 less than a threshold value and the characters are preset characters into a dominated object group;
the remaining dominated objects are each formed individually as a new dominated object group.
5. The method of claim 1, wherein determining the sentence pattern of the sentence comprises:
and inputting the sentence into a sentence pattern recognition model stored in advance to determine the sentence pattern.
6. 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 dominated object group and verb corresponding to the functional point and included in the sentence;
the determining module is further configured to determine a search interval according to the sentence pattern, where each dominated object group corresponds to one search interval;
and the combination module is used for combining verbs corresponding to the function points in the search interval and the dominated objects included in the dominated object group corresponding to the search interval to obtain the function points.
7. The apparatus of claim 6, wherein said determining module, when determining that said sentence is preceded, determines a search interval starting at each dominated object group and ending at a preceding dominated object group relative to said each dominated object group; when determining that the sentence pattern is a verb behind or a mixed sentence pattern, determining a search interval with each dominated object group as a starting point and a next dominated object group relative to the each dominated object group as an end point;
wherein, when the latter dominated object group does not exist, the ending position of a sentence is taken as the end point, and when the former dominated object group does not exist, the starting position of the sentence is taken as the end point.
8. The apparatus according to claim 6, wherein the recognition module is configured to input the sentence into a part-of-speech recognition model stored in advance, and recognize 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 dominated object group of the sentence according to the number of characters and characters among the plurality of dominated objects.
9. An electronic device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a computer, performs the method of any one of claims 1-5.
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 true CN111126052A (en) 2020-05-08
CN111126052B 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
CN111126052B (en) 2023-11-03

Similar Documents

Publication Publication Date Title
Cordell Q i-jtb the Raven
CN108983748B (en) Vehicle fault detection method and terminal equipment
CN112287914B (en) PPT video segment extraction method, device, equipment and medium
US11550995B2 (en) Extracting structured data from handwritten and audio notes
CN105183761A (en) Sensitive word replacement method and apparatus
CN112686036B (en) Risk text recognition method and device, computer equipment and storage medium
US20160078865A1 (en) Information Processing Method And Electronic Device
CN107608618B (en) Interaction method and device for wearable equipment and wearable equipment
CN113590802B (en) Session content abnormity detection method and device, electronic equipment and storage medium
CN107390896B (en) A kind of the dictionary management method and device of input method
CN111930976B (en) Presentation generation method, device, equipment and storage medium
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
CN112579733A (en) Rule matching method, rule matching device, storage medium and electronic equipment
CN115964997A (en) Confusion option generation method and device for choice questions, electronic equipment and storage medium
CN107783968B (en) Language conversion method, device, readable medium and storage controller
CN114528851B (en) Reply sentence determination method, reply sentence determination device, electronic equipment and storage medium
CN109710751A (en) Intelligent recommendation method, apparatus, equipment and the storage medium of legal document
CN113050933B (en) Brain graph data processing method, device, equipment and storage medium
CN114401346A (en) Response method, device, equipment and medium based on artificial intelligence
CN115759009A (en) Text processing method and device, electronic equipment and readable storage medium
CN118051213A (en) Code input completion method, device, electronic equipment and storage medium
JP3826071B2 (en) Sentence creation support apparatus and method, and program
JP2022154561A (en) Interactive control system and interactive control method
CN115688744A (en) English sentence pattern conversion method, device, computer equipment and storage medium

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant