Product data detection method and system based on digital factory
By using the text knowledge vector library and text to construct a neural network in the digital factory to detect and evaluate product data, the problem of product data detection in the digital factory is solved, and efficient product performance evaluation and control are achieved.
Patent Information
- Application Number
- CN202310394679.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-04-13
AI Technical Summary
In the digital factory, existing technology is difficult to effectively detect and evaluate product data, especially in product quality inspection, and there is a lack of efficient methods to ensure product performance.
Provide a product data detection method based on digital factory, by extracting no less than two text knowledge vectors from the text knowledge vector library, giving them text constraint elements, and using the text to construct a neural network to construct the target text, so that the text knowledge vector is consistent with Constraint elements are matched to achieve efficient detection and evaluation of target text.
This method improves the accuracy and plasticity of product data detection, can effectively identify and evaluate product performance, and enhances the ability to control product content.
Smart Images

Figure CN116341502B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, in particular to the field of artificial intelligence, and specifically to a product data detection method and system based on a digital factory. Background Art
[0002] With the continuous development of information technology, three-dimensional digital factories have gradually become popular. Three-dimensional digital factories are gradually being adopted by more companies with the advantages of enterprise management innovation and data integration. As a carrier of the company's production and operation control information, the three-dimensional digital factory can realize the integrated operation and maintenance control of the company's production, energy, security and equipment, thereby ensuring scientific management decisions. The digital factory integrates product, process and factory model databases, and improves the quality of products and the quality and dynamic performance involved in the production process through advanced visualization, simulation and document management. As digital factories produce more and more products, in order to ensure the performance of the products, data detection and evaluation of the products, such as data detection in product quality testing, is a link that needs to be considered. Summary of the invention
[0003] The present application provides a product data detection method and system based on a digital factory.
[0004] According to one aspect of the present application, a product data detection method based on a digital factory is provided, which is applied to a digital factory AI detection system, and the method includes: in response to a product data detection instruction, calling a target product; extracting from a text knowledge vector library according to the target product to obtain no less than two first text knowledge vectors, wherein the text knowledge vector library includes multiple text knowledge vectors for constructing text; assigning a text constraint element to each of the no less than two first text knowledge vectors; calling a text to construct a neural network, and constructing a first target text according to the no less than two first text knowledge vectors and the text constraint element corresponding to each first text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the first target text is consistent with the corresponding The first text knowledge vector of each text constraint element is respectively the same; the first text knowledge vector corresponding to the first text constraint element in the at least two first text knowledge vectors is replaced by the extracted second text knowledge vector, and the first text constraint element is any one of the at least two text constraint elements; the text is called to construct a neural network, and a second target text is constructed based on other first text knowledge vectors, the second text knowledge vector and the text constraint elements corresponding to the other first text knowledge vectors and the text constraint elements corresponding to the second text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the second target text is respectively the same as the other first text knowledge vectors or the second text knowledge vectors corresponding to each text constraint element.
[0005] As an implementation mode, before the calling of text to construct a neural network to construct a first target text based on the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, the method further includes: combining the at least two first text knowledge vectors based on the distribution ranks of the at least two text constraint elements and the text constraint elements corresponding to each first text knowledge vector; the calling of text to construct a neural network to construct a first target text based on the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector includes: calling the text to construct a neural network to construct the first target text based on the combined first text knowledge vectors.
[0006] As an implementation mode, the extracting in a text knowledge vector library to obtain at least two first text knowledge vectors includes: extracting in at least two text knowledge vector libraries to obtain the at least two first text knowledge vectors, wherein different text knowledge vector libraries correspond to different text constraint elements; assigning a text constraint element to each of the at least two first text knowledge vectors includes: respectively assigning a text constraint element corresponding to the text knowledge vector library to which it belongs to each first text knowledge vector.
[0007] As an implementation mode, the text construction neural network is debugged and obtained by the following steps: extracting from the text knowledge vector library to obtain no less than two third text knowledge vectors; assigning a text constraint element to each of the no less than two third text knowledge vectors; calling the text construction neural network, and constructing an example target text Sample1 according to the no less than two third text knowledge vectors and the text constraint elements corresponding to each third text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample1 is the same as the third text knowledge vector corresponding to each text constraint element; analyzing the example target text Sample1 to obtain a first analysis result, the first analysis result indicating the credibility coefficient of the example target text Sample1 being recognized as a natural text, and the natural text is not constructed by the text construction neural network; debugging the text construction neural network according to the first analysis result, so that the credibility coefficient of the target text constructed by calling the debugged text construction neural network being recognized as the natural text is improved.
[0008] As an implementation mode, the analyzing the example target text Sample1 to obtain a first analysis result includes: calling a text quality analysis neural network, analyzing the example target text Sample1, and obtaining the first analysis result; the debugging the text construction neural network based on the first analysis result includes: debugging the text construction neural network and the text quality analysis neural network based on the first analysis result, so that the credibility coefficient of the target text constructed by calling the debugged text construction neural network to be recognized as the natural text is increased, and the credibility coefficient of the target text constructed by calling the debugged text quality analysis neural network to be recognized as the natural text is reduced.
[0009] As an implementation mode, the method further includes: obtaining an example target text Sample2, wherein the example target text Sample2 is the natural text; calling the text quality analysis neural network, analyzing the example target text Sample2, and obtaining a second analysis result, wherein the second analysis result indicates a credibility coefficient of the example target text Sample2 being recognized as the natural text; debugging the text construction neural network and the text quality analysis neural network according to the first analysis result includes: debugging the text construction neural network according to the first analysis result, so that the credibility coefficient of the target text constructed by calling the debugged text construction neural network to be recognized as the natural text is improved; debugging the text quality analysis neural network according to the first analysis result and the second analysis result, so that the credibility coefficient of the target text constructed by calling the debugged text quality analysis neural network to be recognized as the natural text is reduced, and the credibility coefficient of the natural text constructed by calling the debugged text quality analysis neural network to be recognized as the natural text is improved.
[0010] As an implementation mode, the method further includes: extracting from the text knowledge vector library to obtain a fourth text knowledge vector; replacing the third text knowledge vector corresponding to the second text constraint element in the at least two third text knowledge vectors with the fourth text knowledge vector, the second text constraint element being any one of the at least two text constraint elements; calling the text to construct a neural network, and constructing an example target text Sample3 based on other third text knowledge vectors, the text constraint elements corresponding to the fourth text knowledge vector and the other third text knowledge vectors, and the text constraint elements corresponding to the fourth text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample3 is consistent with the other third text knowledge vectors or The fourth text knowledge vectors are respectively the same; the analysis of the example target text Sample1 to obtain the first analysis result includes: analyzing the example target text Sample1 and the example target text Sample3 to obtain the first analysis result, the first analysis result indicating that the example target text Sample1 and the example target text Sample3 meet the credibility coefficient of the first preset requirement, the first preset requirement indicating that the example target text Sample1 and the example target text Sample3 are identified as the natural text, and the text knowledge vectors of one or more text constraint elements in the example target text Sample1 and the example target text Sample3 are the same, and at the same time are different from the text knowledge vectors of one or more text constraint elements.
[0011] As an implementation mode, the analyzing the example target text Sample1 and the example target text Sample3 to obtain the first analysis result includes: calling a text quality analysis neural network, analyzing the example target text Sample1 and the example target text Sample3 to obtain the first analysis result; debugging the text construction neural network according to the first analysis result includes: debugging the text construction neural network and the text quality analysis neural network according to the first analysis result, so that the credibility coefficient of at least two target texts constructed by calling the debugged text construction neural network to be recognized as meeting the first preset requirement is increased, and the credibility coefficient of at least two target texts constructed by calling the debugged text quality analysis neural network to be recognized as meeting the first preset requirement is reduced.
[0012] As an implementation mode, the method further includes: obtaining sample target text Sample4 and sample target text Sample5, wherein the sample target text Sample4 and the sample target text Sample5 meet a second preset requirement, wherein the second preset requirement indicates that the sample target text Sample4 and the sample target text Sample5 are the natural texts, and the text knowledge vectors of one or more text constraint elements in the sample target text Sample4 and the sample target text Sample5 are the same, and at the same time are different from the text knowledge vectors of one or more text constraint elements; calling the text quality analysis neural network, analyzing the sample target text Sample4 and the sample target text Sample5, and obtaining a third analysis result, wherein the third analysis result indicates that the sample target text Sample4 and the example target text Sample5 is identified as meeting the credibility coefficient of the second preset requirement; the debugging of the text construction neural network and the text quality analysis neural network based on the first analysis result includes: debugging the text construction neural network based on the first analysis result, so that the credibility coefficient of at least two target texts constructed by the debugged text construction neural network being identified as meeting the first preset requirement is improved; debugging the text quality analysis neural network based on the first analysis result and the third analysis result, so that the credibility coefficient of at least two target texts constructed by the text construction neural network after debugging is reduced, and the credibility coefficient of the target text meeting the second preset requirement is improved when the debugged text quality analysis neural network is identified as meeting the second preset requirement.
[0013] According to another aspect of the present application, a digital factory AI detection system is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the above-mentioned method.
[0014] This application has at least the following beneficial effects:
[0015] The product data detection method based on digital factory provided in the embodiment of the present application calls the target product in response to the product data detection instruction, assigns no less than two text constraint elements to no less than two text knowledge vectors obtained by extraction through the target product, and then calls the text to construct a neural network, and processes according to no less than two text knowledge vectors and the text constraint elements corresponding to each text knowledge vector, so as to construct a target text containing the corresponding text knowledge vector. Based on the text constraint elements that are restricted to the text knowledge vectors obtained by extraction, in order to constrain the text knowledge vectors belonging to different text constraint elements in the constructed target text, the text knowledge vector corresponding to the text constraint element in the constructed target text can be modified by replacing the text knowledge vector corresponding to one of the text constraint elements, and the existing state of the text knowledge vector corresponding to other text constraint elements can be maintained, so that the constructed target text has a high degree of plasticity and is easy to control.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0018] Figure 1 A schematic diagram of an application scenario of a product data detection method based on a digital factory according to an embodiment of the present application is shown.
[0019] Figure 2 A flow chart of a product data detection method based on a digital factory according to an embodiment of the present application is shown.
[0020] Figure 3 A schematic diagram of the functional module architecture of a data detection device according to an embodiment of the present application is shown.
[0021] Figure 4 A schematic diagram of the composition of a digital factory AI detection system according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0023] In this application, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the context of the description, they may also refer to different instances.
[0024] The terms used in the description of various examples in this application are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this application covers any one of the listed items and all possible combinations.
[0025] Figure 1 A schematic diagram of a scenario provided according to an embodiment of the present application is shown, which includes one or more product operation devices 101, a digital factory AI detection system 120, and one or more communication networks 110 coupling one or more product operation devices 101 to the digital factory AI detection system 120. The product operation device 101 can be configured to execute a target product, and in other embodiments, the target product can be directly operated by the digital factory AI detection system 120.
[0026] In some embodiments, the digital factory AI detection system 120 may also provide other services or software applications, which may include non-virtual environments and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of the product operation device 101 under a software as a service (SaaS) model. Figure 1In the configuration shown, the digital factory AI detection system 120 may include one or more components that implement the functions performed by the digital factory AI detection system 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. A user operating the product operation device 101 can in turn use one or more applications to interact with the digital factory AI detection system 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may be different from the system 100. Therefore, Figure 1It is an example of a system for implementing the various methods described herein and is not intended to be limiting. The product operation device 101 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices can run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT WindowsMobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. The product operation device 101 is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and various communication protocols may be used. The network 110 may be any type of network well known to those skilled in the art, which may support data communications using any of a variety of available protocols (including but not limited to TCP / IP, SNA, IPX, etc.). By way of example only, one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks. The digital factory AI detection system 120 may include one or more general-purpose computers, dedicated digital factory AI detection system computers (e.g., PC (personal computer) digital factory AI detection system, UNIX digital factory AI detection system, mid-end digital factory AI detection system), blade digital factory AI detection system, mainframe computer, digital factory AI detection system cluster, or any other appropriate arrangement and / or combination. The digital factory AI detection system 120 may include one or more virtual machines running a virtual operating system, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a virtual storage device of a digital factory AI detection system).In various embodiments, the digital factory AI detection system 120 may run one or more services or software applications that provide the functions described below. The computing unit in the digital factory AI detection system 120 may run one or more operating systems including any of the above-mentioned operating systems and any commercially available digital factory AI detection system operating systems. The digital factory AI detection system 120 may also run any of various additional digital factory AI detection system applications and / or middle-tier applications, including HTTP digital factory AI detection system, FTP digital factory AI detection system, CGI digital factory AI detection system, JAVA digital factory AI detection system, database digital factory AI detection system, etc. In some embodiments, the digital factory AI detection system 120 may include one or more applications to analyze and merge data feeds and / or event updates received from users of the product operation device 101. The digital factory AI detection system 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of the product operation device 101. In some embodiments, the digital factory AI detection system 120 may be a digital factory AI detection system of a distributed system, or a digital factory AI detection system combined with a blockchain. The digital factory AI detection system 120 may also be a cloud digital factory AI detection system, or an intelligent cloud computing digital factory AI detection system or intelligent cloud host with artificial intelligence technology. The cloud digital factory AI detection system is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in the traditional physical host and virtual private digital factory AI detection system (VPS, Virtual Private Server) services. In addition, the scene may also include one or more databases 130. In some embodiments, these databases can be used to store data and other information. For example, one or more of the databases 130 can be used to store product detection data. The database 130 can reside in various locations. For example, the database used by the digital factory AI detection system 120 can be local to the digital factory AI detection system 120, or can be away from the digital factory AI detection system 120 and can communicate with the digital factory AI detection system 120 via a network-based or dedicated connection. The database 130 can be of different types. In some embodiments, the database used by the digital factory AI detection system 120 can be, for example, a relational database. One or more of these databases can store, update, and retrieve data from the database in response to a command. In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0027] The following describes a method for detecting product data based on a digital factory provided in an embodiment of the present application. Figure 2 , which may specifically include:
[0028] S101: Responding to a product data detection instruction, retrieving a target product.
[0029] The target product is the product that needs to be tested for data. Specifically, the target product in this application is a product that automatically builds a production log, such as a production log text generated for precision electronic instruments, industrial electronic equipment, etc. The product data testing process is the process of generating a production log text through the target product.
[0030] S102: Extracting from a text knowledge vector library according to the target product to obtain no less than two first text knowledge vectors.
[0031] In an embodiment of the present application, a text knowledge vector library contains multiple text knowledge vectors for constructing text, namely, text feature vectors. The multiple text knowledge vectors in the text knowledge vector library are distributed based on a normal distribution. Extraction is performed in the text knowledge vector library to obtain no less than two first text knowledge vectors. The extraction method is, for example, random.
[0032] S103: Assign a text constraint element to each of the at least two first text knowledge vectors.
[0033] In the embodiment of the present application, at least two text constraint elements may be set in advance. The text constraint element is element information describing the text attribute. For example, the text constraint element may represent the context of the text (such as language style), the segmentation method of the text, the content of the text (such as scene limitation, number of characters), etc. After obtaining at least two first text knowledge vectors, each first text knowledge vector is assigned one of the at least two text constraint elements. At the same time, each first text knowledge vector is assigned a different text constraint element to obtain a first text knowledge vector belonging to at least two text constraint elements.
[0034] S104: Retrieve the text to construct a neural network, and construct a first target text based on no less than two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the first target text is the same as the first text knowledge vector corresponding to each text constraint element.
[0035] The text construction neural network is used to construct text based on the text knowledge vector corresponding to the at least two text constraint elements. The debugging method of the text construction neural network will be introduced in the subsequent content.
[0036] After assigning text constraint elements to at least two first text knowledge vectors, retrieve the text to construct a neural network, process at least two first text knowledge vectors based on the text constraint elements corresponding to at least two first text knowledge vectors, map the first text knowledge vectors from the text vector domain to the text domain, obtain the first target text, and output the first target text at the same time, wherein the text knowledge vector corresponding to each text constraint element in the first target text is respectively the same as the first text knowledge vector corresponding to each text constraint element.
[0037] For example, at least two first text knowledge vectors include a first text knowledge vector V1 belonging to a text context constraint element and a first text knowledge vector V2 belonging to a text scene constraint element. The text is retrieved to construct a neural network. According to these two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, a first target text including a plot description is constructed. The plot description in the first target text contains the context corresponding to the first text knowledge vector V1 and the scene corresponding to the first text knowledge vector V2.
[0038] S105: Replace the first text knowledge vector corresponding to the first text constraint element in at least two first text knowledge vectors with the extracted second text knowledge vector, where the first text constraint element is any one of the at least two text constraint elements.
[0039] In an embodiment of the present application, extraction is performed again in the text knowledge vector library to obtain a second text knowledge vector. It can be understood that both the second text knowledge vector and the first text knowledge vector can be text knowledge vectors obtained by random extraction. A first text constraint element is determined in no less than two text constraint elements, the first text constraint element is any one of no less than two text constraint elements, a first text knowledge vector corresponding to the first text constraint element is determined in no less than two first text knowledge vectors, and the first text knowledge vector corresponding to the first text constraint element is replaced with the second text knowledge vector obtained by extraction, and the second text knowledge vector is different from the first text knowledge vector corresponding to the first text constraint element. Then, among the no less than two text knowledge vectors obtained after the replacement, the text knowledge vector corresponding to the first text constraint element is changed, and the text knowledge vectors corresponding to other text constraint elements except the first text constraint element are not changed.
[0040] S106: Retrieve the text to construct a neural network, and construct a second target text based on other first text knowledge vectors, the second text knowledge vector and the text constraint elements corresponding to the other first text knowledge vectors and the text constraint elements corresponding to the second text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the second target text is the same as the other first text knowledge vector or the second text knowledge vector corresponding to each text constraint element.
[0041] The method of retrieving text to construct a neural network to construct the second target text in S106 can refer to the method of retrieving text to construct a neural network to construct the first target text in S104.
[0042] In order to distinguish, the embodiment of the present application regards the text constraint elements other than the first text constraint element in at least two text constraint elements as the third text constraint element, the text knowledge vector corresponding to the first text constraint element in the first target text is different from the text knowledge vector corresponding to the first text constraint element in the second target text, and the text knowledge vector corresponding to the third text constraint element in the first target text is the same as the text knowledge vector corresponding to the third text constraint element in the second target text. For example, the first text constraint element is a text scene constraint element, which represents the scene of the plot description in the text, and the third text constraint element is a text context constraint element, which represents the context of the plot description in the text. Then, because the text knowledge vectors corresponding to the first text constraint element used to construct the first target text and the second target text are different, the scene of the plot description in the first target text is different from the scene of the plot description in the second target text. The text knowledge vectors corresponding to the third text constraint element used to construct the first target text and the second target text are the same, so the context of the plot description in the first target text is consistent with the context of the plot description in the second target text.
[0043] In the embodiment of the present application, no less than two text constraint elements are assigned to no less than two text knowledge vectors obtained by extraction, and then the text construction neural network is called to process according to no less than two text knowledge vectors and the text constraint elements corresponding to each text knowledge vector, so as to construct a text containing the above two text knowledge vectors. Based on the text constraint elements that are restricted to the text knowledge vectors obtained by extraction, in order to constrain the text knowledge vectors corresponding to different text constraint elements in the constructed target text, the text knowledge vector corresponding to the text constraint element in the constructed target text can be modified by replacing the text knowledge vector corresponding to one of the text constraint elements, and the text knowledge vectors corresponding to other text constraint elements can be maintained unchanged, so that the constructed target text has a high degree of plasticity, which is convenient for controlling the content direction of the text.
[0044] The following describes a method for extracting a first text knowledge vector, a second text knowledge vector, and constructing a first target text and a second target text. Specifically, a product data detection method based on a digital factory is also provided, including:
[0045] S201: Responding to a product data detection instruction, retrieving a target product.
[0046] S202: Extracting from at least two text knowledge vector libraries according to the target product to obtain at least two first text knowledge vectors.
[0047] In the embodiment of the present application, no less than two text constraint elements are set in advance, and a text knowledge vector library is deployed for each text constraint element. In this way, no less than two text knowledge vector libraries are obtained, each of which includes one or more text knowledge vectors constructed arbitrarily, and different text knowledge vector libraries correspond to different text constraint elements.
[0048] As an implementation method, the text knowledge vectors in different text knowledge vector libraries have different dimensions, and extraction is performed in at least two text knowledge vector libraries respectively, so as to obtain a first text knowledge vector by extracting in each text knowledge vector library. For example, at least two text knowledge vector libraries include a text knowledge vector library B1 and a text knowledge vector library B2, and extraction is performed in the text knowledge vector library B1 to obtain a first text knowledge vector V1, and extraction is performed in the text knowledge vector library B2 to obtain a first text knowledge vector V2.
[0049] S203: Assign a text constraint element corresponding to the text knowledge vector library to which it belongs to each first text knowledge vector.
[0050] After obtaining no less than two first text knowledge vectors, the embodiment of the present application determines, for each first text knowledge vector, the text constraint element corresponding to the text knowledge vector library to which the first text knowledge vector belongs, and assigns the text constraint element to the first text knowledge vector, so as to determine the first text knowledge vector as the text knowledge vector corresponding to the text constraint element, and finally obtains the first text knowledge vector belonging to no less than two text constraint elements. The embodiment of the present application deploys different text knowledge vector libraries for different text constraint elements, extracts first text knowledge vectors from different text knowledge vector libraries, and assigns different text constraint elements to the first text knowledge vectors extracted from different text knowledge vector libraries, thereby expanding the differences between text knowledge vectors corresponding to different text constraint elements, which is conducive to separately constraining the text knowledge vectors corresponding to different text constraint elements in the constructed target text, so that the constructed target text has a high degree of plasticity and is convenient for text content control.
[0051] For example, at least two text constraint elements include a text context constraint element and a text scene constraint element, the text context constraint element is used to represent the context of the plot description in the text, and the text scene constraint element is used to represent the scene of the plot description in the text. After obtaining the first text knowledge vector V1 and the first text knowledge vector V2, the first text knowledge vector V1 is used as a text knowledge vector belonging to the text context constraint element, and the first text knowledge vector V2 is used as a text knowledge vector belonging to the text scene constraint element.
[0052] S204: Combining at least two first text knowledge vectors according to the distribution ranks of at least two text constraint elements and the text constraint element corresponding to each first text knowledge vector.
[0053] For example, at least two text constraint elements are text context constraint elements and text scene constraint elements, the first text knowledge vector V1 belongs to the text context constraint element, the first text knowledge vector V2 belongs to the text scene constraint element, and the distribution positions of at least two text constraint elements are the text context constraint element and the text scene constraint element. Then, according to the distribution positions of the first text knowledge vector V1 and the first text knowledge vector V2, the two first text knowledge vectors are combined to complete the splicing and fusion.
[0054] S205: Retrieve the text to construct a neural network, and construct a first target text based on the combined first text knowledge vector.
[0055] In the embodiment of the present application, the text knowledge vector corresponding to each text constraint element in the first target text is the same as the first text knowledge vector corresponding to each text constraint element. Because at least two first text knowledge vectors are obtained by combining according to the distribution order of at least two text constraint elements, after the combined first text knowledge vector is loaded into the text construction neural network, the text construction neural network can determine which text knowledge vector in the combined text knowledge vector is the text knowledge vector of the corresponding text constraint element based on the distribution order of at least two text constraint elements, and based on this, adaptive processing is performed on each text knowledge vector in the combined text knowledge vector to construct the corresponding target text.
[0056] S206: Replace the first text knowledge vector corresponding to the first text constraint element in at least two first text knowledge vectors with the extracted second text knowledge vector.
[0057] The method of replacing the first text knowledge vector with the second text knowledge vector may refer to the method of replacing the first text knowledge vector with the second text knowledge vector in S105.
[0058] S207: Combining other first text knowledge vectors and second text knowledge vectors based on the distribution ranks of at least two text constraint elements and the text constraint elements corresponding to other first text knowledge vectors and second text knowledge vectors.
[0059] S208: Retrieve the text to construct a neural network, and construct a second target text based on the combined first text knowledge vector and second text knowledge vector.
[0060] The text knowledge vector corresponding to each text constraint element in the second target text is the same as the other first text knowledge vector or second text knowledge vector corresponding to each text constraint element. The method of constructing the second target text in S207 and S208 can refer to S204 and S205.
[0061] The embodiment of the present application distinguishes between different text constraint elements to constrain text knowledge vectors corresponding to different text constraint elements in the text. In the process of constructing the text, based on replacing the text knowledge vector corresponding to one of the text constraint elements, the text knowledge vector corresponding to the text constraint element in the constructed target text can be modified, and the status of the text knowledge vectors corresponding to other text constraint elements can be maintained to complete the feature constraints of the text.
[0062] The embodiment of the present application assigns no less than two text constraint elements to no less than two text knowledge vectors obtained by extraction, and then calls the text to construct a neural network, and processes the no less than two text knowledge vectors and the text constraint elements corresponding to each text knowledge vector to construct a target text containing two text knowledge vectors. By assigning restricted text constraint elements to the extracted text knowledge vectors to constrain the text knowledge vectors corresponding to different text constraint elements in the constructed target text, the text knowledge vector corresponding to the text constraint element in the constructed target text can be modified by replacing the text knowledge vector corresponding to one of the text constraint elements, and the text knowledge vectors corresponding to other text constraint elements can be maintained unchanged, so that the constructed target text has a high degree of plasticity, so as to effectively control the text content. In addition, different text knowledge vector libraries are deployed for different text constraint elements, and the first text knowledge vector is extracted from different text knowledge vector libraries. At the same time, the first text knowledge vector obtained in different text knowledge vector libraries is assigned different text constraint elements, which improves the difference between the text knowledge vectors corresponding to different text constraint elements, and is conducive to constraining the text knowledge vectors corresponding to different text constraint elements in the constructed target text, so that the constructed target text has a high degree of plasticity. At the same time, no less than two first text knowledge vectors can be combined based on the distribution position of no less than two text constraint elements. After the combined first text knowledge vector is loaded into the text construction neural network, the text construction neural network can determine which text constraint element's text knowledge vector the combined text knowledge vector locally corresponds to based on the distribution position of no less than two text constraint elements, complete adaptive processing, and construct matching text.
[0063] Next, the debugging process of the text-based neural network provided in the embodiment of the present application is introduced, which may specifically include:
[0064] TS110: Extract from the text knowledge vector library to obtain no less than two third text knowledge vectors.
[0065] TS120: Assign a text constraint element to each of the at least two third text knowledge vectors.
[0066] Optionally, extraction is performed in at least two text knowledge vector libraries to obtain at least two third text knowledge vectors, each text knowledge vector library includes one or more randomly constructed text knowledge vectors, and different text knowledge vector libraries correspond to different text constraint elements. In the embodiment of the present application, each third text knowledge vector is assigned a text constraint element corresponding to the text knowledge vector library to which it belongs, and a third text knowledge vector corresponding to at least two text constraint elements is obtained.
[0067] TS130: Retrieve the text to construct a neural network, and construct an example target text Sample1 based on no less than two third text knowledge vectors and the text constraint elements corresponding to each third text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample1 is respectively the same as the third text knowledge vector corresponding to each text constraint element.
[0068] Optionally, at least two third text knowledge vectors are combined according to the distribution ranking of at least two text constraint elements and the text constraint element corresponding to each third text knowledge vector, and the text is retrieved to construct a neural network, and a sample target text Sample1 is constructed according to the combined third text knowledge vectors.
[0069] The method of constructing the sample target text Sample1 in the above TS110~TS130 can refer to S102~S104 or S202~S204.
[0070] TS140: Analyze the sample target text Sample1 to obtain a first analysis result.
[0071] After obtaining the example target text Sample1, the example target text Sample1 is analyzed to obtain the first analysis result. The first analysis result indicates the credibility coefficient of the example target text Sample1 being recognized as natural text. For example, the credibility coefficient can be expressed by confidence, probability, and support. The natural text is not constructed by the text construction neural network. The example target text Sample1 is constructed by the text construction neural network. The larger the credibility coefficient of the example target text Sample1 being recognized as natural text, the more the example target text Sample1 conforms to the characteristics of manual writing. In other words, it is more readable. At this time, the quality of the target text constructed by the text construction neural network is good, and the performance of the text construction neural network in constructing the text is excellent. On the contrary, the smaller the credibility coefficient of the example target text Sample1 being recognized as natural text, the less readable the example target text Sample1 is, the quality of the target text constructed by the text construction neural network is not good, and the performance of the text construction neural network in constructing the text is poor.
[0072] TS150: Debugging the text to construct a neural network based on the first analysis result increases the confidence factor that the target text obtained by constructing the neural network using the debugged text is recognized as natural text.
[0073] Because the greater the credibility coefficient of the target text obtained by the text construction neural network being recognized as natural text, the higher the quality of the target text obtained by the text construction neural network, and the smaller the credibility coefficient of the target text obtained by the text construction neural network being recognized as natural text, the worse the quality of the target text obtained by the text construction neural network, then the credibility coefficient of the sample target text Sample1 being recognized as natural text is improved to debug the text construction neural network for the purpose of debugging, so that the credibility coefficient of the target text obtained by the debugged text construction neural network being recognized as natural text is improved.
[0074] The embodiments of the present application improve the credibility of the target text obtained by constructing a neural network using text after debugging and being recognized as natural text. Specifically, under the premise that the input information of the text construction neural network is consistent, the credibility of the target text obtained by constructing a neural network using text after debugging and being recognized as natural text is greater than the credibility of the target text obtained by constructing a neural network using text before debugging and being recognized as natural text.
[0075] The embodiment of the present application assigns no less than two text constraint elements to any constructed no less than two text knowledge vectors, obtains text knowledge vectors corresponding to the no less than two text constraint elements, then calls a text construction neural network, processes the text knowledge vectors belonging to the no less than two text constraint elements to construct an example target text, and then debugs the text construction neural network through the analysis results of the example target text, so that the credibility coefficient of the target text constructed by the text construction neural network being recognized as natural text is improved, so that the network constructs the text based on the text knowledge vectors of no less than two text constraint elements, adjusts the constraint elements, and the constructed text content is easier to adjust.
[0076] In other embodiments, for debugging of text construction neural network, the process of debugging text construction neural network and text quality analysis neural network is also introduced, which specifically includes:
[0077] TS201: Extract from the text knowledge vector library to obtain no less than two third text knowledge vectors.
[0078] TS202: Assign a text constraint element to each of at least two third text knowledge vectors.
[0079] TS203: Retrieve the text to construct a neural network, and construct an example target text Sample1 based on no less than two third text knowledge vectors and the text constraint elements corresponding to each third text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample1 is the same as the third text knowledge vector corresponding to each text constraint element.
[0080] For the method of constructing the sample target text Sample1 in the above TS201~TS203, please refer to the method of constructing the sample target text Sample1 in TS101~TS203.
[0081] TS204: Call the text quality analysis neural network to analyze the sample target text Sample1 to obtain the first analysis result.
[0082] Text quality analysis neural network is used to analyze the credibility of the text as natural text.
[0083] After obtaining the sample target text Sample1, the sample target text Sample1 is loaded into the text quality analysis neural network, and the sample target text Sample1 is analyzed based on the text quality analysis neural network to obtain a first analysis result. In the embodiment of the present application, the sample target text Sample1 is constructed by the text construction neural network, and the greater the credibility coefficient of the sample target text Sample1 being recognized as natural text by the text quality analysis neural network, the smaller the accuracy of the text quality analysis neural network. The smaller the credibility coefficient of the sample target text Sample1 being recognized as natural text by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network.
[0084] TS205: Debugging the text construction neural network and the text quality analysis neural network based on the first analysis result increases the credibility of the target text constructed by the debugged text construction neural network being recognized as natural text, and reduces the credibility of the target text constructed by the debugged text quality analysis neural network being recognized as natural text.
[0085] Because the greater the credibility coefficient of the target text recognized as natural text by the text construction neural network, the better the quality of the target text recognized as natural text by the text construction neural network, and the smaller the credibility coefficient of the target text recognized as natural text by the text construction neural network, the worse the quality of the target text recognized as natural text by the text construction neural network, then the credibility coefficient of the sample target text Sample1 recognized as natural text will be increased for the purpose of debugging to debug the text construction neural network, so that the credibility coefficient of the target text recognized as natural text by the debugged text construction neural network will be improved. However, because the greater the credibility coefficient of the sample target text Sample1 recognized as natural text by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network. The smaller the credibility coefficient of the sample target text Sample1 recognized as natural text by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network, then the credibility coefficient of the sample target text Sample1 recognized as natural text by the text quality analysis neural network will be reduced for the purpose of debugging to debug the text quality analysis neural network, so that the credibility coefficient of the target text recognized as natural text by the debugged text quality analysis neural network will be reduced.
[0086] In the embodiment of the present application, the credibility coefficient of the target text constructed by the text construction neural network recognized as natural text by the text quality analysis neural network after debugging is reduced, which means that on the basis of the consistency of the target text constructed by the loaded text construction neural network, the credibility coefficient of the text quality analysis neural network recognized as natural text by the text quality analysis neural network after debugging is less than the credibility coefficient of the text quality analysis neural network recognized as natural text before debugging.
[0087] In the embodiments of the present application, adversarial learning is used to debug the text construction neural network and the text quality analysis neural network. Specifically, by debugging the text construction neural network, it is more difficult for the text quality analysis neural network to determine the target text constructed by the text construction neural network, thereby improving the accuracy of the text construction neural network. By debugging the text quality analysis neural network, the text quality analysis neural network can determine the target text constructed by the text construction neural network, thereby improving the accuracy of the text quality analysis neural network. Network optimization based on adversarial learning of the text construction neural network and the text quality analysis neural network can make the quality of the constructed text higher.
[0088] Optionally, TS205 may include the following steps:
[0089] TS2051: Get the sample target text Sample2, call the text quality analysis neural network, analyze the sample target text Sample2, and obtain the second analysis result.
[0090] The example target text Sample2 is a natural text. For example, the example target text Sample2 can be a text excerpted from an existing novel not written on the Internet. The second analysis result indicates the credibility coefficient of the example target text Sample2 being recognized as a natural text. In the embodiment of the present application, the example target text Sample2 is a natural text. The greater the credibility coefficient of the example target text Sample2 being recognized as a natural text by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network. Conversely, the smaller the credibility coefficient of the example target text being recognized as a natural text by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network.
[0091] TS2052: Debugging the text to construct a neural network based on the first analysis result increases the confidence factor that the target text obtained by constructing the neural network using the debugged text is recognized as natural text.
[0092] TS2053: Debug the text quality analysis neural network based on the first analysis result and the second analysis result, so that the credibility coefficient of the target text constructed by the text construction neural network recognized as natural text by calling the debugged text quality analysis neural network is reduced, and the credibility coefficient of the natural text recognized as natural text by calling the debugged text quality analysis neural network is increased.
[0093] Because the greater the credibility coefficient of the sample target text Sample1 being recognized as natural text by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network; the smaller the credibility coefficient of the sample target text Sample1 being recognized as natural text by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network. Therefore, the credibility coefficient of the sample target text Sample1 being recognized as natural text by the text quality analysis neural network is reduced for the purpose of debugging to debug the text quality analysis neural network, so that the credibility coefficient of the target text constructed by the text construction neural network after the debugging is reduced. However, because the greater the credibility coefficient of the sample target text Sample2 being recognized as natural text by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network, and the smaller the credibility coefficient of the sample target text Sample2 being recognized as natural text by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network. Therefore, the credibility coefficient of the sample target text Sample2 being recognized as natural text by the text quality analysis neural network is increased for the purpose of debugging to debug the text quality analysis neural network, so that the credibility coefficient of the debugged text quality analysis neural network recognizing natural text as natural text is increased.
[0094] In an embodiment of the present application, the example target text Sample1 constructed by the text construction neural network is used as a negative example text, and the example target text Sample2 belonging to the natural text is determined as a positive example text. By debugging the text quality analysis neural network together with the positive example text and the negative example text, the text quality analysis neural network can learn to analyze natural text from two dimensions of positive example text and negative example text, which can enhance the analysis and evaluation performance and recognition accuracy of the text quality analysis neural network.
[0095] The embodiment of the present application assigns no less than two text constraint elements to any no less than two text knowledge vectors constructed, obtains the text knowledge vectors belonging to the no less than two text constraint elements, and then calls the text construction neural network to process the text knowledge vectors belonging to the no less than two text constraint elements to construct an example target text, and then debugs the text construction neural network through the analysis results of the example target text, so that the credibility coefficient of the target text constructed by the text construction neural network being recognized as natural text is improved, so that the network learns to construct text based on the text knowledge vectors of no less than two text constraint elements, and completes the easier adjustment of the constraint elements of the constructed text. In addition, adversarial learning is adopted to debug the text construction neural network and the text quality analysis neural network. By debugging the text construction neural network, the text quality analysis neural network is not easy to distinguish the target text constructed by the text construction neural network, so as to improve the accuracy of the text construction neural network. By debugging the text quality analysis neural network, the text quality analysis neural network can distinguish the target text constructed by the text construction neural network, so as to improve the accuracy of the text quality analysis neural network. The adversarial learning of the text construction neural network and the text quality analysis neural network can enhance the quality of text construction. Furthermore, the example target text Sample1 constructed by the text construction neural network is determined as a negative example text, and the example target text Sample2 belonging to natural text is determined as a positive example text. The text quality analysis neural network is debugged together by the positive example text and the negative example text, so that the text quality analysis neural network learns to analyze natural text from two dimensions of positive example text and negative example text, so that the analysis accuracy and performance of the text quality analysis neural network are higher.
[0096] Based on the above steps, a debugging method for text construction neural network is also provided to introduce the process of debugging text construction neural network and text quality analysis neural network, which specifically includes:
[0097] TS301: Extract from the text knowledge vector library to obtain no less than two third text knowledge vectors.
[0098] TS302: Assign a text constraint element to each of at least two third text knowledge vectors.
[0099] TS303: Retrieve the text to construct a neural network, and construct an example target text Sample1 based on no less than two third text knowledge vectors and the text constraint elements corresponding to each third text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample1 is respectively the same as the third text knowledge vector corresponding to each text constraint element.
[0100] For the method of constructing the sample target text Sample1 in the above TS301~TS303, please refer to the method of constructing the sample target text Sample1 in TS101~TS103.
[0101] TS304: Extract from the text knowledge vector library to obtain a fourth text knowledge vector, and replace at least two third text knowledge vectors corresponding to the second text constraint element in the third text knowledge vectors with the fourth text knowledge vector.
[0102] In the method provided in the embodiment of the present application, extraction is performed again in the text knowledge vector library to obtain a fourth text knowledge vector, and the second text constraint element is determined in no less than two text constraint elements. Among them, the second text constraint element is any one of the no less than two text constraint elements, and the third text knowledge vector corresponding to the second text constraint element is determined in no less than two third text knowledge vectors, and the third text knowledge vector corresponding to the second text constraint element is replaced by the fourth text knowledge vector obtained by extraction, wherein the fourth text knowledge vector is different from the third text knowledge vector corresponding to the second text constraint element. Then, among the no less than two text knowledge vectors obtained after the replacement, the text knowledge vector corresponding to the second text constraint element has changed, while the text knowledge vectors corresponding to the remaining constraint elements except the second text constraint element have not changed.
[0103] TS305: Retrieve the text to construct a neural network, and construct an example target text Sample3 based on other third text knowledge vectors, the fourth text knowledge vector and the text constraint elements corresponding to the other third text knowledge vectors and the text constraint elements corresponding to the fourth text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample3 is the same as the other third text knowledge vectors or the fourth text knowledge vectors corresponding to each text constraint element.
[0104] For the method of retrieving text to construct a neural network and constructing a sample target text Sample3 in TS305, please refer to the method of retrieving text to construct a neural network and constructing a sample target text Sample1 in TS203.
[0105] To make a distinction, in the embodiment of the present application, the remaining constraint elements except the second text constraint element among no less than two text constraint elements are regarded as the fourth text constraint element. Then, the text knowledge vector corresponding to the second text constraint element in the example target text Sample1 is different from the text knowledge vector corresponding to the second text constraint element in the example target text Sample3; the text knowledge vector corresponding to the fourth text constraint element in the example target text Sample1 is the same as the text knowledge vector corresponding to the fourth text constraint element in the example target text Sample3.
[0106] TS306: Call the text quality analysis neural network to analyze the example target text Sample1 and the example target text Sample3 to obtain a first analysis result.
[0107] In the embodiment of the present application, the text quality analysis neural network is used to analyze whether any two texts meet the first preset requirement, and the first analysis result indicates that the sample target text Sample1 and the sample target text Sample3 meet the credibility coefficient of the first preset requirement. The first preset requirement indicates that the sample target text Sample1 and the sample target text Sample3 are identified as natural texts, and the text knowledge vectors of one or more text constraint elements in the sample target text Sample1 and the sample target text Sample3 are the same, and the text knowledge vectors of one or more text constraint elements are different. Among them, the larger the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 are identified as meeting the first preset requirement, the more readable the target text constructed by the text construction neural network is, the better the performance of the text construction neural network in distinguishing the text knowledge vectors of different constraint elements is, and the higher the accuracy of the text construction neural network is. The smaller the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 is identified as meeting the first preset requirement, the less readable the sample target text Sample1 is, and the worse the performance of the text construction neural network in distinguishing the text knowledge vectors of different constraint elements is, the worse the accuracy of the text construction neural network is. Furthermore, when debugging the network, it can be assumed that the accuracy of the text-constructed neural network is insufficient, and the example target text Sample1 and the example target text Sample3 do not meet the first preset requirement. In this case, the greater the credibility coefficient of the example target text Sample1 and the example target text Sample3 being recognized by the text quality analysis neural network as meeting the first preset requirement, the worse the accuracy of the text quality analysis neural network; the smaller the credibility coefficient of the example target text Sample1 and the example target text Sample3 being recognized by the text quality analysis neural network as meeting the first preset requirement, the higher the accuracy of the text quality analysis neural network.
[0108] TS307: Debugging the text construction neural network and the text quality analysis neural network based on the first analysis result increases the credibility of at least two target texts constructed by the debugged text construction neural network being recognized as meeting the first preset requirement, and reduces the credibility of at least two target texts constructed by the debugged text quality analysis neural network being recognized as meeting the first preset requirement.
[0109] Because the greater the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being identified as meeting the first preset requirement, the higher the accuracy of the text construction neural network. The smaller the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being identified as meeting the first preset requirement, the worse the accuracy of the text construction neural network, then the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being identified as meeting the first preset requirement can be improved for the purpose of debugging to debug the text construction neural network, so that the credibility coefficient of not less than two target texts constructed by the debugged text construction neural network is improved. As an implementation method, the credibility coefficient of not less than two target texts constructed by the debugged text construction neural network is improved, which means that on the basis of the consistent input information of the text construction neural network, the credibility coefficient of the two texts constructed by the debugged text construction neural network is called through the consistent process of TS301~TS306 to be recognized as meeting the first preset requirement, which is greater than the credibility coefficient of the two texts constructed by the text construction neural network before debugging to be recognized as meeting the first preset requirement.
[0110] The embodiment of the present application distinguishes different text constraint elements, constrains the text knowledge vectors corresponding to different text constraint elements in the text, and when debugging the text construction neural network, the text knowledge vector corresponding to one of the text constraint elements is modified in the constructed target text by replacing the text knowledge vector corresponding to the text constraint element, while maintaining the characteristics of the text knowledge vectors corresponding to other text constraint elements, so that the text construction neural network can learn to distinguish the knowledge of text knowledge vectors corresponding to different text constraint elements, thereby enhancing the control performance of the text construction neural network during text construction. Furthermore, the greater the credibility coefficient of the example target text Sample1 and the example target text Sample3 being recognized as meeting the first preset requirement by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network; the smaller the credibility coefficient of the example target text Sample1 and the example target text Sample3 being recognized as meeting the first preset requirement by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network. Therefore, the credibility coefficient of the text quality analysis neural network in recognizing the example target text Sample1 and the example target text Sample3 as meeting the first preset requirement is reduced for the purpose of debugging the text quality analysis neural network, so that the credibility coefficient of the debugged text quality analysis neural network in recognizing at least two target texts constructed by the text construction neural network as meeting the first preset requirement is reduced.
[0111] As an implementation method, the credibility coefficient of the debugged text quality analysis neural network identifying at least two target texts constructed by the text construction neural network as meeting the first preset requirement is reduced, which means that in the case where the two loaded texts are the same, the credibility coefficient of the debugged text quality analysis neural network identifying the two texts as meeting the first preset requirement is less than the credibility coefficient of the undebugged text quality analysis neural network identifying the two texts as meeting the first preset requirement. At the same time, the two loaded texts are constructed by calling the text construction neural network in the same way as TS301~TS306.
[0112] The embodiment of the present application debugs the text construction neural network and the text quality analysis neural network based on adversarial learning. By debugging the text construction neural network, the text quality analysis neural network is made less likely to accurately analyze the two texts constructed by the text construction neural network, so as to increase the accuracy of the text construction neural network. Based on debugging the text quality analysis neural network, the text quality analysis neural network can accurately analyze the two texts constructed by the text construction neural network, thereby improving the accuracy of the text quality analysis neural network.
[0113] Optionally, TS307 may specifically include:
[0114] TS3071: Get sample target text Sample4 and sample target text Sample5.
[0115] The example target text Sample4 and the example target text Sample5 meet the second preset requirement, which indicates that the example target text Sample4 and the example target text Sample5 are natural texts, and the text knowledge vectors of one or more text constraint elements in the example target text Sample4 and the example target text Sample5 are the same, and at the same time, different from the text knowledge vectors of one or more text constraint elements.
[0116] TS3072: Call the text quality analysis neural network to analyze the example target text Sample4 and the example target text Sample5 to obtain a third analysis result.
[0117] The third analysis result indicates that the example target text Sample4 and the example target text Sample5 are identified as meeting the credibility coefficient of the second preset requirement. In the embodiment of the present application, because the example target text Sample4 and the example target text Sample5 meet the second preset requirement, the greater the credibility coefficient of the example target text Sample4 and the example target text Sample5 being identified as meeting the second preset requirement by the text quality analysis neural network, the higher the accuracy of the text quality analysis neural network. The smaller the credibility coefficient of the example target text Sample4 and the example target text Sample5 being identified as meeting the second preset requirement by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network.
[0118] TS3073: Debugging the text to construct a neural network based on the first analysis result so that the credibility coefficient of at least two target texts constructed by calling the debugged text to construct the neural network is improved to be recognized as meeting the first preset requirement.
[0119] TS3074: Debugging the text quality analysis neural network based on the first analysis result and the third analysis result, so that the credibility coefficient of calling the debugged text quality analysis neural network to recognize at least two target texts constructed by the text construction neural network as meeting the first preset requirement is reduced, and the credibility coefficient of calling the debugged text quality analysis neural network to recognize the target text meeting the second preset requirement is increased.
[0120] Because the greater the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being recognized by the text quality analysis neural network as meeting the first preset requirement, the worse the accuracy of the text quality analysis neural network is; the smaller the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being recognized by the text quality analysis neural network as meeting the first preset requirement is, the higher the accuracy of the text quality analysis neural network is. Therefore, the credibility coefficient of the sample target text Sample1 and the sample target text Sample3 being recognized by the text quality analysis neural network as meeting the first preset requirement is reduced for the purpose of debugging to debug the text quality analysis neural network, so that the credibility coefficient of the debugged text quality analysis neural network to recognize at least two target texts constructed by the text construction neural network as meeting the first preset requirement is reduced. However, because the greater the credibility coefficient of the sample target text Sample4 and the sample target text Sample5 being recognized by the text quality analysis neural network as meeting the second preset requirement is, the higher the accuracy of the text quality analysis neural network is. The smaller the credibility coefficient of the example target text Sample4 and the example target text Sample5 being recognized as meeting the second preset requirement by the text quality analysis neural network, the worse the accuracy of the text quality analysis neural network is. Therefore, the credibility coefficient of the text quality analysis neural network in recognizing the example target text Sample4 and the example target text Sample5 as meeting the second preset requirement will be improved. For the purpose of debugging, the text quality analysis neural network will be debugged, so that the credibility coefficient of the debugged text quality analysis neural network in recognizing the target text that meets the second preset requirement as meeting the second preset requirement is improved.
[0121] In an embodiment of the present application, the example target text Sample1 and the example target text Sample3 constructed by the text construction neural network are determined as negative example texts, and the example target text Sample4 and the example target text Sample5 that meet the second preset requirements are determined as positive example texts. By jointly debugging the text quality analysis neural network with the positive example texts and the negative example texts, the text quality analysis neural network can learn to analyze text knowledge from two dimensions: the positive example text and the negative example text, so as to improve and enhance the analysis performance and accuracy of the text quality analysis neural network.
[0122] In an independently implementable implementation, after obtaining the second target text, the text content of the second target text may be evaluated, for example, the readability of the text may be evaluated to evaluate the performance of the product. Then, in this independent implementation, the following steps may be included:
[0123] S107: Obtaining a text paragraph sequence corresponding to the second target text;
[0124] The text paragraph sequence may be obtained by extracting the second target text by pre-set segmentation, for example, extracting a text paragraph sequence consisting of a plurality of text paragraphs from the second target text according to segmentation intervals (such as every other paragraph).
[0125] S108: Determine multiple core paragraph sets based on the text paragraph sequence, determine the representation vector association information between the core paragraphs covered by each core paragraph set as the corresponding derived inter-paragraph representation vector, and obtain the global inter-paragraph representation vector corresponding to the text paragraph sequence based on the multiple derived inter-paragraph representation vectors.
[0126] In this implementation, each core paragraph set may include multiple core paragraphs screened from a text paragraph sequence, and the core paragraphs corresponding to the multiple core paragraph sets may correspond to different densities in the text extension order. After obtaining the text paragraph sequence, multiple core paragraph sets are determined based on the text paragraph sequence. For each core paragraph set, the representation vector association information between the core paragraphs covered by each core paragraph set is determined, and the derived inter-paragraph representation vector corresponding to the text paragraph sequence is determined. Then, based on the multiple derived inter-paragraph representation vectors, the global inter-paragraph representation vector corresponding to the text paragraph sequence is obtained. For example, the text paragraph sequence is loaded into a text content evaluation network, and processed by the text extension order focusing module (Attention Mechanism module) of multiple Encoders in the text content evaluation network, and the global inter-paragraph representation vector corresponding to the text paragraph sequence is obtained based on the multiple derived inter-paragraph representation vectors.
[0127] Optionally, based on the text extension sequence focusing module of each Encoder in the text content evaluation network, the correlation between different paragraphs is modeled to obtain the correlation information of the representation vectors between text paragraphs (global inter-paragraph representation vector). The text extension sequence focusing module may include two parts. One is to realize low-quality representation vectors (derived inter-paragraph representation vectors) by screening core paragraphs corresponding to different information, and the other is to synchronously obtain core paragraph sets of different text extension sequence lengths, so as to obtain different low-quality representation vectors according to the core paragraph sets of different text extension sequence lengths (obtaining the global inter-paragraph representation vector corresponding to the text paragraph sequence based on multiple derived inter-paragraph representation vectors), and add the two parts to the network.
[0128] S109: Obtaining text content evaluation information of the second target text based on the global inter-paragraph representation vector corresponding to the text paragraph sequence.
[0129] For example, the execution result of the text content evaluation network is determined based on the global inter-paragraph representation vector, and then the text content evaluation information of the second target text is obtained based on the execution result of the text content evaluation network.
[0130] Based on S107~S109, in this implementation scheme, by obtaining the text paragraph sequence corresponding to the second target text, the text paragraph sequence is obtained by extracting the second target text by preset segmentation, and then multiple core paragraph sets are obtained based on the text paragraph sequence, and the representation vector association information between the core paragraphs covered by each core paragraph set is determined as the corresponding derived inter-paragraph representation vector, and the global inter-paragraph representation vector corresponding to the text paragraph sequence is obtained based on the multiple derived inter-paragraph representation vectors. Each core paragraph set covers multiple core paragraphs screened from the text paragraph sequence, and the core paragraphs corresponding to the multiple core paragraph sets correspond to different densities in the text extension order, and then the text content evaluation information of the second target text is obtained based on the global inter-paragraph representation vector corresponding to the text paragraph sequence. In this way, the core paragraphs are identified from the repeated text paragraphs for analysis, so as to accurately determine the text paragraphs covering different types of low-quality representation vectors, and at the same time, a large number of low-quality representation vectors are modeled, so that the performance of low-quality representation vector recognition can be improved.
[0131] Among them, determining multiple core paragraph sets based on the text paragraph sequence in S108 may specifically include: obtaining the number of text paragraphs covered by the text paragraph sequence and a preset density factor, the preset density factor representing the maximum density of core paragraphs selected from the text paragraph sequence; determining the number of derivative sequences used to obtain the derived inter-paragraph representation vector according to the number of text paragraphs covered by the text paragraph sequence and the preset density factor, each of the multiple derivative sequences is used to obtain text paragraph representation vector association information between core paragraphs with a density M in the text extension order as the derived inter-paragraph representation vector corresponding to each derivative sequence, the density M being less than the maximum density; determining multiple core paragraphs from the text paragraph sequence, and determining multiple core paragraph sets corresponding to the number of derivative sequences based on the multiple core paragraphs.
[0132] Among them, multiple core paragraphs are determined from the text paragraph sequence, and multiple core paragraph sets corresponding to the number of derived sequences are determined based on the multiple core paragraphs. For example, for each derivative sequence, the density of the core paragraphs corresponding to each derivative sequence is obtained, and then the number of core paragraphs corresponding to each derivative sequence is determined according to the density of the core paragraphs corresponding to each derivative sequence, and then based on the density of the core paragraphs corresponding to each derivative sequence and the number of core paragraphs corresponding to each derivative sequence, the core paragraphs corresponding to the number of core paragraphs are selected from the text paragraph sequence to obtain the core paragraph set corresponding to each derivative sequence.
[0133] The density of the core paragraph corresponding to each derivative sequence is obtained, for example, by obtaining a unique identifier of each derivative sequence in the multiple derivative sequences, and then determining the density of the core paragraph corresponding to each derivative sequence based on the unique identifier of each derivative sequence in the multiple derivative sequences and the preset density factor.
[0134] Determining the representation vector association information between the core paragraphs covered by each core paragraph set as the corresponding derived inter-paragraph representation vector in S108 may specifically include: for each core paragraph set, according to the weights corresponding to the core paragraphs covered by the core paragraph set, determining the representation vector association information between the core paragraphs covered by the core paragraph set as the derived inter-paragraph representation vector corresponding to the core paragraph set, wherein the weight corresponding to each core paragraph is obtained by using the Attention Mechanism to obtain the weight of each text paragraph in the text paragraph sequence in att_map.
[0135] Further, in S108, a global inter-paragraph representation vector corresponding to a text paragraph sequence is obtained from a plurality of derived inter-paragraph representation vectors, which may include, for example, the following steps: performing representation vector fusion on a plurality of derived inter-paragraph representation vectors corresponding to a plurality of the core paragraph sets to obtain a fused text paragraph representation vector, performing representation vector padding on the fused text paragraph representation vector (for example, based on mean filling), wherein the number of text paragraphs corresponding to the inter-paragraph representation vector after the representation vector padding is the same as the number of text paragraphs covered by the text paragraph sequence, and finally obtaining a global inter-paragraph representation vector corresponding to the text paragraph sequence based on the inter-paragraph representation vector after the representation vector padding.
[0136] Further, a plurality of core paragraph sets are determined based on the text paragraph sequence, and the representation vector association information between the core paragraphs covered by each of the core paragraph sets is determined as the corresponding derived inter-paragraph representation vector. The process of obtaining the global inter-paragraph representation vector corresponding to the text paragraph sequence based on the plurality of derived inter-paragraph representation vectors may include: inputting the text paragraph sequence into a text content evaluation network, the text content evaluation network includes a plurality of sub-networks, each sub-network determines a core paragraph set based on the text paragraph sequence, and determines the representation vector association information between the core paragraphs covered by the core paragraph set as the derived inter-paragraph representation vector corresponding to each sub-network, and obtaining the global inter-paragraph representation vector corresponding to the text paragraph sequence from the plurality of derived inter-paragraph representation vectors corresponding to the plurality of sub-networks. Then, obtaining the text content evaluation information of the second target text based on the global inter-paragraph representation vector corresponding to the text paragraph sequence may specifically include: determining the text content evaluation information of the second target text based on the execution result of the text content evaluation network, wherein the execution result of the text content evaluation network is determined based on the global inter-paragraph representation vector.
[0137] According to another aspect of the present application, a data detection device is also provided. Figure 3 , the device 900 comprises:
[0138] The software retrieval module 910 is used to retrieve the target product in response to the product data detection instruction;
[0139] A vector selection module 920, configured to extract at least two first text knowledge vectors from a text knowledge vector library according to the target product, wherein the text knowledge vector library includes a plurality of text knowledge vectors for constructing text;
[0140] An element assigning module 930, configured to assign a text constraint element to each of the at least two first text knowledge vectors;
[0141] A first construction module 940 is used to call a text construction neural network, and construct a first target text according to the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the first target text is respectively the same as the first text knowledge vector corresponding to each text constraint element;
[0142] A vector replacement module 950 is used to replace the first text knowledge vector corresponding to the first text constraint element of the at least two first text knowledge vectors with the extracted second text knowledge vector, wherein the first text constraint element is any one of the at least two text constraint elements;
[0143] The second construction module 960 is used to call the text to construct a neural network, and construct a second target text based on other first text knowledge vectors, the second text knowledge vector and the text constraint elements corresponding to the other first text knowledge vectors and the text constraint elements corresponding to the second text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the second target text is the same as the other first text knowledge vectors or the second text knowledge vectors corresponding to each text constraint element.
[0144] According to an embodiment of the present application, an electronic device (i.e., a digital factory AI detection system), a readable storage medium, and a computer program product are also provided.
[0145] Please refer to Figure 4, is a structural block diagram of an electronic device 1000 of a digital factory AI detection system of the present application, and the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 to a random access memory (RAM) 1003. In RAM 1003, various programs and data required for the operation of the electronic device 1000 can also be stored. The computing unit 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004. Multiple components in the electronic device 1000 are connected to the I / O interface 1005, including: an input unit 1006, an output unit 1007, a storage unit 1008, and a communication unit 10010. The input unit 1006 may be any type of device capable of inputting information to the electronic device 1000, and the input unit 1006 may receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and may include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone and / or a remote controller. The output unit 1007 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator and / or a printer. The storage unit 1008 may include but is not limited to a disk, an optical disk. The communication unit 10010 allows the electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.
[0146] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 1001 can be configured to perform the method 200 in any other suitable manner (e.g., by means of firmware). Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. The program code for implementing the method of the present application may be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flowchart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or completely on a remote machine or a digital factory AI detection system. In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device, or device.The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the computer. Other types of devices may also be used to provide interaction with a user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0147] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data digital factory AI detection system), or a computing system that includes middleware components (e.g., an application digital factory AI detection system), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area networks (LANs), wide area networks (WANs), and the Internet.
[0148] The computer system may include a client and a digital factory AI detection system. The client and the digital factory AI detection system are generally far away from each other and usually interact through a communication network. The relationship between the client and the digital factory AI detection system is generated by computer programs running on corresponding computers and having a client-digital factory AI detection system relationship with each other. The digital factory AI detection system may be a cloud digital factory AI detection system, or a digital factory AI detection system of a distributed system, or a digital factory AI detection system combined with a blockchain. It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application may be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in this application can be achieved, and this document is not limited here. Although the embodiments or examples of the present application have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the authorized claims and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalent elements. In addition, the steps may be performed in an order different from that described in this application. Further, various elements in the embodiments or examples may be combined in various ways. It is important to note that as technology evolves, many elements described herein may be replaced by equivalent elements that appear after this application.
Claims
1. A product data detection method based on a digital factory, characterized in that: Applied to a digital product AI detection system, the method includes: In response to the software product data detection instruction, a target product is retrieved, where the target product is a product that automatically constructs a production log; Extracting from a text knowledge vector library according to the target product to obtain no less than two first text knowledge vectors, the text knowledge vector library including a plurality of text knowledge vectors for constructing text; Assigning a text constraint element to each of the at least two first text knowledge vectors; Retrieving a text to construct a neural network, and constructing a first target text based on the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the first target text is respectively the same as the first text knowledge vector corresponding to each text constraint element; The extracted second text knowledge vector replaces the first text knowledge vector corresponding to the first text constraint element in the at least two first text knowledge vectors, wherein the first text constraint element is any one of the at least two text constraint elements; Retrieving the text to construct a neural network, and constructing a second target text based on other first text knowledge vectors, the second text knowledge vector, and text constraint elements corresponding to other first text knowledge vectors and text constraint elements corresponding to the second text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the second target text is the same as the other first text knowledge vector or the second text knowledge vector corresponding to each text constraint element; evaluating the text content of the second target text to obtain the readability of the second target text to evaluate the performance of the product; The text-constructed neural network is debugged and obtained by the following steps: Extracting from the text knowledge vector library to obtain no less than two third text knowledge vectors; Assigning a text constraint element to each of the at least two third text knowledge vectors; Retrieving the text to construct a neural network, and constructing an example target text Sample1 according to the at least two third text knowledge vectors and the text constraint elements corresponding to each third text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample1 is respectively the same as the third text knowledge vector corresponding to each text constraint element; Analyze the example target text Sample1 to obtain a first analysis result, wherein the first analysis result indicates a confidence coefficient that the example target text Sample1 is recognized as a natural text, and the natural text is not constructed by a text construction neural network; Debugging the text construction neural network according to the first analysis result so that the credibility coefficient of the target text obtained by calling the debugged text construction neural network to be recognized as the natural text is improved; The method further comprises: Extracting from the text knowledge vector library to obtain a fourth text knowledge vector; The fourth text knowledge vector replaces the third text knowledge vector corresponding to the second text constraint element in the at least two third text knowledge vectors, wherein the second text constraint element is any one of the at least two text constraint elements; Retrieving the text to construct a neural network, constructing an example target text Sample3 according to other third text knowledge vectors, the fourth text knowledge vector and text constraint elements corresponding to other third text knowledge vectors and text constraint elements corresponding to the fourth text knowledge vector, so that the text knowledge vector corresponding to each text constraint element in the example target text Sample3 is the same as the other third text knowledge vector or the fourth text knowledge vector corresponding to each text constraint element; The analyzing the sample target text Sample1 to obtain a first analysis result includes: The example target text Sample1 and the example target text Sample3 are analyzed to obtain the first analysis result, wherein the first analysis result indicates that the example target text Sample1 and the example target text Sample3 meet the credibility coefficient of the first preset requirement, wherein the first preset requirement indicates that the example target text Sample1 and the example target text Sample3 are identified as the natural text, and the text knowledge vectors of one or more text constraint elements in the example target text Sample1 and the example target text Sample3 are the same, and at the same time, are different from the text knowledge vectors of one or more text constraint elements.
2. The product data detection method based on digital factory according to claim 1 is characterized in that: Before the neural network is constructed by extracting text, and constructing the first target text according to the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, the method further includes: Combining the at least two first text knowledge vectors according to the distribution rankings of the at least two text constraint elements and the text constraint element corresponding to each first text knowledge vector; The extracting text to construct a neural network, constructing a first target text according to the at least two first text knowledge vectors and the text constraint elements corresponding to each first text knowledge vector, includes: The text is retrieved to construct a neural network, and the first target text is constructed based on the combined first text knowledge vector.
3. The product data detection method based on digital factory according to claim 1 is characterized in that: The extracting in the text knowledge vector library to obtain no less than two first text knowledge vectors includes: Extracting from at least two text knowledge vector libraries to obtain at least two first text knowledge vectors, wherein different text knowledge vector libraries correspond to different text constraint elements; The step of assigning a text constraint element to each of the at least two first text knowledge vectors comprises: Each of the first text knowledge vectors is respectively assigned a text constraint element corresponding to the text knowledge vector library to which it belongs.
4. The product data detection method based on digital factory according to claim 1 is characterized in that: The analyzing the sample target text Sample1 to obtain a first analysis result includes: Retrieving a text quality analysis neural network, analyzing the sample target text Sample1, and obtaining the first analysis result; The step of debugging the text and constructing a neural network according to the first analysis result includes: The text construction neural network and the text quality analysis neural network are debugged according to the first analysis result, so that the credibility coefficient of the target text constructed by calling the debugged text construction neural network to be recognized as the natural text is increased, and the credibility coefficient of the target text constructed by calling the debugged text quality analysis neural network to be recognized as the natural text is reduced.
5. The product data detection method based on digital factory according to claim 4 is characterized in that: The method further comprises: Obtaining a sample target text Sample2, wherein the sample target text Sample2 is the natural text; Recalling the text quality analysis neural network, analyzing the example target text Sample2, and obtaining a second analysis result, wherein the second analysis result indicates a confidence coefficient that the example target text Sample2 is recognized as the natural text; The step of debugging the text construction neural network and the text quality analysis neural network according to the first analysis result includes: Debugging the text construction neural network according to the first analysis result so that the credibility coefficient of the target text obtained by calling the debugged text construction neural network to be recognized as the natural text is improved; The text quality analysis neural network is debugged according to the first analysis result and the second analysis result, so that the credibility coefficient of the target text constructed by the text construction neural network recognized as the natural text by calling the debugged text quality analysis neural network is reduced, and the credibility coefficient of the natural text recognized as the natural text by calling the debugged text quality analysis neural network is increased.
6. The product data detection method based on digital factory according to claim 1 is characterized in that: The analyzing the example target text Sample1 and the example target text Sample3 to obtain the first analysis result includes: Retrieving a text quality analysis neural network, analyzing the example target text Sample1 and the example target text Sample3, and obtaining the first analysis result; The step of debugging the text and constructing a neural network according to the first analysis result includes: The text construction neural network and the text quality analysis neural network are debugged according to the first analysis result, so that the credibility coefficient of at least two target texts constructed by the debugged text construction neural network being recognized as meeting the first preset requirement is increased, and the credibility coefficient of at least two target texts constructed by the debugged text quality analysis neural network being recognized as meeting the first preset requirement is reduced.
7. The product data detection method based on digital factory according to claim 6 is characterized in that: The method further comprises: Obtaining sample target text Sample4 and sample target text Sample5, wherein the sample target text Sample4 and the sample target text Sample5 meet a second preset requirement, wherein the second preset requirement indicates that the sample target text Sample4 and the sample target text Sample5 are the natural texts, and the text knowledge vectors of one or more text constraint elements in the sample target text Sample4 and the sample target text Sample5 are the same, and at the same time, are different from the text knowledge vectors of one or more text constraint elements; Recalling the text quality analysis neural network, analyzing the example target text Sample4 and the example target text Sample5, and obtaining a third analysis result, wherein the third analysis result indicates that the example target text Sample4 and the example target text Sample5 are identified as having a credibility coefficient that meets the second preset requirement; The step of debugging the text construction neural network and the text quality analysis neural network according to the first analysis result includes: Debugging the text construction neural network according to the first analysis result so that the credibility coefficient of at least two target texts constructed by the debugged text construction neural network being recognized as meeting the first preset requirement is improved; The text quality analysis neural network is debugged according to the first analysis result and the third analysis result, so that the credibility coefficient of calling the debugged text quality analysis neural network to recognize at least two target texts constructed by the text construction neural network as meeting the first preset requirement is reduced, and the credibility coefficient of calling the debugged text quality analysis neural network to recognize the target text meeting the second preset requirement as meeting the second preset requirement is increased.
8. A digital product AI detection system, characterized in that: include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Text regeneration method and device, electronic equipment and computer readable medium
CN111666418A
Knowledge matching method and device fusing context semantic constraint, equipment and medium
CN113392182A
Text coding model training method, information retrieval method and equipment
CN113761124A
Title text processing method and device, storage medium and program
CN114330312A
Method for text generation, device and storage medium
US20210374349A1
