Content review method and apparatus, electronic device, and computer-readable storage medium

By acquiring hierarchical description data and generating content location instructions, the problem of low location and review efficiency in existing content review processes is solved, enabling fast and accurate content review and rule adjustment.

CN116361591BActive Publication Date: 2026-05-22BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Filing Date
2023-03-29
Publication Date
2026-05-22

Smart Images

  • Figure CN116361591B_ABST
    Figure CN116361591B_ABST
Patent Text Reader

Abstract

The present disclosure provides a content review method and device, electronic equipment and computer readable storage medium, relates to the field of data processing, and particularly relates to the field of content review. The specific implementation scheme is: obtaining to-be-reviewed content and hierarchical description data of the to-be-reviewed content, the to-be-reviewed content including multiple hierarchical sub-contents, and the hierarchical description data being used for describing hierarchical relationships between the sub-contents; obtaining a target hierarchical path of a target sub-content based on the hierarchical description data, the target sub-content being a sub-content targeted by a content review rule of the to-be-reviewed content; positioning the target sub-content from the to-be-reviewed content based on the target hierarchical path; and reviewing the target sub-content based on the content review rule. Based on the present scheme, the target sub-content can be effectively positioned from the to-be-reviewed content, so that the target sub-content is reviewed based on the content review rule, which is helpful to effectively review the to-be-reviewed content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and more particularly to the field of content moderation technology. Specifically, this disclosure relates to a content moderation method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] In internet content products, users often submit content. Before publishing user-submitted content, it needs to be reviewed according to pre-configured review rules.

[0003] When reviewing user-submitted content, specific parts of the content are usually reviewed. How to effectively locate these specific parts of the content for targeted review has become an important technical problem. Summary of the Invention

[0004] To address at least one of the aforementioned deficiencies, this disclosure provides a content moderation method, apparatus, electronic device, and computer-readable storage medium.

[0005] According to a first aspect of this disclosure, a content moderation method is provided, the method comprising:

[0006] Obtain the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data is used to describe the hierarchical relationship between the sub-contents.

[0007] The target hierarchical path of the target sub-content is obtained based on the hierarchical description data. The target sub-content is the sub-content targeted in the content review rules of the content to be reviewed.

[0008] Identify the target sub-content from the content to be reviewed based on the target hierarchy path;

[0009] The target sub-content is reviewed based on content moderation rules.

[0010] According to a second aspect of this disclosure, a content moderation apparatus is provided, the apparatus comprising:

[0011] The data acquisition module is used to acquire the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data is used to describe the hierarchical relationship between the sub-contents.

[0012] The target level path determination module is used to obtain the target level path of the target sub-content based on the level description data. The target sub-content is the sub-content targeted in the content review rules of the content to be reviewed.

[0013] The target sub-content location module is used to locate target sub-content from the content to be reviewed based on the target hierarchical path.

[0014] The content moderation module is used to review target sub-content based on content moderation rules.

[0015] According to a third aspect of this disclosure, an electronic device is provided, the electronic device comprising:

[0016] At least one processor; and

[0017] A memory communicatively connected to at least one of the aforementioned processors; wherein,

[0018] The memory stores instructions that can be executed by at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the content review method.

[0019] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause a computer to perform the above-described content review method.

[0020] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described content review method.

[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0022] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0023] Figure 1 This is a flowchart illustrating a content moderation method provided in an embodiment of this disclosure;

[0024] Figure 2 This is a flowchart illustrating the execution of a content location instruction according to an embodiment of this disclosure;

[0025] Figure 3 This is a flowchart illustrating a specific implementation of the content moderation method provided in this disclosure.

[0026] Figure 4 This is a schematic diagram of the structure of a content moderation device provided in an embodiment of this disclosure;

[0027] Figure 5 This is a block diagram of an electronic device used to implement the content moderation method of the embodiments of this disclosure. Detailed Implementation

[0028] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0029] When reviewing user-submitted content, specific sections are typically reviewed. For example, in encyclopedia entries, the review usually focuses on the table of contents and overview. Effectively identifying these specific sections from user submissions to conduct targeted reviews based on established rules has become a significant technical challenge.

[0030] In related technologies, multiple rules are typically established based on the requirements for content standardization. These rules usually exist in the form of code, and modifying them requires redeveloping the code, making rule adjustments inconvenient. Furthermore, rules implemented through code may suffer from logical coupling.

[0031] In related technologies, the review rules generally only support some simple logical judgments based on single-value data, such as comparing the size of numerical values ​​or comparing whether strings are the same, which cannot meet actual needs.

[0032] The content moderation method, apparatus, electronic device, and computer-readable storage medium provided in this disclosure are intended to solve at least one of the above-mentioned technical problems of the prior art.

[0033] Figure 1 This illustration shows a flowchart of a content moderation method provided in an embodiment of the present disclosure, such as... Figure 1 As shown, the method can mainly include:

[0034] Step S110: Obtain the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content. The hierarchical description data is used to describe the hierarchical relationship between the sub-contents.

[0035] Step S120: Obtain the target hierarchical path of the target sub-content based on the hierarchical description data. The target sub-content is the sub-content targeted in the content review rules of the content to be reviewed.

[0036] Step S130: Locate the target sub-content from the content to be reviewed based on the target hierarchical path;

[0037] Step S140: Review the target sub-content based on content moderation rules.

[0038] The content to be reviewed can be structured data with a hierarchical structure, including but not limited to encyclopedia entries submitted by users and structured business data.

[0039] Content awaiting review typically includes multiple sub-sections. Taking encyclopedia entries as an example, the sub-sections of an encyclopedia entry can include the entry name, definition description, table of contents, overview, and main text.

[0040] Hierarchical description data is used to describe the hierarchical relationships between sub-contents. As an example, hierarchical description data can be a tree structure, with each sub-content corresponding to a node in the tree structure, thus describing the hierarchical relationships between the sub-contents.

[0041] In this embodiment of the disclosure, the content review rules for the content to be reviewed can be set according to actual needs.

[0042] Content moderation rules are generally set for specific sub-content within the content to be reviewed; this sub-content can be categorized as the target sub-content. For example, the content moderation rules for encyclopedia entries might be set separately for target content such as the table of contents and the entry name.

[0043] Since the hierarchical description data describes the hierarchical relationship between the contents of the content to be reviewed, the target hierarchical path of the target sub-content can be extracted from it.

[0044] A target-level path can involve sub-content at multiple levels. The sub-content involved in the target-level path is called path sub-content. Target sub-content is nested within the path sub-content of the previous level, and path sub-content of the next level is nested within the path sub-content of the previous level.

[0045] A target-level path represents the location of a target sub-content within the content to be reviewed, in the form of a path. A target-level path can be constructed by listing the content identifiers of the path sub-contents in the first level of the content to be reviewed, followed by the content identifiers of the path sub-contents in subsequent levels in hierarchical order, ending with the content identifier of the target sub-content.

[0046] For example, the target hierarchical path is: Body - Directory - Username. Here, Username is the target sub-content, Directory is the sub-content of the path one level above Username, and Body is the sub-content of the path one level above Directory.

[0047] Since the target hierarchy path represents the location of the target sub-content within the content to be reviewed, the target sub-content can be located within the content to be reviewed based on the target hierarchy path. Then, the target sub-content can be reviewed based on the content review rules to achieve the review of the content to be reviewed.

[0048] The method provided in this disclosure involves obtaining content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data describes the hierarchical relationship between the sub-contents. Based on the hierarchical description data, a target hierarchical path for a target sub-content is obtained. The target sub-content is the sub-content targeted by the content review rules of the content to be reviewed. The target sub-content is located from the content to be reviewed based on the target hierarchical path. The target sub-content is then reviewed based on the content review rules. This solution effectively locates the target sub-content from the content to be reviewed, enabling review based on the content review rules, thus facilitating effective review of the content.

[0049] In one optional approach disclosed herein, locating target sub-content from the content to be reviewed based on a target hierarchical path includes:

[0050] Generate content location instructions based on the target hierarchy path;

[0051] The target sub-content is located from the content to be reviewed based on the content location command.

[0052] In this embodiment of the disclosure, the target hierarchical path can provide an indication for locating the target sub-content. Therefore, a content location instruction can be generated based on the target hierarchical path, and the target sub-content can be located from the content to be reviewed by executing the content location instruction.

[0053] By generating content location instructions based on the target hierarchy path, it is possible to locate target sub-content from the content to be reviewed more quickly and efficiently.

[0054] In one optional embodiment of this disclosure, generating content location instructions based on the target hierarchical path includes:

[0055] Generate sub-content location instructions for each sub-content involved in the target hierarchical path;

[0056] Based on the hierarchical order of the sub-contents involved in the target hierarchical path, determine the execution order of the sub-content location instructions;

[0057] The content location instructions are combined based on the execution order to obtain the content location instructions.

[0058] In this embodiment of the disclosure, the target hierarchical path represents the location of the target sub-content within the content to be reviewed in the form of a path. The target hierarchical path is in the form of a sequential arrangement of the content identifiers of the path sub-contents at each level involved.

[0059] When generating content location instructions, the content identifiers of each sub-content within the target hierarchical path can be used as search keywords to generate sub-content location instructions for each hierarchical path sub-content. Then, the execution order of each sub-content location instruction can be set according to the hierarchical order of the sub-content, and the execution order can be combined to obtain the final content location instruction.

[0060] Taking encyclopedia entries as an example, the target hierarchical path is: main text - table of contents - username. Here, username, table of contents, and table of contents are all content identifiers for the target sub-content. The table of contents is located one level above the username, and the main text is located one level above the table of contents. Using the main text as the search keyword, a first sub-content locating instruction is generated for the main text content, used to locate the main text content from the encyclopedia entry content. Using the table of contents as the search keyword, a second sub-content locating instruction is generated for the table of contents content, used to locate the table of contents content from the main text content. Using the username as the search keyword, a third sub-content locating instruction is generated for the username, used to locate the username from the table of contents content.

[0061] In one optional approach disclosed herein, locating target sub-content from the content to be reviewed based on content location instructions includes:

[0062] By executing the first sub-content positioning instruction in the content positioning instruction, the first-level sub-content is located from the content to be reviewed;

[0063] The sub-content locating instructions are executed sequentially according to the execution order, locating the sub-content of the next level from the sub-content of the previous level in the target level path, until the target sub-content is located.

[0064] In this embodiment of the disclosure, each sub-content location instruction can be executed sequentially according to the execution order, so as to locate the sub-content of the next level from the sub-content located in the previous level, until the target sub-content is located.

[0065] As an example, Figure 2 The diagram shows a flowchart of an execution content location instruction provided in an embodiment of this disclosure.

[0066] like Figure 2 As shown, content represents the content identifier of the main text content, index represents the content identifier of the directory content, uuid represents the content identifier of the user code content, and name represents the content identifier of the username content. Figure 2In this context, 1, 2, and 3 represent user code values, while a, b, and c represent username values. Location logic 1 corresponds to the first sub-content location instruction in the content location instruction set, location logic 2 corresponds to the second sub-content location instruction in the content location instruction set, and location logic 3 corresponds to the third sub-content location instruction in the content location instruction set.

[0067] By executing the first sub-content locating instruction (i.e., locating logic 1) of the content locating instructions, the main text content can be located from the encyclopedia entry content. By executing the second sub-content locating instruction (i.e., locating logic 2) of the content locating instructions, the table of contents content can be located from the main text content. By executing the third sub-content locating instruction (i.e., locating logic 3) of the content locating instructions, the values ​​of the user code and username can be located from the main text content.

[0068] In this example, the format of the located target sub-content can be converted. Specifically, the user code and username values ​​can be constructed into key-value (KV) pairs.

[0069] In this embodiment, the target data is located by sequentially executing the sub-content location instructions. As the location operation progresses, the amount of data that needs to be traversed each time gradually decreases, thus enabling fast and accurate location of the target data. This solution effectively utilizes the hierarchical structure of the content to be reviewed, achieving rapid and accurate location of the target data and effectively improving data processing efficiency.

[0070] In one alternative embodiment of this disclosure, the method further includes:

[0071] The content location instruction configuration interface displays various sub-content location instructions and the sub-content located based on each sub-content location instruction to the user.

[0072] In response to detecting a user's instruction modification operation in the content location instruction configuration interface, the content location instruction is adjusted based on the instruction modification operation.

[0073] In this embodiment of the disclosure, a location instruction configuration interface can be provided to facilitate the configuration, debugging, and modification of content location instructions.

[0074] The location instruction configuration interface displays various sub-content location instructions and the sub-content located based on each sub-content location instruction, allowing users to intuitively observe the various sub-content location instructions and location results.

[0075] When the location result of the sub-content location command does not meet the requirements, the user can adjust the content location command by modifying the command in the content location command configuration interface.

[0076] As an example, the code and location results corresponding to each sub-content location command can be displayed in the command configuration interface, and users can edit the code corresponding to the sub-content location command.

[0077] In one alternative approach disclosed herein, the hierarchical description data is determined based on the metadata of the content to be reviewed.

[0078] In this embodiment of the disclosure, the content to be reviewed generally corresponds to metadata used to describe its attributes. The metadata typically contains diverse descriptive information and does not specifically describe the hierarchical relationship of the sub-contents within the content to be reviewed.

[0079] In this embodiment, hierarchical description data can be generated in the following way: extract the identifiers of each sub-content and the hierarchical relationship between each sub-content from the metadata of the content to be reviewed, make the sub-content identifiers into nodes of a tree structure, and construct the node relationship between each node of the attribute structure based on the hierarchical relationship between each sub-content, thereby obtaining the hierarchical description data.

[0080] In this embodiment, if metadata is used to extract hierarchical relationships, the diverse data contained in the metadata can cause data redundancy, and the hierarchical relationships described in the metadata may not be intuitive enough for quick extraction. The hierarchical description data in this solution can be created specifically for content review scenarios, does not contain redundant data, and can intuitively describe the hierarchical relationships between sub-content. Based on the hierarchical description data, hierarchical relationships can be extracted quickly and effectively, helping to improve processing efficiency.

[0081] In this embodiment of the disclosure, the hierarchical description data can describe the hierarchical relationship between all sub-contents in the content to be reviewed. In order to reduce the amount of data, the hierarchical description data can also describe the hierarchical relationship between some sub-contents in the content to be reviewed.

[0082] Since only the hierarchical relationship of the target sub-contents is needed when reviewing the content to be reviewed, the hierarchical description data can only describe the hierarchical relationship of the target sub-contents. That is, the hierarchical description data can only contain the hierarchical relationship between each sub-content involved in the target hierarchical path of the target sub-contents, thereby avoiding data redundancy in the hierarchical description data and reducing the amount of data.

[0083] In this embodiment of the disclosure, when configuring content review rules for the content to be reviewed, the target sub-content targeted by the content review rules can be obtained. Then, based on the metadata of the content to be reviewed, hierarchical description data can be generated. The hierarchical description data only contains the hierarchical relationship of the target sub-content. The target hierarchical path of the target sub-content can be extracted based on the hierarchical description data. The target sub-content can be located from the content to be reviewed based on the target hierarchical path. The target sub-content can then be reviewed based on the content review rules.

[0084] In this embodiment of the disclosure, the content to be reviewed may correspond to different content review rules in different scenarios. Adaptive hierarchical description data can be generated for different content review rules and stored in the hierarchical description data for use in subsequent content review.

[0085] In one optional approach disclosed herein, locating target sub-content from the content to be reviewed based on a target hierarchical path includes:

[0086] Candidate content is extracted from the content to be reviewed based on predetermined extraction rules;

[0087] The target sub-content is located from the candidate content based on the target hierarchical path.

[0088] In this embodiment of the disclosure, the content to be reviewed may exist in various forms under different scenarios. By preprocessing the content to be reviewed, candidate content with a uniform structure can be extracted for subsequent processing.

[0089] In this embodiment of the disclosure, the extracted candidate content can be general content or frequently used content from the content to be reviewed. For example, the entry name, definition description, table of contents, overview, and main text of an encyclopedia entry.

[0090] In one optional approach disclosed herein, the target sub-content is reviewed based on content moderation rules, including at least one of the following:

[0091] Determine whether the target sub-content belongs to the preset data type;

[0092] Determine whether the content value in the target sub-content falls within the preset value range;

[0093] Determine whether the target sub-content contains preset content;

[0094] Based on preset conversion rules, the target sub-content is converted into data, and it is determined whether the conversion result meets the preset conditions.

[0095] Logical operations are performed on the target sub-content based on preset logical operation rules to determine whether the result of the logical operation meets the preset conditions.

[0096] In this embodiment of the disclosure, the content review rule can be to determine whether the target sub-content belongs to a preset data type. If it does, it can be considered that it has passed the content review rule.

[0097] Content moderation rules can be used to determine whether the content value in a target sub-content falls within a preset numerical range. If it does, it can be considered to have passed the content moderation rule. The preset data range can be set in the form of a numerical interval.

[0098] Content moderation rules can be used to determine whether a target sub-content contains preset content. If it does, it can be considered to have passed the content moderation rule.

[0099] In this embodiment of the disclosure, the target sub-content can also be converted based on a preset conversion rule. In this case, the content review rule can be whether the conversion result of the data conversion meets the preset conditions. If it does, it can be considered that it has passed the content review rule.

[0100] As an example, a preset conversion rule could be to convert the target word content into a preset data format.

[0101] In this embodiment of the disclosure, logical operation rules can be preset to perform logical operations on the target sub-content. In this case, the content review rules can be to perform logical operations and determine whether the result of the logical operation meets the preset conditions.

[0102] As an example, logical operation rules can be used to perform logical operations on at least two target sub-contents, such as addition, subtraction, multiplication, division, etc.

[0103] As an example, the data type of the target sub-content can generally include numeric, string, and array types. Numeric type logical checks include: values ​​greater than, less than, or equal to; string type checks include: whether it contains certain substrings, whether it exists in certain sets, etc.; array type checks include: whether member elements are duplicated, whether it intersects with other arrays, etc. For certain checks on string and array types, they can be converted and calculated to be numeric type checks, for example, counting the number of array members before performing a numeric type check.

[0104] In one optional embodiment of this disclosure, the content moderation rules include hierarchical content moderation rules for target sub-content within the same level, and the target sub-content is moderated based on these content moderation rules.

[0105] Retrieve the target sub-content within the level to be reviewed, where the level to be reviewed is the level corresponding to the content review rules.

[0106] Determine whether the content of the target sub-content within the level to be reviewed meets the level content review rules.

[0107] In this embodiment of the disclosure, hierarchical review rules can also be configured to review the status of target sub-content within a hierarchy.

[0108] For example, the hierarchical review rule corresponds to the level of the first-level directory and the level of the second-level directory. The hierarchical review rule determines whether there are duplicate directory names among all directory names under the first-level directory and all directory names under the second-level directory. If no duplicate directory names exist, the content of that level is considered to have passed the hierarchical content review rule.

[0109] For example, the hierarchical review rules correspond to the levels of the first-level directories and the second-level directories. The hierarchical review rules determine whether a first-level directory contains at least two second-level directories; if so, it is considered to have passed the content review rules for that level.

[0110] In one alternative approach disclosed herein, after reviewing the target sub-content based on content moderation rules, the method further includes:

[0111] In response to the target sub-content not meeting the content review rules, the target sub-content will be displayed separately in the content to be reviewed.

[0112] In this embodiment of the disclosure, when the review of the target sub-content is completed, the review result can be displayed on the page displaying the content to be reviewed.

[0113] If the content of a project tag does not meet the content review rules, it means that the content of the project tag may not comply with the content specifications. The content of the project tag can be displayed differently in the content to be reviewed. For example, the font of the content of the project tag can be different from that of other content in the content to be reviewed.

[0114] In this embodiment of the disclosure, details of the target sub-content not meeting the content review rules can also be displayed to prompt the user to modify the target sub-content based on the content review rules.

[0115] As an example, Figure 3 A flowchart illustrating a specific implementation of the content moderation method provided in this disclosure is shown.

[0116] The content moderation system in this solution may include a loader, a locator, and a judge.

[0117] The Loader is designed to handle various forms of content to be reviewed in different scenarios. Based on the Loader, it can extract candidate content with a uniform structure and provide it to the Locator. The Locator is responsible for locating and extracting the target sub-content. The output of the Locator serves as the input of the Judger. The Judger is responsible for making logical judgments on the target sub-content based on the content review rules.

[0118] like Figure 3 As shown, the loader outputs structured content, that is, the loader extracts candidate content with a uniform structure from the content to be reviewed and provides it to the locator.

[0119] The locator outputs the content to be decided, that is, the locator locates the target sub-content from the candidate content.

[0120] The content to be judged is input into the judge, which then performs logical judgments on the target sub-content based on the content review rules to determine whether the target sub-content meets the content review rules.

[0121] This solution can be applied to the editing, review, and quality control stages of encyclopedia entries. During the editing process, providing editors with prompts about non-compliant content helps improve editing efficiency, mitigate content risks, and reduce subsequent review workload by minimizing non-compliant submissions. During the review process, listing and marking non-compliant content improves the efficiency of reviewers. Issues affecting entry quality are recorded in the encyclopedia's quality center, facilitating the generation of further content review rules and enabling continuous content improvement.

[0122] The content moderation rules in this solution can be managed through a visual configuration platform, which allows for easy addition and modification of rules, reducing reliance on code development.

[0123] Based on and Figure 1 The method shown follows the same principle. Figure 4 A schematic diagram of the structure of a content moderation device provided in an embodiment of this disclosure is shown, such as... Figure 4 As shown, the content moderation device 40 may include:

[0124] The data acquisition module 410 is used to acquire the content to be reviewed and the hierarchical description data of the content to be reviewed. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data is used to describe the hierarchical relationship between each sub-content.

[0125] The target level path determination module 420 is used to obtain the target level path of the target sub-content based on the level description data. The target sub-content is the sub-content targeted in the content review rules of the content to be reviewed.

[0126] The target sub-content location module 430 is used to locate the target sub-content from the content to be reviewed based on the target hierarchical path.

[0127] Content moderation module 440 is used to moderate target sub-content based on content moderation rules.

[0128] The apparatus provided in this disclosure acquires content to be reviewed and hierarchical description data of the content to be reviewed. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data describes the hierarchical relationship between the sub-contents. Based on the hierarchical description data, it obtains the target hierarchical path of the target sub-content, which is the sub-content targeted in the content review rules of the content to be reviewed. Based on the target hierarchical path, it locates the target sub-content from the content to be reviewed. Finally, it reviews the target sub-content based on the content review rules. Based on this solution, the target sub-content can be effectively located from the content to be reviewed, and then reviewed based on the content review rules, which helps to achieve effective review of the content to be reviewed.

[0129] Optionally, the target sub-content locating module is specifically used for:

[0130] Generate content location instructions based on the target hierarchy path;

[0131] The target sub-content is located from the content to be reviewed based on the content location command.

[0132] Optionally, when generating content location instructions based on the target hierarchical path, the target sub-content location module is specifically used for:

[0133] Generate sub-content location instructions for each sub-content involved in the target hierarchical path;

[0134] Based on the hierarchical order of the sub-contents involved in the target hierarchical path, determine the execution order of the sub-content location instructions;

[0135] The content location instructions are combined based on the execution order to obtain the content location instructions.

[0136] Optionally, when the target sub-content locating module locates the target sub-content from the content to be reviewed based on the content locating instruction, it is specifically used for:

[0137] By executing the first sub-content positioning instruction in the content positioning instruction, the first-level sub-content is located from the content to be reviewed;

[0138] The sub-content locating instructions are executed sequentially according to the execution order, locating the sub-content of the next level from the sub-content of the previous level in the target level path, until the target sub-content is located.

[0139] Optionally, the above-mentioned device further includes:

[0140] The interface display module is used to configure the interface through content location instructions and display the various sub-content location instructions and the sub-content located based on each sub-content location instruction to the user.

[0141] The content location instruction adjustment module is used to respond to the detection of user instruction modification operations in the content location instruction configuration interface, and adjust the content location instructions based on the instruction modification operations.

[0142] Optionally, the hierarchical description data is determined based on the metadata of the content to be reviewed.

[0143] Optionally, the target sub-content locating module is specifically used for:

[0144] Candidate content is extracted from the content to be reviewed based on predetermined extraction rules;

[0145] The target sub-content is located from the candidate content based on the target hierarchical path.

[0146] Optionally, the content moderation module is specifically used for at least one of the following:

[0147] Determine whether the target sub-content belongs to the preset data type;

[0148] Determine whether the content value in the target sub-content falls within the preset value range;

[0149] Determine whether the target sub-content contains preset content;

[0150] Based on preset conversion rules, the target sub-content is converted into data, and it is determined whether the conversion result meets the first preset condition.

[0151] Logical operations are performed on the target sub-content based on preset logical operation rules to determine whether the result of the logical operation meets the second preset condition.

[0152] Optionally, the content moderation rules include hierarchical content moderation rules for target sub-content within the same level. The content moderation module is specifically used for:

[0153] Retrieve the target sub-content within the level to be reviewed, where the level to be reviewed is the level corresponding to the content review rules.

[0154] Determine whether the content of the target sub-content within the level to be reviewed meets the level content review rules.

[0155] Optionally, the above-mentioned device further includes:

[0156] The target sub-content display module is used to distinguish and display the target sub-content among the content to be reviewed after it has been reviewed based on the content review rules. If the target sub-content does not meet the content review rules, the module will display the target sub-content separately.

[0157] It is understood that the above-mentioned modules of the content moderation device in the embodiments of this disclosure have the ability to implement... Figure 1The embodiments shown illustrate the functionality of corresponding steps in the content moderation method. This functionality can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions. These modules can be software and / or hardware, and each module can be implemented individually or multiple modules can be integrated. For a detailed description of the functions of each module in the aforementioned content moderation device, please refer to [link to relevant documentation]. Figure 1 The corresponding descriptions of the content moderation methods in the embodiments shown are not repeated here.

[0158] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0159] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0160] The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the content moderation method provided in the embodiments of this disclosure.

[0161] Compared with existing technologies, this electronic device acquires the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data describes the hierarchical relationship between the sub-contents. Based on the hierarchical description data, it obtains the target hierarchical path of the target sub-content, which is the sub-content targeted by the content review rules of the content to be reviewed. Based on the target hierarchical path, it locates the target sub-content from the content to be reviewed; and it reviews the target sub-content based on the content review rules. Based on this solution, the target sub-content can be effectively located from the content to be reviewed, and then reviewed based on the content review rules, which helps to achieve effective review of the content to be reviewed.

[0162] The readable storage medium is a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the content moderation method provided in the embodiments of this disclosure.

[0163] Compared with existing technologies, this readable storage medium obtains the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data describes the hierarchical relationship between the sub-contents. Based on the hierarchical description data, the target hierarchical path of the target sub-content is obtained. The target sub-content is the sub-content targeted by the content review rules of the content to be reviewed. The target sub-content is located from the content to be reviewed based on the target hierarchical path. The target sub-content is then reviewed based on the content review rules. Based on this solution, the target sub-content can be effectively located from the content to be reviewed, and then reviewed based on the content review rules, which helps to achieve effective review of the content to be reviewed.

[0164] The computer program product includes a computer program that, when executed by a processor, implements the content moderation method provided in the embodiments of this disclosure.

[0165] Compared with existing technologies, this computer program product obtains the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data describes the hierarchical relationship between the sub-contents. Based on the hierarchical description data, it obtains the target hierarchical path of the target sub-content, which is the sub-content targeted by the content review rules of the content to be reviewed. Based on the target hierarchical path, it locates the target sub-content from the content to be reviewed; and it reviews the target sub-content based on the content review rules. Based on this solution, the target sub-content can be effectively located from the content to be reviewed, and then reviewed based on the content review rules, which helps to achieve effective review of the content to be reviewed.

[0166] Figure 5 A schematic block diagram of an example electronic device 50 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0167] like Figure 5As shown, the electronic device 50 includes a computing unit 510, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 520 or a computer program loaded from a storage unit 580 into a random access memory (RAM) 530. The RAM 530 may also store various programs and data required for the operation of the device 50. The computing unit 510, ROM 520, and RAM 530 are interconnected via a bus 540. An input / output (I / O) interface 550 is also connected to the bus 540.

[0168] Multiple components in device 50 are connected to I / O interface 550, including: input unit 560, such as keyboard, mouse, etc.; output unit 570, such as various types of monitors, speakers, etc.; storage unit 580, such as disk, optical disk, etc.; and communication unit 590, such as network card, modem, wireless transceiver, etc. Communication unit 590 allows device 50 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0169] The computing unit 510 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 510 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 510 executes the content moderation method provided in the embodiments of this disclosure. For example, in some embodiments, executing the content moderation method provided in the embodiments of this disclosure can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 580. In some embodiments, part or all of the computer program can be loaded and / or installed on device 50 via ROM 520 and / or communication unit 590. When the computer program is loaded into RAM 530 and executed by computing unit 510, one or more steps of the content moderation method provided in the embodiments of this disclosure can be performed. Alternatively, in other embodiments, the computing unit 510 can be configured to execute the content moderation method provided in the embodiments of this disclosure by any other suitable means (e.g., by means of firmware).

[0170] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0171] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0172] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0173] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0174] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0175] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0176] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0177] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A content moderation method, comprising: Obtain the content to be reviewed and its hierarchical description data. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data is used to describe the hierarchical relationship between the sub-contents. The content to be reviewed is structured data with a hierarchical structure. The target hierarchical path of the target sub-content is obtained based on the hierarchical description data, and the target sub-content is the sub-content targeted in the content review rules of the content to be reviewed; Based on the target hierarchical path, the target sub-content is located from the content to be reviewed; The target sub-content is reviewed based on the aforementioned content review rules.

2. The method according to claim 1, wherein, The step of locating the target sub-content from the content to be reviewed based on the target hierarchical path includes: Generate content location instructions based on the target hierarchical path; Based on the content location instruction, the target sub-content is located from the content to be reviewed.

3. The method according to claim 2, wherein, The generation of content location instructions based on the target hierarchical path includes: For each sub-content involved in the target hierarchical path, generate sub-content location instructions respectively; Based on the hierarchical order of the sub-contents involved in the target hierarchical path, determine the execution order of the sub-content location instructions; The content location instructions are combined based on the execution order to obtain the content location instructions.

4. The method according to claim 3, wherein, The step of locating the target sub-content from the content to be reviewed based on the content location instruction includes: By executing the first sub-content positioning instruction in the content positioning instruction, the first-level sub-content is located from the content to be reviewed; The sub-content locating instructions are executed sequentially according to the execution order, and the sub-content of the next level is located from the sub-content of the previous level in the target level path, until the target sub-content is located.

5. The method according to claim 4, further comprising: The content location instruction configuration interface displays various sub-content location instructions and the sub-content located based on each sub-content location instruction to the user. In response to detecting a user's instruction modification operation in the content location instruction configuration interface, the content location instruction is adjusted based on the instruction modification operation.

6. The method according to any one of claims 1-5, wherein, The hierarchical description data is determined based on the metadata of the content to be reviewed.

7. The method according to any one of claims 1-5, wherein, The step of locating the target sub-content from the content to be reviewed based on the target hierarchical path includes: Candidate content is extracted from the content to be reviewed based on predetermined extraction rules; The target sub-content is located from the candidate content based on the target hierarchical path.

8. The method according to any one of claims 1-5, wherein, The review of the target sub-content based on the content review rules includes at least one of the following: Determine whether the target sub-content belongs to a preset data type; Determine whether the content value in the target sub-content falls within a preset numerical range; Determine whether the target sub-content contains preset content; The target sub-content is converted based on preset conversion rules, and the conversion result of the data conversion is determined to meet the first preset condition. Logical operations are performed on the target sub-content based on preset logical operation rules to determine whether the result of the logical operation satisfies the second preset condition.

9. The method according to any one of claims 1-5, wherein, The content moderation rules include hierarchical content moderation rules for target sub-content within the same level. The moderation of the target sub-content based on the content moderation rules includes: Obtain the target sub-content within the level to be reviewed, where the level to be reviewed is the level corresponding to the content review rule of the level; Determine whether the content of the target sub-content within the level to be reviewed meets the content review rules of that level.

10. The method according to any one of claims 1-5, wherein after reviewing the target sub-content based on the content review rules, the method further comprises: In response to the target sub-content not meeting the content review rules, the target sub-content will be displayed separately in the content to be reviewed.

11. A content moderation device, comprising: The data acquisition module is used to acquire the content to be reviewed and the hierarchical description data of the content to be reviewed. The content to be reviewed includes multiple levels of sub-content, and the hierarchical description data is used to describe the hierarchical relationship between the sub-contents. The content to be reviewed is structured data with a hierarchical structure. The target level path determination module is used to obtain the target level path of the target sub-content based on the level description data, wherein the target sub-content is the sub-content targeted in the content review rules of the content to be reviewed; The target sub-content location module is used to locate the target sub-content from the content to be reviewed based on the target hierarchical path. The content moderation module is used to review the target sub-content based on the content moderation rules.

12. The apparatus according to claim 11, wherein, The target sub-content location module is specifically used for: Generate content location instructions based on the target hierarchical path; Based on the content location instruction, the target sub-content is located from the content to be reviewed.

13. The apparatus according to claim 12, wherein, When generating content location instructions based on the target hierarchical path, the target sub-content location module is specifically used for: For each sub-content involved in the target hierarchical path, generate sub-content location instructions respectively; Based on the hierarchical order of the sub-contents involved in the target hierarchical path, determine the execution order of the sub-content location instructions; The content location instructions are combined based on the execution order to obtain the content location instructions.

14. The apparatus according to claim 13, wherein, When the target sub-content location module locates the target sub-content from the content to be reviewed based on the content location instruction, it is specifically used for: By executing the first sub-content positioning instruction in the content positioning instruction, the first-level sub-content is located from the content to be reviewed; The sub-content locating instructions are executed sequentially according to the execution order, and the sub-content of the next level is located from the sub-content of the previous level in the target level path, until the target sub-content is located.

15. The apparatus of claim 14, further comprising: The interface display module is used to configure the interface through content location instructions and display the various sub-content location instructions and the sub-content located based on each sub-content location instruction to the user. The content location instruction adjustment module is used to adjust the content location instruction based on the detected instruction modification operation of the user in the content location instruction configuration interface.

16. The apparatus according to any one of claims 11-15, wherein, The hierarchical description data is determined based on the metadata of the content to be reviewed.

17. The apparatus according to any one of claims 11-15, wherein, The target sub-content location module is specifically used for: Candidate content is extracted from the content to be reviewed based on predetermined extraction rules; The target sub-content is located from the candidate content based on the target hierarchical path.

18. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method of any one of claims 1-10.

19. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-10.

20. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-10.