Combined service similarity analysis method, device, computer system and storage medium
By coding business attributes and evaluating similarity of combined services in the banking service system, redundant services are identified and integrated, which solves the problem of repeated development and maintenance of combined services and improves system efficiency.
Patent Information
- Application Number
- CN202110746907.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In banking service systems, repeated development of combined services and redundant services lead to difficulties in system maintenance. How to quickly evaluate whether two services are similar to achieve integration and improve efficiency.
By obtaining the business attributes of the composite service, coding the service, calculating the similarity between services, and evaluating the similarity of the composite service, redundant services can be identified and integrated.
Effectively identify and integrate redundant services, improve the overall efficiency of the service system, reduce repeated development, and simplify system maintenance.
Smart Images

Figure CN113409136B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of financial technology, and more specifically, to a method, device, computer system and storage medium for analyzing similarity of combined services. Background Art
[0002] In the banking service system, the development of many composite services often calls related interfaces to meet different needs according to business requirements. This leads to similar functions in different composite services, causing problems of repeated development and difficult maintenance of the service system. If two services call the same few interfaces, it can be considered that the two services are similar in some functions. Based on this, the two services can be integrated to remove redundant services and improve the utilization efficiency of the service system. How to quickly evaluate whether two services are similar is a technical issue worth studying. Summary of the invention
[0003] In view of this, the present disclosure provides a method, device, computer system and storage medium for analyzing combined service similarity.
[0004] One aspect of the present disclosure provides a composite service similarity analysis method, including: obtaining a first composite service and a second composite service, the first composite service including multiple first services, and the second composite service including multiple second services; performing service encoding on each of the first services and each of the second services based on business attributes; calculating a first similarity between each of the first services and each of the second services based on the service encoding; and calculating a second similarity between the first composite service and the second composite service based on the first similarity between each of the first services and each of the second services.
[0005] According to an embodiment of the present disclosure, the calculating the first similarity between each of the first services and each of the second services based on the service coding includes: calculating the distance between each of the service codings of the first services and each of the second services, and recording the distance as the first similarity between the corresponding first service and the second service.
[0006] According to an embodiment of the present disclosure, each of the first services and each of the second services includes multiple business attributes, and the service encoding of each of the first services and each of the second services based on the business attributes includes: attribute encoding each of the business attributes of the first service and the second service according to preset rules; combining the attribute codes of the first service and the second service respectively in a preset order to form the service codes of the first service and the second service respectively.
[0007] According to an embodiment of the present disclosure, the calculation of the first similarity between each of the first services and each of the second services based on the service coding includes: comparing the attribute coding of the corresponding business attributes in the first service and the second service in turn, and counting the number of identical attribute codings in the first service and the second service; calculating the ratio of the number of identical attribute codings to the total number of business attributes to obtain the first similarity.
[0008] According to an embodiment of the present disclosure, the calculating the second similarity between the first composite service and the second composite service based on the first similarity between each of the first services and each of the second services includes: for each of the first services, comparing the first similarities between the first service and each of the second services, and recording the maximum similarity as the contribution value of the first service to the second similarity; and calculating the average of the contribution values corresponding to each of the first services to obtain the second similarity.
[0009] On the other hand, the present disclosure provides a combined service similarity analysis device, including: a service acquisition module, used to acquire a first combined service and a second combined service, the first combined service includes multiple first services, and the second combined service includes multiple second services; a service encoding module, used to perform service encoding on each of the first services and each of the second services based on business attributes; a first similarity calculation module, used to calculate the first similarity between each of the first services and each of the second services based on the service encoding; a second similarity calculation module, used to calculate the second similarity between the first combined service and the second combined service based on the first similarity between each of the first services and each of the second services.
[0010] According to an embodiment of the present disclosure, the first similarity calculation module includes: a distance calculation unit, which is used to calculate the distance between the service codes of each of the first services and each of the second services, and record the distance as the first similarity between the corresponding first service and the second service.
[0011] According to an embodiment of the present disclosure, each of the first services and each of the second services includes multiple business attributes, and the service coding module includes: an attribute coding unit, used to perform attribute coding on each business attribute of the first service and the second service according to preset rules; a service coding unit, used to combine the attribute codings of the first service and the second service respectively in a preset order to form service codings of the first service and the second service respectively.
[0012] According to an embodiment of the present disclosure, the distance calculation unit includes: a same business attribute statistics unit, used to compare the attribute codes of the corresponding business attributes in the first service and the second service in turn, and count the number of identical attribute codes in the first service and the second service; a calculation unit, used to calculate the ratio of the number of identical attribute codes to the total number of business attributes, and obtain the first similarity.
[0013] According to an embodiment of the present disclosure, the second similarity calculation module includes: a service contribution calculation unit, used to compare the first similarity between the first service and each of the second services for each of the first services, and record the maximum similarity as the contribution value of the first service to the second similarity; a similarity calculation unit, used to calculate the average of the contribution values corresponding to each of the first services to obtain the second similarity.
[0014] Another aspect of the present disclosure provides a computer system, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the methods described in the first aspect.
[0015] Another aspect of the present disclosure provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement any one of the methods of the first aspect.
[0016] According to the embodiments of the present disclosure, based on comparing the similarities of the business attributes between the services in the composite service, the similarity between the composite services is evaluated, which can be applied in the service system to help developers find similar composite services, help with subsequent service integration, and remove redundant services, thereby improving the overall efficiency of the service system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 An exemplary system architecture to which the combined service similarity analysis method and apparatus disclosed herein can be applied is schematically shown;
[0019] Figure 2 The application scenario of the combined service similarity analysis method and device according to the embodiment of the present disclosure is schematically shown;
[0020] Figure 3 A flowchart of a combined service similarity analysis method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 4A block diagram schematically shows a device for analyzing combined service similarity according to an embodiment of the present disclosure; and
[0022] Figure 5 A block diagram of a computer system 500 suitable for implementing a robot according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0023] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0024] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0025] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0026] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0027] The embodiments of the present disclosure provide a method and device for analyzing the similarity of a combined service. The method includes an encoding process and a similarity calculation process. In the encoding process, each server is service-encoded based on the business attributes of each server. After the server is encoded, a similarity calculation process is entered, and based on the service encoding of the server, a first similarity between each service in two combined services is calculated, and a second similarity for evaluating the first combined service and the second combined replication is obtained based on the first similarity.
[0028] Figure 1 The exemplary system architecture 100 to which the combined service similarity analysis method and device according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0029] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0030] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients and / or social platform software, etc. (only as examples).
[0031] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0032] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0033] It should be noted that the combined service similarity analysis method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the combined service similarity analysis device provided in the embodiment of the present disclosure can generally be arranged in the server 105. The combined service similarity analysis method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the combined service similarity analysis device provided in the embodiment of the present disclosure can be arranged in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Alternatively, the combined service similarity analysis method provided in the embodiment of the present disclosure can also be executed by the terminal devices 101, 102, or 103, or can also be executed by other terminal devices different from the terminal devices 101, 102, or 103. Accordingly, the combined service similarity analysis device provided in the embodiment of the present disclosure may also be arranged in the terminal device 101 , 102 , or 103 , or in other terminal devices different from the terminal device 101 , 102 , or 103 .
[0034] For example, the information of each combined server may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stored in an external storage device and may be imported into the terminal device 101. Then, the terminal device 101 may locally execute the combined service similarity analysis method provided by the embodiment of the present disclosure, or send the information of each combined server to other terminal devices, servers, or server clusters, and the other terminal devices, servers, or server clusters that receive the information of the combined server may execute the combined service similarity analysis method provided by the embodiment of the present disclosure.
[0035] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0036] Figure 2 The application scenario of the combined service similarity analysis method and device according to the embodiments of the present disclosure is schematically shown.
[0037] like Figure 2As shown, in the service system, there are multiple downstream services a, b, c, d, e, f, etc. In order to realize certain functions, there are often a large number of composite services A, B, C, D, etc., which are composed of multiple downstream services. As the development progresses, the number of composite services will gradually increase, but different composite services will have similar functions. For example, composite services A and C both include downstream services a, b, c, which causes problems of repeated development and makes the service system difficult to maintain. In this case, the same or similar composite services can be merged to reduce redundant services and improve the utilization efficiency of the service system.
[0038] Figure 3 The flowchart of the combined service similarity analysis method according to the embodiment of the present disclosure is schematically shown.
[0039] like Figure 3 As shown, the method includes operations S310 to S340.
[0040] S310: Acquire a first composite service and a second composite service, where the first composite service includes a plurality of first services and the second composite service includes a plurality of second services.
[0041] S320: Perform service coding on each of the first services and each of the second services based on business attributes.
[0042] S330: Calculate first similarities between each of the first services and each of the second services based on the service codes.
[0043] S340: Calculate a second similarity between the first combined service and the second combined service based on the first similarities between each of the first services and each of the second services.
[0044] In an embodiment of the present disclosure, a first similarity of services included in a combined service is calculated through the business attributes of the services, and then a second similarity of the combined service is calculated based on the first similarity. This method uses the business attributes of the services included in the combined service as an evaluation basis, and provides a calculation basis for evaluating the similarity between combined services.
[0045] According to S310, basic information of the first composite service A and the second composite service B to be evaluated for similarity can be obtained from the preset services, including which services are included in the first composite service A and the second composite service B, and which business attributes each service has. For example, the first composite service A calls downstream services a, b, c (i.e., the first service), and the composite service B calls downstream services a, b, d (i.e., the second service), and each downstream service has some business attributes.
[0046] According to S320, the service coding of each of the first services and each of the second services based on the business attributes includes S321-S322.
[0047] S321: Perform attribute coding on each service attribute of the first service and the second service according to a preset rule.
[0048] According to the embodiments of the present disclosure, each business attribute can be one-hot encoded. For example, assuming that the attributes of a service include type, function, application, version, etc., where there are three types: product application, technical support, and channel application, if the service type is product application, its one-hot encoding is preset to [1, 0, 0]; if the service type is technical support, its one-hot encoding is preset to [0, 1, 0]; if the service type is channel application, its one-hot encoding is preset to [0, 0, 1].
[0049] S322: Combine the attribute codes of the first service and the second service in a preset order to form service codes of the first service and the second service.
[0050] In the disclosed embodiment, each of the first services and each of the second services includes a plurality of business attributes, including service type, service function, application, version, etc. Assume that a service includes four business attributes, namely, service type, service function, application, and version, and the specific attribute codes of each attribute are [1, 0, 0], [0, 0, 1], [0, 1, 0], [0, 0, 1], respectively. Combining these codes in sequence, the corresponding service code is [1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1].
[0051] Optionally, according to operation S330, the calculating the first similarities between each of the first services and each of the second services based on the service codes may specifically include S331.
[0052] S331, calculating the distance between the service codes of each of the first services and each of the second services, and recording the distance as the first similarity between the corresponding first service and the second service.
[0053] According to S331, the service encoding may be used as a vector, and the similarity between the first service and the second service may be represented by calculating the Euclidean distance between the vector representations of the first service and the second service.
[0054] Optionally, operation S330 may further include S332 to S333.
[0055] S332: Compare the attribute codes of the corresponding business attributes in the first service and the second service in turn, and count the number of the same attribute codes in the first service and the second service.
[0056] S333: Calculate the ratio of the number of identical attribute codes to the total number of business attributes to obtain the first similarity.
[0057] Different from step S331, S332 evaluates the similarity between the first service and the second service by counting the number of identical business attributes between the two. For example, composite service A calls downstream services a, b, c (i.e., the first service), and composite service B calls downstream services a, b, d (i.e., the second service). These downstream services a, b, c, d all have some attributes. Assume that the attribute codes of the service type, service function, application, and version of the first service a are [1, 0, 0], [0, 0, 1], [0, 1, 0], [0, 0, 1], and the attribute codes of the service type, service function, application, and version of the second service d are [0, 1, 0], [0, 0, 1], [1, 0, 0], [0, 1, 0], respectively. The first service a and the second service d have the same business attributes. There is 1 business attribute and the total number of business attributes is 4, then sim(ad)=1 / 4=0.25; for another example, assuming that the attribute codes of the service type, service function, application, and version of the first service b are [0, 0, 1], [1, 0, 0], [0, 1, 0], [0, 1, 0] respectively, and the attribute codes of the service type, service function, application, and version of the second service a are [0, 0, 1], [0, 1, 0], [0, 1, 0], [0, 1, 0] respectively, there are 3 identical business attributes between the first service a and the second service d, and the total number of business attributes is 4, then sim(ba)=3 / 4=0.75.
[0058] According to S340, the calculating the second similarity between the first combined service and the second combined service based on the first similarity between each of the first services and each of the second services includes operations S341 to S342.
[0059] S341: For each of the first services, compare the first similarities between the first service and each of the second services, and record the maximum similarity as the contribution value of the first service to the second similarity.
[0060] For example, the first composite service A includes first services a, b, and c, and the second composite service B includes second services a, b, and d. First, the first service a is compared with the second services a, b, and d respectively. Assuming sim(aa)=1, sim(ab)=0.3, and sim(ad)=0.5, the maximum value 1 is taken as the final contribution value of the first service a to the second similarity. Similarly, the first service b is compared with the second services a, b, and d, and then the second service c is compared with the second services a, b, and d to obtain corresponding contribution values respectively.
[0061] S342: Calculate the average of the contribution values corresponding to the first services to obtain the second similarity.
[0062] Assuming that the contribution values of the first services a, b and c are 1, 1 and 0.6 respectively, the second similarity between the first composite service A and the second composite service B is (1+1+0.6) / 3=0.87.
[0063] According to the composite service similarity analysis method provided in the present invention, based on comparing the similarity of business attributes between each service in the composite service, the similarity between the composite services is evaluated, which can be applied in the service system to help developers find similar composite services, help subsequent service integration, remove redundant services, and thus improve the overall efficiency of the service system.
[0064] Figure 4 The block diagram of the combined service similarity analysis device according to the embodiment of the present disclosure is schematically shown.
[0065] like Figure 4 As shown, a combined service similarity analysis device 400 provided by an embodiment of the present disclosure includes: a service acquisition module 410 , a service encoding module 420 , a first similarity calculation module 430 , and a second similarity calculation module 440 .
[0066] The service acquisition module 410 is used to acquire a first combined service and a second combined service, where the first combined service includes a plurality of first services and the second combined service includes a plurality of second services.
[0067] The service encoding module 420 is used to perform service encoding on each of the first services and each of the second services based on business attributes.
[0068] The first similarity calculation module 430 is configured to calculate first similarities between each of the first services and each of the second services based on the service codes.
[0069] The second similarity calculation module 440 is configured to calculate a second similarity between the first combined service and the second combined service based on the first similarities between each of the first services and each of the second services.
[0070] The first similarity calculation module 430 includes: a distance calculation unit 431 .
[0071] The distance calculation unit 431 is used to calculate the distance between the service codes of each of the first services and each of the second services, and record the distance as the first similarity between the corresponding first service and the second service.
[0072] Each of the first services and each of the second services includes a plurality of business attributes, and the service encoding module 420 includes: an attribute encoding unit 421 and a service encoding unit 422 .
[0073] The attribute encoding unit 421 is used to perform attribute encoding on each service attribute of the first service and the second service according to a preset rule.
[0074] The service encoding unit 422 is used to combine the attribute codes of the first service and the second service respectively in a preset order to form the service codes of the first service and the second service respectively.
[0075] The distance calculation unit 431 may include: a same service attribute statistics unit 432 and a calculation unit 433 .
[0076] The same service attribute counting unit 432 is used to sequentially compare the attribute codes of the corresponding service attributes in the first service and the second service, and count the number of the same attribute codes in the first service and the second service.
[0077] The calculation unit 433 is used to calculate the ratio of the number of the same attribute codes to the total number of business attributes to obtain the first similarity.
[0078] The second similarity calculation module 440 includes: a service contribution calculation unit 441 and a similarity calculation unit 442 .
[0079] The service contribution calculation unit 441 is configured to compare, for each of the first services, the first similarities between the first service and each of the second services, and record the maximum similarity as the contribution value of the first service to the second similarity.
[0080] The similarity calculation unit 442 is used to calculate the average of the contribution values corresponding to each of the first services to obtain the second similarity.
[0081] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0082] For example, any of the service acquisition module 410, the service encoding module 420, the first similarity calculation module 430, and the second similarity calculation module 440 can be combined in one module / unit / sub-unit for implementation, or any of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the service acquisition module 410, the service encoding module 420, the first similarity calculation module 430, and the second similarity calculation module 440 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the service acquisition module 410, the service encoding module 420, the first similarity calculation module 430, and the second similarity calculation module 440 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0083] It should be noted that the combined service similarity analysis device part in the embodiment of the present disclosure corresponds to the combined service similarity analysis method part in the embodiment of the present disclosure. The description of the combined service similarity analysis device part specifically refers to the combined service similarity analysis method part, which will not be repeated here.
[0084] Figure 5 A block diagram of a computer system suitable for implementing the method described above according to an embodiment of the present disclosure is schematically shown. Figure 5 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0085] like Figure 5 As shown, the computer system 500 according to the embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0086] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other through bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0087] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0088] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0089] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0090] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0091] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 502 and / or the RAM 503 described above and / or one or more memories other than the ROM 502 and the RAM 503 .
[0092] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0093] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0094] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for analyzing the similarity of combined services, comprising: Acquire a first composite service and a second composite service, wherein the first composite service includes a plurality of first services, and the second composite service includes a plurality of second services; Performing service coding on each of the first services and each of the second services based on business attributes; Calculate first similarities between each of the first services and each of the second services based on the service codes; Calculating a second similarity between the first combined service and the second combined service based on first similarities between each of the first services and each of the second services; The calculating the first similarity between each of the first services and each of the second services based on the service code comprises: Calculate the distance between the service codes of each of the first services and each of the second services, and record the distance as the first similarity between the corresponding first service and the second service; Each of the first services and each of the second services includes a plurality of service attributes, and performing service coding on each of the first services and each of the second services based on the service attributes includes: Performing attribute coding on each service attribute of the first service and the second service according to a preset rule; Combining the attribute codes of the first service and the second service in a preset order to form service codes of the first service and the second service; The calculating the first similarity between each of the first services and each of the second services based on the service code comprises: Comparing the attribute codes of the corresponding business attributes in the first service and the second service in sequence, and counting the number of identical attribute codes in the first service and the second service; The first similarity is obtained by calculating the ratio of the number of the same attribute codes to the total number of business attributes.
2. The method according to claim 1, wherein the calculating the second similarity between the first composite service and the second composite service based on the first similarity between each of the first services and each of the second services comprises: For each of the first services, compare the first similarities between the first service and each of the second services, and record the maximum similarity as the contribution value of the first service to the second similarity; An average of the contribution values corresponding to each of the first services is calculated to obtain the second similarity.
3. A combined service similarity analysis device, comprising: A service acquisition module, configured to acquire a first combined service and a second combined service, wherein the first combined service includes a plurality of first services and the second combined service includes a plurality of second services; A service encoding module, used for performing service encoding on each of the first services and each of the second services based on business attributes; A first similarity calculation module, configured to calculate first similarities between each of the first services and each of the second services based on the service codes; A second similarity calculation module, configured to calculate a second similarity between the first combined service and the second combined service based on the first similarities between each of the first services and each of the second services; The first similarity calculation module includes: a distance calculation unit, configured to calculate the distance between the service codes of each of the first services and each of the second services, and record the distance as a first similarity between the corresponding first service and the second service; Each of the first services and each of the second services includes a plurality of business attributes, and the service encoding module includes: an attribute encoding unit, configured to perform attribute encoding on each service attribute of the first service and the second service according to a preset rule; A service encoding unit, configured to combine the attribute codes of the first service and the second service in a preset order to form service codes of the first service and the second service; The distance calculation unit comprises: A same service attribute counting unit, used for sequentially comparing the attribute codes of the corresponding service attributes in the first service and the second service, and counting the number of the same attribute codes in the first service and the second service; The calculation unit is used to calculate the ratio of the number of the same attribute codes to the total number of business attributes to obtain the first similarity.
4. The device according to claim 3, wherein the second similarity calculation module comprises: a service contribution calculation unit, configured to compare, for each of the first services, the first similarities between the first service and each of the second services, and record the maximum similarity as a contribution value of the first service to the second similarity; The similarity calculation unit is used to calculate the average of the contribution values corresponding to each of the first services to obtain the second similarity.
5. A computer system comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 2.
6. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Service multiplexing method, computing device and computer readable storage medium
CN111914859A
