Construction method, matching method and device of building list matching model
By constructing a building inventory matching model, extracting and encoding keywords, and training the matching model, the problems of low manual matching efficiency and poor accuracy are solved, and efficient and accurate inventory and graphic element matching is achieved.
Patent Information
- Application Number
- CN202011286194.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-11-17
AI Technical Summary
The matching of lists and elements in the construction field mainly relies on manual labor, which results in slow matching speed, low efficiency and low accuracy. Especially when there are many types of lists and the matching base is large, it is difficult to achieve timely and accurate matching.
By building a building inventory matching model, sample inventory information and graphic element information are obtained, target keywords are extracted and encoded, the inventory matching model is trained based on these encoded information, and model parameters are updated to improve matching efficiency and accuracy.
There is no need to manually memorize list type information, which significantly improves the efficiency and accuracy of list matching, ensures the success rate of matching between lists and graphics elements, and avoids matching failures caused by large matching bases.
Smart Images

Figure CN112347231B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building list determination, and in particular to a building list matching model construction method, a matching method and a device. Background Art
[0002] At present, the matching of lists and graphics in the construction field mainly relies on manual matching. After obtaining the building list, all the corresponding graphics are found according to the attribute information of the building list, and all the lists are matched with all the corresponding graphics one by one to determine the final graphics information. However, there are many types of list matching, and it is difficult to remember all types of information manually, resulting in slow list matching and low efficiency; and the cardinality of list and graphic matching is large, making it difficult to achieve timely and accurate matching. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide a matching model construction method, a matching method and a device for a building list, so as to solve the problems of low efficiency and low accuracy in manual matching of lists and primitives.
[0004] According to the first aspect, an embodiment of the present invention provides a method for constructing a building list matching model, comprising the following steps: obtaining sample list information and sample graphic element information corresponding to the sample list information; respectively extracting target keywords of the sample list information and the sample graphic element information; encoding the extracted target keywords to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information; training the list matching model based on the first encoding information and the second encoding information to update the parameters of the list matching model and determine the target list matching model.
[0005] The method for constructing a building inventory matching model provided by an embodiment of the present invention obtains sample inventory information and the graphic element information corresponding to the sample inventory information, extracts target keywords from the sample inventory information and the graphic element information, encodes the extracted keywords, obtains first encoding information corresponding to the sample inventory information and second encoding information corresponding to the sample graphic element information, inputs the first encoding information and the second encoding information into the inventory matching model for training, updates the parameters of the inventory matching model, and determines the target inventory matching model. The inventory matching model is trained based on the sample inventory information and the sample graphic element information to determine the final inventory matching model, thereby ensuring the accuracy of the inventory matching model construction, facilitating inventory matching, and improving the matching speed and efficiency of the inventory.
[0006] In combination with the first aspect, in a first implementation of the first aspect, the extracted target keywords are encoded to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information, including: encoding the target keywords to obtain first initial encoding information corresponding to the sample list information and second initial encoding information corresponding to the sample graphic element information; determining whether the first initial encoding information and / or the second initial encoding information lack attribute information; if the first initial encoding information and / or the second initial encoding information lack the attribute information, then performing padding or cleaning processing on the first initial encoding information and / or the second initial encoding information to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information.
[0007] The method for constructing a building inventory matching model provided by an embodiment of the present invention encodes the target keyword to obtain the first initial coding information corresponding to the sample inventory information and the second initial coding information corresponding to the sample primitive information; respectively judge whether the first initial coding information and the second initial coding information lack attribute information; if the first initial coding information and / or the second initial coding information lack attribute information, the first initial coding information and / or the second initial coding information are padded or cleaned, and the padded or cleaned first initial coding information and / or the second initial coding information are used as the first coding information corresponding to the sample inventory information and the second coding information corresponding to the sample primitive information. By performing a padded or cleaned process on the obtained initial coding information, the accuracy of the determined first coding information corresponding to the sample inventory information and the second coding information corresponding to the sample primitive information is guaranteed, thereby improving the training accuracy of the inventory matching model.
[0008] In combination with the first implementation of the first aspect, in the second implementation of the first aspect, the attribute information includes attribute item information and attribute value information, and the determination of whether the first initial coding information and / or the second initial coding information lacks attribute information includes: determining whether the first initial coding information and / or the second initial coding information lacks an attribute item information identifier or an attribute value information identifier.
[0009] The method for constructing a building inventory matching model provided by an embodiment of the present invention respectively determines whether the first initial coding information and the second initial coding information are missing attribute item information identifiers or attribute value information identifiers, and performs a completion processing or a cleaning processing on the obtained initial coding information by determining the missing attribute information, thereby ensuring the accuracy of the first coding information corresponding to the determined sample inventory information and the second coding information corresponding to the sample graphic element information, and avoiding the influence of erroneous or invalid coding information on the training accuracy of the inventory matching model.
[0010] In combination with the second implementation of the first aspect, in the third implementation of the first aspect, the first initial coding information and / or the second initial coding information are padded or cleaned, including: if the first initial coding information lacks inventory attribute item information, and / or the second initial coding information lacks primitive attribute item information, then the first initial coding information missing inventory attribute item and / or the second initial coding information missing primitive attribute item information is deleted.
[0011] The method for constructing a building inventory matching model provided by an embodiment of the present invention, when the first initial coding information lacks inventory attribute item information, and / or the second initial coding information lacks primitive attribute item information, it means that the first initial coding information or the second initial coding information cannot determine the corresponding sample inventory information or sample primitive information, and it is necessary to delete the first initial coding information with the missing inventory attribute item and / or the second initial coding information with the missing primitive attribute item information to ensure that the sample inventory information and the sample primitive information can be accurately corresponded, generate a one-to-one corresponding coding information pair, and avoid invalid coding information affecting the training accuracy of the inventory matching model.
[0012] In combination with the second implementation of the first aspect, in the fourth implementation of the first aspect, the padding or cleaning of the first initial coded information and / or the second initial coded information includes: if the first initial coded information lacks list attribute value information, calculating the first mean of the remaining attribute values of the first initial coded information, and filling the missing list attribute value information with the first mean; and / or, if the second initial coded information lacks primitive attribute value information, calculating the second mean of the remaining attribute values of the second initial coded information, and filling the missing primitive attribute value information with the second mean.
[0013] The method for constructing a building inventory matching model provided by an embodiment of the present invention, when the first initial coded information lacks inventory attribute value information or the second initial coded information lacks primitive attribute value information, indicates that the first initial coded information and the second initial coded information are valid information. In order to avoid deletion of valid information, the first mean of the remaining attribute values of the first initial coded information can be calculated respectively, and / or the second mean of the remaining attribute values of the second initial coded information can be calculated, and the missing inventory attribute value information can be supplemented with the first mean, and / or the missing primitive attribute value information can be supplemented with the second mean. In this way, valid information is retained, thereby avoiding the deletion of valid coded information affecting the training accuracy of the inventory matching model.
[0014] In combination with the first aspect or any one of the first to fourth embodiments of the first aspect, in the fifth embodiment of the first aspect, the respectively extracting target keywords of the sample list information and the sample graphic element information includes: respectively performing word segmentation processing on the sample list information and the sample graphic element information to obtain a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample graphic element information; respectively processing the word order of the first word segmentation result and the second word segmentation result to obtain a first text keyword corresponding to the first word segmentation result and a second text keyword corresponding to the second word segmentation result; performing word frequency statistics on the first text keyword and the second text keyword to determine a first target keyword corresponding to the first text keyword and a second target keyword corresponding to the second text keyword.
[0015] The method for constructing a building list matching model provided by an embodiment of the present invention performs word segmentation processing on sample list information and sample graphic element information respectively, obtains a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample graphic element information, processes the word order of the first word segmentation result and the second word segmentation result, ensures the dependency relationship between the word orders, avoids semantic errors caused by word order errors in the word segmentation results, and obtains a first text keyword corresponding to the first word segmentation result and a second text keyword corresponding to the second word segmentation result. The word frequency statistics of the first text keyword and the second text keyword are respectively performed to determine the first target keyword corresponding to the first text keyword and the second target keyword corresponding to the second text keyword, ensuring that the target keyword can fully reflect the information contained in the sample list information or the sample graphic element information.
[0016] In combination with the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, the target keyword is encoded to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information, including: mapping the first target keyword to a high-dimensional vector space, using the first target keyword as a feature vector, performing non-repetitive encoding processing on the first target keyword, and obtaining a first one-hot vector encoding corresponding to the first target keyword; mapping the second target keyword to the high-dimensional vector space, using the second target keyword as a feature vector, performing non-repetitive encoding processing on the second target keyword, and obtaining a second one-hot vector encoding corresponding to the second target keyword; the first one-hot vector encoding and the second one-hot vector encoding are a one-to-one corresponding encoding vector pair.
[0017] The method for constructing a building list matching model provided by an embodiment of the present invention maps the first target keyword and the second target keyword to a high-dimensional vector space respectively, uses the first target keyword as a feature vector, performs non-repetitive encoding processing on the first target keyword, obtains a first unique hot vector encoding corresponding to the first target keyword, and then uses the second target keyword as a feature vector, performs non-repetitive encoding processing on the second target keyword, obtains a second unique hot vector encoding corresponding to the second target keyword, and the first unique hot vector encoding and the second unique hot vector encoding are a one-to-one corresponding encoding vector pair. By encoding the target keyword to train the list matching model, the one-hot vector encoding is based on a single-bit effective encoding, which improves the encoding rate and improves the training efficiency of the list matching model.
[0018] According to the second aspect, an embodiment of the present invention provides a method for matching a building list, comprising the following steps: obtaining building list information to be matched; extracting target keywords of the building list information to be matched; encoding the target keywords to obtain target coding information corresponding to the building list information to be matched; inputting the target coding information into a list matching model to determine the graphic element information corresponding to the building list information, wherein the list matching model is determined according to the method for constructing a building list matching model according to any one of claims 1 to 7.
[0019] The method for matching a building list provided in an embodiment of the present invention obtains the building list information to be matched, extracts the target keywords of the building list information to be matched, encodes the target keywords, obtains the target encoding information corresponding to the building list information to be matched, inputs the target encoding information into the list matching model, and determines the primitive information corresponding to the building list information. The list matching model is determined according to the method for constructing the building list matching model described in the first aspect or any embodiment of the first aspect. The method can achieve the matching of multiple types of list information without the need to manually remember the type information of the list, improves the efficiency of list matching, avoids the low matching success rate caused by the large matching cardinality of the list and the primitive in the manual matching process, and improves the matching accuracy of the list and the primitive.
[0020] In combination with the second aspect, in the first implementation of the second aspect, the method also includes: obtaining the cost corresponding to the graphic element information, the cost corresponding to the graphic element information one-to-one; judging whether the cost meets the preset cost condition; when the cost meets the preset cost condition, determining that the list information matches the graphic element information successfully.
[0021] The method for matching a building list provided in an embodiment of the present invention determines whether the cost meets a preset cost condition by obtaining the cost corresponding to the graphic element information. When the cost meets the preset cost condition, it indicates that the matched graphic element information meets the cost requirement of the building. At this time, it can be determined that the list information and the graphic element information are matched successfully. On the basis of the correspondence between the graphic element information and the list information, it is ensured that the determined graphic element information meets the cost requirement, thereby avoiding waste of construction costs.
[0022] According to the third aspect, an embodiment of the present invention provides a device for constructing a building list matching model, including: a first acquisition module, used to acquire sample list information and sample graphic element information corresponding to the sample list information; a first extraction module, used to extract target keywords of the sample list information and the sample graphic element information respectively; a first encoding module, used to encode the extracted target keywords to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information; a training module, used to train the list matching model based on the first encoding information and the second encoding information to update the parameters of the list matching model and determine the list matching model.
[0023] The device for constructing a building inventory matching model provided by an embodiment of the present invention obtains sample inventory information and the graphic element information corresponding to the sample inventory information, extracts target keywords from the sample inventory information and the graphic element information, encodes the extracted keywords, obtains first encoding information corresponding to the sample inventory information and second encoding information corresponding to the sample graphic element information, inputs the first encoding information and the second encoding information into the inventory matching model for training, updates the parameters of the inventory matching model, and determines the inventory matching model. The inventory matching model is trained based on the sample inventory information and the sample graphic element information to determine the final inventory matching model, thereby ensuring the accuracy of the inventory matching model construction, facilitating inventory matching, and improving the matching speed and efficiency of the inventory.
[0024] According to the fourth aspect, an embodiment of the present invention provides a building list matching device, comprising: a second acquisition module, used to obtain building list information to be matched; a second extraction module, used to extract target keywords of the building list information to be matched; a second encoding module, used to encode the target keywords to obtain target encoding information corresponding to the building list information to be matched; a determination module, used to input the target encoding information into a list matching model, and determine the graphic element information corresponding to the building list information, wherein the list matching model is determined according to the method for constructing a building list matching model according to any one of claims 1 to 7.
[0025] The matching device for building lists provided in the embodiment of the present invention obtains the building list information to be matched, extracts the target keywords of the building list information to be matched, encodes the target keywords, obtains the target encoding information corresponding to the building list information to be matched, inputs the target encoding information into the list matching model, and determines the primitive information corresponding to the building list information. The list matching model is determined according to the construction method of the building list matching model described in the first aspect or any embodiment of the first aspect. The device can achieve the matching of multiple types of list information without the need to manually remember the type information of the list, improves the efficiency of list matching, avoids the low matching success rate caused by the large matching cardinality of the list and the primitive in the manual matching process, and improves the matching accuracy of the list and the primitive.
[0026] According to the fifth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the method for constructing a building list matching model described in the first aspect or any embodiment of the first aspect, or executing the method for matching a building list described in the first aspect or the first embodiment of the first aspect.
[0027] According to the sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for constructing a building list matching model described in the first aspect or any embodiment of the first aspect, or to execute the method for matching a building list described in the first aspect or the first embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 is a flow chart of a method for constructing a matching model for a building list according to an embodiment of the present invention;
[0030] Figure 2 is a flow chart of a method for constructing a matching model for a building list according to an embodiment of the present invention;
[0031] Figure 3 is a flow chart of a method for constructing a matching model for a building list according to an embodiment of the present invention;
[0032] Figure 4 is a flow chart of a method for matching a building list according to an embodiment of the present invention;
[0033] Figure 5 is a flow chart of a method for matching a building list according to an embodiment of the present invention;
[0034] Figure 6 is a structural block diagram of a device for constructing a matching model of a building list according to an embodiment of the present invention;
[0035] Figure 7 is a structural block diagram of a device for matching a building list according to an embodiment of the present invention;
[0036] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0038] In the field of construction, the matching of lists and graphics mainly relies on manual matching. After obtaining the building list, all the corresponding graphics are found according to the attribute information of the building list, and all the lists are matched with all the corresponding graphics one by one to determine the final graphics information. However, there are many types of list matching, and it is difficult to remember all types of information manually, resulting in slow list matching and low efficiency; and the cardinality of list and graphic matching is large, making it difficult to achieve timely and accurate matching.
[0039] Based on this, the present invention matches the list and the primitives by constructing a list matching model, which eliminates the need for manual memorization of all types of lists, thereby improving the list matching efficiency and the matching success rate.
[0040] According to an embodiment of the present invention, an embodiment of a method for constructing a building inventory matching model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0041] In this embodiment, a method for constructing a building list matching model is provided, which can be used in electronic devices such as mobile phones, computers, tablet computers, etc. Figure 1is a flow chart of a method for constructing a building list matching model according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0042] S11, obtaining sample list information and sample primitive information corresponding to the sample list information.
[0043] The sample list information is the attribute information corresponding to the building list. The building list is a list of building materials required for the project, such as steel bars, latex paint, gravel cushion, etc. The attribute information is the attributes of the building materials, such as thickness, mortar grade, etc. The sample primitive information is the drawn graphics corresponding to the sample list information. Due to different primitive labels, one sample list may correspond to multiple sample primitives. The sample list information and sample primitive information can be collected from the actual construction site or from a related database. This application does not make specific limitations on this, as long as the sample list information and sample primitive information of the construction project can be obtained.
[0044] S12, extracting target keywords from the sample list information and sample graphic element information respectively.
[0045] The sample list information is a text combination, and the sample meta-information is a text-graphic combination. After the sample list information is obtained, a word segmentation algorithm can be used to segment the sample list information, and the target keywords corresponding to the extracted sample list information can be obtained. Specifically, the word segmentation algorithm can be a mechanical word segmentation algorithm or a hidden Markov-based word segmentation algorithm. Of course, it can be other open source word segmentation algorithms, such as imdict-chinese-analyzer. This application does not limit the word segmentation algorithm, as long as the text combination of the sample list information and the sample meta-information can be split into multiple words.
[0046] Taking imdict-chinese-analyzer as an example, if the sample list information is "burned surface sesame black granite: thickness 20mm", if the segmentation words corresponding to the sample list information are "burned surface", "sesame black", "granite", "thickness" and "20mm", then the target keywords corresponding to the sample list information should be "burned surface", "sesame black", "granite", "20mm" and "thickness"; if the segmentation words corresponding to the sample list information are "burned surface", "sesame black", "granite", "thickness", "20" and "mm", the target keywords corresponding to the sample list information can be "burned surface", "sesame black", "granite", "thickness" and "20".
[0047] After obtaining the sample meta information, the text information contained in the sample meta information can be identified, the text information can be segmented, and the target keyword corresponding to the sample meta information can be determined. The word segmentation method of the sample meta information is consistent with the word segmentation method of the sample list information, which will not be repeated here. The difference is that the target keyword of the attribute item of the sample meta information can be empty. For example, corresponding to the target keywords "20" and "thickness" of the sample list information, "thickness" is an attribute item of the sample list information, and the target keyword of the sample meta information can be "20" or "20mm", that is, the target keyword of the sample meta information may not have the target keyword "thickness".
[0048] S13, encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information.
[0049] The extracted target keywords are encoded to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample primitive information. The first encoding information and the second encoding information can be vector encoding or matrix encoding, which is not specifically limited in this application. Taking vector encoding as an example, the extracted target keywords are vectorized, such as one-hot vector encoding, to obtain vector encoding corresponding to the sample list information, that is, the first encoding information corresponding to the sample list information and the second encoding information corresponding to the sample primitive information.
[0050] S14, training the list matching model based on the first encoding information and the second encoding information to update parameters of the list matching model and determine a target list matching model.
[0051] The first coded information is used as input and the second coded information is used as output. The first coded information and the second coded information are input into the list matching model for training to obtain a list matching model with updated parameters. The list matching model with updated parameters is used as the target list matching model for list matching. The list matching model can be a machine learning algorithm GBDT, or a machine learning model xgboost, or other machine learning algorithms, as long as the first coded information and the second coded information can be trained to obtain a list matching model.
[0052] The method for constructing a building inventory matching model provided in this embodiment obtains sample inventory information and the graphic element information corresponding to the sample inventory information, extracts target keywords from the sample inventory information and the graphic element information, encodes the extracted keywords, obtains first encoding information corresponding to the sample inventory information and second encoding information corresponding to the sample graphic element information, inputs the first encoding information and the second encoding information into the inventory matching model for training, updates the parameters of the inventory matching model, and determines the target inventory matching model. The inventory matching model is trained based on the sample inventory information and the sample graphic element information to determine the final inventory matching model, thereby ensuring the accuracy of the inventory matching model construction, facilitating inventory matching, and improving the matching speed and efficiency of the inventory.
[0053] In this embodiment, a method for constructing a building list matching model is provided, which can be used in electronic devices such as mobile phones, computers, tablet computers, etc. Figure 2 is a flow chart of a method for constructing a building list matching model according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0054] S21, obtaining sample list information and sample primitive information corresponding to the sample list information. For details, please refer to the relevant description of step S11 in the above embodiment, which will not be repeated here.
[0055] S22, respectively extracting target keywords from the sample list information and the sample graphic element information. For details, please refer to the relevant description of the corresponding step S12 in the above embodiment, which will not be repeated here.
[0056] S23, encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information.
[0057] Specifically, the above step S23 may include the following steps:
[0058] S231, encode the target keyword to obtain first initial encoding information corresponding to the sample list information and second initial encoding information corresponding to the sample primitive information.
[0059] Encode the target keyword of the sample list information to obtain the first initial coding information corresponding to the target keyword of the sample list information; encode the target keyword of the sample meta information to obtain the second initial coding information corresponding to the target keyword of the sample meta information. If the target keyword of the sample list information is "thickness, 20mm", "thickness" can be encoded as 10, and "20mm" can be encoded as 100, then the first initial coding information should be [1, 0, 1, 0, 0]; if the target keyword of the sample list information is "20", the attribute item information is replaced by 01, and "20" and the keywords containing "20" are encoded as 100, for example, "20" and "20mm" can both correspond to the code 100, then the second initial coding information can be [0, 1, 1, 0, 0].
[0060] S232: Determine whether the first initial coding information and / or the second initial coding information lacks attribute information.
[0061] The first initial coding information includes attribute information corresponding to the sample list information, and the second initial coding information includes attribute information corresponding to the sample graphic element information. The attribute information is used to characterize the corresponding content of the attribute items and / or attribute values of the sample list information or the sample graphic element information. The first initial coding information and the second initial coding information are analyzed respectively to determine whether the first initial coding information lacks attribute information and whether the second initial coding information lacks attribute information. If the first initial coding information and / or the second initial coding information lacks attribute information, execute step S233, otherwise, use the first initial coding information as the first coding information and the second initial coding information as the second coding information.
[0062] S233: If the first initial coding information and / or the second initial coding information lacks attribute information, the first initial coding information and / or the second initial coding information are supplemented or cleaned to obtain the first coding information corresponding to the sample list information and the second coding information corresponding to the sample graphic element information.
[0063] If the first initial coding information is missing attribute information, the first initial coding information is further analyzed to determine whether the attribute information missing from the first initial coding information is important attribute information. If the missing attribute information is important attribute information, the first initial coding information will be cleaned. For example, attribute item information. If the first initial coding information is missing attribute item information, the building material attribute corresponding to the first initial coding information cannot be determined, and thus cannot be matched with the second initial coding information. At this time, the first initial coding information with the missing attribute item information can only be deleted. If the missing information is numerical information, the first initial coding information can be supplemented. For example, attribute value information. If the first initial coding information is missing some attribute values, the missing attribute values can be supplemented by other attribute values to avoid the cleaning process from deleting the valid first initial coding information.
[0064] Similarly, if the second initial coding information is missing attribute information, the second initial coding information is further analyzed to determine whether the attribute information missing from the second initial coding information is important attribute information. If the missing attribute information is important attribute information, the second initial coding information will be cleaned. For example, if the second initial coding information is missing all attribute value information, it is impossible to determine the primitive attribute corresponding to the second initial coding information, and thus it is impossible to match it with the first initial coding information. At this time, the first initial coding information that is missing all attribute values can only be deleted. If the missing attribute value information is partial, the missing attribute values of the second initial coding information can be supplemented by other attribute values.
[0065] The first initial coding information and / or the second initial coding information that have been padded or cleaned is used as the first coding information corresponding to the sample list information and the second coding information corresponding to the sample primitive information to avoid invalid initial coding information affecting the training effect of the list matching model.
[0066] Specifically, the attribute information includes attribute item information and attribute value information. The above step S232 may include: determining whether the attribute item information identifier or the attribute value information identifier is missing in the first initial coding information and / or the second initial coding information.
[0067] The attribute item information identifier is used to identify the attribute item in the initial coding information, and the attribute value information is used to identify the attribute value in the initial coding information. The first initial coding information and the second initial coding information are respectively identified and analyzed to determine whether the attribute item information identifier or the attribute value information identifier is missing in the first initial coding information and the second initial coding information.
[0068] Taking the sample list information as an example, if the target keyword of the sample list information is "thickness, 20mm", the code corresponding to "thickness" is 10, and the code corresponding to "20mm" is 100, then the first initial coding information should be [1, 0, 1, 0, 0]. If the first initial coding information identified is [0, 0, 1, 0, 0], it can be determined that the attribute item information is missing; if the first initial coding information identified is [1, 0, 0, 0, 0], it can be determined that the attribute value information is missing.
[0069] Specifically, the above step S233 may include: if the first initial coding information lacks inventory attribute item information, and / or the second initial coding information lacks primitive attribute item information, then deleting the first initial coding information lacking inventory attribute item information and / or the second initial coding information lacking primitive attribute item information.
[0070] If the first initial coding information lacks attribute information, it is difficult to match the second initial coding information according to its attribute value information. In order to avoid coding matching errors, the first initial coding information with missing attribute information is deleted. For example, the first initial coding information should be [1, 0, 1, 0, 0]. If the identified first initial coding information is [0, 0, 1, 0, 0] or [1, 0, 0], it is impossible to determine the sample list attribute corresponding to the current first initial coding information, and it is impossible to match the second initial coding information. At this time, the first initial coding information can only be deleted.
[0071] If the second initial coding information lacks attribute item information, it is difficult to correspond to the first initial coding information according to its attribute value information. In order to avoid coding matching errors, the first initial coding information with missing attribute item information is deleted. For example, the second initial coding information should be [0, 1, 1, 0, 0]. If the identified second initial coding information is [0, 0, 1, 0, 0] or [1, 0, 0], it is impossible to determine the sample primitive attribute corresponding to the current second initial coding information, and it is impossible to match the first initial coding information. At this time, the second initial coding information can only be deleted.
[0072] Specifically, the above step S233 may also include: if the first initial coding information lacks list attribute value information, then calculating the first mean of the remaining attribute values of the first initial coding information, and using the first mean to fill in the missing list attribute value information; and / or, if the second initial coding information lacks primitive attribute value information, then calculating the second mean of the remaining attribute values of the second initial coding information, and using the second mean to fill in the missing primitive attribute value information.
[0073] If the first initial coding information is missing attribute value information, the missing attribute value is filled in by calculating the mean of the remaining data related to the attribute value. For example, the first initial coding information corresponding to the thickness is [1, 0, 0, 0], and it can be determined that the code corresponding to the attribute value information should be 00X, where X is the missing attribute value information. At this time, the mean of the last digit of the other five-dimensional coding information can be calculated, and the obtained mean is used as the missing value X. If the calculated mean is 1, the first initial coding information is padded to obtain [1, 0, 0, 0, 1]; if the calculated mean is 10, the first initial coding information is padded to obtain [1, 0, 0, 0, 1, 0].
[0074] Similarly, the method for completing the missing attribute value information of the second initial coding information is the same as the method for completing the missing attribute value of the first initial coding information, which will not be repeated here.
[0075] S24, training the list matching model based on the first encoding information and the second encoding information to update the parameters of the list matching model and determine the target list matching model. For details, please refer to the relevant description of step S14 in the above embodiment, which will not be repeated here.
[0076] The method for constructing a building inventory matching model provided by an embodiment of the present invention encodes the target keyword to obtain the first initial coding information corresponding to the sample inventory information and the second initial coding information corresponding to the sample primitive information; respectively judge whether the first initial coding information and the second initial coding information lack attribute information; if the first initial coding information and / or the second initial coding information lack attribute information, the first initial coding information and / or the second initial coding information are padded or cleaned, and the padded or cleaned first initial coding information and / or the second initial coding information are used as the first coding information corresponding to the sample inventory information and the second coding information corresponding to the sample primitive information. By performing a padded or cleaned process on the obtained initial coding information, the accuracy of the determined first coding information corresponding to the sample inventory information and the second coding information corresponding to the sample primitive information is guaranteed, thereby improving the training accuracy of the inventory matching model.
[0077] It is determined whether the first initial coding information and the second initial coding information are missing attribute item information identifiers or attribute value information identifiers, and the obtained initial coding information is supplemented or cleaned by determining the missing attribute information, thereby ensuring the accuracy of the first coding information corresponding to the determined sample list information and the second coding information corresponding to the sample graphic element information, and avoiding the influence of erroneous or invalid coding information on the training accuracy of the list matching model.
[0078] When the first initial coding information lacks inventory attribute item information, and / or the second initial coding information lacks primitive attribute item information, it means that the first initial coding information or the second initial coding information cannot determine the corresponding sample inventory information or sample primitive information, and the first initial coding information with the missing inventory attribute item and / or the second initial coding information with the missing primitive attribute item information needs to be deleted to ensure that the sample inventory information and the sample primitive information can be accurately corresponded to each other, to generate a one-to-one corresponding coding information pair, and to avoid invalid coding information affecting the training accuracy of the inventory matching model.
[0079] When the first initial coding information lacks list attribute value information or the second initial coding information lacks primitive attribute value information, it indicates that the first initial coding information and the second initial coding information are valid information. In order to avoid deletion of valid information, the first mean of the remaining attribute values of the first initial coding information can be calculated respectively, and / or the second mean of the remaining attribute values of the second initial coding information can be calculated, and the missing list attribute value information can be supplemented with the first mean, and / or the missing primitive attribute value information can be supplemented with the second mean. In this way, valid information is retained, thereby avoiding the deletion of valid coding information from affecting the training accuracy of the list matching model.
[0080] In this embodiment, a method for constructing a building list matching model is provided, which can be used in electronic devices such as mobile phones, computers, tablet computers, etc. Figure 3 is a flow chart of a method for constructing a building list matching model according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0081] S31, obtaining sample list information and sample primitive information corresponding to the sample list information. For details, please refer to the relevant description of step S21 in the above embodiment, which will not be repeated here.
[0082] S32, extracting target keywords from the sample list information and sample graphic element information respectively.
[0083] Specifically, the above step S32 may include the following steps:
[0084] S321, performing word segmentation processing on the sample list information and the sample graphic element information respectively, to obtain a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample graphic element information.
[0085] According to the word segmentation algorithm, the sample list information and the sample image element information are respectively segmented to obtain a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample image element information. For example, if the sample list information is "burned surface sesame black granite: thickness 20mm", the first word segmentation result corresponding to the sample list information can be obtained: "burned surface", "sesame black", "granite", "thickness" and "20mm"; if the text information contained in the sample image element information is identified as "within 100mm", the second word segmentation result corresponding to the sample image element information can be obtained: "100mm" and "within".
[0086] S322, respectively process the word order of the first word segmentation result and the second word segmentation result to obtain a first text keyword corresponding to the first word segmentation result and a second text keyword corresponding to the second word segmentation result.
[0087] The long short-term memory network is used to learn the order of the first word segmentation result and the second word segmentation result to avoid the error of the word segmentation result and the unsuccessful matching. For example, if the word segmentation results of "burned noodles, sesame, black granite: thickness 20mm" are: "burned", "noodles", "sesame", "black flowers", "granite", "thickness" and "20mm", the corresponding semantics of this word segmentation result obviously do not match the sample list information. The long short-term memory network is used to learn the word order of the word segmentation result to avoid the problem of inaccurate word segmentation results, so as to ensure the accuracy of the first word segmentation result corresponding to the sample list information and the second word segmentation result corresponding to the sample image element information. The word order of the first word segmentation result and the second word segmentation result is processed to determine the first text keyword corresponding to the first word segmentation result and the second text keyword corresponding to the second word segmentation result.
[0088] S323, performing word frequency statistics on the first text keyword and the second text keyword to determine a first target keyword corresponding to the first text keyword and a second target keyword corresponding to the second text keyword.
[0089] The word frequency statistics is to calculate the weight value of the first text keyword or the second text keyword. Specifically, the weight value can be expressed by the product of the word frequency TF and the inverse text frequency IDF to characterize the correlation between the first text keywords and the correlation between the second text keywords. The correlation between the first text keywords and the correlation between the second text keywords are sorted respectively, and the first target keyword and the second target keyword are determined according to the sorting result of the correlation, that is, the first text keyword with a larger correlation is used as the first target keyword, and the second text keyword with a larger correlation is used as the second target keyword.
[0090] S33, encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information.
[0091] Specifically, the above step S33 may include the following steps:
[0092] S331, mapping the first target keyword to a high-dimensional vector space, taking the first target keyword as a feature vector, performing non-repetitive encoding processing on the first target keyword, and obtaining a first one-hot vector encoding corresponding to the first target keyword.
[0093] A high-dimensional vector space is a multi-dimensional vector space, such as a 6-dimensional vector space. The first target keyword is used as a feature vector, and multiple words contained in the first target keyword are respectively processed by non-repetitive encoding in the high-dimensional space. For example, if the first target keyword is "granite", "20mm" and "thickness", the result of non-repetitive encoding is: thickness is 10, 20mm is 100, and granite is 1000. The results obtained by non-repetitive encoding are combined to obtain the first unique hot vector code [101001000] corresponding to the first target keyword.
[0094] S332, mapping the second target keyword to a high-dimensional vector space, using the second target keyword as a feature vector, performing non-repetitive encoding processing on the second target keyword, and obtaining a second one-hot vector encoding corresponding to the second target keyword; the first one-hot vector encoding and the second one-hot vector encoding are a one-to-one corresponding encoding vector pair.
[0095] The obtained second target keyword is vectorized to obtain a second one-hot vector encoding corresponding to the second target keyword. The specific encoding method is shown in the above step S331 and will not be repeated here. Since the second one-hot vector encoding corresponds to the sample primitive information, based on the matching relationship between the sample primitive information and the sample list information, the encoding vector pair composed of the second one-hot vector encoding and the first one-hot vector encoding can be determined, and the list matching model can be trained according to the encoding vector pair.
[0096] S34: training the list matching model based on the first coding information and the second coding information to update the parameters of the list matching model and determine the target list matching model. For details, please refer to the relevant description of step S24 in the above embodiment, which will not be repeated here.
[0097] The method for constructing a building list matching model provided by an embodiment of the present invention performs word segmentation processing on sample list information and sample graphic element information respectively, obtains a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample graphic element information, processes the word order of the first word segmentation result and the second word segmentation result, ensures the dependency relationship between the word orders, avoids semantic errors caused by word order errors in the word segmentation results, and obtains a first text keyword corresponding to the first word segmentation result and a second text keyword corresponding to the second word segmentation result. The word frequency statistics of the first text keyword and the second text keyword are respectively performed to determine the first target keyword corresponding to the first text keyword and the second target keyword corresponding to the second text keyword, ensuring that the target keyword can fully reflect the information contained in the sample list information or the sample graphic element information.
[0098] The first target keyword and the second target keyword are respectively mapped to the high-dimensional vector space, and the first target keyword is used as the feature vector to perform non-repetitive encoding processing on the first target keyword to obtain the first unique hot vector encoding corresponding to the first target keyword, and then the second target keyword is used as the feature vector to perform non-repetitive encoding processing on the second target keyword to obtain the second unique hot vector encoding corresponding to the second target keyword. The first unique hot vector encoding and the second unique hot vector encoding are a one-to-one corresponding encoding vector pair. By encoding the target keywords to train the list matching model, the one-bit effective encoding based on the unique hot vector encoding is improved, which improves the encoding rate and improves the training efficiency of the list matching model.
[0099] According to an embodiment of the present invention, an embodiment of a method for matching a building list is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0100] In this embodiment, a building list matching method is provided, which can be used in electronic devices such as mobile phones, computers, tablet computers, etc. Figure 4 is a flow chart of a method for constructing a building list matching model according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:
[0101] S41, obtaining the list information of buildings to be matched.
[0102] When the user needs to match the primitive information for the building list information, the user can input the building list information to be matched through the electronic device. The electronic device can then identify the user's input operation and obtain the building information to be matched input by the user.
[0103] S42, extracting target keywords from the building list information to be matched. The method of extracting target keywords from the building list information to be matched is the same as the method of extracting target keywords from the sample list information. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0104] S43, encoding the target keyword to obtain target encoding information corresponding to the building list information to be matched.
[0105] For the specific description of encoding the target keyword, please refer to the relevant description of the above embodiment, which will not be repeated here. After the electronic device completes the encoding process of the target keyword, the target encoding information corresponding to the building list information to be matched can be obtained, and the corresponding primitive information can be matched according to the target encoding information.
[0106] S44, inputting the target coding information into the inventory matching model to determine the graphic element information corresponding to the building inventory information.
[0107] The list matching model is determined according to the construction method of the building list matching model described in the above embodiment, which will not be repeated here. The target coding information is input into the list matching model to obtain the primitive coding information corresponding to the building list information, and the primitive information corresponding to the building list information is determined by parsing the primitive coding information.
[0108] The method for matching a building list provided in an embodiment of the present invention obtains the building list information to be matched, extracts the target keywords of the building list information to be matched, encodes the target keywords, obtains the target encoding information corresponding to the building list information to be matched, inputs the target encoding information into the list matching model, and determines the primitive information corresponding to the building list information. The list matching model is determined according to the method for constructing the building list matching model described in the first aspect or any embodiment of the first aspect. The method can achieve the matching of multiple types of list information without the need to manually remember the type information of the list, improves the efficiency of list matching, avoids the low matching success rate caused by the large matching cardinality of the list and the primitive in the manual matching process, and improves the matching accuracy of the list and the primitive.
[0109] In this embodiment, a building list matching method is provided, which can be used in electronic devices such as mobile phones, computers, tablet computers, etc. Figure 5 is a flow chart of a method for constructing a building list matching model according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0110] S51, obtaining the list information of the buildings to be matched. For details, please refer to the relevant description of the corresponding step S41 in the above embodiment, which will not be repeated here.
[0111] S52, extracting target keywords from the building list information to be matched. For details, please refer to the relevant description of step S42 in the above embodiment, which will not be repeated here.
[0112] S53, encode the target keyword to obtain target encoding information corresponding to the building list information to be matched. For details, please refer to the relevant description of step S43 in the above embodiment, which will not be repeated here.
[0113] S54, input the target coding information into the inventory matching model to determine the primitive information corresponding to the building inventory information, the inventory matching model is determined according to the method for constructing the building inventory matching model described in the above embodiment. For details, please refer to the relevant description of the corresponding step S44 in the above embodiment, which will not be repeated here.
[0114] S55, obtaining the cost corresponding to the graphic element information, where the cost corresponds to the graphic element information one by one.
[0115] The construction cost is used to calculate the price required to complete the building. The construction cost corresponding to the primitive information is the price determined based on the names of the components and the material quantities contained in the building list information to be matched. There is a one-to-one correspondence between the construction cost and the primitive information, so that the price can be quickly determined based on the primitive information.
[0116] S56, determining whether the cost meets the preset cost condition.
[0117] The preset cost condition is the budget corresponding to the building information to be matched. The cost corresponding to the primitive information is compared with the preset cost condition to determine whether the cost of the primitive information meets the preset cost condition. If the cost corresponding to the primitive information meets the preset cost condition, step S57 is executed. Otherwise, the primitive information corresponding to the list information to be matched is determined under the preset cost condition. At this time, as long as any attribute value (such as depth, thickness, etc.) in the primitive information can match the list information of the building to be matched, it means that the match is successful.
[0118] S57, determining whether the list information matches the graphic element information successfully.
[0119] When the cost meets the preset cost conditions, it means that the current graphic element information meets the preset requirements of the user. At this time, the graphic element information that successfully matches the list information can be determined.
[0120] The method for matching a building list provided in an embodiment of the present invention determines whether the cost meets a preset cost condition by obtaining the cost corresponding to the graphic element information. When the cost meets the preset cost condition, it indicates that the matched graphic element information meets the cost requirement of the building. At this time, it can be determined that the list information and the graphic element information are matched successfully. On the basis of the correspondence between the graphic element information and the list information, it is ensured that the determined graphic element information meets the cost requirement, thereby avoiding waste of construction costs.
[0121] In this embodiment, a device for constructing a building list matching model is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0122] This embodiment provides a device for constructing a building list matching model. Figure 6 As shown, including:
[0123] The first acquisition module 61 is used to acquire the sample list information and the sample primitive information corresponding to the sample list information. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0124] The first extraction module 62 is used to extract target keywords from the sample list information and the sample primitive information respectively. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0125] The first encoding module 63 is used to encode the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample primitive information. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0126] The training module 64 is used to train the list matching model based on the first coding information and the second coding information to update the parameters of the list matching model and determine the list matching model. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0127] The device for constructing a building inventory matching model provided by an embodiment of the present invention obtains sample inventory information and the graphic element information corresponding to the sample inventory information, extracts target keywords from the sample inventory information and the graphic element information, encodes the extracted keywords, obtains first encoding information corresponding to the sample inventory information and second encoding information corresponding to the sample graphic element information, inputs the first encoding information and the second encoding information into the inventory matching model for training, updates the parameters of the inventory matching model, and determines the inventory matching model. The inventory matching model is trained based on the sample inventory information and the sample graphic element information to determine the final inventory matching model, thereby ensuring the accuracy of the inventory matching model construction, facilitating inventory matching, and improving the matching speed and efficiency of the inventory.
[0128] The construction device of the building inventory matching model in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0129] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0130] In this embodiment, a matching device for a building list is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0131] This embodiment provides a matching device for a building list, such as Figure 7 As shown, including:
[0132] The second acquisition module 71 is used to acquire the list information of the buildings to be matched. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0133] The second extraction module 72 is used to extract target keywords from the building list information to be matched. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0134] The second encoding module 73 is used to encode the target keyword to obtain target encoding information corresponding to the building list information to be matched. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0135] The determination module 74 is used to input the target coding information into the inventory matching model to determine the primitive information corresponding to the building inventory information. The inventory matching model is determined according to the construction method of the building inventory matching model described in the above embodiment. For details, please refer to the relevant description of the corresponding part of the above embodiment, which will not be repeated here.
[0136] The matching device for building lists provided in the embodiment of the present invention obtains the building list information to be matched, extracts the target keywords of the building list information to be matched, encodes the target keywords, obtains the target encoding information corresponding to the building list information to be matched, inputs the target encoding information into the list matching model, and determines the primitive information corresponding to the building list information. The list matching model is determined according to the construction method of the building list matching model described in the first aspect or any embodiment of the first aspect. The device can achieve the matching of multiple types of list information without the need to manually remember the type information of the list, improves the efficiency of list matching, avoids the low matching success rate caused by the large matching cardinality of the list and the primitive in the manual matching process, and improves the matching accuracy of the list and the primitive.
[0137] The building list matching device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0138] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0139] The embodiment of the present invention also provides a mobile terminal having the above Figure 6 The building list shown matches the model's construction set and Figure 7 Matching device for the building list shown.
[0140] See also Figure 8 , Figure 8 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the terminal may include: at least one processor 81, such as a CPU (Central Processing Unit), at least one communication interface 83, a memory 84, and at least one communication bus 82. The communication bus 82 is used to realize the connection and communication between these components. The communication interface 83 may include a display screen (Display) and a keyboard (Keyboard), and the optional communication interface 83 may also include a standard wired interface and a wireless interface. The memory 84 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 84 may optionally be at least one storage device located away from the aforementioned processor 81. The processor 81 may be combined with Figure 5In the described device, the memory 84 stores an application program, and the processor 81 calls the program code stored in the memory 84 to execute any of the above method steps.
[0141] The communication bus 82 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 82 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0142] Among them, the memory 84 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 84 may also include a combination of the above types of memory.
[0143] The processor 81 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0144] The processor 81 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0145] Optionally, the memory 84 is also used to store program instructions. The processor 81 can call the program instructions to implement the present application Figures 1 to 3 The method for constructing the building list matching model shown in the embodiment, or implementing the following Figure 4 and 5 The building list matching method shown in the embodiment.
[0146] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method for constructing a building list matching model or the method for processing a building list matching method in any of the above method embodiments. The storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above types of memories.
[0147] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for constructing a building inventory matching model, characterized in that: The steps include: Acquire sample list information and sample primitive information corresponding to the sample list information; Extracting target keywords from the sample list information and the sample graphic element information respectively; Encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information; The manifest matching model is trained based on the first encoding information and the second encoding information, with the first encoding information as input and the second encoding information as output, so as to update parameters of the manifest matching model and determine a target manifest matching model.
2. The method according to claim 1, characterized in that The step of encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information includes: Encode the target keyword to obtain first initial encoding information corresponding to the sample list information and second initial encoding information corresponding to the sample graphic element information; Determining whether the first initial coding information and / or the second initial coding information lacks attribute information; If the first initial coding information and / or the second initial coding information lacks the attribute information, the first initial coding information and / or the second initial coding information are padded or cleaned to obtain the first coding information corresponding to the sample list information and the second coding information corresponding to the sample graphic element information.
3. The method according to claim 2, characterized in that The attribute information includes attribute item information and attribute value information, and the determining whether the first initial coded information and / or the second initial coded information lacks attribute information includes: Determine whether the first initial coding information and / or the second initial coding information lacks an attribute item information identifier or an attribute value information identifier.
4. The method according to claim 3, characterized in that The performing a padding process or a cleaning process on the first initial coding information and / or the second initial coding information includes: If the first initial coding information lacks inventory attribute item information, and / or the second initial coding information lacks primitive attribute item information, the first initial coding information lacking inventory attribute item information and / or the second initial coding information lacking primitive attribute item information are deleted.
5. The method according to claim 3, characterized in that: The performing a padding process or a cleaning process on the first initial coding information and / or the second initial coding information includes: If the first initial coded information lacks list attribute value information, calculating a first mean value of other attribute values of the first initial coded information, and using the first mean value to complete the missing list attribute value information; and / or, If the second initial coding information lacks primitive attribute value information, a second mean of the remaining attribute values of the second initial coding information is calculated, and the missing primitive attribute value information is supplemented with the second mean.
6. The method according to any one of claims 1 to 4, characterized in that: The step of respectively extracting target keywords from the sample list information and the sample graphic element information includes: Performing word segmentation processing on the sample list information and the sample graphic element information respectively, to obtain a first word segmentation result corresponding to the sample list information and a second word segmentation result corresponding to the sample graphic element information; Processing the word order of the first word segmentation result and the second word segmentation result respectively to obtain a first text keyword corresponding to the first word segmentation result and a second text keyword corresponding to the second word segmentation result; Frequency statistics are performed on the first text keyword and the second text keyword to determine a first target keyword corresponding to the first text keyword and a second target keyword corresponding to the second text keyword.
7. The method according to claim 6, characterized in that The step of encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information includes: Mapping the first target keyword to a high-dimensional vector space, taking the first target keyword as a feature vector, performing non-repetitive encoding processing on the first target keyword, and obtaining a first one-hot vector encoding corresponding to the first target keyword; The second target keyword is mapped to the high-dimensional vector space, the second target keyword is used as a feature vector, and a non-repetitive encoding process is performed on the second target keyword to obtain a second one-hot vector encoding corresponding to the second target keyword; the first one-hot vector encoding and the second one-hot vector encoding are a one-to-one corresponding encoding vector pair.
8. A method for matching a building list, characterized in that: The steps include: Get the list of buildings to be matched; Extracting target keywords of the building list information to be matched; Encoding the target keyword to obtain target encoding information corresponding to the building list information to be matched; The target coding information is input into a list matching model to determine the primitive information corresponding to the building list information, wherein the list matching model is determined according to the method for constructing a building list matching model according to any one of claims 1 to 7.
9. The method according to claim 8, characterized in that Also includes: Obtaining the cost corresponding to the graphic element information, wherein the cost corresponds to the graphic element information one by one; Determining whether the cost meets the preset cost conditions; When the cost satisfies the preset cost condition, it is determined that the list information matches the graphic element information successfully.
10. A device for constructing a building list matching model, characterized in that: include: A first acquisition module, used to acquire sample list information and sample primitive information corresponding to the sample list information; A first extraction module, used to extract target keywords from the sample list information and the sample graphic element information respectively; A first encoding module, used for encoding the extracted target keyword to obtain first encoding information corresponding to the sample list information and second encoding information corresponding to the sample graphic element information; A training module is used to train the list matching model based on the first encoding information and the second encoding information, taking the first encoding information as input and the second encoding information as output, so as to update the parameters of the list matching model and determine the list matching model.
11. A building list matching device, characterized in that: include: The second acquisition module is used to obtain the list information of buildings to be matched; A second extraction module is used to extract target keywords of the building list information to be matched; A second encoding module is used to encode the target keyword to obtain target encoding information corresponding to the building list information to be matched; A determination module is used to input the target coding information into a list matching model to determine the primitive information corresponding to the building list information, wherein the list matching model is determined according to the method for constructing a building list matching model according to any one of claims 1 to 7.
12. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for constructing a building list matching model as described in any one of claims 1 to 7, or executes the method for matching a building list as described in claim 8 or 9, by executing the computer instructions.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for constructing a building list matching model as described in any one of claims 1 to 7, or to execute the method for matching a building list as described in claim 8 or 9.
