A design resource association method

By constructing multi-level semantic models and hierarchical clustering, the problem of crowdsourcing design resource classification is solved, and refined resource management and personalized service capabilities are improved.

CN114997288BActive Publication Date: 2024-10-15OCEAN UNIV OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210557335.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2024-10-15
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

Existing crowdsourcing design resource classification models are difficult to achieve refined classification of complex functional descriptions and efficient resource utilization, and there are information island problems in tree structures and keyword structures.

Method used

Build a multi-level semantic model, map text to semantic space through the pre-trained BERT model, perform hierarchical clustering, and realize the association and refined classification management of design resources.

Benefits of technology

It achieves unified modeling and refined classification of crowdsourced design resources, improves resource utilization and personalized service capabilities, and simplifies the semantic association mining and aggregation of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114997288B_ABST
    Figure CN114997288B_ABST
Patent Text Reader

Abstract

The present invention discloses a semantic analysis method for design resources, in which a multi-level semantic model is constructed for crowdsourced design resources, then structured text is mapped to a semantic space, hierarchical clustering is performed in the semantic space, and when clustering is performed in the semantic space, vector inner product maximization is transformed into an equivalent Euclidean distance minimization, and then points in the vector space are hierarchically clustered from bottom to top according to their mutual distances, without the need to estimate the initial number of clusters and category centers. The present invention is an algorithm suitable for clustering in a semantic space, and a hierarchical semantic resource distribution structure can be obtained. The clustering speed is fast, and a clustering tree can be established by scanning a data set once. After clustering, semantic cluster labels can be obtained, and each label represents a more detailed classification with similar semantics, so that the present invention realizes the association and refined classification management of design resources based on hierarchical clustering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer data processing, and in particular, relates to a semantic association analysis method for crowdsourcing design resources. Background Art

[0002] Crowdsourced design resources on Internet crowdsourcing platforms are mostly expressed in a mixture of text, numbers, and image data. The self-organizing characteristics of crowdsourcing services lead to great differences in the relevant content among design resources. To manage design resources well, it is necessary to structure the relevant service content involved.

[0003] After structured processing, the aggregation of crowdsourcing design resources is the basis for realizing dynamic correlation mining of design resources. The personalized crowdsourcing platform uses semantic association technology to realize deep aggregation of internal and external resources of the crowdsourcing platform at the semantic level. This can not only enable the valuable information of the crowdsourcing platform to be mined and enhance the ability of the crowdsourcing platform to provide personalized services, but it is also a necessary link for the crowdsourcing platform to carry out personalized services.

[0004] Association mining is a method of mining implicit relationships between objects from large-scale data. It can reveal hidden association patterns in data and help people conduct market operations, decision support, etc. It reflects the interdependence and association between an object and other objects. If there is a certain association relationship between two or more objects, then the associated object can be predicted through other objects.

[0005] The association mining of crowd-sourced design resources is more about how to organize scattered and disordered resources and form certain associations through clustering. The association mining of crowd-sourced design resources can not only make user information push more intelligent and get rid of the low accuracy problem brought by traditional keyword matching, but also help merchants to further optimize design resources, form new and more detailed classifications, and improve resource utilization.

[0006] At present, most crowdsourcing resource classifications use a combination of user selection and manual labeling, which requires pre-specified classification names and is coarse-grained, generally only able to achieve first-level classification, with subject-verb / verb-object gerund combination phrases used for naming, and no ordered relationship between classifications. However, for complex functional description information, it is not easy to reflect its functional characteristics if it is directly classified under a first-level classification, and if a service has multiple functional categories, it is difficult to define which category it belongs to.

[0007] The existing resource classification model aggregates resources with certain characteristics or attributes according to the functional description of the resources, and distinguishes different resources according to the characteristics or attributes. It is divided into the following two types: 1. Tree-structured resource classification model: This model uses numbers or letters to uniformly classify and encode crowdsourcing resources according to the general principles and methods of classification and coding. It has the characteristics of hierarchy and systematicity, and can determine the position and relationship of any resource in the system; 2. Keyword-structured resource classification model: This model uses keywords or tags to represent and describe the attributes or characteristics of resources. The keywords or tags here are often independently compiled by each resource provider, which is not easy to share resources on the Internet. Summary of the invention

[0008] The present invention proposes a design resource association method, analyzes the deficiencies of the existing resource classification system, constructs a multi-level semantic model, extracts semantic chains, uses a pre-trained BERT model to map text to a semantic space, performs hierarchical clustering in the semantic space, and realizes the association and refined classification management of design resources based on hierarchical clustering.

[0009] The present invention is implemented by the following technical solutions:

[0010] A design resource association method is proposed, including:

[0011] Construct a multi-level semantic model for crowdsourced design resources;

[0012] Mapping the semantic chain of the multi-level semantic model into the semantic space;

[0013] The maximum inner product of vectors is equivalent to the minimum Euclidean distance, and the semantic text of design resources is hierarchically clustered in the semantic space;

[0014] Associating design resources based on hierarchical clustering results;

[0015] Among them, building a multi-level semantic model includes:

[0016] (1)) Traverse the design resources to find the core verb-predicate, and obtain the primary semantics with the detected generalized verb-object relationship; the generalized verb-object relationship includes direct object relationship, indirect object relationship, prepositioned object relationship, the core verb-predicate and its dominated noun phrase as adverbial-predicate relationship, the core verb-predicate and its dominated noun phrase as subject-predicate relationship, and the modifier expressed as attributive-predicate relationship when the object of the core verb-predicate is missing;

[0017] (2) Detect the modified components of the predicate center word and the object center word in the primary semantics to obtain the secondary semantics;

[0018] (3) Detect the modifying components of the central word of the secondary semantics to obtain the tertiary semantics;

[0019] (4) Complete the detected semantic components higher than level three onto the central word to which they belong.

[0020] Furthermore, a multi-level semantic model is constructed for crowdsourced design resources, specifically:

[0021] Step 1: Separate words and tag parts of speech for the crowdsourcing design resource sentences;

[0022] Step 2, dividing the short sentence processed in step 1 into multiple independent short sentences;

[0023] Step 3: Perform the following processing on each independent sentence:

[0024] 1) Dependency analysis;

[0025] 2) Extract independent functional components from independent sentences using parallel relationships and independent structures;

[0026] 3) Construct a multi-level semantic model for each independent functional component.

[0027] Furthermore, independent functional components in independent sentences are extracted based on parallel relationships and independent structural relationships, including:

[0028] (1) When the detected parallel relationship is located in the generalized object modification area, it is equally divided into two independent functional components based on the core verb and predicate;

[0029] (2) When the detected parallel relationship is between the core verb and predicate, it is equally divided into two independent functional components;

[0030] (3) When a parallel relationship and an independent structure exist at the same time, if the independent structure is a verbal predicate and there is a parallel relationship, it is equally divided into two independent functional components based on the verbal predicate of the independent structure; if the independent structure is not a verbal predicate, no independent functional component is established.

[0031] Furthermore, a multi-level semantic model is constructed for each independent functional component, including: when it is detected that the first-level semantics does not have a core object, its modified part is regarded as its object and constructed into the first-level semantics.

[0032] Furthermore, the semantic chain of the multi-level semantic model is mapped to the semantic space by using a mapping model, wherein the mapping model consists of an embedding layer, a Chinese BERT model layer, and an average pooling layer; the embedding layer performs embedding operations on word vectors and position vectors, and obtains a composite embedding matrix by adding them; wherein, in the embedding operation of the word vector, the stop symbol “[STOP]” is used to perform a mask operation on the input sequence.

[0033] Furthermore, the maximum vector inner product is equivalent to the minimum Euclidean distance, including:

[0034] Preset a value U<1, U is an adjustable hyperparameter, 0.8≤U≤1, calculate

[0035] x is a semantic vector; S is a set of semantic vectors;

[0036] For each semantic vector X i ∈S is divided by V, and we get

[0037] Two transformation methods are introduced for any semantic vector:

[0038] Transform P(x) by adding m terms And transform Q(x) by adding m "1 / 2", that is

[0039] as well as Can get

[0040]

[0041]

[0042]

[0043] Based on the above three expansion items, we get

[0044] The left side represents the maximization of the original vector inner product, and the right side represents the minimization of the Euclidean distance;

[0045] So when any vector q and x i When comparing the similarity of is a fixed term. When m is large, it can be seen that Get

[0046] Compared with the prior art, the advantages and positive effects of the present invention are: in the design resource association method proposed in the present invention, the crowdsourced design resource sentences are segmented, part-of-speech tagged, divided into independent sentences, each independent sentence is divided into independent functional components, and a multi-level semantic model is constructed for each independent functional component, thereby converting the unstructured natural language sentence description into a structured relationship set, realizing the unified modeling of crowdsourced design resources, and then mapping the structured text to the vector space to obtain a semantic representation in vector form, performing hierarchical clustering in the semantic space, and realizing the association and refined classification management of design resources based on hierarchical clustering.

[0047] When implementing clustering in the semantic space, the vector inner product maximization is transformed into the equivalent Euclidean distance minimization, and then the points in the vector space are clustered hierarchically from the bottom up according to their mutual distances. There is no need to estimate the initial number of clusters and category centers. This is an algorithm suitable for clustering in the semantic space, and can obtain a hierarchical semantic resource distribution structure. Moreover, the clustering speed is fast, and the clustering tree can be established by scanning the data set once. After clustering, semantic cluster labels can be obtained, and each label represents a more detailed classification with similar semantics.

[0048] Other features and advantages of the present invention will become more apparent after reading the detailed description of the embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0050] Figure 1 The following is a schematic diagram of the steps of the design resource association method proposed by the present invention;

[0051] Figure 2 A schematic diagram of the steps of structurally processing crowdsourcing design resources in the present invention;

[0052] Figure 3 This is one of the schematic diagrams for dividing independent short sentences in the present invention;

[0053] Figure 4 This is the second schematic diagram of dividing independent short sentences in the present invention;

[0054] Figure 5 The third diagram of the division of independent sentences based on the dependency analysis tree in the present invention;

[0055] Figure 6 This is one of the schematic diagrams for dividing independent functional components based on the dependency analysis tree in the present invention;

[0056] Figure 7 The second schematic diagram of the division of independent functional components based on the dependency analysis tree in the present invention;

[0057] Figure 8 The third diagram of the division of independent functional components based on the dependency analysis tree in the present invention;

[0058] Fig. 9 The following is a schematic diagram of the steps for constructing a multi-level semantic model in the present invention;

[0059] Fig.10 This is one of the schematic diagrams for constructing a multi-level semantic model in the present invention;

[0060] Fig.11 The second schematic diagram of constructing a multi-level semantic model in the present invention;

[0061] Fig.12 The third schematic diagram of constructing a multi-level semantic model in the present invention;

[0062] Fig.13 This is the fourth schematic diagram of constructing a multi-level semantic model in the present invention;

[0063] Fig.14 This is an example of the structure of the embedded layer in the present invention;

[0064] Fig.15 The following is an example of the processing of the stop character mask operation provided by the present invention;

[0065] Fig.16 This is an example of a model for implementing semantic vector mapping in the present invention;

[0066] Fig.17 The accuracy performance of the BERT model under different word segmenters as the word embedding dimension changes;

[0067] Fig.18 This is an example of hierarchical clustering in the present invention;

[0068] Fig.19 This is an example of the representation of the clustering results after dimensionality reduction in the present invention. DETAILED DESCRIPTION

[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] In the description of the present invention, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0071] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0072] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0073] The present invention aims to propose a design resource association method, which takes the text, number and image data on the Internet crowdsourcing platform as the data set, implements clustering based on semantic similarity, thereby realizing the association mining of crowdsourcing design resources and the aggregation of crowdsourcing design resources. It can mine valuable information of the crowdsourcing platform and enhance the ability of the crowdsourcing platform to provide personalized services, which is also a necessary link for the crowdsourcing platform to carry out personalized services.

[0074] Specifically, Figure 1 As shown, the design resource association method proposed by the present invention includes:

[0075] Step S1: Construct a multi-level semantic model for crowdsourced design resources.

[0076] The present invention constructs crowdsourcing design resources into a multi-level semantic model. The more levels there are, the richer the semantics. Figure 2 As shown, the following steps are included:

[0077] Step S21: separate words and perform part-of-speech tagging on the crowdsourced design resource sentences.

[0078] In Chinese, characters are the basic units of words. To understand the meaning of a phrase or a sentence, it is necessary to divide it into words. This requires that when a computer processes a text, it must first divide the sentence into words, that is, automatically identify each word and add boundary markers to separate the words.

[0079] In actual projects, the commonly used method is to use rule-based algorithms for word segmentation, and then use statistical methods to assist. This can efficiently and accurately segment text words, and can also take into account the recognition of new words and unrecorded vocabulary. This is the hybrid word segmentation method.

[0080] For example, the word segmentation result of the short sentence "various brush fonts writing, design" that describes a crowdsourcing resource function is: [various, brush, fonts, writing,, design].

[0081] After word segmentation, the parts of speech need to be marked. Part of speech tagging is to determine the part of speech of each word in the sentence and mark it, dividing each word into nouns, verbs, adjectives, auxiliary words, etc.

[0082] In Chinese, many parts of speech are not single, and different parts of speech are expressed in different sentences. On the other hand, most words often have only one or two parts of speech, and one of the two (or more) parts of speech is used more frequently than the others. There is no unified annotation standard for Chinese part-of-speech tagging. The two mainstream annotations are the Peking University part-of-speech tagging set and the Pennsylvania part-of-speech tagging set. The following are examples of part-of-speech tagging:

[0083] The result of part-of-speech classification of “various brush fonts writing and designing” is: [various / rz, brush / n, font / n, writing / v,、 / w, design / vn].

[0084] The word class markers involved are mainly divided into the following categories: 1) noun (n); 2) verb (v); 3) punctuation (w); 4) adjective (a); 5) conjunction (c); 6) pronoun (r); 7) quantifier (q); 8) other (o). More detailed divisions include: gerund (vn); intransitive verb (vi); food (nf); demonstrative pronoun (rz), etc.

[0085] Step S22: dividing the short sentence processed in step S21 into multiple independent short sentences.

[0086] Punctuation marks are very common in the design resource information on crowdsourcing websites, such as "I can design logo drawings, product appearance, etc.", "Red wine, food, real-life photography", "Homepage design / professional PS cutouts / watermark removal / advertising design / product description", and the functions of these punctuation marks are mostly to divide short sentences. Therefore, the present invention divides short sentences into multiple independent short sentences through spaces, semicolons, commas, forward and backward slashes, etc., and short sentences without punctuation marks do not need to be divided.

[0087] For example:

[0088] 1) Phrases separated by slashes: "Website construction / graphic design / Baidu ranking / Weibo marketing speaks with quality!", the segmentation results refer to Figure 3 shown.

[0089] 2) Phrases separated by spaces: "food dishes desserts drinks beverages soda photography still life product photography photography", the segmentation results refer to Figure 4 shown.

[0090] 3) Phrases separated by commas: "undertake various brochure and menu layout design", the segmentation results are as follows Figure 5 shown.

[0091] Step S23: Perform the following processing on each independent short sentence:

[0092] 1. Dependency analysis.

[0093] A dependency relationship is a relationship between words, that is, a binary asymmetric relationship between a central word and its subordinate words. The central word of a sentence is usually a verb, and all other words depend on the central word.

[0094] The following syntactic dependency relations are mainly used in crowdsourcing resources: 1) parallel relation (COO); 2) compound noun (FM); 3) other noun (QM); 4) direct object (VOB); 5) indirect object (IOB); 6) fronted object (FOB); 7) adverbial-verb relation (ADV); 8) subject-verb relation (SBV); 9) attributive-predicate relation (ATT); (10) independent structure (IC).

[0095] The definitions of the various relationships are as follows:

[0096] The parallel relationship (COO) indicates the word relationship connected by "and, with, or", and is used for the next step of processing of its parallel nouns or verbs, such as "details page and homepage design": {(details page / n–>homepage / n, COO).

[0097] A compound noun (FM) indicates a noun-modifying noun relationship and is used as an object to describe the object of a verb after being split, such as "dishes, desserts, and sweets": {(dishes / n–> desserts / n, FM); (desserts / n–> desserts / n, FM).

[0098] Other nouns (QM) indicate the relationship between other parts of speech other than nouns that modify nouns, describe the attributes of nouns, and are used for subclassification, such as "Mini program development": {(mini / a–>program / n, QM).

[0099] A direct object (VOB) refers to the direct object following the predicate verb. Both the direct object and the preposed object are classified as a verb-object structure, which is the basic relationship of dependency in crowdsourcing corpus, such as "send her a bouquet of flowers": {(send / v–>flowers / n, VOB)}.

[0100] The preposed object (FOB) refers to the object before the predicate verb, such as "mini program development": {(program / n-development / v, FOB).

[0101] The indirect object (IOB) represents the personal word after the predicate verb and occasionally appears in the crowdsourced corpus. For example, in "Send her a bunch of flowers": {(Send / v --> her / n, IOB)}, but this structure has little meaning and will not appear in the final dependency relationship.

[0102] The subject-predicate relationship (SBV) represents the relationship between the doer and the action in a sentence. For example, in "I can help you...": {(I / r --> help / n, SBV)}.

[0103] The adverbial-middle relationship (ADV) represents the relationship where a verb modifies another verb. For example, in "I can help you...": {(can / v --> help / v, ADV)}.

[0104] The attributive-middle relationship (ATT) represents the relationship between the attribute and the headword. For example, in "System security": {(system / n --> security / adj, ATT)}.

[0105] The independent structure (IC) represents the connection of two independent semantic components. For example, in "Website development Website construction": {(Website development --> Website construction, IC)}.

[0106] 2. Extract the independent functional components in the independent short sentences based on the coordination relationship and the independent structure.

[0107] The functional description of the crowdsourced design resources can be short or long. Complex descriptions usually contain multiple core business functions, which can also be called having multiple independent functional components. There is no punctuation separation between each component. For example: "Penetration testing Vulnerability scanning Website security detection Intrusion detection Security testing", "Mobile mall website construction Online shopping Online payment Shopping website development", etc. This kind of description is obviously a collection of multiple business functions. For this kind of description, the present invention extracts the independent functional components of the independent short sentences through dependency analysis.

[0108] Specifically, based on the dependency analysis, the independent functional components are divided according to the coordination relationship (COO) and the independent structure (IC). Since the positions of relationships such as COO and IC are different, different semantic relationships will be caused. The present invention divides the independent functional components according to the following three situations.

[0109] (1) When the detected coordination relationship (COO) is located in the general object modification area, it is equally divided into two independent functional components based on the core verb-predicate.

[0110] Taking "WeChat and system security testing" as an example, its dependency analysis tree is shown in Figure 6 , according to the semantic understanding, based on the core verb-predicate "testing", the coordinated objects "WeChat" and "system" and the core verb-predicate "testing" are equally divided into two independent functional components:

[0111] Independent functional component 1: (The construction of multi-level semantics will be described in detail below)

[0112] First-level semantics: {(test, security, (ATT))}

[0113] Secondary semantics: {(WeChat, security, (ATT))}

[0114] Independent functional ingredient 2:

[0115] First-level semantics: {(test, security, (ATT))}

[0116] Secondary semantics: {(system, security, (ATT))}

[0117] (2) When the detected parallel relationship is between the core verb and predicate, it is equally divided into two independent functional components.

[0118] Take "penetration test, vulnerability scanning, website security detection, intrusion detection, security testing" as an example. This description is lengthy and unclear, but the dependency analysis tree can express the semantic logical relationship among them. Figure 7 The dependency analysis tree shown can detect three core verbs "test 1", "detection", and "test 2", where test 1 and 2 are the same name:

[0119] The two core verbs and predicates form a parallel relationship and are equally divided into two independent functional components. In this embodiment, three independent functional components are divided: (the construction content of multi-level semantics will be described in detail below)

[0120] Independent functional ingredient 1:

[0121] First-level semantics: {(test 1, penetration, (ATT)), (test 1, scan, (ATT))}

[0122] Secondary semantics: (vulnerability, scanning, (ATT))

[0123] Independent functional ingredient 2:

[0124] First-level semantics: {(detection, website, (ATT), (detection, intrusion, (ATT)), (detection, security, (ATT))}

[0125] Independent functional ingredients 3:

[0126] First level semantics: {(test2, security, (ATT))}

[0127] (3) When a parallel relationship and an independent structure exist at the same time, if the independent structure is a verbal predicate and there is a parallel relationship, it is equally divided into two independent functional components based on the verbal predicate of the independent structure; if the independent structure is not a verbal predicate, no independent functional component is established.

[0128] Taking "Shanghai company social security account opening professional registration bookkeeping and tax filing agent with rich experience and super value" as an example, based on Figure 8 The dependency analysis tree shown can detect a core verb predicate "open an account" and four independent structures "register", "bookkeeping", "agent", "experienced" and "special offer". Among them, the independent structures "register", "bookkeeping" and "agent" are all verb predicates and are in parallel relationship. Then, "register", "bookkeeping" and "agent" are equally divided into three independent structures based on "register", "bookkeeping" and "agent", and a total of 4 independent functional components are divided. Among them, "experienced" and "special offer" are non-verbal predicates and no independent functional components are established:

[0129] Independent functional ingredient 1:

[0130] First-level semantics: {(opening an account, social security, (SBV))}

[0131] Secondary semantics: {(enterprise, social security, (ATT))}

[0132] Level 3 semantics: {(Shanghai Company, Enterprise, (ATT))}

[0133] Independent functional ingredient 2:

[0134] First level semantics: {(register, )}

[0135] Secondary semantics: {(professional, registered, (ADV))}

[0136] Independent functional ingredients 3:

[0137] First-level semantics: {(bookkeeping, )}

[0138] Independent functional ingredients 4:

[0139] First-level semantics: {(agent, )}

[0140] Secondary semantics: {(tax return, agency, (ADV))}

[0141] 3. Construct a multi-level semantic model for each independent functional component.

[0142] The present invention constructs a multi-level semantic model based on the following predefined:

[0143] The first-level semantics takes the verb predicate as the core word and the noun phrase as the subordinate word. It expresses the basic semantics of the sentence through direct object relationship (VOB), indirect object relationship (IOB), fronted object relationship (FOB), etc., and generally represents a main function provided by the service resource.

[0144] Based on the primary semantics, the secondary semantics modifies and supplements the respective central words through the adverbial-verb relationship (ADV), the verb-complement relationship (CMP), and the preposition-object relationship (POB).

[0145] Based on the secondary semantics, the tertiary semantics continues to modify and supplement the central words of the secondary semantics, making the semantics richer and fuller.

[0146] The natural language of service resources expressed in phrases can basically express the entire meaning of the resources through the third-level semantics. Grammatical components higher than the third level can be processed by truncation or completion to the third-level central word.

[0147] When constructing the first-level semantics, taking into account the errors in dependency analysis, many relationships that should be subject-object relationships from the actual semantics will be identified as attributive-mediate-terminal (ATT) relationships. Therefore, for the first-level semantics, if it is detected that the core verb predicate and its dominant noun phrase are in an ATT relationship, it is also regarded as a subject-object relationship. The core verb predicate and its dominant noun phrase are in a subject-verb (SBV) relationship, which is also regarded as a subject-object relationship. When the object of the core verb predicate is missing, it may be due to the expression of the language itself or the error of the dependency analysis model itself. In this case, the semantics is mainly expressed by the core predicate and its modified parts. In this application, the modification expressed in the attributive-mediate-terminal (ATT) relationship is also regarded as the object and is located at the first-level position.

[0148] Therefore, when constructing the primary semantics, the present invention application refers to the direct object relationship, indirect object relationship, prepositioned object relationship, core verb-predicate relationship with its dominated noun phrase as adverbial-predicate relationship, core verb-predicate relationship with its dominated noun phrase as subject-predicate relationship, and modifiers expressed as attributive-predicate relationship when the object of the core verb-predicate is missing as generalized verb-object relationship. The reason for this design is that in both cases, the dominated noun can be regarded as the patient role, and can be combined with the verbal predicate to fully express the semantics, thereby obtaining a semantic expression model that is as general as possible.

[0149] Based on the above predefined method, the present invention proposes a method for constructing a multi-level semantic model, such as Fig. 9 As shown, including:

[0150] 1. Traverse the independent functional components to find the core verb-predicate, and obtain the primary semantics based on the generalized verb-object relationship detected.

[0151] The broad subject-verb relationship here includes direct object relationship, indirect object relationship, preposed object relationship, adverbial-predicate relationship between the core subject-verb and the noun phrase it controls, subject-predicate relationship between the core subject-verb and the noun phrase it controls, and modifiers expressed in attributive-predicate relationship when the object of the core subject-verb is missing.

[0152] 2. Detect the modifying components of the predicate center word and object center word in the primary semantics to obtain the secondary semantics.

[0153] The predicate core word and object core word are modified and supplemented through the adverbial-verb relationship (ADV), verb-complement relationship (CMP) and preposition-object relationship (POB).

[0154] 3. Detect the modifying components of the central word of the secondary semantics to obtain the tertiary semantics.

[0155] The central word of the secondary semantics is different from the predicate central word and the object central word in the primary semantics. It is the modifying and supplementing part of the two. If there are no other modifying words in the modifying and supplementing part, the tertiary semantics will not be constructed.

[0156] 4. Complete the semantic components higher than the third level onto the central word to which they belong.

[0157] The entire extraction process is performed by traversing the dependency analysis tree from bottom to top in the opposite direction of the relationship arcs of the dependency analysis tree.

[0158] Taking "self-made handmade skin care products, top-grade makeup remover oil" as an example, its dependency analysis tree is shown in Fig.10 , the core verb predicate "self-made" and its object "makeup remover" constitute the first-level semantics. In the second-level semantics, the predicate center word "self-made" has no modified part. The modified parts of the object center word "makeup remover" "top" and "skin care products" form the second-level semantics. The center word "skin care products" in the second-level semantics has a modified part, so the third-level semantics is constructed with "skin care products" as the center word. The multi-level semantic model obtained according to the above steps is as follows:

[0159] First-level semantics: {(homemade, makeup remover oil, (VOB))}

[0160] Secondary semantics: {(top, cleansing oil, (ATT)), (skin care products, cleansing oil, (ATT))}

[0161] Level 3 semantics: {(handmade, skin care products, (ATT))}

[0162] It can be seen that the first-level semantics reflects the main function of the service resource, while the second- and third-level semantics are the modification parts of the core word.

[0163] In actual applications, although the resource description of a single independent functional component has only one core business function, it can be divided into the following two situations:

[0164] (1) The first level has a core object

[0165] Taking "renting temporary network space at a low price" as an example, the syntax tree obtained through dependency analysis is as follows Fig.11 As shown, its multi-level semantic model is given as:

[0166] First-level semantics: {(rental, network space, (VOB))}

[0167] Secondary semantics: {(low price, rental, (ADV)), (temporary, network space, (ATT))}

[0168] (2) There is no core object at the first level

[0169] As mentioned above, the missing object of the core verb predicate may be due to the expression of the language itself or the error of the dependency analysis itself. In this case, the semantics is mainly expressed by the core predicate and its modified parts. In this invention, the modification expressed by the attributive-central (ATT) relationship is still regarded as the object and is located in the position of primary semantics.

[0170] Taking "website security detection" as an example, its dependency analysis tree is as follows Fig.12 As shown, its multi-level semantic model is:

[0171] First-level semantics: {(detection, security, (ATT))}

[0172] Secondary semantics: {(website, security, (ATT))}

[0173] Based on the semantic analysis method of crowdsourcing design resources proposed in the present invention, the crowdsourcing design resource sentences are segmented, part-of-speech tagged, divided into independent sentences, each independent sentence is divided into independent functional components, and a multi-level semantic model is constructed for each independent functional component, thereby converting the unstructured natural language sentence description into a structured relationship set, realizing the unified modeling of crowdsourcing design resources, which is of great significance for subsequent retrieval and matching.

[0174] Finally, taking "mobile phone mall website construction, online shopping, online payment and shopping website development" as an example, the semantic analysis method of crowdsourcing design resources proposed in this invention is applied to obtain a structured relationship set, and the dependency relationship analysis tree is shown in FIG. Fig.13 , structured processing includes:

[0175] 1. Segment and tag the sentence.

[0176] 2. Split the short sentence processed in step 1 into multiple independent short sentences using spaces, semicolons, commas, and forward and backward slashes;

[0177] This short sentence has no spaces, semicolons, commas, or forward and backward slashes, so this step can be skipped and the whole sentence can be considered as an independent short sentence.

[0178] 3. Perform dependency analysis on the independent sentence.

[0179] 4. Extract the independent functional components in the independent sentence by using parallel relationship and independent structure.

[0180] By traversing the independent sentence, we retrieved that its core verbs and predicates are "construction" and "development". According to the parallel relationship (COO), we divide it into two independent functional components with "construction" and "development" as the core verbs and predicates: independent functional component 1 (the core verb and predicate is "construction") and independent functional component 2 (the core verb and predicate is "development").

[0181] There are no independent structures such as independent verbs and independent nouns in this independent sentence, so there is no need to divide the independent functional components according to the independent structures.

[0182] 5. Construct a multi-level semantic model for each independent functional component.

[0183] For independent functional component 1, we get its first-level semantics {(construction, website 1, (ATT))} based on the generalized subject-object relationship. We search for the modified parts of the predicate center word "construction" and the object center word "website" in the first-level semantics to get the second-level semantics {(mall, website 1, (ATT))}. We search for the modified parts of the center word "mall" in the second-level semantics to get the third-level semantics {(mobile phone, mall, (ATT))}. The multi-level semantic model is as follows:

[0184] Independent functional ingredient 1:

[0185] First-level semantics: {(construction, website 1, (ATT))}

[0186] Secondary semantics: {(mall, website 1, (ATT))}

[0187] Level 3 semantics: {(mobile phone, mall, (ATT))}

[0188] For independent functional component 2, we get its first-level semantics {{(development, website 2, (ATT))} based on the generalized subject-object relationship. We search for the modified parts of the predicate center word "development" and the object center word "website" in the first-level semantics to get the second-level semantics {{(online shopping, website 2, (ATT)), (shopping, website 2, (ATT))}. We retrieve the modified parts of the center word "shopping" in the second-level semantics to get the third-level semantics {{(online payment, shopping, (ADV))}. The multi-level semantic model is as follows:

[0189] Independent functional ingredient 2:

[0190] First-level semantics: {(development, website 2, (ATT))}

[0191] Secondary semantics: {(online shopping, website 2, (ATT)), (shopping, website 2, (ATT))}

[0192] Level 3 semantics: {(online payment, shopping, (ADV))}

[0193] The above-mentioned websites 1 and 2 have the same name but are distinguished from each other.

[0194] It should be noted that the dependency analysis tree mentioned in the above content of the present invention is another existing analysis means for semantic analysis, which is not a technical means limited by the present invention. The semantic analysis method of the present invention can be supported by adopting existing methods.

[0195] As mentioned above, after the crowdsourcing design resources are structured semantically processed, the structured multi-level semantic model is mapped to the vector space to obtain a semantic representation in vector form, and hierarchical clustering is performed in the semantic space to achieve aggregation of crowdsourcing design resources. This can enable valuable information on the crowdsourcing platform to be mined, enhance the crowdsourcing platform's ability to provide personalized services, and is also a necessary link for the crowdsourcing platform to provide personalized services.

[0196] Common mean clustering algorithms such as the K-means algorithm are highly efficient, but the initial K-value machine class center is not easy to obtain; density clustering algorithms such as DBSCAN are sensitive to parameter settings such as radius and minimum point diameter; more importantly, these methods are all for Euclidean clustering and cannot be directly used on semantic vectors. In response to this problem, the present invention proposes a design resource association method that first changes the semantic vector so that the vector inner product maximization is transformed into an equivalent Euclidean distance minimization, and then the points in the vector space are hierarchically clustered from the bottom to the top according to the distance between each other. There is no need to estimate the initial number of clusters and category centers. This method is suitable for clustering in the semantic space, and can obtain a hierarchical semantic resource distribution structure. It is also fast and only needs to scan the data set once to establish a clustering tree. After clustering, semantic cluster labels can be obtained, and each label represents a more detailed classification with similar semantics.

[0197] Step S2: Map the semantic chain of the multi-level semantic model to the semantic space.

[0198] The structured functional semantic text, that is, the semantic chain after multi-level semantic modeling, is mapped to the vector space to obtain its semantic pointer in vector form, which is convenient for measuring semantic distance.

[0199] There are generally four methods for semantic representation, which are divided into traditional semantic representation algorithms, semantic representation based on shallow embedding technology, semantic representation based on deep neural network, and semantic representation enhanced by attention mechanism. Traditional semantic representation uses one-hot vector and BOW model. The values ​​in one-hot vector are only 0 and 1. A word only has 1 in the corresponding word position in the dimensional vector, and the other positions are 0. However, this encoding sparse coding is not suitable for crowdsourcing platforms because the number of words on crowdsourcing platforms is huge and the corresponding feature space will be very large. Shallow embedding technology is also called distributed representation. Its widely representative models include CBOW and continuous skip-gram models, but these models ignore the sequence problem. Deep neural network semantic representation can handle sequence structure, but the gradient disappearance problem will occur when processing text with large input information. In addition to being able to process sequences more accurately, the attention mechanism can also focus on important information between input and generated output.

[0200] The transformer-based BERT model has been widely used in recent NLP (natural language processing) research. The latest Chinese BERT adopts the strategy of Whole Word Masking (WWM), which can effectively alleviate the problem of masked word annotation in the pre-trained model. Further extensive experiments have also proved that whole word masking can significantly improve the performance of the model.

[0201] In the present invention, the Chinese-based BERT is used to implement semantic mapping. It is constructed by multiple deep bidirectional transformer components, thus forming a deep bidirectional language representation that can integrate left and right context information. Transformer is a sequence modeling architecture based on attention mechanism. Compared with the traditional recurrent neural network-based model, transformer can process the global dependency information in the text sequence in a parallel manner, so transformer has a higher computing speed.

[0202] In the present invention, the overall structure of the resource semantic text mapping is designed to consist of an embedding layer, a Chinese BERT model layer based on full-word masking, and an average pooling layer.

[0203] Embedding layer: This layer mainly vectorizes the structured functional semantic text and converts it into the corresponding word vector matrix. Its specific structure is referenced Fig.14 shown.

[0204] Before conversion, all functional semantic text data are counted to obtain the corresponding dictionary. Subsequently, the pre-trained word vector weights are used as the word vector of the embedding layer of the model for initialization. The embedding layer needs to embed the text into word vectors and position vectors, and ultimately contains two forms of embedding. A composite embedding matrix is ​​obtained by adding them together and sent to the Chinese BERT model layer.

[0205] The input matrix in the Chinese BERT model layer obtained by the embedding layer can finally be expressed as:

[0206]

[0207] In fact, the resource text on the manufacturing crowdsourcing platform is a resource text collection consisting of multiple words and short sentences, which usually represent multiple capabilities and have weak correlations with each other. Therefore, it cannot be directly input into the BERT model through vectorization operations. For this reason, in the embodiment of the present invention, the stop symbol "[STOP]" is used to perform a mask operation on the resource text sequence, thereby ensuring that the input into the BERT model is not a continuous long sentence.

[0208] Suppose there is a design resource text sequence D = [w1, w2, ..., w n ], where w i is the unique hot representation of the i-th word. After the stop symbol mask operation, it will be segmented into a resource text set consisting of phrases and short sentences:

[0209] D set ={[[UNK],w1,w2,…[STOP]],…,[…,w n-1 ,w n ,[CLS]]} (2);

[0210] Among them, [UNK] and [CLS] are the start and end characters of the resource text respectively.

[0211] When performing word vectorization operations, the resource text embedding matrix is ​​also affected by the stop symbol mask operation, namely:

[0212] X set ={[[UNK],x1,x2,…[STOP]],…,[…,x n-1 ,x n ,[CLS]]} (3);

[0213] Among them, X set is a collection of word vector matrices.

[0214] Since the embedding matrix after word vectorization cannot reflect the relative position relationship between words in the text sequence, an additional position encoding operation is required. Similarly, the present invention generates a position embedding vector at each word position to obtain a position vector matrix set:

[0215] E set ={[[UNK],e1,e2,…[STOP]],…,[…,e n-1 ,e n ,[CLS]]} (4);

[0216] Finally, the resource text set embedding matrix input into the Chinese BERT model is the sum of the word vector matrix and the position vector matrix:

[0217]

[0218] like Fig.15 FIG. 4 is a processing diagram of a stop character mask operation shown in FIG.

[0219] Chinese BERT model layer: This layer completely adopts the pre-training method based on full word masking. Since this model has many parameters, we choose to use the training parameters and corresponding weights of Cui et al. to fill this model layer, and freeze these parameters so that they no longer participate in the training optimization process, which will greatly reduce the corresponding training and learning costs.

[0220] The resource text vector output based on the Chinese BERT model is:

[0221]

[0222] The classic BERT model uses a "next sentence prediction task" with a mask operation to implement the learning of the pre-trained model. However, the resource text data set merging of the Internet crowdsourcing platform does not meet this feature. In the implementation of the present invention, a text classification task is used to implement the training of the BERT model.

[0223] Through the service category field "Class_ID" corresponding to each sample in the dataset, the text classification task training is continued based on the BERT model trained by Cui et al. based on the Wikipedia corpus.

[0224] Average pooling layer: In the previous step, the model outputs a matrix representation of size TXd. In this layer, a simple but effective average pooling strategy is used to process all output vectors. The resulting semantic mapping representation vector of the design resource can be calculated as:

[0225]

[0226] Add an attention layer and a Softmax layer to the output layer of the BERT model to meet the needs of the classification task. The overall architecture of the model is as follows: Fig.16 shown.

[0227] In this way, for any input length, a d-dimensional semantic vector output is always obtained.

[0228] After using the pre-trained BERT model to map the text to the semantic space, the design resource description has unique coordinates. The coordinates can be used to obtain the distribution of the design resources embedded in the vector space, and perform clustering, classification, and association mining.

[0229] In order to fully verify the effectiveness of the above-mentioned model, the present invention selected about 1 million pieces of original data from the back-end database of the crowdsourcing design resource platform for model verification. They are semi-structured texts of service resources containing multiple fields such as service index "Service_Index", service content "Service_Content" and service category "Class_ID".

[0230] Since the original service resource text format is complex and cannot meet the requirements of this article, it is necessary to digitize and vectorize these texts:

[0231] 1. Chinese word segmentation: Since the character-based feature granularity will lose too much "N-gram" information, the text data needs to be segmented. In order to maximize the pre-training effect of the BERT model, a variety of word segmenters were used for processing, including Jieba, PKUSeg, THULAC, HANNLP and BaiduLAC. After comparative experiments, the PKUSeg word segmenter was selected as the final application.

[0232] 2. Remove stop words and abnormal data: Remove some high-frequency words that are meaningless to the representation and matching tasks, with the aim of filtering out text redundancy and noise and improving the performance of the model. In addition, non-Chinese abnormal data and texts with a length of less than 5 in the dataset are also filtered out.

[0233] 3. Text representation: The purpose of text representation is to vectorize the text after word segmentation and stop word removal, and convert it into a digital form that is easy for computer processing. It is the most important part to ensure the quality of text classification. For the semantic representation task, the text is represented by using the pre-trained weights trained by the Harbin Institute of Technology team based on the BERT model. For the semantic matching task, the pre-trained word embedding weights learned in the previous representation task are used as the word vector dictionary of the model.

[0234] After preprocessing, the data set statistics for the semantic representation task and the semantic matching task are shown in Table 1 below:

[0235] Table 1

[0236]

[0237] In the embodiment of the present invention, Tesla cloud server is used as the hardware environment for training, and the PyTorch deep learning framework platform that supports GPU mode training is used for programming.

[0238] The parameter setting of the neural network model has a direct impact on the model performance. The embodiment of the present invention continuously adjusts the parameter combination and uses a cross-validation method to determine the optimal model parameters. Table 2 below shows some parameter settings in the experimental model:

[0239] Table 2

[0240]

[0241]

[0242] During testing, the BERT model is evaluated using accuracy, while the MFIM model is evaluated using precision (P), recall (R), and F1 score. Their calculation process is as follows:

[0243] Accuracy=(TP+TN) / (TP+FP+TN+FN) (8);

[0244] P = TP / (TP+FP) (9);

[0245] R = TP / (TP+FN) (10);

[0246] F1 = 2*P*R / (P+R) (11);

[0247] Among them, True Positive (TP) means correctly predicted as a positive sample, and the value of TP represents the correct positive sample judgment statistics; similarly, the value of False Positive (FP) represents the number of incorrect positive sample judgments; and so on, the value of True Negative (TN) represents the number of correct negative sample judgments; the value of False Negative (FN) represents the number of incorrect negative sample judgments.

[0248] In order to obtain the best BERT model, the performance of five word segmenters, Jieba, PKUSeg, THULAC, HANNLP and BaiduLAC, was tested at different word vector dimensions.

[0249] Fig.17The figure shows the accuracy performance of the BERT model under different word segmenters as the word embedding dimension changes. It can be seen from the figure that the accuracy of the BERT model increases significantly with the increase of the word embedding dimension, which is in line with the expectations of the present invention, because the increase in dimensions means that the BERT model can carry more features and can effectively increase the semantic richness of words.

[0250] Step S3: The maximum vector inner product is equivalent to the minimum Euclidean distance, and the design resource semantic text is hierarchically clustered in the semantic space.

[0251] After embedding into the semantic space, the semantic distance can be measured, that is, the semantic similarity calculation.

[0252] Since there is only a first-level classification system for manually labeled resources, in order to obtain a more detailed classification, the present invention performs hierarchical clustering on all semantic embeddings, spontaneously aggregates semantically similar functional descriptions, and spontaneously organizes their distribution structure in the vector space by semantic features to form a hierarchical classification system without the need to manually set classification labels.

[0253] Usually, the embedding vector output by the deep model is based on the cosine distance, that is, the larger the inner product, the closer the semantics. This scale criterion cannot be directly used by ordinary clustering methods. The present invention introduces a transformation to convert the vector inner product maximization into a distance minimization operation. The transformation method is as follows:

[0254] Preset a value U<1, U is an adjustable hyperparameter, usually 0.8≤U≤1, calculate

[0255]

[0256] For each semantic vector X i ∈S (S is a set of semantic vectors) are divided by V, so

[0257]

[0258] For any semantic vector x, two transformation methods are introduced. The transformation P(x) adds m items Transform Q(x) by adding m "1 / 2", that is

[0259]

[0260]

[0261] Can get

[0262]

[0263]

[0264]

[0265] Based on the above three expansion items, we can get:

[0266]

[0267] So when any vector q and x i When comparing the similarity of is a fixed term. When m is large (m>3), it can be seen that Get

[0268] The left side of this expression represents the maximization of the original vector inner product, and the right side represents the minimization of the Euclidean distance. The introduction of this transformation makes the two approximately equivalent.

[0269] After that, we can perform bottom-up hierarchical clustering to cluster the points in the vector space according to their distances. That is, starting from the first level semantic level to the third level semantic level, the first level semantics are clustered at the first level semantic level, the second level semantics are clustered at the second level semantic level, and the third level semantics are clustered at the third level semantic level.

[0270] In the clustering process, the above-mentioned transformed Euclidean distance comparison criterion is used. There is no need to estimate the initial number of clusters and category centers, and it can be completed by scanning the data once.

[0271] After clustering, semantic cluster labels can be obtained. Each label represents a more detailed classification with similar semantics. This method is beneficial to form a hierarchical semantic classification system, such as Fig.18 As shown, the corresponding categories are clustered to find the association between resources. At the same time, in order to more intuitively represent this association, the present invention uses TSNE to reduce the dimension and map the vector into a three-dimensional space, which is more convenient for merchants to manage resources. The clustering result after dimensionality reduction is as follows: Fig.19 shown.

[0272] Step S4: Associating design resources based on the hierarchical clustering results.

[0273] After obtaining the hierarchical clustering results, the first-level semantic level can be associated with the closest design resources based on the same cluster cluster. Furthermore, the second-level semantic level can be associated with more finely associated design resources based on the same cluster. Furthermore, the third-level semantic level can be associated with more finely associated design resources based on the same cluster.

[0274] Take the multi-level semantic model obtained above as an example:

[0275] First-level semantics: {(opening an account, social security, (SBV))}

[0276] Secondary semantics: {(enterprise, social security, (ATT))}

[0277] Level 3 semantics: {(Shanghai Company, Enterprise, (ATT))}

[0278] After clustering is achieved at three levels, the design resource closest to "social security account opening" can be found from the first-level semantic level based on clustering. For example, the first-level semantics of the semantic vectors of design resource A and design resource B are clustered into a cluster, indicating that design resource A and design resource B are associated with "social security account opening".

[0279] Furthermore, based on the first-level semantic association, the design resource closest to "enterprise social security" is found from the second-level semantic hierarchical clustering. For example, the second-level semantics of the semantic vectors of design resource B and design resource C are clustered into a cluster, indicating that design resource B has a more detailed association with "enterprise social security account opening".

[0280] Furthermore, based on the secondary semantic association, the design resources closest to "Shanghai companies and enterprises" are found from the secondary semantic hierarchical clustering. For example, the third-level semantics of the semantic vectors of design resource B and design resource E are clustered into a cluster, indicating that design resource B has a more detailed association with "Shanghai company and enterprise social security account opening".

[0281] It should be noted that, in the specific implementation process, part of the above-mentioned method can be implemented by a hardware processor executing computer execution instructions in software form stored in the memory, which will not be elaborated here, and the programs corresponding to the actions executed can be stored in the system's computer-readable storage medium in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0282] The computer-readable storage medium mentioned above may include volatile memory, such as random access memory; may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid-state drive; may also include a combination of the above types of memory.

[0283] The processor mentioned above may also be a general term for multiple processing elements. For example, the processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc., or may be a dedicated processor.

[0284] It should be pointed out that the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A design resource association method, characterized in that: include: Construct a multi-level semantic model for crowdsourced design resources; Mapping the semantic chain of the multi-level semantic model into the semantic space; The maximum inner product of vectors is equivalent to the minimum Euclidean distance, and the semantic text of design resources is hierarchically clustered in the semantic space; Associating design resources based on hierarchical clustering results; Among them, building a multi-level semantic model includes: (1) Traverse the design resources to find the core verb-predicate, and obtain the primary semantics with the detected generalized verb-object relationship; the generalized verb-object relationship includes direct object relationship, indirect object relationship, prepositioned object relationship, the core verb-predicate and its dominated noun phrase as adverbial-predicate relationship, the core verb-predicate and its dominated noun phrase as subject-predicate relationship, and the modifier expressed with the attributive-predicate relationship when the object of the core verb-predicate is missing; (2) Detect the modified components of the predicate center word and object center word in the primary semantics to obtain the secondary semantics; (3) Detect the modifying components of the central word of the secondary semantics to obtain the tertiary semantics; (4) Completing the detected semantic components higher than level 3 to the central word to which they belong; Construct a multi-level semantic model for crowdsourced design resources, specifically: Step 1: Separate words and tag parts of speech for the crowdsourcing design resource sentences; Step 2, dividing the short sentence processed in step 1 into multiple independent short sentences; Step 3: Perform the following processing on each independent sentence: 1) Dependency analysis; 2) Extract independent functional components from independent sentences using parallel relationships and independent structures; 3) Construct a multi-level semantic model for each independent functional component; Extract independent functional components from independent short sentences using parallel relationships and independent structural relationships, including: (1) When the detected parallel relationship is located in the generalized object modification area, it is equally divided into two independent functional components based on the core verb and predicate; (2) When the detected parallel relationship is between the core verb and predicate, it is equally divided into two independent functional components; (3) When a parallel relationship and an independent structure exist at the same time, if the independent structure is a verbal predicate and there is a parallel relationship, it is equally divided into two independent functional components based on the verbal predicate of the independent structure; if the independent structure is not a verbal predicate, no independent functional component is established; Mapping the semantic chain of the multi-level semantic model to the semantic space is implemented by using a mapping model, wherein the mapping model consists of an embedding layer, a Chinese BERT model layer, and an average pooling layer; The embedding layer performs an embedding operation on the word vector and the position vector, and obtains an embedding matrix in a composite form by adding them; wherein, in the embedding operation of the word vector, a stop symbol "[STOP]" is used to perform a mask operation on the input sequence.

2. The design resource association method according to claim 1, characterized in that: A multi-level semantic model is constructed for each independent functional component, including: When it is detected that the first-level semantics does not have a core object, its modified part is regarded as its object and built into the first-level semantics.

3. The design resource association method according to claim 1, characterized in that: The maximum vector inner product is equivalent to the minimum Euclidean distance, including: Preset a value U<1, U is an adjustable hyperparameter, 0.8 ,calculate ; x is a semantic vector; S is a set of semantic vectors; For each semantic vector Divide both by V, and we get , ; Two transformation methods are introduced for any semantic vector: Transform P(x) by adding m terms , and transform Q(x) by adding m "1 / 2", that is ,as well as ; can get ; ; ; Based on the above three expansion items, we get ; The left side represents the maximization of the original vector inner product, and the right side represents the minimization of the Euclidean distance; So when any vector q and When comparing the similarity of is a fixed term. When m is large, it can be seen that , that is, .

Citation Information

Patent Citations

  • Semantic logic processing method and system

    CN107315737A

  • Text-oriented domain classification relationship automatic learning method

    CN108170840A

  • Chinese structured event extraction method

    CN112183059A

  • Natural Language System Question Classifier, Semantic Representations, and Logical Form Templates

    US20170177715A1

  • Attribute acquisition method and device

    WO2017157198A1