CN115525805A - Method and device for identifying amount character string - Google Patents

Method and device for identifying amount character string Download PDF

Info

Publication number
CN115525805A
CN115525805A CN202211302562.2A CN202211302562A CN115525805A CN 115525805 A CN115525805 A CN 115525805A CN 202211302562 A CN202211302562 A CN 202211302562A CN 115525805 A CN115525805 A CN 115525805A
Authority
CN
China
Prior art keywords
target
character string
character
identification
amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211302562.2A
Other languages
Chinese (zh)
Inventor
张航宇
赵文武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202211302562.2A priority Critical patent/CN115525805A/en
Publication of CN115525805A publication Critical patent/CN115525805A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Character Discrimination (AREA)

Abstract

The invention discloses a method and a device for identifying a money character string, which can be used in the financial field or other fields, and the method comprises the following steps: acquiring a target amount character string to be identified; determining each character in the target amount character string; according to each character in the target amount character string, carrying out recognition rule matching to obtain a corresponding target matching result; and carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result. The invention can construct and match the identification rules, and finally accurately identify various types of money character strings under the target service scene by using the obtained target matching result.

Description

Method and device for identifying amount character string
Technical Field
The invention relates to the technical field of pattern recognition, in particular to a method and a device for recognizing a money character string.
It should be noted that the method and apparatus for identifying a money character string according to the present invention can be used for identifying a money character string in the financial field, and can also be used for identifying a money character string in any field other than the financial field.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
In a financial business scenario, a user input amount character string needs to be numerically identified, but the user input amount character string generally has various formats, such as: a numeric format, a numeric and quantifier combination format, a scientific notation format, and the like. Aiming at the recognition of the sum character strings in various formats, repeated development and repeated tests are needed, and the method has low efficiency and is inconvenient for program migration and expansion.
In view of the above technical problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method for identifying a money character string, which is used for accurately identifying a numerical value represented by the money character string and comprises the following steps:
acquiring a target amount character string to be identified;
determining each character in the target sum character string;
according to each character in the target amount character string, carrying out recognition rule matching to obtain a corresponding target matching result;
and carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result.
Further, in another embodiment of the method, the determining each character of the target amount characters includes:
and comparing each character graph in the target amount character string by using a preset character table, and determining each character in the target amount character string according to a comparison result.
Further, in another embodiment of the method, the performing recognition rule matching according to each character in the target amount character string to obtain a corresponding target matching result includes:
acquiring the additional state of each character;
determining a matched target recognition rule from a preset rule base according to each character in the target amount character string and the additional state of each character so as to obtain a corresponding target matching result; the preset rule base comprises a plurality of identification rules aiming at a target business scene.
Further, in another embodiment of the method, the preset rule base is constructed as follows:
acquiring a historical sum character string under a target service scene;
determining the format type of the sum character string in the target service scene according to the historical sum character string;
and constructing a plurality of identification rules aiming at the target business scene according to the format type of the money amount character string under the target business scene so as to establish a preset rule base.
Further, in another embodiment of the method, the format type includes at least one of: percentile/micrometer interval type, digital and quantifier combined type and scientific counting type.
Further, in another embodiment of the method, the performing, according to the target matching result, corresponding monetary value identification on the target monetary value character string includes: and under the condition that the target matching result comprises a target identification rule, carrying out sum value identification on the target sum character by using the target identification rule to obtain a sum value identification result which is used as the target sum value represented by the target sum character string.
Further, in another embodiment of the method, the performing corresponding amount value identification on the target amount character string according to the target matching result further includes:
under the condition that the target matching result comprises a plurality of target identification rules, respectively carrying out sum value identification on the target sum character strings by utilizing the plurality of target identification rules to obtain a plurality of sum value identification results;
and determining the target sum value of the target sum character string according to the plurality of sum value identification results.
Further, in another embodiment of the method, the performing corresponding amount value identification on the target amount character string according to the target matching result further includes:
and generating an error prompt under the condition that the target matching result is empty.
The embodiment of the invention also provides a device for identifying the sum character string, which is used for accurately identifying the numerical value represented by the sum character string, and the method comprises the following steps:
the acquisition module is used for acquiring a target amount character string to be identified;
the comparison module is used for determining each character in the target amount character string;
the matching module is used for matching the identification rules according to each character in the target amount character string to obtain a corresponding target matching result;
and the identification module is used for carrying out corresponding money value identification on the target money character string according to the target matching result.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the identification method of the money character string when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for identifying a monetary character string is implemented.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the method for identifying a monetary character string.
The embodiment of the invention is favorable for transferring the identification rule to other modules or systems for repeated use by constructing the identification rule and packaging and storing the identification rule, thereby avoiding repeated development and improving the working efficiency of program development; compared with the prior art that a set of program is developed for each type of money character string, the embodiment of the invention can transplant the recognition rule to other modules or systems for repeated use by constructing the migratable recognition rule, thereby avoiding multiple times of development and improving the working efficiency of program development.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a schematic flow chart illustrating a method for identifying a monetary character string according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating the process of identifying a corresponding amount value of a target amount character string according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating identification of a monetary string in accordance with one embodiment of the present invention;
fig. 4 is a block diagram showing a structure of an apparatus for recognizing a money character string according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Considering that in the financial business scenario, the amount character string input by the user needs to be identified numerically, however, the amount character string input by the user usually has a plurality of formats, for example: a numeric format, a numeric and quantifier combination format, a scientific notation format, and the like. Aiming at the recognition of the sum character strings in various formats, repeated development and repeated tests are needed, and the method has low efficiency and is inconvenient for program migration and expansion.
Further, it is also considered that in the prior art, the money character string is generally identified by using a regular expression, but the regular expression cannot know the meaning of each part in the money character string, so that the regular expression cannot realize the task of finally converting the target money.
Aiming at the problems existing in the existing method and the specific reasons for the problems, the application considers the method for identifying the amount character strings based on rule matching so as to accurately identify the amount character strings of different types.
Based on the above thought, the present specification proposes a method for identifying a money character string. Firstly, acquiring a target amount character string to be identified; determining each character in the target amount character string; then, according to each character in the target amount character string, carrying out recognition rule matching to obtain a corresponding target matching result; and finally, carrying out corresponding money value identification on the target money character string according to the target matching result.
Fig. 1 is a flowchart of a method of identifying a money string according to an embodiment of the present disclosure. Although the present application provides method operational steps or apparatus configurations as illustrated in the following examples or figures, more or fewer operational steps or modular units may be included in the methods or apparatus based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution sequence of the steps or the module structure of the apparatus is not limited to the execution sequence or the module structure described in the embodiments and shown in the drawings of the present application. When the described methods or modular structures are applied in a practical device or end product, they can be executed sequentially or in parallel according to the embodiments or the methods or modular structures shown in the figures (for example, in the environment of parallel processors or multi-thread processing, or even in the environment of distributed processing).
Specifically, as shown in fig. 1, the method for identifying a monetary character string may be implemented as follows.
S101: and acquiring a target amount character string to be identified.
It should be noted that the data related to the user, which is acquired and used in the present application, is acquired and used on the premise that the user knows and agrees. In addition, the data acquisition, storage, use, processing and the like in the technical scheme of the application all conform to relevant regulations of national laws and regulations.
In some embodiments, the user typically performs an input operation in the amount field of the client display page.
In some embodiments, the obtaining of the target amount character string to be recognized may include, in specific implementation:
s1: detecting whether a user initiates an input operation aiming at the amount field;
s2: and under the condition that the user is detected to initiate the input operation aiming at the amount column, acquiring a character string input by the user as the target amount character string.
S102: and determining each character in the target sum character string.
In some embodiments, the determining each character in the target amount character string may include, in specific implementation: and comparing each character graph in the target amount character string by using a preset character table, and determining each character in the target amount character string according to a comparison result.
In some embodiments, in the preset character table, character figures of the types of numbers, letters, symbols, and the like are stored in advance; the symbol may be a prime ('), a multiplier (× and a).
S103: and matching the recognition rules according to each character in the target amount character string to obtain a corresponding target matching result.
In some embodiments, the performing, according to each character in the target amount character string, the identification rule matching to obtain a corresponding target matching result may include:
s1: acquiring the additional state of each character;
s2: determining a matched target recognition rule from a preset rule base according to each character in the target amount character string and the additional state of each character so as to obtain a corresponding target matching result; the preset rule base comprises a plurality of identification rules aiming at a target business scene.
In some embodiments, the preset rule base is constructed as follows:
s1: acquiring a historical sum character string in a target service scene;
s2: determining the format type of the sum character string in the target service scene according to the historical sum character string;
s3: and constructing a plurality of identification rules aiming at the target business scene according to the format type of the money amount character string under the target business scene so as to establish a preset rule base.
In some embodiments, the format types include at least one of: percentile/micrometer interval type, digital and measuring word combined type and scientific counting type.
In some embodiments, the percentile interval type money string represents a string divided by adding a single quotation mark every two digits, for example: 10' 00; the amount string of the micrometer interval type indicates a string in which a single quotation mark is added every three digits, for example: 100' 000; the scientific counting type of money string representation is a string represented by scientific counting, for example, 5 × 10 3 (ii) a The character string of the combination of numerals and quantifier is a character string in which the number digits are represented by the english alphabet, for example: 5M (Million ), 10K (Kilo, thousand).
In some embodiments, the format type may further include a chinese font, etc., which is not limited in this specification.
In some embodiments, each recognition rule corresponds to its rule identification. For example, the recognition rule for recognizing the money character string of the percentile interval type is identified as "percentile interval type recognition rule".
In some embodiments, after constructing the plurality of identification rules for the target business scenario for the format type of the monetary string in the target business scenario, the method further comprises:
s1: verifying the plurality of identification rules according to a verification rule;
s2: and storing the identification rule passing the verification in a preset rule base.
In some embodiments, the verifying the plurality of identification rules according to the verification rule may include: constructing a check data set; the verification data set comprises a first data set and a second data set, the first data set comprises a money character string corresponding to the format type of the money character string in the target service scene, and the second data set comprises a second identification result obtained after the money character string is identified; identifying the money character strings corresponding to the identification rules in the first data set by using the identification rules to obtain a first identification result; comparing the first identification result with the second identification result, and considering that the identification rule passes the verification under the condition that the comparison results are consistent; correspondingly, in the case of inconsistent comparison results, the identification rule is considered to have failed the verification.
In some embodiments, in the case that the identification rule fails to pass the verification, the identification rule may be edited and modified to obtain a modified identification rule, and the modified identification rule is verified again until the verification passes.
In some embodiments, the identification rules in the preset rule base may also be added or deleted.
Through the embodiment, the identification rule is constructed and stored in the preset rule base, and the identification rule is packaged and then stored, so that the identification rule can be migrated to other modules or systems for repeated use, and the working efficiency of program development can be improved.
S104: and carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result.
Referring to fig. 2, in some embodiments, the performing, according to the target matching result, a corresponding amount value identification on the target amount character string may include:
s1041: and under the condition that the target matching result comprises a target identification rule, carrying out sum value identification on the target sum character by using the target identification rule to obtain a sum value identification result which is used as a target sum value represented by the target sum character string.
Referring to fig. 2, in some embodiments, the performing, according to the target matching result, corresponding money value identification on the target money character string may further include:
s1042: under the condition that the target matching result comprises a plurality of target identification rules, respectively carrying out sum value identification on the target sum character strings by utilizing the plurality of target identification rules to obtain a plurality of sum value identification results; and determining the target amount value of the target amount character string according to the plurality of amount value identification results.
In some embodiments, the determining the target amount value of the target amount character string according to the plurality of amount value recognition results may include: and comparing the plurality of the amount value recognition results, and determining the amount value recognition result as the target amount value of the target amount character string under the condition that the plurality of the amount value recognition results are identical.
In some embodiments, the determining the target amount value of the target amount character string according to the plurality of amount value recognition results may further include, in specific implementation: comparing the plurality of the amount value identification results, and combining the different amount identification results and the rule identifications of the corresponding identification rules respectively under the condition that the plurality of the amount value identification results are different to generate corresponding prompt information; and presents the prompt to the user.
Referring to fig. 2, in some embodiments, the performing, according to the target matching result, corresponding amount value identification on the target amount character string may further include:
s1043: and generating an error prompt under the condition that the target matching result is empty.
In some embodiments, the generating an error notification when the target matching result is null may include, in specific implementation:
s1: sequentially executing a plurality of identification rules in a preset rule base to obtain reasons which cannot be matched and positions of characters violating the rules in a target amount character string to be identified;
s2: and combining the reasons which cannot be matched with the characters which violate the rules with the positions of the characters in the target amount character string to be identified to obtain an error-reporting prompt.
In some embodiments, after obtaining the error prompt, the error prompt may also be presented to the user to remind the user to re-enter the string.
In some embodiments, after determining the target amount value of the target amount string, the method further comprises: the target dollar value is presented to the user to await user confirmation.
In some embodiments, after determining the target amount value for the target amount string, the method further comprises: and carrying out corresponding transaction data processing according to the target amount value. The transaction data processing comprises the following steps: and transferring the related resource data according to the target amount value. Wherein the resource data may include funding data.
By the embodiment, the money character strings in various format types can be accurately identified, and the error-reporting prompt is generated under the condition that the identification result cannot be obtained, so that the user can be helped to find the error position in the input character string, and the input efficiency is improved.
In a specific scenario example, the amount character string may be identified according to the identification method of the amount character string provided by the present application. Referring to fig. 3, before the implementation, a rule base is required to be constructed, where the rule base includes a plurality of identification rules; during specific implementation, the matching unit obtains a corresponding target matching result from the rule base, and the execution engine unit performs corresponding money value identification on the target money character string according to the target matching result to obtain an identification result; the dotted arrows in the figure represent optional operations, optionally, the rule management unit may perform operations such as checking, editing, modifying, adding, deleting, and the like on the identification rules in the rule base, and the rule management unit may also directly send the identification rules passing the checking to the matching unit to perform identification rule matching.
Based on the same inventive concept, the embodiment of the present application further provides a device for recognizing a money character string, as described in the following embodiments. Because the principle of solving the problems of the recognition device of the sum character string is similar to the recognition method of the sum character string, the implementation of the recognition device of the sum character string can refer to the implementation of the recognition method of the sum character string, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 4 is a block diagram of a structure of an apparatus for recognizing a money amount character string according to an embodiment of the present application, referring to fig. 4, including: the structure of the device comprises an acquisition module 401, a comparison module 402, a matching module 403 and an identification module 404, which are explained below.
An obtaining module 401, configured to obtain a target amount character string to be identified;
a comparison module 402, configured to determine each character in the target amount character string;
the matching module 403 is configured to perform recognition rule matching according to each character in the target amount character string to obtain a corresponding target matching result;
and the identification module 404 is configured to perform corresponding amount value identification on the target amount character string according to the target matching result.
In some embodiments, the obtaining module 401 may be specifically configured to detect whether the user initiates an input operation for the amount field; and under the condition that the user is detected to initiate the input operation aiming at the amount column, acquiring a character string input by the user as the target amount character string.
In some embodiments, the comparing module 402 may be specifically configured to compare each character pattern in the target amount character string with a preset character table, and determine each character in the target amount character string according to a comparison result.
In some embodiments, the matching module 403 may be specifically configured to obtain an additional state of each character; determining a matched target recognition rule from a preset rule base according to each character in the target amount character string and the additional state of each character so as to obtain a corresponding target matching result; the preset rule base comprises a plurality of identification rules aiming at a target business scene.
In some embodiments, the matching module 403 may be further configured to construct a preset rule base to obtain a historical monetary character string in a target service scenario in the following manner; determining the format type of the sum character string in the target service scene according to the historical sum character string; according to the format type of the money character string in the target service scene, constructing a plurality of identification rules aiming at the target service scene so as to establish a preset rule base; wherein the format type includes at least one of: percentile/micrometer interval type, digital and quantifier combined type and scientific counting type.
In some embodiments, the identification module 404 may be specifically configured to, when the target matching result includes one target identification rule, perform a sum value identification on the target sum character by using the target identification rule, and obtain a sum value identification result as the target sum value represented by the target sum character string.
In some embodiments, the identification module 404 may be further configured to, in a case that the target matching result includes a plurality of target identification rules, perform a monetary value identification on the target monetary character string by using the plurality of target identification rules, respectively, to obtain a plurality of monetary value identification results; and determining the target sum value of the target sum character string according to the plurality of sum value identification results.
In some embodiments, the identifying module 404 may be further configured to, in a case that the target matching result includes a plurality of target identification rules, respectively perform a sum value identification on the target sum character string by using the plurality of target identification rules to obtain a plurality of sum value identification results; and determining the target sum value of the target sum character string according to the plurality of sum value identification results.
In some embodiments, the identification module 404 may be further configured to generate an error notification when the target matching result is empty.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the identification method of the money character string when executing the computer program.
In order to more accurately complete the above instructions, referring to fig. 5, the present specification further provides another specific computer device, which may be a server, wherein the server includes a network communication port 501, a processor 502 and a memory 503, and the above structures are connected by an internal cable, so that the structures may perform specific data interaction.
The network communication port 501 may be specifically configured to acquire a target amount character string to be identified.
The processor 502 may be specifically configured to determine each character in the target amount character string; according to each character in the target amount character string, carrying out recognition rule matching to obtain a corresponding target matching result; and carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result.
The memory 503 may be specifically configured to store a corresponding instruction program.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when being executed by a processor, the computer program realizes the method for identifying the money character string.
An embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program, and when executed by a processor, the computer program implements the method for identifying a monetary character string.
In the embodiment of the invention, the identification rule is constructed and is packaged and then stored, so that the identification rule is favorably transferred to other modules or systems for repeated use, multiple development is avoided, and the working efficiency of program development can be improved; the packaged recognition rule can be used for realizing accurate recognition of various types of money character strings in a target service scene, and the speed and efficiency of service processing are improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for identifying a money string, comprising:
acquiring a target amount character string to be identified;
determining each character in the target amount character string;
according to each character in the target amount character string, carrying out recognition rule matching to obtain a corresponding target matching result;
and carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result.
2. The method of claim 1, wherein determining each of the target amount characters comprises:
and comparing each character graph in the target amount character string by using a preset character table, and determining each character in the target amount character string according to a comparison result.
3. The method of claim 1, wherein matching the recognition rules according to each character in the target amount string to obtain a corresponding target matching result comprises:
acquiring the additional state of each character;
determining a matched target recognition rule from a preset rule base according to each character in the target amount character string and the additional state of each character so as to obtain a corresponding target matching result; the preset rule base comprises a plurality of identification rules aiming at a target business scene.
4. The method according to claim 3, wherein the preset rule base is constructed in the following way:
acquiring a historical sum character string under a target service scene;
determining the format type of the sum character string in the target service scene according to the historical sum character string;
and constructing a plurality of identification rules aiming at the target business scene according to the format type of the money amount character string under the target business scene so as to establish a preset rule base.
5. The method of claim 4, wherein the format type comprises at least one of: percentile/micrometer interval type, digital and quantifier combined type and scientific counting type.
6. The method of claim 3, wherein performing corresponding monetary value identification on the target monetary string based on the target match result comprises:
and under the condition that the target matching result comprises a target identification rule, carrying out sum value identification on the target sum character by using the target identification rule to obtain a sum value identification result which is used as the target sum value represented by the target sum character string.
7. The method of claim 6, wherein identifying the corresponding monetary value for the target monetary string based on the target match further comprises:
under the condition that the target matching result comprises a plurality of target identification rules, respectively carrying out sum value identification on the target sum character strings by utilizing the plurality of target identification rules to obtain a plurality of sum value identification results;
and determining the target amount value of the target amount character string according to the plurality of amount value identification results.
8. The method of claim 6, wherein identifying the corresponding monetary value for the target monetary string based on the target match further comprises:
and generating an error prompt under the condition that the target matching result is empty.
9. An apparatus for recognizing a money string, comprising:
the acquisition module is used for acquiring a target amount character string to be identified;
the comparison module is used for determining each character in the target amount character string;
the matching module is used for matching the identification rules according to each character in the target amount character string to obtain a corresponding target matching result;
and the identification module is used for carrying out corresponding amount numerical value identification on the target amount character string according to the target matching result.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 8.
12. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
CN202211302562.2A 2022-10-24 2022-10-24 Method and device for identifying amount character string Pending CN115525805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211302562.2A CN115525805A (en) 2022-10-24 2022-10-24 Method and device for identifying amount character string

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211302562.2A CN115525805A (en) 2022-10-24 2022-10-24 Method and device for identifying amount character string

Publications (1)

Publication Number Publication Date
CN115525805A true CN115525805A (en) 2022-12-27

Family

ID=84702937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211302562.2A Pending CN115525805A (en) 2022-10-24 2022-10-24 Method and device for identifying amount character string

Country Status (1)

Country Link
CN (1) CN115525805A (en)

Similar Documents

Publication Publication Date Title
US8904352B2 (en) Systems and methods for processing source code during debugging operations
CN112732567B (en) Mock data testing method and device based on ip, electronic equipment and storage medium
CN105760450A (en) Form file analyzing method and device
CN107357721B (en) Method and device for testing system
CN111159482A (en) Data verification method and system
CN112541688B (en) Service data verification method and device, electronic equipment and computer storage medium
CN114138243A (en) Function calling method, device, equipment and storage medium based on development platform
CN113900955A (en) Automatic testing method, device, equipment and storage medium
CN111159028B (en) Webpage testing method and device
CN115525805A (en) Method and device for identifying amount character string
CN113703753B (en) Method and device for product development and product development system
CN114661671A (en) File processing method and device, computer readable storage medium and electronic equipment
CN116069650A (en) Method and device for generating test cases
CN114547696A (en) File desensitization method and device, electronic equipment and storage medium
CN115203300A (en) Data verification method and device
CN110648219B (en) Method and device for standardizing input area of bank transaction system
CN114255134A (en) Account number disassembling method and device and storage medium
CN113704123A (en) Interface test method, device, equipment and storage medium
CN112686759A (en) Account checking monitoring method, device, equipment and medium
CN115250231B (en) Application configuration method and device
CN113722208B (en) Project progress verification method and device for software test report
CN114817004B (en) Test case generation method, device, equipment and readable storage medium
CN113821441B (en) Execution method, device, equipment and storage medium based on document test case
CN113434359B (en) Data traceability system construction method and device, electronic device and readable storage medium
CN109002287B (en) Management method and device for software in cloud data system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination