Illegal information identification method and device, electronic equipment and storage medium
By adding word entities related to the target violation information interception strategy in the knowledge graph, the strategy is gradually improved, and the problems of low accuracy and misidentification of violation information in the existing technology are solved, and the recognition efficiency and coverage are improved.
Patent Information
- Application Number
- CN202411061910.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-15
AI Technical Summary
The coverage of illegal information interception strategies in the prior art is insufficient, resulting in low accuracy of identification of illegal information and prone to false identification of non-violating information.
By adding word entities with the same meaning, same category or target relationship to the target knowledge graph, the violation information interception strategy is gradually supplemented and improved until the strategy passes the test to improve the recognition accuracy rate and reduce misidentification.
It effectively improves the accuracy and efficiency of identifying violation information, increases the interception coverage, reduces computing resource consumption, and avoids missed identification problems caused by low policy update efficiency.
Smart Images

Figure CN118964634A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method, device, electronic device and storage medium for identifying illegal information. Background Art
[0002] With the rapid development and widespread application of big data technology, the value of data resources has become increasingly prominent, but this has also provided a breeding ground for the growth and spread of illegal information, which not only disrupts the purity of the information environment, but also seriously threatens people’s property safety.
[0003] In the related art, the content of information can be matched through predefined interception strategies, and then the above information can be identified as illegal information based on the matching results. However, in today's network environment, word entities with similar content and / or form emerge in an endless stream, resulting in a low accuracy rate for identifying and intercepting illegal information based on predefined illegal information interception strategies.
[0004] In order to improve the accuracy of identifying and intercepting illegal information, the related technologies usually regularly update the content of the existing illegal information interception strategy based on the illegal information reported by users. However, the regular update of the existing illegal information interception strategy based on the illegal information reported by users still has problems such as insufficient coverage of the illegal information interception strategy, resulting in low accuracy of illegal information identification and easy misidentification of non-illegal information.
[0005] Therefore, how to improve the accuracy of identifying illegal information and reduce the misidentification of non-illegal information is a technical problem that needs to be solved urgently in this field. Summary of the invention
[0006] The present invention provides a method, device, electronic device and storage medium for identifying illegal information, so as to solve the defects in the prior art that the illegal information interception strategy has insufficient coverage, resulting in low accuracy in identifying illegal information and easy misidentification of non-illegal information, so as to improve the accuracy of identifying illegal information and reduce misidentification of non-illegal information.
[0007] The present invention provides a method for identifying illegal information, comprising the following steps.
[0008] A target illegal information interception strategy is obtained, wherein the target illegal information interception strategy includes a plurality of word entities.
[0009] In the target illegal information interception strategy, word entities in the target knowledge graph that have the same content and meaning as the word entities in the target illegal information interception strategy are added, each node in the target knowledge graph represents a word entity, and the edge connecting any two nodes represents the relationship between the word entities represented by the above any two nodes, and the label information of each of the nodes includes attribute information of the word entity represented by each of the nodes.
[0010] The target illegal information interception strategy is tested. When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and the identification result of the target information is obtained. When it is determined that the target illegal information interception strategy fails the test, at least one of adding a word entity in the target knowledge graph belonging to the same category as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, and the target relationship includes controlling, being controlled, being subordinate, or being subordinated.
[0011] According to a method for identifying illegal information provided by the present invention, when it is determined that the target illegal information interception strategy fails the test, at least one of adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, adding a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy to the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, including: In the case where it is determined that the target illegal information interception strategy fails the test, adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy; The target illegal information interception strategy is tested. When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and an identification result of the target information is obtained. When it is determined that the target illegal information interception strategy fails the test, the steps of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy and the step of testing the target illegal information interception strategy are repeated.
[0012] When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and an identification result of the target information is obtained; when it is determined that the target illegal information interception strategy fails the test, a word entity in the target knowledge graph having a target relationship with the word entity in the target illegal information interception strategy is added to the target illegal information interception strategy.
[0013] The target illegal information interception strategy is tested. If it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and an identification result of the target information is obtained. If it is determined that the target illegal information interception strategy does not pass the test, the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy is jumped to the target illegal information interception strategy.
[0014] According to a method for identifying illegal information provided by the present invention, the step of adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy includes: Traverse each word entity in the target knowledge graph, and search for word entities in the target knowledge graph that have the same content meaning as each word entity in the target illegal information interception strategy; for any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph that has the same content meaning as any word entity, determine the word entity in the target knowledge graph that has the same content meaning as any word entity as the first word entity corresponding to the any word entity; based on the relationship between the first word entity corresponding to any word entity in the target knowledge graph and other word entities, determine the word entity to which the first word entity corresponding to any word entity in the target knowledge graph belongs as the second word entity corresponding to the any word entity; based on the The relationship between the second word entity corresponding to any word entity in the target knowledge graph and other word entities, determine the word entity in the target knowledge graph that is subordinate to the second word entity corresponding to any word entity as the third word entity corresponding to any word entity; based on the vector information of any word entity and the vector information of the third word entity corresponding to any word entity, determine the third word entity corresponding to any word entity whose vector difference with any word entity is less than a first preset value as a word entity belonging to the same category as any word entity; add the word entity belonging to the same category as any word entity to the target violation information interception strategy, and determine the logical relationship between the word entity belonging to the same category as any word entity and any word entity as an or relationship.
[0015] According to a method for identifying illegal information provided by the present invention, when it is determined that the target illegal information interception strategy has not passed the test, a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy is added to the target illegal information interception strategy, including: traversing each word entity in the target knowledge graph, searching for word entities in the target knowledge graph that have the same content meaning as each word entity in the target illegal information interception strategy; for any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph that has the same content meaning as any word entity, determining the word entity in the target knowledge graph that has the same content meaning as any word entity as the first word entity corresponding to the any word entity; based on any word entity in the target knowledge graph, The relationship between the first word entity corresponding to the entity and other word entities, the word entity in the target knowledge graph whose relationship with the first word entity corresponding to any word entity is a controlling relationship, a controlled relationship, a subordinate relationship or a subordinate relationship is determined as the fourth word entity corresponding to any word entity; based on the attribute information of any word entity and the attribute information of the fourth word entity corresponding to any word entity, the fourth word entity corresponding to any word entity whose matching degree with the attribute information of any word entity is higher than a second preset value is determined as the word entity having the target relationship with any word entity; the word entity whose relationship with any word entity is a target relationship is added to the target violation information interception strategy, and the logical relationship between the word entity whose relationship with any word entity is a target relationship and any word entity is determined to be an or relationship.
[0016] According to a method for identifying illegal information provided by the present invention, after determining the word entity belonging to the second word entity corresponding to any word entity in the target knowledge graph as the third word entity corresponding to the any word entity, before determining the third word entity corresponding to any word entity whose vector difference with the any word entity is less than a first preset value as a word entity belonging to the same category as the any word entity based on the vector information of the any word entity and the vector information of the third word entity corresponding to the any word entity, the method further includes: when the number of third word entities corresponding to the any word entity is greater than a second number threshold, the third word entities corresponding to the any word entity can be screened based on predefined illegal word entities, and the third word entities corresponding to the any word entity that successfully matches the illegal word entity are retained, and the third word entities corresponding to the any word entity that do not successfully match the illegal word entity are eliminated; wherein the illegal word entity is a high-frequency word entity that appears more than a number threshold in the identified illegal information; and the number of the illegal word entities is multiple.
[0017] According to a method for identifying illegal information provided by the present invention, the adding of word entities in the target knowledge graph belonging to the same category as the word entities in the target illegal information interception strategy to the target illegal information interception strategy includes: traversing each word entity in the target knowledge graph, searching for word entities in the target knowledge graph that have the same content meaning as each word entity in the target illegal information interception strategy; for any word entity in the target illegal information interception strategy, finding at least one word entity in the target knowledge graph that has the same content meaning as any word entity, adding the word entity with the same content meaning as any word entity to the target illegal information interception strategy, and determining the logical relationship between the word entity with the same content meaning as any word entity and the any word entity as an or relationship.
[0018] According to a method for identifying illegal information provided by the present invention, the method of adding a word entity in a target knowledge graph having the same content meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy comprises: determining the fuzzy matching word segmentation corresponding to each word entity in the target illegal information interception strategy based on a predefined fuzzy matching rule; traversing each word entity in the target knowledge graph, and searching the target knowledge graph for word entities having the same content meaning as the fuzzy matching word segmentation corresponding to each word entity in the target illegal information interception strategy; for any word entity in the target illegal information interception strategy, if at least one word entity is found in the target knowledge graph and the fuzzy matching word segmentation corresponding to any word entity has the same content meaning as the word entity, adding the word entity in the target knowledge graph having the same content meaning as the fuzzy matching word segmentation corresponding to any word entity to the target illegal information interception strategy, and determining that the logical relationship between the word entity in the target knowledge graph having the same content meaning as the fuzzy matching word segmentation corresponding to any word entity and the any word entity is an or relationship.
[0019] According to a violation information identification method provided by the present invention, the testing of the target violation information interception strategy includes: based on the target violation information interception strategy, identifying whether each sample information is violation information, and based on the identification result of each sample information, obtaining the number of sample information identified as violation information; based on the number and the actual number of violation information in each sample information, calculating the macro-average value of the target violation information interception strategy for violation information identification; when the macro-average value corresponding to the target violation information interception strategy is greater than a third preset value, determining that the target violation information interception strategy has passed the test, and when the macro-average value corresponding to the target violation information interception strategy is not greater than the third preset value, determining that the target violation information interception strategy has not passed the test.
[0020] According to a method for identifying illegal information provided by the present invention, after the step of jumping to the step of adding a first word entity in the target illegal information interception strategy based on the target knowledge graph, the method further includes: the cumulative number of steps of jumping to the step of adding the first word entity in the target illegal information interception strategy based on the target knowledge graph is not less than the number threshold, and after the last step of jumping to the step of adding the first word entity in the target illegal information interception strategy based on the target knowledge graph, after executing the step of adding a word entity whose relationship with the word entity in the target illegal information interception strategy is a target relationship in the target illegal information interception strategy based on the target knowledge graph, the target illegal information interception strategy is tested, and if the target illegal information interception strategy still fails the test, then based on the target illegal information interception strategy, it is determined whether the target information is illegal information.
[0021] According to a method for identifying illegal information provided by the present invention, after the step of jumping to the step of adding a word entity in the target knowledge graph having the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, the method further comprises: when the cumulative number of jumps to the step of adding a word entity in the target knowledge graph having the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy is not less than the number threshold, after the last jump to the step of adding a word entity in the target knowledge graph having the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, if after the step of adding a word entity in the target knowledge graph having a target relationship with the word entity in the target illegal information interception strategy in the target illegal information interception strategy is executed, the target illegal information interception strategy is tested, and the target illegal information interception strategy still fails the test, then based on the step of adding a word entity in the target knowledge graph having a target relationship with the word entity in the target illegal information interception strategy in the target illegal information interception strategy, the target illegal information interception strategy is obtained, whether the target information is illegal information is identified, and the identification result of the target information is obtained.
[0022] The present invention also provides a device for identifying illegal information, comprising the following modules: The interception strategy acquisition module is used to acquire a target illegal information interception strategy, wherein the target illegal information interception strategy includes a plurality of word entities.
[0023] The same entity association module is used to test the target illegal information interception strategy. When it is determined that the target illegal information interception strategy passes the test, based on the target illegal information interception strategy, whether the target information is illegal information is identified to obtain the identification result of the target information. When it is determined that the target illegal information interception strategy fails the test, add the target illegal information interception strategy to the target illegal information interception strategy a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy, add the target illegal information interception strategy to the target illegal information interception strategy a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy, add the target illegal information interception strategy to the target illegal information interception strategy a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy, and jump to add the target illegal information interception strategy to the target illegal information interception strategy. At least one of the word entities with the same content meaning as the word entity in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, and the target relationship includes controlling, being controlled, subordinate or being subordinate.
[0024] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for identifying illegal information is implemented.
[0025] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for identifying violation information as described above is implemented.
[0026] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for identifying illegal information as described above is implemented.
[0027] The illegal information identification method, device, electronic device and storage medium provided by the present invention can search for word entities in the target illegal information interception strategy in the target knowledge graph, and can combine the common names, abbreviations, abbreviations and other word entities with the same meaning in the target illegal information interception strategy, word entities of the same category and word entities with a subordinate relationship with the word entities in the target illegal information interception strategy with the word entities in the target illegal information interception strategy, so as to supplement and improve the word entities in the target illegal information interception strategy, effectively avoid the word entities in the illegal information from bypassing the target illegal information interception strategy, improve the updating efficiency of the target illegal information interception strategy, and thus effectively increase the illegal information interception. The interception coverage of the strategy can reduce the missed identification of illegal information and improve the identification accuracy and efficiency of illegal information; the embodiment of the present invention iteratively runs and tests multiple word entity association methods step by step, so as to more comprehensively and accurately extract various entity information related to the word entities in the target illegal information interception strategy, effectively avoid the problem of missed identification of illegal information caused by changing the content of some word entities, and ensure that the target illegal information interception strategy will not introduce too many word entities while effectively expanding the target illegal information interception strategy, thereby misidentifying non-illegal information as illegal information, effectively reducing the misidentification of non-illegal information, requiring less computing resources, and having a wider applicability, better application value and a wider range of application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 This is one of the flow charts of the illegal information identification method provided by the present invention.
[0030] Figure 2 This is the second flow chart of the illegal information identification method provided by the present invention.
[0031] Figure 3 This is the third flow chart of the illegal information identification method provided by the present invention.
[0032] Figure 4 It is one of the structural schematic diagrams of the illegal information identification device provided by the present invention.
[0033] Figure 5 This is the second structural schematic diagram of the illegal information identification device provided by the present invention.
[0034] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0037] In the description of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, in the description of the present application, "and / or" represents at least one of the connected objects, and the character " / " generally represents that the front and back associated objects are in an "or" relationship.
[0038] It should be noted that in the technology of identifying and intercepting illegal information, using illegal information interception strategies to match and identify information content is a common and practical method of identifying and intercepting illegal information. Based on illegal information interception strategies, illegal information can be identified and intercepted more accurately and easily.
[0039] Among them, the illegal information interception strategy may include multiple word entities. After matching and identifying the information content based on the illegal information interception strategy, if it is determined that the above information includes the word entities in the illegal information interception strategy, the above information can be determined as illegal information.
[0040] However, there are still many shortcomings in identifying and intercepting illegal information based on the illegal information interception strategy. One of the most prominent shortcomings is the difficulty in scalability of illegal information interception strategies. With the continuous changes in the network environment, synonymous and similar word entities emerge in an endless stream, making it difficult to intercept the ever-changing illegal information efficiently and accurately by relying on relatively fixed illegal information interception strategies.
[0041] In order to improve the accuracy of identifying and intercepting illegal information, related technologies usually regularly update existing illegal information interception strategies based on illegal information reported by users.
[0042] For example, based on the violation information complained by users, a violation information interception strategy can be formed based on the description of similar or identical word entities combined with the characteristics of other parts of the content. Alternatively, based on the violation information complained by users, the description of similar word entities can be directly spliced into the existing violation information interception strategy by connecting each word entity with the “|” character, thereby completing the update of the violation information interception strategy content; for word entities with strong correlation, the existing violation information interception strategy can be updated by directly splicing the word entities, and the general category of the word entity can be added to the existing violation information interception strategy instead of the entity itself for matching, so as to adapt to the endless stream of related word entities.
[0043] However, regular updates to existing illegal information interception strategies based on illegal information complaints from users still have problems such as insufficient coverage of updated illegal information interception strategies and easy misidentification of non-illegal information.
[0044] On the one hand, when the existing illegal information blocking strategy is regularly updated based on the illegal information reported by users, it is often impossible to take into account all word entities that may involve violations or word entities that are similar in content or meaning to the above-mentioned illegal word entities. As a result, criminals can still bypass the keywords in the illegal information blocking strategy by changing the expression of some word entities in the illegal information or replacing relevant word entities with word entities with similar content, thereby rendering the illegal information blocking strategy ineffective.
[0045] On the other hand, when adding word entities in illegal information reported by users to the existing illegal information blocking strategy, the information referred to by some word entities contained in the illegal information reported by users may overlap with the information referred to by some word entities in non-illegal information. If the above easily confused word entities are directly added to the illegal information blocking strategy, non-illegal information will be misjudged as illegal information, which may lead to the user's account being banned, which will seriously affect the user's perception.
[0046] Furthermore, the efficiency of updating the existing illegal information interception strategies in the related technologies is low, which makes it difficult to timely and effectively identify and intercept illegal information, seriously affecting user perception.
[0047] In order to solve the above technical problems, the present invention provides a method for identifying illegal information. The illegal information identification method provided by the present invention aims at the problem that the interception coverage of the illegal information interception strategy is insufficient, and proposes a method for expanding the illegal information interception strategy by querying the same entity alias, the same type of entity and the associated entity in the knowledge graph, which can effectively increase the interception coverage of the illegal information interception strategy, thereby reducing the missed identification of illegal information.
[0048] The illegal information identification method provided by the present invention aims at the problem of misidentification of non-illegal information. It forms multiple results by repeatedly iteratively querying the word entities in the illegal information interception strategy for the same entity aliases, entities of the same type and related entities, and then tests the effectiveness of the illegal information interception strategy through each sample information that has been determined to be illegal information. The effectiveness of the illegal information interception strategy is calculated from the interception hit rate and false positive rate, and finally generates an illegal information interception strategy whose interception effectiveness exceeds a certain threshold, which can effectively avoid the misidentification of non-illegal information caused by the arbitrary addition of illegal information interception strategy.
[0049] Combine the following Figure 1-Figure 3 The illegal information identification method of the present invention is described.
[0050] Figure 1 This is one of the flow charts of the illegal information identification method provided by the present invention. Figure 2 This is the second flow chart of the illegal information identification method provided by the present invention. Figure 1 and Figure 2 As shown, the method includes the following: Step 101, obtaining a target illegal information interception strategy, wherein the target illegal information interception strategy includes multiple word entities.
[0051] It should be noted that the execution subject in the embodiment of the present invention is the violation information identification device.
[0052] Specifically, the target information is the identification object of the illegal information identification method provided by the present invention. Based on the illegal information identification method provided by the present invention, it is possible to identify whether the target information is illegal information.
[0053] It should be noted that the violation information in the embodiment of the present invention may refer to information including content that violates specific regulations, laws, social standards or public order and good morals.
[0054] It is understandable that the target information in the embodiment of the present invention can be determined according to actual needs. For example, in the embodiment of the present invention, each piece of information sent by the key monitoring terminal through instant messaging software or text messages can be determined as target information in turn.
[0055] The target illegal information interception strategy may be an existing illegal information interception strategy. Based on the illegal information identification method provided by the present invention, the target illegal information interception strategy may be updated, and then based on the updated target illegal information interception strategy, whether the target information is illegal information may be identified.
[0056] It should be noted that the target illegal information interception strategy in the embodiment of the present invention may include multiple word entities, and the logical relationship between any two word entities in the target illegal information interception strategy may be an OR relationship or an AND relationship.
[0057] In the embodiment of the present invention, the target violation information interception strategy can be obtained in a variety of ways. For example, in the embodiment of the present invention, the target violation information interception strategy can be obtained based on the user's input; or, in the embodiment of the present invention, the target violation information interception strategy sent by other electronic devices can also be received. In the embodiment of the present invention, the specific method for obtaining the target violation information interception strategy is not limited.
[0058] Step 102: Add word entities in the target knowledge graph that have the same meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy. Each node in the target knowledge graph represents a word entity. The edge connecting any two nodes represents the relationship between the word entities represented by the above two nodes. The label information of each node includes the attribute information of the word entity represented by each node.
[0059] It should be noted that the target knowledge graph in the embodiment of the present invention may be pre-constructed based on prior knowledge. The target knowledge graph in the embodiment of the present invention is not specifically limited.
[0060] It should be noted that the relationship between the word entities represented by any two nodes in the target knowledge graph may include but is not limited to a controlling relationship, a controlled relationship, a subordinate relationship, a subordinate relationship, a similar relationship, a cooperative relationship, a competitive relationship, a derivative relationship, a derived relationship, and a responsibility relationship, etc.
[0061] It should be noted that if the relationship between the word entity "Company A" and the word entity "Company B" in the target knowledge graph is a controlling relationship, then the relationship between the word entity "Company B" and the word entity "Company A" is a controlled relationship, which can indicate that Company A is the holding company of Company B, and Company B is the holding subsidiary of Company A.
[0062] If the relationship between the word entity "foreign bank" and the word entity "DY Bank" in the target knowledge graph is a subordinate relationship, then the word entity "DY Bank" and the word entity "foreign bank" are in a subordinate relationship, indicating that DY Bank belongs to a foreign bank.
[0063] It should be noted that the attribute information of the word entity in the target knowledge graph may include information used to describe the characteristics, properties or status of the above-mentioned word entity. The attribute information of the word entity in the target knowledge graph may include but is not limited to the content meaning information of the word entity, the business scope information of the entity referred to by the word entity in the real world, and the business strategy information.
[0064] In an embodiment of the present invention, label information can be added to the node where the word entity is located based on the attribute information of the word entity in the target knowledge graph.
[0065] In an embodiment of the present invention, based on the target knowledge graph, word entities in the target knowledge graph with the same content meaning as the word entities in the target illegal information interception strategy can be determined, and then the word entities in the target knowledge graph with the same content meaning as the word entities in the target illegal information interception strategy can be added to the target illegal information interception strategy.
[0066] As an optional embodiment, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy includes: traversing each word entity in the target knowledge graph, and searching for word entities in the target knowledge graph that have the same content meaning as each word entity in the target illegal information interception strategy.
[0067] For any word entity in the target illegal information interception strategy, at least one word entity is found in the target knowledge graph. If the word entity has the same content meaning as any word entity, the word entity with the same content meaning as any word entity is added to the target illegal information interception strategy, and the logical relationship between the word entity with the same content meaning as any word entity and any word entity is determined to be an or relationship.
[0068] Specifically, in the embodiment of the present invention, the first i word entities, representing any word entity in the target illegal information interception strategy, , N Indicates the total number of word entities in the target illegal information blocking policy.
[0069] For the target illegal information interception strategy i If one or more word entities are found in the target knowledge graph, iIf the content meanings of the word entities are the same, then each word entity in the target knowledge graph that has the same content meaning as the above-mentioned i word entity can be determined as the first word entity corresponding to the above-mentioned i word entity.
[0070] For example, when the above-mentioned i word entity is "ZS Bank", the word entities found in the target knowledge graph that have the same content meaning as the above-mentioned i word entity may include "ZSBC" and "ZS Bank". Furthermore, the word entities "ZSBC" and "ZS Bank" in the target knowledge graph can both be determined as the first word entities corresponding to the above-mentioned i word entity "ZS Bank".
[0071] It can be understood that if no word entity with the same content meaning as the above-mentioned i word entity is found in the target knowledge graph, it is determined that the above-mentioned i word entity has no corresponding first word entity.
[0072] After determining the first word entity corresponding to the i word entity in the target violation information interception policy, the first word entity corresponding to the above-mentioned i word entity can be added to the target violation information interception policy, and it can be determined that the logical relationship between the above-mentioned i word entity and the first word entity corresponding to the above-mentioned i word entity is an OR relationship.
[0073] It should be noted that in the fields of information retrieval, database query, or knowledge graph, the logical relationship refers to a way of describing how entities are related to each other. In the embodiments of the present invention, the relationship between any two word entities in the target violation information interception policy can include an OR relationship and an AND relationship. The OR relationship means that only one of the multiple word entities needs to be matched; the AND relationship means that all of the multiple word entities need to be matched.
[0074] Correspondingly, determining the logical relationship between the above-mentioned i word entity and the first word entity corresponding to the above-mentioned i word entity as an OR relationship means that when identifying whether the target information is a violation information based on the target violation information interception policy, as long as any one of the above-mentioned i word entity and the first word entity corresponding to the above-mentioned i word entity matches a certain word entity in the above-mentioned target information, it can be determined that the target information is a violation information.
[0075] As an optional embodiment, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy includes: determining the fuzzy matching word segmentation corresponding to each word entity in the target illegal information interception strategy based on a predefined fuzzy matching rule.
[0076] Specifically, the fuzzy matching rule is a method for handling incomplete matches during the query or search process. Based on the fuzzy matching rule, word entities with the same meaning as the word entities in the target violation information violation interception strategy can be found in the target knowledge graph without being precise.
[0077] It should be noted that, in the embodiment of the present invention, fuzzy matching rules can be predefined based on prior knowledge and / or actual conditions. The fuzzy matching rules in the embodiment of the present invention can include but are not limited to at least one of non-wildcard matching rules, approximate matching rules and fuzzy query matching rules.
[0078] Among them, the non-wildcard matching rule can determine the non-wildcard in the word entity as the fuzzy matching participle corresponding to the above word entity. For example: if the first i If the first word entity is "ZS Bank", then based on the non-wildcard matching rule, "ZS" can be determined as the first i The word entity is the fuzzy matching participle corresponding to "ZS Bank".
[0079] The approximate matching rule can determine the word entity that is similar in pronunciation or appearance to the word entity as the fuzzy matching participle corresponding to the above word entity. For example, if the first i If the first word entity is "ZS Bank", then based on the non-wildcard matching rule, "Z'S Bank" can be determined as the first i The word entity is the fuzzy matching participle corresponding to "ZS Bank", among which "Z'S" and "ZS" are similar in pronunciation or shape.
[0080] The fuzzy query matching rule can take into account possible spelling errors and variants of a word entity, and determine the word entity with spelling errors or variants as the fuzzy matching segmentation corresponding to the above word entity.
[0081] Traverse each word entity in the target knowledge graph, and search for word entities in the target knowledge graph that have the same meaning as the fuzzy matching segmentation content corresponding to each word entity in the target illegal information interception strategy.
[0082] For any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph and the fuzzy matching word segmentation content corresponding to any word entity has the same meaning, the word entity in the target knowledge graph with the same meaning as the fuzzy matching word segmentation content corresponding to any word entity is added to the target illegal information interception strategy, and the logical relationship between the word entity in the target knowledge graph with the same meaning as the fuzzy matching word segmentation content corresponding to any word entity and any word entity is determined to be an or relationship.
[0083] For the target illegal information interception strategy i If one or more word entities are found in the target knowledge graph, i If the content and meaning of the fuzzy matching word segments corresponding to the word entities are the same, the target knowledge graph can be i Each word entity with the same fuzzy matching participle meaning corresponding to the content of the word entity is determined as the above i The fifth word entity corresponding to the word entity.
[0084] It is understandable that if no matching i The word entities corresponding to the fuzzy matching word segmentation content have the same meaning, then determine the above i There is no corresponding first word entity for a word entity.
[0085] Determine the first step in the target illegal information interception strategy i After the fifth word entity corresponding to the word entity, the above i The fifth word entity corresponding to the word entity is added to the target illegal information interception strategy, and the above-mentioned i The word entity is the same as the above i The logical relationship between the fifth word entities corresponding to the word entities is an or relationship.
[0086] Step 103: Test the target illegal information interception strategy. If it is determined that the target illegal information interception strategy passes the test, identify whether the target information is illegal information based on the target illegal information interception strategy, and obtain the identification result of the target information. If it is determined that the target illegal information interception strategy fails the test, add word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, add word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, add word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy to the target illegal information interception strategy, and jump to add at least one of word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, and the target relationship includes controlling, being controlled, subordinate, or being subordinate.
[0087] Specifically, after adding word entities in the target knowledge graph that have the same meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, the above target illegal information interception strategy can be tested.
[0088] In an embodiment of the present invention, the above-mentioned target violation information interception strategy can be tested in a variety of ways to determine whether the above-mentioned target violation information interception strategy passes the test. For example, the above-mentioned target violation information interception strategy can be tested based on the violation information identification accuracy of each sample information by the above-mentioned target violation information interception strategy to determine whether the above-mentioned target violation information interception strategy passes the test.
[0089] As an optional embodiment, the target illegal information interception strategy is tested, including: based on the target illegal information interception strategy, identifying whether each sample information is illegal information, and based on the identification result of each sample information, obtaining the number of sample information identified as illegal information.
[0090] Specifically, in the embodiment of the present invention, the j A sample information, indicating any sample information in each sample information, , M Indicates the total number of sample information.
[0091] For j Sample information, traverse the j For each word entity in the sample information, find the word entity that can be compared with the first word entity in the target illegal information interception strategy. j The word entities in the sample information are matched successfully.
[0092] If in the target illegal information interception strategy i word entity, and j If any word entity in the sample information is matched successfully, it can be further determined whether the target illegal information interception strategy is consistent with the above i The logical relationship between the word entities is the word entity of the "AND" relationship.
[0093] If it is determined that the target illegal information interception strategy does not contain the above i The logical relationship between the word entities is the word entity of the relationship, the above i The logical relationship between the first word entity and other word entities in the target illegal information interception strategy is OR, then the first word entity can be i The word entity is determined as j A sensitive word corresponding to each sample information.
[0094] If it is determined that the target illegal information interception strategy contains the same i If the logical relationship of the word entity is the word entity of the relationship, then further traverse the first j For each word entity in the sample information, find the j Is there any sample information that can be compared with the above i The logical relationship of a word entity is the word entity that successfully matches the word entity of the relationship.
[0095] If you determine the j There is no sample information that can be compared with the above i If the logical relationship of the word entity is a word entity that successfully matches the word entity of the relationship, the above i The word entity is determined as j A sensitive word corresponding to each sample information.
[0096] If you determine the j Any word entity in the sample information can be combined with the above i The logical relationship of the word entity is a successful match with a word entity of the relationship, then the above i The word entity is determined as j A sensitive word corresponding to each sample information will be i The logical relationship between the word entities is the word entity with the relationship of "and" as the first word entity. j A sensitive word corresponding to each sample information.
[0097] If you determine the j The multi-word entities in the sample information can be respectively i The logical relationship of the word entity is that the multiple word entities of the relationship are successfully matched, then the above iThe word entity is determined as j A sensitive word corresponding to each sample information will be i The logical relationship of the word entity is the multiple word entities of the relationship and are respectively determined as the first j A sensitive word corresponding to each sample information.
[0098] Get the j After all the sensitive words corresponding to the sample information, we can obtain the j The number of all sensitive words corresponding to the sample information.
[0099] In the j If the number of all sensitive words corresponding to the sample information is greater than the predefined first quantity threshold, it can be determined that the j The recognition result of the sample information is j The sample information is illegal information.
[0100] It should be noted that the first quantity threshold in the embodiment of the present invention may be determined based on prior knowledge and / or actual conditions. The specific value of the first quantity threshold in the embodiment of the present invention is not limited.
[0101] Optionally, the value range of the first quantity threshold may be 1 to 3, for example, the value of the first quantity threshold may be 1, 2 or 3.
[0102] Based on the target illegal information interception strategy, whether each sample information is illegal information is identified. After obtaining the identification result of each sample information, the number of sample information identified as illegal information based on the target illegal information interception strategy can be obtained through mathematical statistics.
[0103] Based on the quantity and the actual number of illegal information in each sample information, the macro average value of illegal information identification by the target illegal information interception strategy is calculated.
[0104] It should be noted that in the embodiment of the present invention, it is possible to predetermine whether each sample information is illegal information, and obtain the actual number of illegal information in each sample information by means of numerical statistics.
[0105] Specifically, after obtaining the number of sample information identified as violation information based on the target violation information interception strategy, based on the above number and the actual number of violation information in each sample information, the macro-average value of violation information identification by the target violation information interception strategy is calculated through numerical calculation.
[0106] When the macro-average value corresponding to the target violation information interception strategy is greater than the third preset value, it is determined that the target violation information interception strategy has passed the test. When the macro-average value corresponding to the target violation information interception strategy is not greater than the third preset value, it is determined that the target violation information interception strategy has not passed the test.
[0107] Specifically, after obtaining the macro average value of the target illegal information interception strategy for illegal information identification, the macro average value may be compared with the third preset value.
[0108] If the above-mentioned macro average value is greater than the above-mentioned third preset value, it can be determined that the effect of identifying illegal information based on the target illegal information interception strategy is good, and then it can be determined that the target illegal information interception strategy has passed the test.
[0109] If the above-mentioned macro average value is not greater than the above-mentioned third preset value, it can be determined that the effect of identifying illegal information based on the target illegal information interception strategy is poor, and then it can be determined that the target illegal information interception strategy has failed the test.
[0110] When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information can be identified based on the target illegal information interception strategy to obtain an identification result of the target information.
[0111] It can be understood that the identification result of the target information can be that the target information is illegal information or the target information is not illegal information.
[0112] Optionally, when the identification result of the target information is that the target information is illegal information, the target information may be intercepted.
[0113] As an optional embodiment, based on the target illegal information interception strategy, whether the target information is illegal information is identified, and the identification result of the target information is obtained, including: traversing each target word entity in the target information, and determining whether each target word entity successfully matches the word entity in the target illegal information interception strategy.
[0114] When any target word entity in the target information successfully matches a word entity in the target illegal information interception strategy, the word entity in the target illegal information interception strategy that successfully matches any target word entity is determined as the original sensitive word corresponding to any target word entity.
[0115] Determine whether there is a word entity in the target illegal information interception strategy that has an original sensitive word corresponding to any target word entity and has a relationship with it.
[0116] When there is no original sensitive word corresponding to any target word entity in the target illegal information interception strategy, which is a word entity with a relationship with, the original sensitive word corresponding to any target word entity is determined as the target sensitive word in the target information. When there is an original sensitive word corresponding to any target word entity in the target illegal information interception strategy, which is a word entity with a relationship with, it is determined whether the original sensitive word corresponding to any target word entity in the target illegal information interception strategy is a word entity with a relationship with and successfully matches the target word entity in the target information.
[0117] When the original sensitive word corresponding to any target word entity in the target illegal information interception strategy is a word entity with a relationship with and successfully matches the target word entity in the target information, the original sensitive word corresponding to any target word entity in the target illegal information interception strategy is a word entity with a relationship with and is determined as the target sensitive word in the target information.
[0118] When the number of target sensitive words in the target information is greater than the first number threshold, it is determined that the recognition result of the target information is that the target information is illegal information.
[0119] It should be noted that the specific process of identifying whether the target information is illegal information and obtaining the identification result of the target information based on the target illegal information interception strategy in the embodiment of the present invention is the same as the specific process of identifying whether each sample information is illegal information based on the target illegal information interception strategy. Therefore, the specific process of identifying whether the target information is illegal information and obtaining the identification result of the target information based on the target illegal information interception strategy can be referred to the contents of the above embodiments, and will not be repeated in the embodiment of the present invention.
[0120] When it is determined that the target illegal information interception strategy fails the test, word entities belonging to the same category as the word entities in the target illegal information interception strategy can be searched in the target knowledge graph, and then word entities in the target knowledge graph belonging to the same category as the word entities in the target illegal information interception strategy can be added to the target illegal information interception strategy.
[0121] As an optional embodiment, before identifying whether the target information is illegal information based on the target illegal information interception strategy and obtaining the identification result of the target information, the above method includes: performing a structural check on the target illegal information interception strategy, and after determining that the logical relationship between the original word entities in the target illegal information interception strategy is not destroyed, identifying whether the target information is illegal information based on the target illegal information interception strategy and obtaining the identification result of the target information; wherein the original word entities in the target illegal information interception strategy include word entities in the target illegal information interception strategy that are not derived from the target knowledge graph.
[0122] As an optional embodiment, word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy are added to the target illegal information interception strategy, including: traversing each word entity in the target knowledge graph, and searching for word entities in the target knowledge graph that have the same content and meaning as each word entity in the target illegal information interception strategy.
[0123] For any word entity in the target illegal information interception strategy, when at least one word entity with the same content meaning as any word entity is found in the target knowledge graph, the word entity with the same content meaning as any word entity in the target knowledge graph is determined as the first word entity corresponding to any word entity.
[0124] Specifically, for the target illegal information interception strategy i If one or more entities matching the above i If the content and meaning of the word entities are the same as the word entities mentioned above, the target knowledge graph can be i Each word entity with the same content and meaning as the above word entities is determined as i The first word entity corresponding to the word entity.
[0125] Based on the relationship between a first word entity corresponding to any word entity in the target knowledge graph and other word entities, the word entity to which the first word entity corresponding to any word entity in the target knowledge graph belongs is determined as the second word entity corresponding to any word entity.
[0126] Specifically, determine the above i After the first word entity corresponding to the word entity, the i The relationship between the first word entity and other word entities corresponding to the word entity is found in the target knowledge graph. i The relationship between the first word entity and the word entity corresponding to the word entity is a subordinate word entity, that is, find the word entity in the target knowledge graph i The word entity to which the first word entity corresponding to the word entity belongs.
[0127] Find the above-mentioned i In the case of a word entity to which the first word entity corresponding to a word entity belongs, the above-mentioned first word entity in the target knowledge graph can be i The word entity to which the first word entity corresponding to the word entity belongs is determined as the word entity i The second word entity corresponding to the word entity.
[0128] For example, in the abovei In the case where the first word entity corresponding to the word entity is "DY Bank", if the word entity "Foreign Bank" is found in the target knowledge graph and the relationship with the word entity "DY Bank" is a subordinate relationship (indicating that DY Bank is a foreign bank), the word entity "Foreign Bank" can be determined as the first word entity in the above-mentioned knowledge graph. i The second word entity corresponding to the word entity.
[0129] Based on the relationship between the second word entity corresponding to any word entity in the target knowledge graph and other word entities, the word entity belonging to the second word entity corresponding to any word entity in the target knowledge graph is determined as the third word entity corresponding to any word entity.
[0130] Specifically, determine the above i After the second word entity corresponding to the word entity, the i The relationship between the second word entity corresponding to the word entity and other word entities is found in the target knowledge graph. i The relationship between the first word entity and the word entity corresponding to the word entity is a subordinate relationship, that is, to find the word entity in the target knowledge graph that is subordinate to the first word entity mentioned above. i The word entity of the second word entity corresponding to the word entity.
[0131] Find the target knowledge graph that belongs to the above i In the case of a word entity corresponding to the second word entity of the first word entity, the target knowledge graph belonging to the first word entity can be i The word entity of the second word entity corresponding to the word entity is determined as the above i The third word entity corresponding to the word entity.
[0132] For example, in the above i In the case where the second word entity corresponding to the first word entity is "foreign bank", if the word entities "HQ Bank", "HF Bank" and "RS Bank" that are subordinate to the word entity "foreign bank" are found in the target knowledge graph (indicating that HQ Bank, HF Bank and RS Bank are all foreign banks), the word entity "HQ Bank", the word entity "HF Bank" and the word entity "RS Bank" can all be determined as the first word entity. i The third word entity corresponding to the word entity.
[0133] As an optional embodiment, after determining the word entity belonging to the second word entity corresponding to any word entity in the target knowledge graph as the third word entity corresponding to any word entity, based on the vector information of any word entity and the vector information of the third word entity corresponding to any word entity, before determining the third word entity corresponding to any word entity whose vector difference with any word entity is less than a first preset value as a word entity belonging to the same category as any word entity, the above method also includes: when the number of third word entities corresponding to any word entity is greater than a second number threshold, the third word entities corresponding to any word entity can be screened based on predefined illegal word entities, retaining the third word entity corresponding to any word entity that successfully matches the illegal word entity, and eliminating the third word entity corresponding to any word entity that fails to successfully match the illegal word entity.
[0134] Among them, the illegal word entity is a high-frequency word entity whose number of appearances in the information identified as illegal exceeds the word threshold; the number of illegal word entities is multiple.
[0135] Specifically, in i When the number of third word entities corresponding to the word entity is greater than the second number threshold, the first word entity can be identified based on the illegal word entities in the predefined illegal word entity library. i The third word entity corresponding to the word entity is screened, and the third word entity that can successfully match the illegal word entity is retained. i The third word entity corresponding to the word entity is removed, and the third word entity that has not been successfully matched with the illegal word entity is removed. i The third word entity corresponding to the word entity.
[0136] It should be noted that the second quantity threshold and the last number threshold may be determined based on actual conditions and / or prior knowledge, and the second quantity threshold and the last number threshold are not specifically limited in the embodiment of the present invention.
[0137] Optionally, the second quantity threshold may range from 10 to 20, for example, the second quantity threshold may be 10, 15 or 20.
[0138] Based on the vector information of any word entity and the vector information of the third word entity corresponding to any word entity, the third word entity corresponding to any word entity whose vector difference with any word entity is less than a first preset value is determined as a word entity belonging to the same category as any word entity.
[0139] Specifically, determine the above i After the third word entity corresponding to the word entity, you can i The vector information of the word entity and the abovei The vector information of the third word entity corresponding to the word entity is calculated to obtain the above i The word entity is the same as the above i The vector difference between the third word entity corresponding to the word entity.
[0140] It should be noted that the vector information of the word entity in the embodiment of the present invention can be calculated based on a self-optimized vector model, and the calculation idea is the calculation of the word vector, similar to skip-gram.
[0141] Calculate the above i The word entity is the same as the above i After the vector difference between the third word entity corresponding to the word entity, if the above i Any third word entity corresponding to the word entity and the above i If the vector difference between the word entities is less than the first preset value, then the above i The third word entity corresponding to the word entity is determined as i word entities belong to the same category.
[0142] A word entity belonging to the same category as any word entity is added to the target illegal information interception strategy, and a logical relationship between the word entity belonging to the same category as any word entity and any word entity is determined to be an OR relationship.
[0143] Specifically, determine the i After the word entities belong to the same category, you can i The word entities belonging to the same category are added to the target illegal information interception strategy, and the word entities can be determined to be related to the above i The word entities belong to the same category as the above word entities. i The logical relationship between word entities is an or relationship.
[0144] Will be combined with the above i After word entities belonging to the same category are added to the target illegal information interception strategy, the above target illegal information interception strategy can be tested.
[0145] When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information can be identified based on the target illegal information interception strategy to obtain an identification result of the target information.
[0146] like Figure 2As shown, if it is determined that the target illegal information interception strategy fails the test, at least one of the following can be executed: adding word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy, and jumping to adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy.
[0147] Figure 3 This is the third flow chart of the illegal information identification method provided by the present invention. Figure 3 As shown, as an optional embodiment, when it is determined that the target illegal information interception strategy has not passed the test, at least one of adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, repeatedly adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, adding a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy to the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy includes: when it is determined that the target illegal information interception strategy has not passed the test, adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy.
[0148] like Figure 3 As shown, if it is determined that the target illegal information interception strategy fails the test, the steps of adding word entities in the target knowledge graph with the same content and meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy and the step of testing the target illegal information interception strategy are returned and repeated.
[0149] After repeatedly executing the steps of adding word entities in the target knowledge graph having the same content meaning as the word entities in the target illegal information interception strategy and testing the target illegal information interception strategy, if it is determined that the target illegal information interception strategy passes the test, then based on the target illegal information interception strategy, whether the target information is illegal information is identified to obtain an identification result of the target information.
[0150] If it is determined that the target illegal information interception strategy fails the test, a word entity whose relationship with the word entity in the target illegal information interception strategy is the target relationship can be found in the target knowledge graph, and then the word entity in the target knowledge graph whose relationship with the word entity in the target illegal information interception strategy is the target relationship can be added to the target illegal information interception strategy.
[0151] As an optional embodiment, adding word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy to the target illegal information interception strategy includes: traversing each word entity in the target knowledge graph, and searching for word entities in the target knowledge graph that have the same content and meaning as each word entity in the target illegal information interception strategy.
[0152] For any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph and has the same content meaning as any word entity, the word entity in the target knowledge graph that has the same content meaning as any word entity is determined as the first word entity corresponding to any word entity.
[0153] Specifically, for the target illegal information interception strategy i If one or more entities matching the above i If the content and meaning of the word entities are the same as the word entities mentioned above, the target knowledge graph can be i Each word entity with the same content and meaning as the above word entities is determined as i The first word entity corresponding to the word entity.
[0154] Based on the relationship between the first word entity corresponding to any word entity in the target knowledge graph and other word entities, the word entity in the target knowledge graph whose relationship with the first word entity corresponding to any word entity is a controlling relationship, a controlled relationship, a subordinate relationship or a subordinate relationship is determined as the fourth word entity corresponding to any word entity.
[0155] Specifically, determine the above i After the first word entity corresponding to the word entity, the i The relationship between the first word entity and other word entities corresponding to the word entity is found in the target knowledge graph. i The relationship between the first word entity and the word entity corresponding to the first word entity is a controlling relationship, a controlled relationship, a subordinate relationship, or a subordinated relationship.
[0156] Find the target knowledge graph that matches the above iIn the case where the relationship between the first word entity and the word entity corresponding to the word entity is a controlling relationship, a controlled relationship, a subordinate relationship, or a subordinate relationship, the word entity in the target knowledge graph that is related to the first word entity can be i The relationship between the first word entity and the word entity corresponding to the word entity is a controlling relationship, a controlled relationship, a subordinate relationship, or a subordinate relationship, and is determined as the above-mentioned i The fourth word entity corresponding to the word entity.
[0157] For example, in the above i In the case where the first word entity corresponding to the word entity is "DY Bank", if the word entity "Foreign Bank" is found in the target knowledge graph and the relationship with the word entity "DY Bank" is a subordinate relationship (indicating that DY Bank is a foreign bank), the word entity "Foreign Bank" can be determined as the first word entity in the above-mentioned knowledge graph. i The fourth word entity corresponding to the word entity.
[0158] For example, in the above i In the case where the first word entity corresponding to the word entity is "ZS Bank", if the relationship with the word entity "SZ Finance" is found in the target knowledge graph as a controlled relationship (indicating that SZ Finance is a controlled subsidiary of ZS Bank), the word entity "SZ Finance" can be determined as the first word entity in the above-mentioned knowledge graph. i The fourth word entity corresponding to the word entity.
[0159] Based on the attribute information of any word entity and the attribute information of a fourth word entity corresponding to any word entity, the fourth word entity corresponding to any word entity whose matching degree with the attribute information of any word entity is higher than a second preset value is determined as a word entity having a target relationship with any word entity.
[0160] Specifically, determine the above i After the fourth word entity corresponding to the word entity, you can i The attribute information of the fourth word entity corresponding to the word entity and the attribute information of the fourth word entity corresponding to the word entity i The attribute information of the word entity is calculated by numerical calculation to obtain the above i The word entity is the same as the above i The matching degree between the fourth word entity corresponding to the first word entity.
[0161] Optionally, the attribute information of the word entity in the target knowledge graph in the embodiment of the present invention may include business scope information and / or business strategy information of the entity that the word entity refers to in the real world.
[0162] If the above i Any fourth word entity corresponding to the word entity and the abovei If the matching degree between the word entities is higher than the second preset value, the above-mentioned i The fourth word entity corresponding to the word entity is determined as i The word entities have target relations.
[0163] The word entity whose relationship with any word entity is a target relationship is added to the target illegal information interception strategy, and the logical relationship between the word entity whose relationship with any word entity is a target relationship and any word entity is determined to be an OR relationship.
[0164] Specifically, determine the i After the word entity has a target relationship, the word entity with the above i The word entities with target relationships are added to the target illegal information interception strategy, and the word entities related to the above-mentioned i The word entity has a target relationship with the above word entity. i The logical relationship between word entities is an or relationship.
[0165] The target illegal information interception strategy is tested. If it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and the identification result of the target information is obtained. If it is determined that the target illegal information interception strategy does not pass the test, jump to the step of adding a word entity in the target knowledge graph with the same content and meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy.
[0166] Specifically, the above i After the word entities having the target relationship are added to the target illegal information interception strategy, the above target illegal information interception strategy can be tested.
[0167] When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information can be identified based on the target illegal information interception strategy to obtain an identification result of the target information.
[0168] like Figure 3 As shown, if it is determined that the target illegal information interception strategy fails the test, jump to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy.
[0169] As an optional embodiment, after jumping to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception policy, the above method also includes: when the cumulative number of jumps to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception policy is not less than the number threshold, after the last jump to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception policy, if after executing the step of adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception policy, the target illegal information interception policy is tested, and the target illegal information interception policy still fails the test, then based on the step of adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception policy, the target illegal information interception policy is obtained, whether the target information is illegal information is identified, and the identification result of the target information is obtained.
[0170] The embodiment of the present invention searches for word entities in the target illegal information interception strategy in the target knowledge graph, and can combine word entities with the same meaning as the common names, abbreviations, abbreviations, and other content entities in the target illegal information interception strategy in the target knowledge graph, word entities of the same category, and word entities with a subordinate relationship with the word entities in the target illegal information interception strategy with the word entities in the target illegal information interception strategy, so as to supplement and improve the word entities in the target illegal information interception strategy, effectively prevent the word entities in the illegal information from bypassing the target illegal information interception strategy, improve the updating efficiency of the target illegal information interception strategy, and further effectively increase the interception coverage of the illegal information interception strategy, and reduce Less missed identification of illegal information can be achieved, which can improve the identification accuracy and efficiency of illegal information; the embodiment of the present invention iteratively runs and tests multiple word entity association methods step by step, which can more comprehensively and accurately extract various entity information that is relevant to the word entities in the target illegal information interception strategy, and can effectively avoid the problem of missed identification of illegal information caused by changing the content of some word entities. It can also ensure that the target illegal information interception strategy will not introduce too many word entities while effectively expanding the target illegal information interception strategy, thereby misidentifying non-illegal information as illegal information, effectively reducing the misidentification of non-illegal information, requiring less computing resources, and having a wider applicability, better application value and a wider range of application scenarios.
[0171] The illegal information identification method provided by the present invention is an entity association method of illegal information interception strategy based on knowledge graph, which includes the same entity association method, the same type entity association method, the related entity association method and the association result recursive verification method. The illegal information identification method provided by the present invention searches the knowledge graph to add and supplement the entities in the strategy, effectively preventing the interference of unpopular content on the setting of illegal information interception strategy, improving the interception efficiency of the illegal information interception strategy, and also improving the situation where high-repetition word entities are added to the illegal information interception strategy due to the failure of individual information to be intercepted, thereby reducing the consumption of computing resources.
[0172] The illegal information identification method provided by the present invention verifies the interception effect of the illegal information interception strategy, and according to the iterative operation of the verification result and entity association, gradually increases the word entities included in the illegal information interception strategy. While improving the interception efficiency of the illegal information interception strategy, it can effectively prevent the illegal information interception strategy from misjudging non-illegal information due to adding too many word entities to the illegal information interception strategy at one time, thereby greatly improving the accuracy of illegal information identification.
[0173] Figure 4 This is one of the structural diagrams of the illegal information identification device provided by the present invention. Figure 4 The violation information identification device provided by the present invention is described. The violation information identification device described below and the violation information identification method provided by the present invention described above can be referred to each other. Figure 4 As shown, the device includes: an interception strategy acquisition module 401, a same entity association module 402, a similar entity association module 403, and a first repeated execution module 404.
[0174] The interception strategy acquisition module 401 is used to acquire a target illegal information interception strategy, wherein the target illegal information interception strategy includes a plurality of word entities; The same entity association module 402 is used to add the word entities in the target knowledge graph that have the same meaning as the word entities in the target illegal information interception strategy in the target illegal information interception strategy, each node in the target knowledge graph represents a word entity, and the edge connecting any two nodes represents the relationship between the word entities represented by the above any two nodes, and the label information of each node includes the attribute information of the word entity represented by each node; The same-type entity association module 403 tests the target illegal information interception strategy. When it is determined that the target illegal information interception strategy passes the test, based on the target illegal information interception strategy, it identifies whether the target information is illegal information and obtains the identification result of the target information. When it is determined that the target illegal information interception strategy fails the test, at least one of adding word entities in the target knowledge graph belonging to the same category as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph with the same content meaning as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph with the target illegal information interception strategy having a target relationship with the word entities in the target illegal information interception strategy, and jumping to adding word entities in the target knowledge graph with the same content meaning as the word entities in the target illegal information interception strategy in the target illegal information interception strategy, wherein the target relationship includes controlling, being controlled, being subordinate or being subordinated.
[0175] Specifically, the interception strategy acquisition module 301, the same entity association module 302 and the same type entity association module 303 are electrically connected.
[0176] Optionally, the violation information identification device may further include a first repeated execution module, an associated entity association module and a second repeated execution module.
[0177] The similar entity association module 303 is specifically used to add word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy to the target illegal information interception strategy when it is determined that the target illegal information interception strategy has not passed the test.
[0178] A first repeated execution module is used to test the target illegal information interception strategy. If it is determined that the target illegal information interception strategy passes the test, based on the target illegal information interception strategy, whether the target information is illegal information is identified, and the identification result of the target information is obtained. If it is determined that the target illegal information interception strategy fails the test, the steps of adding a word entity in the target knowledge graph with the same meaning as the word entity in the target illegal information interception strategy and the step of testing the target illegal information interception strategy are repeated; An associated entity association module is used to identify whether the target information is illegal information based on the target illegal information interception strategy when it is determined that the target illegal information interception strategy has passed the test, and obtain the identification result of the target information; if it is determined that the target illegal information interception strategy has not passed the test, add a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy to the target illegal information interception strategy; The second repeated execution module is used to test the target illegal information interception strategy. When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and the identification result of the target information is obtained. When it is determined that the target illegal information interception strategy does not pass the test, the module jumps to the step of adding a word entity in the target knowledge graph with the same content and meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy.
[0179] It should be noted that the violation information identification device may also include a similar entity association unit, a related entity association unit, a function verification unit and a violation information identification unit.
[0180] The similar entity association module 303 is composed of a similar entity association unit, a function verification unit and a violation information identification unit.
[0181] The associated entity association module is composed of an associated entity association unit, a function verification unit and a violation information identification unit.
[0182] The first repetitive execution module includes a function verification unit.
[0183] The second repetitive execution module includes a function verification unit.
[0184] Figure 5 This is the second structural diagram of the illegal information identification device provided by the present invention. Figure 5 The interaction between the modules and units in the violation information identification method and the violation information identification device provided by the present invention is described.
[0185] like Figure 5 As shown, after the interception strategy acquisition module 301 acquires the target violation information interception strategy, the target violation information interception strategy can be sent to the same entity association module 302.
[0186] After the same entity association module 302 adds the word entities in the target knowledge graph with the same content meaning as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, the target illegal information interception strategy can be sent to the function verification unit.
[0187] The function verification unit tests the target violation information interception strategy. When the function verification unit determines that the target violation information interception strategy passes the test, the function verification unit sends the target violation information to the violation information identification unit, so that the violation information identification unit can identify whether the target information is violation information based on the target violation information interception strategy and obtain the identification result of the target information; when the function verification unit determines that the target violation information interception strategy fails the test, the function verification unit sends the target violation information interception strategy to the similar entity association unit, so that the similar entity association unit can add word entities in the target knowledge graph that belong to the same category as the word entities in the target violation information interception strategy to the target violation information interception strategy.
[0188] After the similar entity association unit adds word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy to the target illegal information interception strategy, the target illegal information interception strategy is sent to the function verification unit.
[0189] The function verification unit tests the target violation information interception strategy. When the function verification unit determines that the target violation information interception strategy passes the test, the function verification unit sends the target violation information to the violation information identification unit, so that the violation information identification unit can identify whether the target information is violation information based on the target violation information interception strategy and obtain the identification result of the target information; when the function verification unit determines that the target violation information interception strategy fails the test, the target violation information interception strategy is returned to the same entity association module 302, so that the same entity association module 302 can repeat the step of adding word entities in the target knowledge graph with the same content meaning as the word entities in the target violation information interception strategy to the target violation information interception strategy, and then send the target violation information interception strategy to the function verification unit again to test the target violation information interception strategy.
[0190] When the function verification unit determines that the target violation information interception strategy has passed the test, the function verification unit sends the target violation information to the violation information identification unit, so that the violation information identification unit can identify whether the target information is violation information based on the target violation information interception strategy and obtain the identification result of the target information; when the function verification unit determines that the target violation information interception strategy has not passed the test, the target violation information interception strategy is sent to the associated entity association unit, so that the associated entity association unit adds word entities in the target knowledge graph that have a target relationship with the word entities in the target violation information interception strategy to the target violation information interception strategy, and then sends the target violation information interception strategy to the function verification unit for testing.
[0191] When the function verification unit determines that the target violation information interception strategy has passed the test, the function verification unit sends the target violation information to the violation information identification unit, so that the violation information identification unit can identify whether the target information is violation information based on the target violation information interception strategy and obtain the identification result of the target information; when the function verification unit determines that the target violation information interception strategy has not passed the test, the target violation information interception strategy is returned to the same entity association module 302 and the above process is repeated.
[0192] It should be noted that the illegal information identification device also includes a content retrieval unit. The content retrieval unit can be used to find and return word entities that meet the retrieval requirements in the target knowledge graph based on the word entities and retrieval requirements sent by the same entity association module 302, the same entity association unit and the related entity association unit.
[0193] The illegal information identification device in the embodiment of the present invention can search the word entities in the target illegal information interception strategy in the target knowledge graph, and can combine the common names, abbreviations, abbreviations and other word entities with the same meaning in the target illegal information interception strategy in the target knowledge graph, the word entities of the same category, and the word entities with a subordinate relationship with the word entities in the target illegal information interception strategy with the word entities in the target illegal information interception strategy, so as to supplement and improve the word entities in the target illegal information interception strategy, effectively avoid the word entities in the illegal information from bypassing the target illegal information interception strategy, improve the update efficiency of the target illegal information interception strategy, and further effectively increase the interception coverage of the illegal information interception strategy. The invention can reduce the missed recognition of illegal information and improve the recognition accuracy and efficiency of illegal information. The invention can more comprehensively and accurately extract various entity information related to the word entities in the target illegal information interception strategy by iteratively running and testing multiple word entity association methods step by step, and can effectively avoid the problem of missed recognition of illegal information caused by changing the content of some word entities. It can also ensure that the target illegal information interception strategy will not introduce too many word entities while effectively expanding the target illegal information interception strategy, thereby misidentifying non-illegal information as illegal information, effectively reducing the misidentification of non-illegal information, requiring less computing resources, and having wider applicability, better application value and wider application scenarios.
[0194] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 650, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 650. The processor 610 may call the logic instructions in the memory 630 to execute the illegal information identification method, which includes: obtaining a target illegal information interception strategy, wherein the target illegal information interception strategy includes a plurality of word entities; adding a word entity in the target knowledge graph that has the same meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, wherein each node in the target knowledge graph represents a word entity, and an edge connecting any two nodes represents the relationship between the word entities represented by the above-mentioned any two nodes, and the label information of each node includes the attribute information of the word entity represented by each node; testing the target illegal information interception strategy, and if it is determined that the target illegal information interception strategy passes the test, identifying whether the target information is illegal information based on the target illegal information interception strategy, and obtaining the target information. The recognition result of the information is determined. When it is determined that the target illegal information interception strategy has not passed the test, at least one of the following is executed: adding word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy, and jumping to adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy has passed the test, and the target relationship includes controlling, being controlled, subordinate or being subordinate.
[0195] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0196] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the violation information identification method provided by the above methods, and the method includes: obtaining a target violation information interception strategy, wherein the target violation information interception strategy includes multiple word entities; adding word entities in the target knowledge graph that have the same content and meaning as the word entities in the target violation information interception strategy to the target violation information interception strategy, wherein each node in the target knowledge graph represents a word entity, and an edge connecting any two nodes represents the relationship between the word entities represented by the above any two nodes, and the label information of each node includes attribute information of the word entity represented by each node; testing the target violation information interception strategy, and when it is determined that the target violation information interception strategy passes the test, based on the target The illegal information interception strategy identifies whether the target information is illegal information, obtains the identification result of the target information, and when it is determined that the target illegal information interception strategy has not passed the test, executes at least one of adding word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy, and jumping to adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy has passed the test, and the target relationship includes controlling, being controlled, subordinate or being subordinate.
[0197] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the violation information identification method provided by the above methods, the method comprising: obtaining a target violation information interception strategy, the target violation information interception strategy including a plurality of word entities; adding a word entity in a target knowledge graph having the same content and meaning as the word entity in the target violation information interception strategy to the target violation information interception strategy, each node in the target knowledge graph represents a word entity, an edge connecting any two nodes represents the relationship between the word entities represented by the above any two nodes, and the label information of each node includes attribute information of the word entity represented by each node; testing the target violation information interception strategy, and if it is determined that the target violation information interception strategy passes the test, based on the target violation information interception strategy, Whether the information is illegal information is identified, and the identification result of the target information is obtained. When it is determined that the target illegal information interception strategy has not passed the test, at least one of the following is executed: adding word entities in the target knowledge graph that belong to the same category as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy, adding word entities in the target knowledge graph that have a target relationship with the word entities in the target illegal information interception strategy, and jumping to adding word entities in the target knowledge graph that have the same content meaning as the word entities in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy has passed the test, and the target relationship includes controlling, being controlled, subordinate or being subordinate.
[0198] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0199] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying illegal information, characterized in that: include: Obtaining a target illegal information interception strategy, wherein the target illegal information interception strategy includes a plurality of word entities; Adding a word entity in the target knowledge graph that has the same meaning as the word entity in the target illegal information interception strategy to the target illegal information interception strategy, each node in the target knowledge graph represents a word entity, an edge connecting any two nodes represents the relationship between the word entities represented by the above-mentioned any two nodes, and the label information of each of the nodes includes the attribute information of the word entity represented by each of the nodes; The target illegal information interception strategy is tested. When it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and the identification result of the target information is obtained. When it is determined that the target illegal information interception strategy fails the test, at least one of adding a word entity in the target knowledge graph belonging to the same category as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, and the target relationship includes controlling, being controlled, being subordinate, or being subordinated.
2. The method for identifying illegal information according to claim 1, characterized in that: In the case where it is determined that the target illegal information interception strategy fails the test, at least one of adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph that has a target relationship with the word entity in the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph that has the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, including: In the case where it is determined that the target illegal information interception strategy fails the test, adding a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy to the target illegal information interception strategy; The target illegal information interception strategy is tested. If it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and an identification result of the target information is obtained. If it is determined that the target illegal information interception strategy fails the test, the steps of adding a word entity in the target knowledge graph with the same meaning as the word entity in the target illegal information interception strategy and the step of testing the target illegal information interception strategy are repeated. If it is determined that the target illegal information interception strategy passes the test, based on the target illegal information interception strategy, whether the target information is illegal information is identified, and an identification result of the target information is obtained; if it is determined that the target illegal information interception strategy fails the test, a word entity in the target knowledge graph having a target relationship with the word entity in the target illegal information interception strategy is added to the target illegal information interception strategy; The target illegal information interception strategy is tested. If it is determined that the target illegal information interception strategy passes the test, whether the target information is illegal information is identified based on the target illegal information interception strategy, and an identification result of the target information is obtained. If it is determined that the target illegal information interception strategy does not pass the test, the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy is jumped to the target illegal information interception strategy.
3. The method for identifying illegal information according to claim 1, characterized in that: The adding of a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy in the target illegal information interception strategy includes: Traversing each word entity in the target knowledge graph, searching for a word entity in the target knowledge graph that has the same meaning as each word entity in the target illegal information interception strategy; For any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph with the same content meaning as any word entity, the word entity in the target knowledge graph with the same content meaning as any word entity is determined as the first word entity corresponding to the any word entity; Based on the relationship between the first word entity corresponding to any word entity in the target knowledge graph and other word entities, the word entity to which the first word entity corresponding to any word entity in the target knowledge graph belongs is determined as the second word entity corresponding to any word entity; Based on the relationship between the second word entity corresponding to any word entity in the target knowledge graph and other word entities, determine the word entity in the target knowledge graph that is subordinate to the second word entity corresponding to any word entity as the third word entity corresponding to any word entity; Based on the vector information of any word entity and the vector information of a third word entity corresponding to any word entity, the third word entity corresponding to any word entity whose vector difference with any word entity is less than a first preset value is determined as a word entity belonging to the same category as the any word entity; Add the word entity that belongs to the same category as any word entity to the target illegal information interception strategy, and determine that the logical relationship between the word entity that belongs to the same category as any word entity and any word entity is an OR relationship.
4. The method for identifying illegal information according to claim 1, characterized in that: In the case where it is determined that the target illegal information interception strategy fails the test, adding a word entity in the target knowledge graph having a target relationship with the word entity in the target illegal information interception strategy to the target illegal information interception strategy includes: Traversing each word entity in the target knowledge graph, searching for a word entity in the target knowledge graph that has the same meaning as each word entity in the target illegal information interception strategy; For any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph and has the same meaning as any word entity, the word entity in the target knowledge graph that has the same meaning as any word entity is determined as the first word entity corresponding to the any word entity; Based on the relationship between the first word entity corresponding to any word entity in the target knowledge graph and other word entities, a word entity in the target knowledge graph whose relationship with the first word entity corresponding to any word entity is a controlling relationship, a controlled relationship, a subordinate relationship, or a subordinate relationship is determined as a fourth word entity corresponding to any word entity; Based on the attribute information of the any word entity and the attribute information of the fourth word entity corresponding to the any word entity, the fourth word entity corresponding to the any word entity whose matching degree with the attribute information of the any word entity is higher than a second preset value is determined as the word entity having the target relationship with the any word entity; The word entity whose relationship with any word entity is a target relationship is added to the target illegal information interception strategy, and the logical relationship between the word entity whose relationship with any word entity is a target relationship and any word entity is determined to be an OR relationship.
5. The method for identifying illegal information according to claim 3, characterized in that: After determining the word entity in the target knowledge graph that is subordinate to the second word entity corresponding to any word entity as the third word entity corresponding to any word entity, and before determining the third word entity corresponding to any word entity whose vector difference with the any word entity is less than a first preset value as a word entity belonging to the same category as the any word entity based on the vector information of the any word entity and the vector information of the third word entity corresponding to the any word entity, the method further includes: In the case where the number of third word entities corresponding to any word entity is greater than the second number threshold, the third word entities corresponding to any word entity may be screened based on predefined illegal word entities, and the third word entities corresponding to any word entity that successfully matches the illegal word entity are retained, and the third word entities corresponding to any word entity that do not successfully match the illegal word entity are removed; The illegal word entity is a high-frequency word entity that appears more than a threshold number of times in the identified illegal information; and the number of the illegal word entities is multiple.
6. The method for identifying illegal information according to claim 1, characterized in that: The adding of a word entity in the target knowledge graph that belongs to the same category as the word entity in the target illegal information interception strategy in the target illegal information interception strategy includes: Traversing each word entity in the target knowledge graph, searching for a word entity in the target knowledge graph that has the same meaning as each word entity in the target illegal information interception strategy; For any word entity in the target illegal information interception strategy, if at least one word entity is found in the target knowledge graph and has the same content meaning as any of the word entities, the word entity with the same content meaning as any of the word entities is added to the target illegal information interception strategy, and the logical relationship between the word entity with the same content meaning as any of the word entities and the any of the word entities is determined to be an or relationship.
7. The method for identifying illegal information according to claim 6, characterized in that: The adding of a word entity in the target knowledge graph having the same meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy includes: Based on the predefined fuzzy matching rules, determine the fuzzy matching participle corresponding to each word entity in the target illegal information interception strategy; Traversing each word entity in the target knowledge graph, searching in the target knowledge graph for a word entity with the same meaning as the fuzzy matching segmentation content corresponding to each word entity in the target illegal information interception strategy; For any word entity in the target illegal information interception strategy, when at least one word entity is found in the target knowledge graph and has the same meaning as the fuzzy matching word segmentation content corresponding to the any word entity, the word entity in the target knowledge graph with the same meaning as the fuzzy matching word segmentation content corresponding to the any word entity is added to the target illegal information interception strategy, and the logical relationship between the word entity in the target knowledge graph with the same meaning as the fuzzy matching word segmentation content corresponding to the any word entity and the any word entity is determined to be an or relationship.
8. The method for identifying illegal information according to claim 1, characterized in that: The testing of the target illegal information interception strategy includes: Based on the target illegal information interception strategy, identifying whether each sample information is illegal information, and based on the identification result of each sample information, obtaining the number of sample information identified as illegal information; Based on the number and the actual number of illegal information in each of the sample information, a macro average value of illegal information identification performed by the target illegal information interception strategy is calculated; When the macro-average value corresponding to the target violation information interception strategy is greater than the third preset value, it is determined that the target violation information interception strategy has passed the test; when the macro-average value corresponding to the target violation information interception strategy is not greater than the third preset value, it is determined that the target violation information interception strategy has not passed the test.
9. The method for identifying illegal information according to claim 1, characterized in that: After the step of jumping to the step of adding the first word entity in the target illegal information interception strategy based on the target knowledge graph, the method further includes: The cumulative number of steps of jumping to the step of adding the first word entity in the target illegal information interception strategy based on the target knowledge graph is not less than the number threshold, and after the last jump to the step of adding the first word entity in the target illegal information interception strategy based on the target knowledge graph, after the step of adding, in the target illegal information interception strategy based on the target knowledge graph, a word entity having a target relationship with the word entity in the target illegal information interception strategy is executed, the target illegal information interception strategy is tested, and if the target illegal information interception strategy still fails the test, it is determined whether the target information is illegal information based on the target illegal information interception strategy.
10. The method for identifying illegal information according to any one of claims 1 to 9, characterized in that: After the step of jumping to the step of adding a word entity in the target knowledge graph having the same meaning as the word entity in the target illegal information interception strategy, the method further includes: When the cumulative number of jumps to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy is not less than the number threshold, after the last jump to the step of adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy, if after the step of adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy is executed, the target illegal information interception strategy is tested and the target illegal information interception strategy still fails the test, then based on the step of adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy in the target illegal information interception strategy, the target illegal information interception strategy is obtained after the step of adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy is executed, whether the target information is illegal information is identified, and the identification result of the target information is obtained.
11. A device for identifying illegal information, characterized in that: include: An interception strategy acquisition module, used to acquire a target illegal information interception strategy, wherein the target illegal information interception strategy includes a plurality of word entities; The same entity association module is used to add a word entity in the target knowledge graph that has the same meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, each node in the target knowledge graph represents a word entity, and the edge connecting any two nodes represents the relationship between the word entities represented by the above any two nodes, and the label information of each of the nodes includes the attribute information of the word entity represented by each of the nodes; A similar entity association module is used to test the target illegal information interception strategy. When it is determined that the target illegal information interception strategy passes the test, based on the target illegal information interception strategy, whether the target information is illegal information is identified to obtain the identification result of the target information. When it is determined that the target illegal information interception strategy fails the test, at least one of adding a word entity in the target knowledge graph belonging to the same category as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy, adding a word entity in the target knowledge graph with a target relationship with the word entity in the target illegal information interception strategy, and jumping to adding a word entity in the target knowledge graph with the same content meaning as the word entity in the target illegal information interception strategy in the target illegal information interception strategy, until it is determined that the target illegal information interception strategy passes the test, and the target relationship includes controlling, being controlled, subordinate or being subordinate.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the violation information identification method according to any one of claims 1 to 10 is implemented.
13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for identifying illegal information as described in any one of claims 1 to 10 is implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for identifying illegal information as described in any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Multimedia content identification method, related device, equipment and storage medium
CN113761235A
Information identification method and device
CN114282097A
Account identification method and device, electronic equipment and storage medium
CN115204886A
Bad corpus filtering method and system
CN115544204A
Information interception method, device and equipment based on graph calculation and readable storage medium
CN116304211A
