Language model-based novel screening method and device and related components
By screening and analyzing novels based on language model methods, the problem of existing tools ignoring complex elements is solved, and an in-depth understanding of plot structure, character relationships and theme metaphors is achieved, improving screening efficiency and objectivity, and satisfying personalization need.
Patent Information
- Application Number
- CN202410933903.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-15
AI Technical Summary
Existing text analysis tools are not suitable for plot analysis and deep value extraction of complex novels, resulting in the analysis of complex elements such as character development, plot interweaving, and deep themes being ignored in the screening and adaptation process.
Using a language model-based method, preprocessing is performed to obtain pure text information by acquiring and classifying novels, using an optimized language model to analyze and extract target information, and using an evaluation model to evaluate the information according to preset standards, and display the evaluation results to Determine the novel's potential for adaptation.
It improves the efficiency and objectivity of the novel screening process, enables in-depth analysis of plot structure, character relationships, and theme metaphors to meet individual needs, accurately and efficiently screens and analyzes a large amount of novel content, and shortens the screening time cycle.
Smart Images

Figure CN118779472A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of language processing technology, and in particular to a novel screening method, device and related components based on a language model. Background Art
[0002] In the current rapidly developing film and television industry, it is necessary to search and screen original content in order to adapt novels into TV series or movies. In the process of searching and screening, it is necessary to find potential works among thousands of novels. This process consumes a lot of time and energy, and also requires professional judgment and in-depth text analysis capabilities.
[0003] The traditional screening process usually relies on manual reading and evaluation, which is subject to subjective bias and may miss some potential works. Therefore, technicians use text analysis tools for screening, but these tools usually only extract surface information, such as keyword extraction and simple plot summaries, while ignoring the analysis of more complex elements such as character development, plot interweaving, and deep themes. They are not suitable for plot analysis and deep value extraction of complex novels. Summary of the invention
[0004] The embodiments of the present invention provide a novel screening method, device and related components based on a language model, aiming to solve the problem that existing text analysis tools are not suitable for plot analysis and deep value extraction of complex novels.
[0005] In a first aspect, an embodiment of the present invention provides a novel screening method based on a language model, comprising:
[0006] Obtain all novels and their related information from the target website, classify them by subject matter, and store the classified novels in a database;
[0007] Select at least one type of novel, pre-process the relevant information of the corresponding novel, and obtain plain text information;
[0008] Analyzing and extracting the plain text information using an optimized language model to obtain target information;
[0009] Using the evaluation model to evaluate the target information according to preset standards to obtain an evaluation result;
[0010] The evaluation result is displayed on a user interface.
[0011] In a second aspect, an embodiment of the present invention provides a novel screening device based on a language model, comprising:
[0012] A storage unit is used to obtain all novels and related information in the target website, classify them by subject matter, and store the classified novels in a database;
[0013] A preprocessing unit, configured to select at least one type of novel, preprocess the associated information of the corresponding novel, and obtain plain text information;
[0014] An analysis and extraction unit, used to analyze and extract the plain text information using an optimized language model to obtain target information;
[0015] An evaluation unit, used to evaluate the target information according to a preset standard using an optimized evaluation model to obtain an evaluation result;
[0016] A display unit is used to display the evaluation result on a user interface.
[0017] In a third aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the novel screening method as described above when executing the computer program.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the novel screening method as described above is implemented.
[0019] The embodiment of the present invention provides a novel screening method, device and related components based on a language model. The screening method optimizes the language model so that the optimized language model can perform complex analysis and deep value extraction on the plain text information of the novel, and evaluate the target information according to preset standards, and display the evaluation results to the user interface, so that professionals can view the evaluation results and judge the adaptation potential of the novel. By acquiring the novels of the target website, the embodiment of the present invention enables the optimized language model to accurately and efficiently screen and analyze a large amount of novel content, thereby improving the efficiency and objectivity of the screening process, and can also deeply analyze the plot structure, character relationships and theme metaphors of the novel to meet personalized needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0021] Figure 1A schematic diagram of a flow chart of a novel screening method based on a language model provided in an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a sub-process of a novel screening method based on a language model provided in an embodiment of the present invention;
[0023] Figure 3 Another sub-process diagram of a novel screening method based on a language model provided by an embodiment of the present invention;
[0024] Figure 4 Another sub-process diagram of a novel screening method based on a language model provided by an embodiment of the present invention;
[0025] Figure 5 Another sub-process diagram of a novel screening method based on a language model provided by an embodiment of the present invention;
[0026] Figure 6 Another sub-process diagram of a novel screening method based on a language model provided by an embodiment of the present invention;
[0027] Figure 7 A schematic diagram of another sub-process of a novel screening method based on a language model provided by an embodiment of the present invention;
[0028] Figure 8 A schematic block diagram of a novel screening device based on a language model provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0030] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0031] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0032] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0033] See also Figure 1 , an embodiment of the present invention provides a novel screening method based on a language model, comprising steps S10-S50:
[0034] S10, obtaining all novels and related information in the target website, classifying them by subject matter, and storing the classified novels in a database;
[0035] In this step, the target website, i.e., each novel website, obtains all novels and related information from each novel website, and classifies all novels according to the subject matter of the novel, so that the required subject matter can be found more quickly in subsequent processing, so as to process the novels in the selected subject matter, and then store the classified novels in the database. In the target website, if the novel is in a serialized state, the serialized novel is marked, and the progress of the marked novel is regularly checked until the novel is completed, and then the novel is stored in the database according to the subject matter. It is also possible to set regular acquisition in the database through a loop function to regularly obtain novels and related information, so as to keep the database content up to date.
[0036] In one embodiment, if Figure 2 As shown, step S10 includes S11-S13:
[0037] S11, obtaining all novels and related information on the target website, wherein the related information includes the subject matter, title, author and chapter content of the novel;
[0038] S12. Classify all novels by subject matter and assign classification labels and weights;
[0039] S13, storing the classified novels in a database according to the weights based on the classification labels.
[0040] In this step, the novels obtained from the target website all contain the related information of the novel's subject matter, name, author and chapter content. All novels are classified according to the subject matter, and classification labels are assigned according to the popularity of the subject matter. The popularity of the subject matter can be determined by calculating the scores and clicks of all novels in the subject matter. The subject matter is arranged according to the popularity, and all novels in the subject matter are assigned weights. The weights can be allocated based on factors such as reading volume, score, and author influence. The novels are arranged in order according to the size of the weight, and the arranged novels are stored in the database.
[0041] S20. Select at least one genre of novels, preprocess the associated information of the corresponding novels to obtain plain text information;
[0042] In this step, since the associated information of novels contains other useless symbols such as html tags, spaces, line breaks, etc., and the text content is not unified, it is necessary to preprocess the associated information of all novels of the selected genre to obtain plain text information and reduce the interference to the language model in the follow-up. In specific implementation, since the novels in the genre are arranged according to the weight, and the weight is related to the score, the reading volume, and the author's influence, it is preferably to select the weight values arranged in the front, or select a predetermined number of weight values, that is, it is not necessary to select all the novels of the genre that do not need to be selected, and only the most representative (higher weight value) novels need to be selected. Such novels can represent the high adaptation potential hidden in the genre.
[0043] In one embodiment, as Figure 3 shown, step S20 includes S21 - S24:
[0044] S21. Select at least one genre of novels and traverse all the novels in the selected genre;
[0045] S22. Use an HTML parsing library to parse the associated information of each novel, identify and separate the HTML tags;
[0046] S23. Extract the text content from the HTML tags and clean the spaces and line breaks in the text content;
[0047] S24. Perform unified encoding on the cleaned text content to obtain plain text information.
[0048] In this step, traverse all the novels of the selected genre, identify and separate all the HTML tags in the novels through the HTML parsing library, so as to leave the text content, then clean the spaces, line breaks and other special characters in the text content to ensure the consistency of the text format, and perform unified encoding on the cleaned text content for standardization to obtain plain text information. In specific implementation, in order to make the subsequent analysis and extraction effect better, the text content can be segmented. The continuous text sequence is decomposed into meaningful word units through a segmentation tool, and the stop words are removed (such as common words like "of", "already", "is", etc.), and all the letters in the text content are converted to lowercase letters, and the word units are restored to the standard form, for example, the verb is restored to the original form, so as to reduce the complexity of the word units. The standardized word units are converted into vector representations by using the word embedding method, so as to obtain multiple vector representations of the plain text information. In subsequent processing, the plain text information can be selected for processing, or multiple vector representations of the plain text information can be selected for processing.
[0049] S30, analyzing and extracting the plain text information using an optimized language model to obtain target information;
[0050] This step mainly selects to process the plain text information, and uses the optimized language model to analyze and extract the plain text information. The optimized language model can accurately extract the required target information according to user needs. If you choose to process multiple vectors of the plain text information, use the loading tool to load multiple vectors into the pre-trained word embedding model. The word embedding model is stored in the form of binary or text files, and provides an interface for loading and querying vectors. The optimized language model obtains the vector through the interface and uses the obtained vector as an anchor point for analysis and extraction. The words of the plain text information are replaced with vectors, and then input into the optimized language model for training and prediction.
[0051] Specifically, Figure 4 As shown, step S30 includes S31-S34:
[0052] S31. Introducing a multi-head attention module and an adaptive attention module into the original language model to obtain an optimized language model;
[0053] S32, setting input parameters of the optimized language model;
[0054] S33, confirming the dimension information to be analyzed and extracted from the plain text information according to the input parameters;
[0055] S34: Analyze and extract the plain text information using the mask to obtain target information.
[0056] In this step, multiple input parameters can be set, each input parameter corresponds to a dimension of information, and a multi-head attention module is used to enable the optimized language model to pay attention to multiple input parameters at the same time, and learn different semantic information through multiple sets of different attention mechanisms, so as to analyze the plot and adaptation potential of the novel from various dimensions, and an adaptive attention module is used to enable the optimized language model to dynamically adjust the allocation of attention according to the input information to adapt to the complex text structure and content in the novel. Specifically, the original language model can be GPT or BERT, and the input parameters include plot, emotion, entity and theme, and the dimensional information includes events, likes and dislikes, character relationships and theme metaphors. The plot corresponds to events, emotions correspond to likes and dislikes, entities correspond to character relationships, and themes correspond to theme metaphors. First, select one of the novels in the subject matter, obtain the name, author, and subject matter of the novel, set the input parameters of events, roles, and themes in the optimized language model, and enter the question words in the specified position according to the input parameters. For example, the question word is "Describe what is the important conflict between the protagonist and the villain?" The optimized language model confirms the input question word, "protagonist and villain" are entities, belonging to the dimension of character relationships, and "conflict" is the plot, belonging to the dimension of events, thereby obtaining dimensional information. The multi-head attention module searches for semantic information in plain text information based on the two dimensional information. The adaptive attention module assigns different attention weights according to the semantic information found, obtains the attention weight of each semantic information, and uses masks to analyze and extract the semantic information in the text information according to the size of the attention weight to obtain the target information.
[0057] Specifically, Figure 5 As shown, step S34 includes S341-S343:
[0058] S341, calculating the attention score of the dimension information;
[0059] S342, fusing the dimension information with the plain text information according to the attention score to obtain fused information;
[0060] S343, using a mask to locate multiple key plots of the fused information, analyzing each key plot, and extracting key plots with high similarity scores as target information through a similarity algorithm.
[0061] In this step, the multi-head attention module searches for semantic information in the plain text information according to the dimensional information. There may be multiple semantic information corresponding to the dimensional information. The adaptive attention module assigns different attention weights according to the multiple semantic information found, and then calculates multiple attention scores (weights) of all semantic information in the corresponding dimensional information. According to the attention score, each semantic information in the dimensional information is fused with the plain text information to obtain multiple fused information. At least one vocabulary vector group to be paid attention to is pre-set in the mask. If there are multiple fused information, multiple vocabulary vector groups are set, and the fusion is located according to the vocabulary vector group. The word vector group frames the key range in the corresponding fusion information. The first word vector of the word vector group is the starting point of the key range, and radiates downward until the tail word vector is found. If there are multiple first word vectors, the first one is the starting point. If there are multiple tail word vectors, the last one is the end point. The starting point and the end point are framed to form a key range. The fusion information in the key range is used as the key plot, and each key plot is compared with keywords, synonyms and structural events through a similarity algorithm. The key plot with a high similarity score is the target information, and the target information is extracted for subsequent evaluation and processing.
[0062] S40, using the evaluation model to evaluate the target information according to a preset standard to obtain an evaluation result;
[0063] In this step, the evaluation model is used to evaluate the potential value of the novel, such as its adaptation potential. The preset criteria are one or more of the uniqueness of the plot, the charm of the characters, and the universality of the theme. The evaluation model may be BERT. The evaluation model is used to evaluate the target information according to the preset criteria to obtain an evaluation result. The adaptation potential of the novel is judged based on the evaluation result. When the evaluation result is greater than the preset value, it means that the novel has good adaptation potential.
[0064] In one embodiment, if Figure 6 As shown, step S40 includes S41-S43:
[0065] S41, presetting the evaluation parameters of the evaluation model;
[0066] S42, setting evaluation criteria and scoring range according to the evaluation parameters;
[0067] S43: input the target information into the evaluation model for evaluation, and obtain the evaluation result in combination with the evaluation criteria and scoring range.
[0068] In this step, the evaluation parameters include the uniqueness of the plot, the charm of the characters, and the universality of the theme. The corresponding evaluation criteria of the evaluation parameters are: a) Uniqueness of the plot: Evaluate whether the plot is novel and unique. For example, whether a story has unexpected twists or a unique narrative style. b) Charm of the characters: Evaluate whether the characters in the novel are attractive and profound. For example, whether a character has a complex background story, a distinct personality, and how they grow and change in the story. c) Universality of the theme: Identify and analyze the themes explored in the novel, and determine whether the themes are universal and resonant. For example, whether the novel discusses issues of common concern to mankind, such as love, friendship, justice, freedom, etc.
[0069] The scoring range includes high score, medium score and low score. For a), b) and c), the target information is input into the evaluation model. The evaluation model obtains the evaluation result according to the set evaluation criteria. The evaluation result shows the specific score and the corresponding plot, characters and themes of the novel analyzed according to the evaluation criteria, so as to confirm the adaptation potential of the novel according to the score.
[0070] If one evaluation parameter is set, then the adaptation potential of the novel only needs to be judged based on the evaluation criteria and scoring range of the evaluation parameter, and the score is the final evaluation result.
[0071] Specifically, Figure 7 As shown, step S40 also includes:
[0072] S44, inputting the target information into the evaluation model for evaluation, and obtaining a plurality of initial evaluation results in combination with the evaluation criteria and scoring ranges;
[0073] S45, performing weighted averaging on the multiple initial evaluation results to obtain a final evaluation result;
[0074] This step sets multiple evaluation parameters. Based on the corresponding evaluation criteria and scoring ranges, multiple initial evaluation results are obtained. The initial evaluation results respectively represent the scores of each evaluation parameter. If the adaptation potential of the novel needs to be judged, all scores (all initial evaluation results) are weighted averaged to obtain the final evaluation result, and the adaptation potential is judged by the evaluation result.
[0075] Based on the above evaluation results, the evaluation model evaluates whether the novel is suitable for adaptation into other forms, such as movies, TV series or stage plays, according to its adaptation potential. If suitable, the novel is adapted according to the appropriate adaptation direction and the text content of the novel.
[0076] S50: Display the evaluation result on a user interface.
[0077] In this step, the user interface displays the novel's comprehensive score, adaptation suggestions, key plots, and character analysis. Specifically, the comprehensive score is high (8-10), medium (5-7), and low (1-4). Adaptation suggestions: For high scores, adaptation is strongly recommended and it is recommended to consider various forms of adaptation, such as movies, TV series, or stage plays. For medium scores, adaptation is recommended, but it should be noted that some aspects may need to be adjusted or strengthened, for example, retaining the core plot but enhancing the depth of the characters or adjusting the narrative style. For low scores, adaptation is not recommended, and it is not recommended to invest resources in adaptation unless there are special reasons. Key plots include: opening event: the initial event that triggers the development of the story; main conflict: the core conflict or problem that drives the development of the story; climax: the most tense or dramatic moment of the story; solution: the part where the conflict is resolved or the problem is answered. Character analysis includes: Character background: the background story of each main character, including their history, motivations and goals; Character development arc: the growth and change trajectory of the character in the story, for example, a character changes from cowardice to bravery, from confusion to determination, and how these changes drive the development of the story; Character relationship map: depicts the relationship between the main characters, including friendship, love, hostility, etc.; Psychological description and behavioral motivation: analyze the inner world of the characters and the motivations behind their various decisions, including psychological factors such as love, fear, desire, conflict, etc.
[0078] The embodiment of the present invention greatly improves the efficiency of novel screening and analysis through an automated novel collection and analysis process. Compared with the traditional manual reading and analysis method, the present invention can process and analyze thousands of novels in a short time, greatly shortening the time cycle from novel screening to decision-making. Moreover, the optimized language model can deeply understand the plot structure, character relationships and theme metaphors of the novel, making the analysis results more accurate and in-depth, which helps to tap the potential value of the novel and provide richer and more accurate materials for film and television adaptation. Moreover, through the preset evaluation criteria, personalized analysis and suggestions can be provided according to the specific needs of different users, so as to better meet the diverse needs of users in the process of novel screening and analysis. In addition, through a friendly user interface, the operation and control process are simplified, so that users can easily use the system to screen and analyze novels even if they do not have a deep technical background.
[0079] The embodiment of the present invention also provides a novel screening device based on a language model, which is used to execute any embodiment of the novel screening method based on a language model. Figure 8 , Figure 8 600 is a schematic block diagram of a novel screening device based on a language model provided by an embodiment of the present invention. The novel screening device based on a language model 600 comprises:
[0080] The storage unit 610 is used to obtain all novels and their related information in the target website, classify them by subject matter, and store the classified novels in the database;
[0081] A preprocessing unit 620 is used to select at least one type of novel and preprocess the associated information of the corresponding novel to obtain plain text information;
[0082] An analysis and extraction unit 630 is used to analyze and extract the plain text information using an optimized language model to obtain target information;
[0083] An evaluation unit 640 is used to evaluate the target information according to a preset standard using an optimized evaluation model to obtain an evaluation result;
[0084] The display unit 650 is used to display the evaluation result on a user interface.
[0085] In one embodiment, the storage unit 610 includes:
[0086] An acquisition unit, used to acquire all novels and their related information in the target website, wherein the related information includes the subject matter, name, author and chapter content of the novel;
[0087] Classification unit, used to classify all novels by subject matter and assign classification labels and weights;
[0088] The storage subunit is used to store the classified novels in the database according to the weights based on the classification labels.
[0089] In one embodiment, the pre-processing unit 620 includes:
[0090] A traversal unit, used for selecting novels of at least one genre and traversing all novels of the selected genre;
[0091] A parsing unit, used to parse the associated information of each novel using an HTML parsing library, and to identify and separate HTML tags;
[0092] A cleaning unit, used to extract text content from the HTML tags and clean up spaces and line breaks in the text content;
[0093] The encoding unit is used to uniformly encode the cleaned text content to obtain plain text information.
[0094] In one embodiment, the analysis and extraction unit 630 includes:
[0095] An introduction unit is used to introduce a multi-head attention module and an adaptive attention module into the original language model to obtain an optimized language model;
[0096] A first setting unit, used to set input parameters of the optimized language model;
[0097] A confirmation unit, used to confirm the dimension information to be analyzed and extracted from the plain text information according to the input parameters;
[0098] The target acquisition unit is used to analyze and extract the plain text information using a mask to obtain target information.
[0099] In one embodiment, the target acquisition unit includes:
[0100] A calculation unit, used to calculate the attention score of the dimension information;
[0101] A fusion unit, which fuses the dimension information with the plain text information according to the attention score to obtain fused information;
[0102] The positioning unit is used to use the mask to locate the multiple key plots of the fused information, analyze each key plot, and extract the key plot with high similarity score as target information through a similarity algorithm.
[0103] In one embodiment, the evaluation unit 640 includes:
[0104] A second setting unit, used to pre-set the evaluation parameters of the evaluation model;
[0105] A setting unit, used for setting evaluation criteria and scoring range according to the evaluation parameters;
[0106] The first input unit is used to input the target information into the evaluation model for evaluation, and obtain the evaluation result in combination with the evaluation criteria and the scoring range.
[0107] In one embodiment, the evaluation unit 640 further includes:
[0108] A second input unit is used to input the target information into the evaluation model for evaluation, and obtain a plurality of initial evaluation results in combination with the evaluation criteria and scoring ranges;
[0109] The weighted averaging unit is used to perform weighted averaging on the multiple initial evaluation results to obtain a final evaluation result.
[0110] An embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the language model-based novel screening method as described in the above embodiment is implemented.
[0111] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the language model-based novel screening method as described in the above embodiment is implemented.
[0112] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0113] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0114] 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, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), disk or optical disk and other media that can store program codes.
[0117] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A novel screening method based on a language model, characterized in that: include: Obtain all novels and their related information from the target website, classify them by subject matter, and store the classified novels in a database; Select at least one type of novel, pre-process the relevant information of the corresponding novel, and obtain plain text information; Analyzing and extracting the plain text information using an optimized language model to obtain target information; Using the evaluation model to evaluate the target information according to preset standards to obtain an evaluation result; The evaluation result is displayed on a user interface.
2. The novel screening method according to claim 1, characterized in that: The step of obtaining all novels and related information on the target website, classifying them by subject matter, and storing the classified novels in a database includes: Obtain all novels and related information on the target website, wherein the related information includes the subject matter, name, author, and chapter content of the novel; Classify all novels by subject matter and assign classification labels and weights; According to the classification labels, the classified novels are stored in the database according to their weights.
3. The novel screening method according to claim 1, characterized in that: The step of selecting at least one type of novel and preprocessing the associated information of the corresponding novel to obtain plain text information includes: Select at least one type of novel and go through all the novels in the selected type; Use HTML parsing library to parse the related information of each novel, identify and separate HTML tags; Extracting text content from the HTML tags and cleaning spaces and line breaks in the text content; The cleaned text content is uniformly encoded to obtain plain text information.
4. The novel screening method according to claim 1, characterized in that: The method of analyzing and extracting the plain text information by using the optimized language model to obtain target information includes: Introducing the multi-head attention module and the adaptive attention module into the original language model to obtain an optimized language model; Setting input parameters of the optimized language model; Confirming the dimension information to be analyzed and extracted from the plain text information according to the input parameters; The plain text information is analyzed and extracted using a mask to obtain target information.
5. The novel screening method according to claim 4, characterized in that: The method of analyzing and extracting the plain text information by using a mask to obtain target information includes: Calculating an attention score of the dimension information; The dimension information is fused with the plain text information according to the attention score to obtain fused information; The mask is used to locate multiple key plots of the fused information, each key plot is analyzed, and the key plot with a high similarity score is extracted as target information through a similarity algorithm.
6. The novel screening method according to claim 1, characterized in that: The use of the evaluation model to evaluate the target information according to a preset standard to obtain an evaluation result includes: Presetting evaluation parameters of the evaluation model; According to the evaluation parameters, set evaluation criteria and scoring range; The target information is input into the evaluation model for evaluation, and the evaluation result is obtained by combining the evaluation criteria and the scoring range.
7. The novel screening method according to claim 6, characterized in that: The evaluation parameters include multiple ones, the evaluation criteria and the scoring range are both set to multiple ones, each evaluation parameter corresponds to an evaluation criterion and a scoring range; the evaluation model is used to evaluate the target information according to the preset criteria to obtain the evaluation result, and further includes: Inputting the target information into the evaluation model for evaluation, and obtaining a plurality of initial evaluation results in combination with the evaluation criteria and scoring ranges; A weighted average is performed on the multiple initial evaluation results to obtain a final evaluation result.
8. A novel screening device based on a language model, characterized in that: include: A storage unit is used to obtain all novels and related information in the target website, classify them by subject matter, and store the classified novels in a database; A preprocessing unit, configured to select at least one type of novel, preprocess the associated information of the corresponding novel, and obtain plain text information; An analysis and extraction unit, used to analyze and extract the plain text information using an optimized language model to obtain target information; An evaluation unit, used to evaluate the target information according to a preset standard using an optimized evaluation model to obtain an evaluation result; A display unit is used to display the evaluation result on a user interface.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the novel screening method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the novel screening method according to any one of claims 1 to 7 is implemented.
