File rating method and device, equipment and storage medium
Through the automated rating method, the rating scores of customer information are calculated using preset rules, which solves the problems of low efficiency and poor accuracy of manual ratings, and achieves fast and accurate rating processing, which improves the business efficiency and customer experience of financial institutions.
Patent Information
- Application Number
- CN202411284940.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-20
AI Technical Summary
In the field of financial services, there are problems with the complexity of information processing, the risks of errors and omissions, inefficiency and consistency of information, affecting the business and customer experience.
By reading the text information of the file to be rated and performing scoring calculations based on preset rules, using scoring calculation rules to automatically calculate rating scores, comparing and pre-set rating standards, quickly and automatically processing customer information.
It improves rating efficiency and accuracy, reduces the risk of errors and omissions caused by human factors, and enhances the traceability and transparency of the rating process.
Smart Images

Figure CN119168471A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a file rating method, device, equipment and storage medium. Background Art
[0002] In modern financial services, borrowers usually need to prepare a series of detailed personal information and financial status in advance when applying for loans. This information usually includes identity, income, assets, liabilities, credit history, etc. Financial institutions rate this information to determine the customer's credit level and determine the loan amount based on this. However, the process of manually rating customer information faces many challenges, the most notable of which include the complexity of information processing, the risk of errors and omissions, inefficiency and consistency issues, which have an adverse impact on the business and customer experience of financial institutions.
[0003] Therefore, how to improve the efficiency of rating customer information and improve the accuracy of rating is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] Based on the above problems, the present application provides a file rating method, device, equipment and storage medium, which can improve the efficiency of rating customer information and improve the accuracy of rating.
[0005] The embodiments of the present application disclose the following technical solutions:
[0006] A file rating method, the method comprising:
[0007] Reading file information of a file to be rated; the file information includes text information;
[0008] Based on the correspondence between the file to be rated and the preset rule, the preset rule corresponding to the file to be rated is determined as the score calculation rule of the file to be rated; the preset rule is determined based on the business demand corresponding to the file to be rated;
[0009] Using the scoring calculation rule to score the text information to obtain a rating score;
[0010] The rating score is compared with a preset rating standard to obtain a rating result of the file to be rated.
[0011] In a possible implementation, the using the scoring calculation rule to score the text information to obtain a rating score includes:
[0012] Obtaining variables in the scoring calculation rule;
[0013] Extracting text corresponding to the variables in the scoring calculation rule from the text information as target text;
[0014] Substitute the target text into the scoring calculation rule for calculation to obtain the rating score.
[0015] In a possible implementation, the file information further includes format information;
[0016] The method further comprises:
[0017] Convert the file information into a target file format to obtain target information;
[0018] The target information is converted into a web page, and the calculation rule is annotated on the web page of the target information.
[0019] In a possible implementation, converting the target information into a web page includes:
[0020] Determining the basic structure of the web page based on the format information of the target information;
[0021] Based on the basic structure, a basic framework of the web page is defined using hypertext markup language;
[0022] According to the format requirements of the format information of the target information, a plurality of text indication tags are inserted into the basic frame; the text information of the target information includes a plurality of text elements; the text indication tags are used to indicate the positions of the text elements of the target information in the basic frame; each text indication tag corresponds to one or more text elements;
[0023] Based on the correspondence between the text indication tag and the text element, the text information of the target information is inserted into the basic frame to obtain the web page.
[0024] In one possible implementation, the rating criteria include multiple score ranges;
[0025] The step of comparing the rating score with a preset rating standard to obtain a rating result of the file to be rated includes:
[0026] Determine a score range corresponding to the rating score;
[0027] Determining the file level of the file to be rated according to the score range corresponding to the rating score, and using the file level as the rating result;
[0028] Each score range corresponds to a file level.
[0029] In a possible implementation, the format information includes: the number of rows, the number of columns, the border style, and the drop-down box style of the file to be rated;
[0030] The text information includes the text color, text size, drop-down box content and digital data of the file to be rated.
[0031] In a possible implementation, the target file format includes: JavaScript Object Notation JSON format.
[0032] A file rating device, comprising:
[0033] A reading unit, used for reading file information of a file to be rated; the file information includes text information;
[0034] A rule determination unit, configured to determine the preset rule corresponding to the file to be rated as a score calculation rule for the file to be rated based on the correspondence between the file to be rated and the preset rule; the preset rule is determined based on the business requirement corresponding to the file to be rated;
[0035] A calculation unit, used to perform a score calculation on the text information using the score calculation rule to obtain a rating score;
[0036] The comparison unit is used to compare the rating score with a preset rating standard to obtain a rating result of the file to be rated.
[0037] A file rating device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the file rating method as described above is implemented.
[0038] A computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the file rating method as described above.
[0039] Compared with the prior art, this application has the following beneficial effects:
[0040] The present application provides a file rating method, device, equipment and storage medium. Specifically, when executing the file rating method provided by the embodiment of the present application, the file information including text information of the file to be rated can be read first, and based on the corresponding relationship between the file to be rated and the preset rule, the preset rule corresponding to the file to be rated is determined as the scoring calculation rule of the file to be rated, wherein the preset rule is determined based on the business needs corresponding to the file to be rated. The text information is scored and calculated using the scoring calculation rule to obtain a rating score. The rating score is then compared with the pre-set rating standard to obtain the rating result of the file to be rated. The present application realizes rapid and automated processing of customer information by reading the text information of the file to be rated and automatically calculating the rating score using the pre-set calculation rule. Compared with the manual rating method, this automated processing greatly improves the processing speed and efficiency, and reduces the risk of errors and omissions caused by human factors. In addition, each step of the rating process has clear rules and standards, making the rating process more traceable and transparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A method flow chart of a file rating method provided in an embodiment of the present application;
[0043] Figure 2 A method flow chart of a rating score calculation method provided in an embodiment of the present application;
[0044] Figure 3 A flow chart of a method for converting target information into a web page provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the structure of a file rating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] To facilitate understanding of the technical solutions provided by the embodiments of the present application, the background technology involved in the embodiments of the present application will be described below.
[0047] In the financial services sector, customers need to borrow money to achieve various needs, from buying a house to investing in a business. In order to obtain a loan, borrowers usually need to submit a series of customer information, including but not limited to personal identity, income, assets, liabilities and credit history. This information is crucial for banks or financial institutions because it helps assess the credit risk of borrowers and formulate appropriate loan plans.
[0048] Traditionally, this customer information may be processed and rated manually. Manual rating means that bank staff analyze and judge the information provided by the customer and ultimately determine the customer's credit level. Different credit levels usually correspond to different loan amounts and interest rates. A higher credit level may mean a higher loan amount and more favorable loan terms, while a lower credit level may be subject to restrictions or high interest rates.
[0049] However, there are some potential problems and challenges in manually rating customer information. Manual rating is prone to omissions. Due to the large amount of data that needs to be processed, people may miss some important information or make mistakes in the process. This may lead to inaccurate credit ratings, which in turn affects the accuracy and rationality of lending decisions. Even small mistakes may have a negative impact on financial institutions and borrowers.
[0050] In addition, manual rating is also inefficient. Manually processing large amounts of customer information requires a lot of time and effort, especially for large-scale loan application processes. This can result in wasted resources and inefficiencies for financial institutions, hindering their ability to make quick and accurate loan decisions. As the number of loan applications increases, the challenges of manual rating will become more apparent.
[0051] In order to solve this problem, the present application provides a rating method, device, equipment and storage medium for files. The text information contained in the file to be rated is first read, and the scoring calculation rules applicable to the file to be rated are determined according to the corresponding relationship between the file and the preset rules. These rules are set based on the business needs corresponding to the file. Subsequently, the text information is scored and calculated using these scoring calculation rules to obtain the final rating score. Then, the rating score is compared with the pre-set standard to obtain the final rating result of the file to be rated. The present application realizes the rapid and automated processing of customer information by automatically reading the text information and rating it using the preset calculation rules. Compared with the traditional manual rating method, this automated processing greatly improves the processing speed and efficiency, and reduces the risk of errors and omissions caused by human factors. In addition, each step of the rating process is based on clear rules and standards, making the entire rating process more traceable and transparent. This clear rule system helps to ensure the accuracy and fairness of the rating results, and also improves the control and supervision capabilities of financial institutions over the rating process.
[0052] 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 only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] See also Figure 1 , which is a flow chart of a method for rating a file provided in an embodiment of the present application, such as Figure 1 As shown, the file rating method may include steps S101-S104:
[0054] S101: Reading file information of a file to be rated; the file information includes text information.
[0055] In the process of file rating, it is necessary to obtain various information contained in the file to be rated, which mainly involves text information. This means that text data such as words, content or descriptions need to be extracted from the file to be rated for subsequent rating analysis and processing.
[0056] In a possible implementation, reading the file information of the file to be rated can be achieved through computer technology. A common method is to use a specially designed software program or script to open the file to be rated and parse the file content into a text form that can be processed by the computer. This process may involve steps such as text extraction, parsing, cleaning, and conversion to ensure that the obtained content is accurate, complete, and can be used for subsequent rating processing.
[0057] In the process of reading text information, text processing technology and natural language processing technology may be used, such as text parsers, word segmenters, named entity recognizers and other tools, in order to effectively extract and process text information. These tools can help convert the text data in the files to be rated into a form that can be understood and processed by computers, providing a basis for subsequent rating calculation and analysis.
[0058] S102: Based on the correspondence between the file to be rated and the preset rule, the preset rule corresponding to the file to be rated is determined as a score calculation rule for the file to be rated.
[0059] After reading the file information of the file to be rated, it is necessary to determine the scoring calculation rules applicable to the file to be rated based on the matching relationship between the content of the file to be rated and the pre-set rules. These pre-set rules are set based on the specific business needs corresponding to the file.
[0060] In a possible implementation, to determine the scoring calculation rules based on the correspondence between the file to be rated and the preset rules, it is necessary to first establish a rule matching library. The rule matching library can automatically identify and match specific content or attributes in the file to be rated with the corresponding preset rules. Through this matching process, it is possible to determine which preset rules are applicable to the current file to be rated, and use them as scoring calculation rules for subsequent processing.
[0061] The pre-set rules ensure the consistency and accuracy of the scoring calculation, and also make the entire rating process more in line with the actual business scenario. This method of determining the scoring calculation rules based on rule matching helps to improve the efficiency, accuracy and controllability of the rating process, thereby providing financial institutions with more reliable and accurate rating results.
[0062] S103: Calculate the score of the text information using the score calculation rule to obtain a rating score.
[0063] After determining the scoring calculation rule for the file to be rated, the rule can be used to perform scoring analysis on the text information in the file to be rated, thereby generating a final rating score.
[0064] This process is to apply the pre-set scoring calculation rules to the text content of the file to be rated, and to perform quantitative analysis on the information in the file according to these rules, so as to convert the text information into numerical form. This scoring calculation is usually based on rules, algorithms or models, and can be formulated according to different requirements and indicators. The scoring calculation rules will assign weights and calculate scores for specific content in the text information according to the rating standards and target business needs, and finally obtain the score results of the file to be rated in specific aspects.
[0065] By using these scoring calculation rules to perform scoring calculations, text information with strong subjectivity can be converted into objective numerical results, making the rating process more comparable and quantitative. The rating scores obtained will serve as key indicators for evaluating the files to be rated, helping decision makers to better understand and compare the ratings of different files, and then make corresponding decisions and processing. Therefore, using scoring calculation rules to score text information is a crucial part of the rating process, which helps to improve the accuracy and credibility of the rating results, and also provides an important reference for subsequent decision-making.
[0066] See also Figure 2 , Figure 2 A method flow chart of a rating score calculation method provided in an embodiment of the present application. Accordingly, step S103 uses the rating calculation rule to perform rating calculation on the text information to obtain a rating score, which can be specifically implemented through steps A1-A3:
[0067] A1: Obtain the variables in the scoring calculation rule;
[0068] Obtaining variables in the calculation rules means extracting various variables, indicators or parameters required from the pre-set scoring calculation rules. These variables are usually the data or factors necessary for evaluating text information and performing rating calculations, including specific data on how to convert text information into the final rating score.
[0069] For example, the scoring calculation rule may be in the following form:
[0070] (1) The scoring calculation rule can be a complex calculation formula with an if function, such as IF(E4>D4,3.0,0)+IF(C4="",0,IF(D4>C4,2,0))+IF(B4="",0,1). This formula uses the if function in Excel to perform conditional judgment and calculation.
[0071] The meaning of the formula is as follows: IF(E4>D4,3.0,0): Checks whether the condition E4>D4 is true. If E4 is greater than D4, the result is 3.0; otherwise, the result is 0.
[0072] IF(C4="",0,IF(D4>C4,2,0)): Checks whether C4 is empty (i.e., blank). If C4 is empty, the result is 0. If C4 is not empty, then check whether D4>C4. If D4 is greater than C4, the result is 2; otherwise, the result is 0.
[0073] IF(B4="",0,1): Checks whether B4 is empty. If B4 is empty, the result is 0. Otherwise, the result is 1.
[0074] Finally, these calculation results are added together. That is: If E4>D4, add 3.0. If C4 is not empty and D4>C4, add 2. If B4 is not empty, add 1. The final result of the formula is the sum of these three parts.
[0075] Among them, E4, D4, C4 and B4 are all variables in the calculation rules.
[0076] (2) The scoring calculation rule can also be a simple calculation formula such as (D6+E6) / 2*365 / E4. The meaning of the formula (D6+E6) / 2*365 / E4 is as follows:
[0077] (D6+E6) / 2: means calculating the average value of D6 and E6.
[0078] *365: means multiplying the average value by 365 to get the result.
[0079] / E4: means dividing the result by E4.
[0080] Among them, E4, D6 and E6 are all variables in the calculation rules.
[0081] A2: Extracting text corresponding to the variables in the scoring calculation rule from the text information as target text.
[0082] Extract the text corresponding to the variables in the scoring calculation rules from the text information as the target text, that is, extract the text fragments or sentences containing these variable information from the file to be rated according to the various variables and indicators defined in the pre-set scoring calculation rules. This process aims to accurately capture the text content corresponding to the specific variables required in the rules for subsequent scoring calculations. To extract the text corresponding to the variables in the calculation rules from the text information as the target text, it is usually necessary to use text processing techniques such as keyword matching, natural language processing tools or pattern recognition algorithms to locate, identify and extract the relevant text parts that meet the requirements of the rules. This ensures that the rating system can perform scoring calculations based on accurate and specific text information, thereby producing more reliable and accurate rating results.
[0083] For example, if the rule mentions variables D6 and E6, then it is necessary to find and extract the specific values or descriptions representing D6 and E6 in the text.
[0084] A3: Substitute the target text into the scoring calculation rule to perform calculation to obtain the rating score.
[0085] Substituting the target text into the scoring calculation rules for calculation and obtaining the rating score means inserting the specific data or information extracted from the text into the predefined scoring calculation formula to calculate the final score. For example, if the target text provides the values of D6 and E6, and the calculation rule is (D6+E6) / 2, the actual values of D6 and E6 extracted need to be substituted into this formula for calculation to obtain a rating result. This process involves replacing the variables in the formula with the extracted data, and then performing the calculation according to the rules to obtain the final rating score.
[0086] S104: Compare the rating score with a preset rating standard to obtain a rating result of the file to be rated.
[0087] Comparing the rating score with the preset rating criteria means comparing the calculated score with the pre-defined rating criteria to determine the final rating result of the file to be rated. For example, if the rating criteria divide the scores into different levels (such as excellent, good, medium, and poor), the calculated score needs to be compared with these rating standards to determine which level the score falls in, so as to obtain the rating result of the file to be rated. This process includes finding the applicable standard range and classifying the score into the corresponding rating category.
[0088] In a possible implementation, the rating criteria include multiple score ranges.
[0089] Accordingly, the step S104 of comparing the rating score with the preset rating standard to obtain the rating result of the file to be rated includes:
[0090] First, determine the score range corresponding to the rating score. Then, determine the file level of the file to be rated based on the score range corresponding to the rating score, and use the file level as the rating result. Each score range corresponds to a file level.
[0091] That is, the rating criteria contain multiple score ranges, each of which corresponds to a specific file grade. In order to obtain the rating result of the file to be rated, it is first necessary to determine in which score range the calculated rating score falls. Then, based on the file grade corresponding to the range, the final grade of the file to be rated can be determined and used as the rating result. For example, if the score in the range of 80-89 corresponds to the "good" grade, and the rating score is 85, then the rating result of the file is "good".
[0092] In one possible implementation, the text data contains not only the content itself, but also the format information that presents its form and structure. In this method, in addition to extracting the text content and information related to the calculation rules, the following steps are also included: converting the original file information into the target file format as required to generate the target information; then converting the target information again into the form of a web page, and adding notes about the rating calculation rules to the page. This process aims to process the text data according to the rules, and through conversion and display, make the rating results easier to understand and share.
[0093] In a possible implementation, the format information includes: the number of rows, columns, border style, and drop-down box style of the file to be rated. The number of rows and columns of the file to be rated refers to the number of rows and columns contained in the file, which is used to describe the arrangement of text data in a table or spreadsheet. The border style can refer to the style of the lines or decorative borders around each cell or the entire table, which is used to beautify and distinguish the content of the table. The drop-down box style generally refers to the style of the drop-down list that allows users to select in certain cells in the table, which is used to provide selection items and interactive functions. These styles and features help improve the readability and ease of use of the file, making the text information clearer and easier to understand.
[0094] Drop-down box styles usually include: arrow icon: displays a drop-down menu; option list: displays available items; selected item: the currently selected item is displayed in the cell.
[0095] In a possible implementation, the text information includes the text color, text size, drop-down box content, and digital data of the file to be rated. The text color, text size, drop-down box content, and digital data in the file to be rated can be in various forms and contents. The text color may include different colors such as red, blue, and green, which are used to highlight or distinguish the text content. The text size can be various font sizes, such as 12 pounds and 14 pounds, which are used to adjust the display size of the text in the file. The drop-down box content refers to the options provided to the user for selection in a table or form, such as the names of different regions, product categories, etc. Digital data can cover various numerical values, such as sales, quantity, percentage, and other data types. These elements together constitute the content and format characteristics of the file to be rated, which are of great significance to the rating process and data processing.
[0096] In a possible implementation, the target file format includes: JavaScript Object Notation (JSON) format.
[0097] See also Figure 3 , Figure 3A flow chart of a method for converting target information into a web page provided in an embodiment of the present application can be implemented through steps B1-B4:
[0098] B1: Determine the basic structure of the web page based on the format information of the target information.
[0099] In order to convert the target information into a web page, the basic structure of the web page must be determined first. The overall framework and layout of the generated web page (i.e., the basic structure of the web page) can be designed and planned based on the format requirements and features (i.e., format information) contained in the target information. By analyzing the format information of the target information (such as the organization of the text and the order of elements), the framework and layout of the web page can be determined, thereby ensuring that the final web page can correctly display the content of the target information.
[0100] In a possible implementation, the basic structure of the web page includes elements such as a head, a body, a title, a paragraph, and a list.
[0101] B2: Based on the basic structure, define the basic framework of the web page using Hypertext Markup Language.
[0102] “Based on the basic structure, using Hypertext Markup Language to define the basic framework of the web page” means using Hypertext Markup Language (version HTML) code to create the basic layout of the web page according to the determined web page structure (such as header, body, title, etc.).
[0103] In a possible implementation, based on the basic structure, defining the basic framework of the web page using hypertext markup language may include: first declaring the document type and HTML tags, and then defining the metadata of the page in the tags (such as <meta> and <title> ), then< / title> Create the main content structure in the tags, such as <header>For header information, <main>For main content, For paragraphs, or Used for lists, etc. Through these HTML elements and tags, the basic structure can be transformed into an actual web page framework.
[0104] B3: inserting a plurality of text indication tags into the basic frame according to the format requirements of the format information of the target information.
[0105] According to the format requirements of the format information of the target information, inserting multiple text indication tags in the basic frame means adding some tags specifically used to identify the position of text elements in the basic frame of the web page according to the specific format requirements of the target information. The function of these text indication tags is to guide the specific position of the text elements in the page layout. Each text indication tag corresponds to one or more text elements to ensure that the content is displayed in the prescribed order and structure. This practice helps to improve the readability and overall layout effect of the page and make the text content clearer.
[0106] For example, a text indication label may be used <h1> to< / h1> <h6>Tags define titles, use Tags define paragraphs, use (unordered list) or (Ordered list) Tag definition list, use Tags define list items.
[0107] In a possible implementation, format requirements for format information usually include unified data formats, text encoding specifications, file format regulations, layout standards, metadata descriptions, and version control. These regulations are intended to ensure that data and documents follow consistent standards, including data representation, file extensions, text length, font formats, metadata specifications, and version identification, so as to effectively process and communicate information.
[0108] In a possible implementation, the text elements include characters, words, sentences, paragraphs, titles, list items, etc.
[0109] B4: Based on the correspondence between the text indication tag and the text element, the text information of the target information is inserted into the basic frame to obtain the web page.
[0110] After inserting multiple text indicator tags into the basic frame, the text elements in the target information can be inserted into the corresponding positions one by one according to their corresponding tags according to the pre-designed structure and layout requirements. This process ensures that the web page content is displayed on the page according to the set specifications and order, so that the final generated web page has a clear structure and format, and meets the expected visual effects and user experience.
[0111] In one possible implementation, Cascading Style Sheets (CSS) can be used to define and adjust the format of a web page, such as font, color, spacing, etc. The CSS file can be linked in the header of the web page, or the style can be directly embedded in the document.
[0112] Based on the contents of S101-S104, it can be known that the text information in the file to be rated is first read, and the scoring calculation rules applicable to the file are determined based on the association between the file and the preset rules. These preset rules are designed according to the business needs of the file. Next, these rules are used to score and calculate the text information to obtain a rating score. Then, the score is compared with the preset rating criteria to obtain the final rating result. Through this automated scoring method, the present application realizes the rapid processing of customer information. Compared with manual rating, this method significantly improves the processing speed and efficiency, and reduces the risk of human errors and omissions. In addition, each step in the rating process has clear rules and standards to ensure the traceability and transparency of the rating process.
[0113] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a file rating device provided in an embodiment of the present application. Figure 4 As shown, the rating devices of this document include:
[0114] The reading unit 401 is used to read the file information of the file to be rated; the file information includes text information;
[0115] A rule determination unit 402 is used to determine the preset rule corresponding to the file to be rated as a score calculation rule for the file to be rated based on the correspondence between the file to be rated and the preset rule; the preset rule is determined based on the business demand corresponding to the file to be rated;
[0116] A calculation unit 403 is used to perform a score calculation on the text information using the score calculation rule to obtain a rating score;
[0117] The comparison unit 404 is used to compare the rating score with a preset rating standard to obtain a rating result of the file to be rated.
[0118] In a possible implementation, the calculation unit 403 specifically includes:
[0119] A variable acquisition unit, used to acquire variables in the scoring calculation rule;
[0120] A setting unit, configured to extract text corresponding to the variables in the scoring calculation rule from the text information as target text;
[0121] The rating score acquisition unit is used to substitute the target text into the rating calculation rule for calculation to obtain the rating score.
[0122] In a possible implementation manner, the file information also includes format information.
[0123] In a possible implementation manner, the device further includes:
[0124] A first conversion unit, used for converting the file information into a target file format to obtain target information;
[0125] A second conversion unit, used to convert the target information into a web page;
[0126] The annotation unit is used to annotate the calculation rule on the web page of the target information.
[0127] In a possible implementation manner, the second conversion unit specifically includes:
[0128] A basic structure determination unit, configured to determine the basic structure of the web page based on the format information of the target information;
[0129] A definition unit, used to define the basic framework of the web page using hypertext markup language based on the basic structure;
[0130] A label inserting unit, used for inserting a plurality of text indication labels in the basic frame according to the format requirements of the format information of the target information; the text information of the target information includes a plurality of text elements; the text indication labels are used for indicating the positions of the text elements of the target information in the basic frame; each text indication label corresponds to one or more text elements;
[0131] The text information inserting unit is used to insert the text information of the target information into the basic frame based on the corresponding relationship between the text indication tag and the text element to obtain the web page.
[0132] In a possible implementation, the rating criteria include multiple score ranges.
[0133] In a possible implementation, the comparing unit 404 specifically includes:
[0134] A score range determination unit, used to determine a score range corresponding to the rating score;
[0135] A file grade determination unit, configured to determine the file grade of the to-be-rated file according to a score range corresponding to the rating score, and use the file grade as the rating result;
[0136] Each score range corresponds to a file level.
[0137] In a possible implementation, the number of rows, number of columns, border style, and drop-down box style of the file to be rated;
[0138] The text information includes the text color, text size, drop-down box content and digital data of the file to be rated.
[0139] In a possible implementation, the target file format includes: JavaScript Object Notation JSON format.
[0140] In addition, an embodiment of the present application further provides a file rating device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the file rating method as described above is implemented.
[0141] In addition, an embodiment of the present application further provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the file rating method as described above.
[0142] The embodiment of the present application provides a file rating device, which first uses a reading unit 401 to read the file information of the file to be rated, and uses a rule determination unit 402 to determine the preset rules corresponding to the file to be rated as the scoring calculation rules of the file to be rated based on the correspondence between the file to be rated and the preset rules. Then, the calculation unit 403 uses the scoring calculation rules to score and calculate the text information to obtain a rating score, so that the comparison unit 404 can compare the rating score with the preset rating standard to obtain the rating result of the file to be rated. The present application parses the text information in the file to be rated and automatically calculates the rating score by applying the preset calculation rules, thereby realizing the rapid and automatic processing of customer information. Compared with manual rating, this automated method significantly improves the processing speed and efficiency, while reducing the risk of human errors and omissions. In addition, each step in the rating process has clear rules and standards, making the rating process more traceable and transparent.
[0143] The above is a detailed introduction to the rating method, device, equipment and storage medium for the files provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0144] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or plural.
[0145] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. < / h6> < / main> < / header>
Claims
1. A file rating method, characterized in that: The method comprises: Reading file information of a file to be rated; the file information includes text information; Based on the correspondence between the file to be rated and the preset rule, the preset rule corresponding to the file to be rated is determined as the score calculation rule of the file to be rated; the preset rule is determined based on the business demand corresponding to the file to be rated; Using the scoring calculation rule to score the text information to obtain a rating score; The rating score is compared with a preset rating standard to obtain a rating result of the file to be rated.
2. The method according to claim 1, characterized in that The step of using the scoring calculation rule to score the text information to obtain a rating score includes: Obtaining variables in the scoring calculation rule; Extracting text corresponding to the variables in the scoring calculation rule from the text information as target text; Substitute the target text into the scoring calculation rule for calculation to obtain the rating score.
3. The method according to claim 1, characterized in that: The file information also includes format information; The method further comprises: Convert the file information into a target file format to obtain target information; The target information is converted into a web page, and the calculation rule is annotated on the web page of the target information.
4. The method according to claim 3, characterized in that The converting the target information into a web page includes: Determining the basic structure of the web page based on the format information of the target information; Based on the basic structure, a basic framework of the web page is defined using hypertext markup language; According to the format requirements of the format information of the target information, a plurality of text indication tags are inserted into the basic frame; the text information of the target information includes a plurality of text elements; the text indication tags are used to indicate the positions of the text elements of the target information in the basic frame; each text indication tag corresponds to one or more text elements; Based on the correspondence between the text indication tag and the text element, the text information of the target information is inserted into the basic frame to obtain the web page.
5. The method according to claim 1, characterized in that The rating scale includes a number of score ranges; The step of comparing the rating score with a preset rating standard to obtain a rating result of the file to be rated includes: Determine a score range corresponding to the rating score; Determining the file level of the file to be rated according to the score range corresponding to the rating score, and using the file level as the rating result; Each score range corresponds to a file level.
6. The method according to claim 3 is characterized in that: The format information includes: the number of rows, columns, border style and drop-down box style of the file to be rated; The text information includes the text color, text size, drop-down box content and digital data of the file to be rated.
7. The method according to claim 3, characterized in that The target file format includes: JavaScript Object Notation JSON format.
8. A file rating device, characterized in that: The device comprises: A reading unit, used for reading file information of a file to be rated; the file information includes text information; A rule determination unit, configured to determine the preset rule corresponding to the file to be rated as a score calculation rule for the file to be rated based on the correspondence between the file to be rated and the preset rule; the preset rule is determined based on the business requirement corresponding to the file to be rated; A calculation unit, used to perform a score calculation on the text information using the score calculation rule to obtain a rating score; The comparison unit is used to compare the rating score with a preset rating standard to obtain a rating result of the file to be rated.
9. A file rating device, characterized in that: include: 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 file rating method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the file rating method according to any one of claims 1 to 7.
