Method and device for extracting character information elements from police call text based on regular expressions

By using a method based on regular expressions to automatically extract the character information elements in the police text, the problem of high manual extraction cost and low efficiency is solved, and efficient and automated information extraction is achieved.

CN113111231BActive Publication Date: 2024-09-06BEIJING MINGYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010306934.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-02-13
Filing Date
2020-04-17
Publication Date
2024-09-06
Estimated Expiration
2040-04-17

AI Technical Summary

Technical Problem

In the existing technology, manual extraction of character information elements in police response texts is costly and inefficient. Moreover, due to irregular natural language descriptions, extraction is difficult, resulting in a large amount of data not being extracted and high learning costs.

Method used

A method based on regular expressions is used to automatically extract the character information elements by matching the regular expressions in the preset character information element identification set with the text to be extracted, reducing manual intervention and improving the extraction speed.

Benefits of technology

It realizes the automatic extraction of character information elements from police text, reduces costs, improves extraction efficiency, and solves the high cost and low efficiency problems of manual extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113111231B_ABST
    Figure CN113111231B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a method and device for extracting character information elements from a police call text based on a regular expression. A specific implementation of the method includes: obtaining a police call text with character information elements to be extracted and a set of target character information element identifiers, wherein each target character information element identifier belongs to a preset character information element identifier set; matching the police call text with character information elements to be extracted with the regular expression corresponding to each target character information element identifier in the set of target character information element identifiers, so as to extract the corresponding target character information elements from the police call text with character information elements to be extracted. This implementation realizes the automatic extraction of character information elements from police call texts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The disclosed embodiments relate to the field of computer technology, and in particular to a method and device for extracting character information elements from police call text based on regular expressions. Background Art

[0002] At present, the 110 police dispatchers of the public security organs will enter the police call text when receiving the call. The police handling officers will enter the police handling text after handling the call. The police call text includes the above-mentioned call text and the police handling text. In practice, the police call text often involves descriptions of character information elements. For example, it may include the name, age, gender, home address of the person, and may also include the person's ID number, telephone number, etc. Case analysts often analyze the same character information elements in each police call text based on the character information elements in the police call text in order to discover series of cases or related cases (for example, the same ID number appears in multiple police call texts). However, the labor cost of manually extracting the character information elements in the police call text is too high and relies on personal experience. Summary of the invention

[0003] The disclosed embodiments provide a method and device for extracting character information elements from police call text based on regular expressions.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for extracting character information elements from a police call text based on regular expressions, the method comprising: obtaining a police call text containing character information elements to be extracted and a set of target character information element identifiers, wherein each target character information element identifier belongs to a preset character information element identifier set; matching the police call text containing character information elements to be extracted with the regular expressions corresponding to each target character information element identifier in the set of target character information element identifiers to extract the corresponding target character information elements from the police call text containing character information elements to be extracted.

[0005] In some embodiments, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following first training step: obtaining a training sample set and a test sample set, wherein the training sample and the test sample both include historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each preset character information element included in the historical police call text; for each preset character information element identifier in the preset character information element identifier set, performing the following first regular expression determination operation: determining the training sample whose annotated character information element information in each training sample includes the preset character information element indicated by the preset character information element identifier A positive training sample set corresponding to the preset character information element identifier is selected; positive training samples are selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets; for each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset; each generated candidate regular expression is tested based on a test sample set to determine the accuracy corresponding to each generated candidate regular expression; and the candidate regular expression with the highest accuracy among the generated candidate regular expressions is determined as the regular expression corresponding to the preset character information element identifier.

[0006] In some embodiments, selecting positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets includes: performing a target number of positive training sample subset generation operations to generate a target number of positive training sample subsets, the positive training sample subset generation operation including: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein N is an integer obtained by rounding down the quotient of L divided by M, L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and M is a positive integer greater than or equal to 2 and less than L.

[0007] In some embodiments, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following second training step: obtaining a training sample set, wherein the training sample includes historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each preset character information element included in the historical police call text; for each preset character information element identifier in the preset character information element identifier set, performing the following second regular expression determination operation: determining the training samples in each training sample whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier as the positive training sample set corresponding to the preset character information element identifier; based on the positive training sample set corresponding to the preset character information element identifier, generating a regular expression corresponding to the preset character information element identifier.

[0008] In some embodiments, the preset character information element identification set includes at least one of the following: ID number, mobile phone number, bank card number, credit card number, email address, and web page address.

[0009] In a second aspect, an embodiment of the present disclosure provides a device for extracting character information elements from a police call text based on regular expressions, the device comprising: an acquisition unit, configured to acquire a police call text containing character information elements to be extracted and a set of target character information element identifiers, wherein each target character information element identifier belongs to a preset character information element identifier set; an extraction unit, configured to match the police call text containing character information elements to be extracted with the regular expressions corresponding to each target character information element identifier in the set of target character information element identifiers, so as to extract the corresponding target character information elements from the police call text containing the character information elements to be extracted.

[0010] In some embodiments, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following first training step: obtaining a training sample set and a test sample set, wherein the training sample and the test sample both include historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each preset character information element included in the historical police call text; for each preset character information element identifier in the preset character information element identifier set, performing the following first regular expression determination operation: determining the training sample whose annotated character information element information in each training sample includes the preset character information element indicated by the preset character information element identifier A positive training sample set corresponding to the preset character information element identifier is selected; positive training samples are selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets; for each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset; each generated candidate regular expression is tested based on a test sample set to determine the accuracy corresponding to each generated candidate regular expression; and the candidate regular expression with the highest accuracy among the generated candidate regular expressions is determined as the regular expression corresponding to the preset character information element identifier.

[0011] In some embodiments, selecting positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets includes: performing a target number of positive training sample subset generation operations to generate a target number of positive training sample subsets, the positive training sample subset generation operation including: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein N is an integer obtained by rounding down the quotient of L divided by M, L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and M is a positive integer greater than or equal to 2 and less than L.

[0012] In some embodiments, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following second training step: obtaining a training sample set, wherein the training sample includes historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each preset character information element included in the historical police call text; for each preset character information element identifier in the preset character information element identifier set, performing the following second regular expression determination operation: determining the training samples in each training sample whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier as the positive training sample set corresponding to the preset character information element identifier; based on the positive training sample set corresponding to the preset character information element identifier, generating a regular expression corresponding to the preset character information element identifier.

[0013] In some embodiments, the preset character information element identification set includes at least one of the following: ID number, mobile phone number, bank card number, credit card number, email address, and web page address.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by one or more processors, implements the method described in any implementation manner in the first aspect.

[0016] In the prior art, character information elements are generally extracted from police call texts manually, which may have the following problems: (1) There are a large number of police call texts from history that have not had character information elements extracted, and as time goes by, police officers enter a large number of new police call texts every day, resulting in a large amount of data to be extracted from police call texts. The manpower and time costs required for manual extraction are too high; (2) Most police call texts are described in natural language, and the expressions are highly colloquial and irregular, making it difficult to manually extract character information elements; (3) There are many types of character information elements, and the extraction methods for different types of character information elements are different, which depends on manual experience, that is, the learning cost in the manual extraction process is high.

[0017] The embodiments of the present disclosure provide a method and device for extracting character information elements from police call texts based on regular expressions. The method and device match the police call texts containing the character information elements to be extracted with the regular expressions corresponding to the target character information element identifiers in the target character information element identifier set to extract the corresponding target character information elements in the police call texts. The regular expressions corresponding to each target character information element are effectively utilized to automatically extract character information elements from police call texts without manual operation, thereby reducing the cost of extracting character information elements from police call texts and improving the speed of extracting character information elements from police call texts. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0019] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0020] Figure 2 It is a flowchart of an embodiment of a method for extracting character information elements from police call text based on regular expressions according to the present disclosure;

[0021] Figure 3 is a flowchart of an embodiment of a first training step according to the present disclosure;

[0022] Figure 4 is a flowchart of an embodiment of the second training step according to the present disclosure;

[0023] Figure 5 It is a structural schematic diagram of an embodiment of a device for extracting character information elements from police call text based on regular expressions according to the present disclosure;

[0024] Figure 6 It is a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method for extracting character information elements from police call texts based on regular expressions or an apparatus for extracting character information elements from police call texts based on regular expressions of the present disclosure can be applied.

[0028] like Figure 1 As shown, system architecture 100 may include terminal device 101, network 102 and server 103. Network 102 is used to provide a medium for a communication link between terminal device 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables.

[0029] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as police call record applications, police call text character information element extraction applications, web browser applications, etc.

[0030] The terminal device 101 can be hardware or software. When the terminal device 101 is hardware, it can be various electronic devices with a display screen and supporting text input, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When the terminal device 101 is software, it can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, used to provide a service for extracting character information elements from police call texts), or it can be implemented as a single software or software module. No specific limitation is made here.

[0031] The server 103 may be a server providing various services, such as a background server that extracts character information elements from the alarm text sent by the terminal device 101. The background server may analyze the received alarm text and feed back the processing result (such as character information elements) to the terminal device.

[0032] In some cases, the method for extracting character information elements from police call text based on regular expressions provided in the embodiments of the present disclosure can be performed jointly by the terminal device 101 and the server 103. For example, the step of "obtaining the police call text with character information elements to be extracted and the target character information element identification set" can be performed by the terminal device 101, and the remaining steps can be performed by the server 103. The present disclosure does not limit this. Accordingly, the device for extracting character information elements from police call text based on regular expressions can also be respectively set in the terminal device 101 and the server 103.

[0033] In some cases, the method for extracting character information elements from police call text based on regular expressions provided in the embodiments of the present disclosure may be executed by the server 103. Accordingly, the device for extracting character information elements from police call text based on regular expressions may also be set in the server 103. In this case, the system architecture 100 may not include the terminal device 101.

[0034] In some cases, the method for extracting character information elements from police call text based on regular expressions provided in the embodiments of the present disclosure may be executed by the terminal device 101. Accordingly, the device for extracting character information elements from police call text based on regular expressions may also be set in the terminal device 101. In this case, the system architecture 100 may not include the server 103.

[0035] It should be noted that the server 103 can be hardware or software. When the server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 103 is software, it can be implemented as multiple software or software modules (for example, for providing a service for extracting character information elements from a police call text), or it can be implemented as a single software or software module. No specific limitation is made here.

[0036] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0037] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a method for extracting character information elements from a police call text based on regular expressions according to the present disclosure. The method for extracting character information elements from a police call text based on regular expressions comprises the following steps:

[0038] Step 201, obtaining the alarm handling text of the person information element to be extracted and the target person information element identification set.

[0039] In this embodiment, the execution body of the method for extracting character information elements from police call text based on regular expressions (for example, Figure 1 The server shown in the figure can obtain the locally stored character information element to be extracted and the target character information element identification set, or the execution subject can also remotely obtain the character information element from other electronic devices (for example, Figure 1 The terminal device shown in the figure) obtains the alarm handling text of the character information element to be extracted and the target character information element identification set.

[0040] Here, the character information element alarm text to be extracted can be text data compiled by the police receiver according to the content of the alarm call or text data compiled by the police handler according to the alarm handling process. The character information element alarm text to be extracted can also be alarm text input from an alarm application installed by the user on the terminal device or a web page with an alarm function received from the terminal device.

[0041] Here, the target person information element identifier set is used to indicate each person information element to be extracted from the police call handling text of the person information element to be extracted, and each target person information element identifier in the target person information element identifier set belongs to a preset person information element identifier set.

[0042] In some optional implementations, the preset character information element identification set may be manually formulated by technical personnel based on the character information elements that may appear in the police call text and the importance of each character information element to case analysis and association.

[0043] In some optional implementations, the preset character information element identification set may include at least one of the following: identity card number, mobile phone number, bank card number, credit card number, email address, and web page address.

[0044] Step 202, matching the character information element to be extracted from the alarm receiving and handling text with the regular expressions corresponding to the target character information element identifiers in the target character information element identifier set, to extract the corresponding target character information element in the character information element to be extracted from the alarm receiving and handling text.

[0045] In this embodiment, a regular expression is a logical formula for string operations, that is, a "regular string" is formed by using some pre-defined specific characters and the combination of these specific characters. This "regular string" is used to express a filtering logic for the string. Given a regular expression and another string, it can be determined whether the given string matches the filtering logic of the regular expression, and by giving a regular expression, a specific part that is desired to be extracted can be obtained from the string. Therefore, the above execution subject (for example, Figure 1 The server shown in the figure can match the character information element to be extracted from the alarm text with the regular expression corresponding to the target character information element identifier for each target character information element identifier in the target character information element identifier set, so as to extract the corresponding target character information element in the character information element to be extracted from the alarm text. How to determine whether a regular expression matches another string, and how to extract the part to be extracted from it through a regular expression are existing technologies widely studied and applied in this field, and will not be repeated here.

[0046] In some optional implementations, the regular expression corresponding to each preset character information element in the preset character information element identifier set may be a logical formula for string operations developed by technical personnel based on statistical analysis of the preset character information element portion in a large number of historical police call texts that include the character information element indicated by the preset character information element identifier, and used to extract the character information element indicated by the preset character information element identifier.

[0047] In some optional implementations, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set may also be expressed as follows: Figure 3 The first training step shown is pre-trained. Please refer to Figure 3 , Figure 3 A process 300 of an embodiment of a first training step according to the present disclosure is shown. The process 300 of the first training step may include the following steps:

[0048] Step 301: Obtain a training sample set and a test sample set.

[0049] Here, the execution subject of the first training step can be the same as the execution subject of the above-mentioned method for extracting character information elements from police call text based on regular expressions. In this way, after the execution subject of the first training step obtains the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set through training, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set can be stored locally in the above-mentioned execution subject, and the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set obtained through training can be read during the execution of the above-mentioned method for extracting character information elements from police call text based on regular expressions.

[0050] Here, the execution subject of the first training step may also be different from the execution subject of the above-mentioned method for extracting character information elements from police call texts based on regular expressions. In this way, after the execution subject of the first training step obtains the regular expressions corresponding to each preset character information element identifier in the preset character information element identifier set through training, the execution subject of the first training step may send the regular expressions corresponding to each preset character information element identifier in the preset character information element identifier set to the execution subject of the above-mentioned method for extracting character information elements from police call texts based on regular expressions. In this way, the execution subject of the above-mentioned method for extracting character information elements from police call texts based on regular expressions may read the regular expressions corresponding to each preset character information element identifier in the preset character information element identifier set received from the execution subject of the first training step during the execution of the above-mentioned method for extracting character information elements from police call texts based on regular expressions.

[0051] Here, the execution subject of the first training step may first obtain a training sample set and a test sample set. The training samples and the test samples both include historical police call texts and corresponding annotated character information elements, wherein the annotated character information elements are used to characterize the preset character information elements included in the historical police call texts. It should be noted that, in practice, the police call texts may include more than one preset character information element, and therefore, the training samples and the test samples may include at least one annotated character information element.

[0052] Here, the annotated character information element information may include a preset character information element identifier and a starting position and an ending position, which is used to characterize that the content between the starting position and the ending position of the historical police call text in the training sample is the character information element indicated by the preset character information element identifier. For ease of understanding, the following example is given. For example, the training sample may include the historical police call text "received a police call from A saying that A, with ID number XXXXXXXXXXXXXXXXXX, transferred 8,000 yuan to B's bank card number YYYYYYYYYYYYYYYYYY, which was found to be telecommunications fraud", and the above historical police call text may correspond to two annotated character information elements, one of which is: preset character information element identifier-ID number, starting position-29 (note, here it is recorded as one Chinese character and Chinese punctuation mark occupying two characters, and numbers and English letters occupying one character), ending position-46; the other is: preset character information element identifier-bank card number, starting position-63, ending position-74. The above two pieces of information elements of annotated person information are used to represent that in the historical police call text "We received a report from A that A, with ID number XXXXXXXXXXXXXXXXXXXXX, transferred 8,000 yuan to B's bank card number YYYYYYYYYYYYYYYYYY, and upon investigation it was found to be telecommunications fraud", the 29th to 46th characters are the ID number, and the 63rd to 74th characters are the bank card number.

[0053] Here, the labeled person information element information in the training samples and the test samples may be obtained by manually labeling the corresponding historical police call handling texts.

[0054] In practice, in order to improve the matching degree of the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set obtained by training to the preset character information element, the historical police call texts in the training samples and test samples obtained here may not include invalid police call texts. For example, some police call texts do not include any character information elements and have no actual value for extracting elements. Such police call texts can be considered invalid police call texts.

[0055] In some optional implementations, for each preset character information element identifier in the preset character information element identifier set, the ratio of the number of positive samples and the number of negative samples corresponding to the preset character information element identifier in the training sample set may be within a first preset ratio range, that is, there cannot be too many positive samples and too few negative samples, or there cannot be too many negative samples and too few positive samples. As an example, the first preset ratio range may be between greater than or equal to 0.6 and less than or equal to 1.6. Among them, the positive samples corresponding to the preset character information element identifier in the training sample set are the training samples whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier in each training sample of the training sample set, and correspondingly, the negative samples corresponding to the preset character information element identifier are the training samples whose annotated character information element information does not include the preset character information element indicated by the preset character information element identifier in each training sample of the training sample set.

[0056] In some optional implementations, for each preset character information element identifier in the preset character information element identifier set, the ratio of the number of positive samples and the number of negative samples corresponding to the preset character information element identifier in the test sample set may be within a second preset ratio range, that is, there cannot be too many positive samples and too few negative samples, or there cannot be too many negative samples and too few positive samples. As an example, the second preset ratio range may be between greater than or equal to 0.6 and less than or equal to 1.6. Among them, the positive samples corresponding to the preset character information element identifier in the test sample set are the test samples whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier in each test sample of the test sample set, and correspondingly, the negative samples corresponding to the preset character information element identifier are the test samples whose annotated character information element information does not include the preset character information element indicated by the preset character information element identifier in each test sample of the test sample set.

[0057] In some optional implementations, for each preset character information element identifier in the preset character information element identifier set, the ratio between the number of positive samples corresponding to the preset character information element identifier in the training sample set and the number of positive samples corresponding to the preset character information element identifier in the test sample set can be within a third preset ratio range. Here, generally speaking, the number of positive samples corresponding to the preset character information element identifier in the training sample set is greater than the number of positive samples corresponding to the preset character information element identifier in the test sample set, because a large number of positive samples are used for training and a small number of positive samples are used for testing, which is consistent with reducing the total number of samples required to a greater extent, thereby reducing the labor cost of annotating training samples and test samples.

[0058] Step 302: For each preset character information element identifier in the preset character information element identifier set, perform a first regular expression determination operation.

[0059] Here, the first regular expression determination operation may include the following steps 3021 to 3025:

[0060] Step 3021: determine the training samples in each training sample whose labeled character information element information includes the preset character information element indicated by the preset character information element identifier as the positive training sample set corresponding to the preset character information element identifier.

[0061] For ease of understanding, it is assumed here that the preset character information element identifier set includes {"ID number", "bank card number", "mobile phone number"}, and the assumed training sample set is shown in Table 1. Among them, the sample number of the training sample and the corresponding annotated character information element information are shown, but the specific content of the historical police call text is omitted. As can be seen from Table 1, the positive training sample set corresponding to the preset character information element identifier "ID number" in the training sample set can include: sample 1, sample 2, sample 4 and sample 6, the positive training sample set corresponding to the preset character information element identifier "bank card number" in the training sample set can include: sample 1, sample 2, sample 3 and sample 7, and the positive training sample set corresponding to the preset character information element identifier "mobile phone number" in the training sample set can include: sample 1, sample 3, sample 4 and sample 5.

[0062] Table 1

[0063]

[0064]

[0065] Step 3022 , selecting positive training samples from the positive training sample set corresponding to the preset person information element identifier to form a target number of positive training sample subsets.

[0066] After obtaining the positive training sample set corresponding to the preset character information element identifier in step 3021, the execution subject of the first training step can select positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets. Here, the target number can be pre-set, and the target number can also be determined by receiving user input via the interface provided in the above execution subject.

[0067] In some optional implementations, step 3022 may be performed as follows:

[0068] Perform the target number of positive training sample subset generation operations to generate the target number of positive training sample subsets. The positive training sample subset generation operation includes: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein N is an integer obtained by rounding down the quotient of L divided by M, L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and M is a preset positive integer greater than or equal to 2 and less than L. For example, for example, the positive training sample set corresponding to the preset character information element identifier includes 100 positive training samples, the target number is 3, M is 2, L is 100, and N is a positive integer 50 obtained by rounding down the quotient of 100 divided by 2. Here, the following operation is performed 3 times: randomly selecting 50 positive training samples from the positive training sample set including 100 positive training samples to form a positive training sample subset, and finally 3 positive training sample subsets are obtained, each positive training sample subset includes 50 positive training samples.

[0069] In some optional implementations, step 3022 may also be performed as follows:

[0070] The positive training sample set corresponding to the preset character information element identifier is divided into a target number of positive training sample subsets, wherein the number of positive training samples in each subset is as close as possible. Specifically, assuming that the positive training sample set corresponding to the preset character information element identifier includes L positive training samples, the target number is T, Q is a positive integer obtained by rounding down the quotient of L divided by T, and R is the remainder of L divided by T, then when R is zero, the positive training sample set corresponding to the preset character information element identifier can be evenly divided into T positive training sample subsets, and the number of positive training samples in each positive training sample subset is Q. When R is greater than zero, the positive training sample set corresponding to the preset character information element identifier can be evenly divided into T positive training sample subsets, wherein T-1 positive training sample subsets include Q positive training samples, and another positive training sample subset includes Q+R positive training samples.

[0071] Step 3023: For each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset.

[0072] After step 3022, positive training samples have been selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets. Here, the execution subject of the first training step can generate a candidate regular expression corresponding to the preset character information element identifier in various implementation methods for each positive training sample subset in the target number of positive training sample subsets generated above based on each positive training sample in the positive training sample subset. Specifically, first, for each positive training sample in the training sample subset, the preset character information element in the historical police receiving and handling text of the positive training sample can be obtained according to the starting position and the ending position of the annotated character information element information including the preset character information element identifier in each annotated character information element information of the positive training sample. Then, based on the preset character information element obtained for each positive training sample in the training sample subset, a candidate regular expression corresponding to the preset character information element identifier is generated. It should be noted that various implementation methods can be used to generate a regular expression based on at least one text. For example, the target repeated content can be used as the content in the regular expression, and the target variable content can be represented by a wildcard in the regular expression, wherein the repetition ratio of the target repeated content in at least one text is greater than or equal to a preset ratio, and the repetition ratio of the target variable content in at least one text is less than the preset ratio. As an example, the regular expression generated for the preset character information element of the ID card number can be ##################s, wherein # is a wildcard for numbers, and s is a wildcard for numbers or English letters, which means that the character information element of the ID card number includes 18 digits, of which the first 17 digits are numbers, and the last digit is a number or a letter.

[0073] After step 3023, a maximum target number of candidate regular expressions corresponding to the preset character information element identifier can be generated.

[0074] Step 3024: Test each generated candidate regular expression based on the test sample set to determine the accuracy rate corresponding to each generated candidate regular expression.

[0075] Specifically, the execution subject of the first training step can perform the following accuracy determination operation for each candidate regular expression generated in step 3023: First, for each test sample in the test sample set obtained in step 301, determine whether the historical police text in the test sample matches the candidate regular expression; if it is determined to be matched, it indicates that the historical police text in the test sample includes the preset character information element, and then further determine whether the annotated character information element information in the test sample includes the preset character information element identifier, if it is determined to be included, it is determined that the test sample is a positive sample relative to the candidate regular expression, and if it is determined not to be included, it is determined that the test sample is a negative sample relative to the candidate regular expression. Finally, the ratio of the number of test samples in the test sample set that are positive samples relative to the candidate regular expression divided by the total number of test samples in the test sample set is determined as the accuracy corresponding to the candidate regular expression.

[0076] Step 3025: Determine the candidate regular expression with the highest accuracy among the generated candidate regular expressions as the regular expression corresponding to the preset character information element identifier.

[0077] In some optional implementations, the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set may also be obtained by: Figure 4 The second training step shown is pre-trained. Please refer to Figure 4 , Figure 4 A process 400 of an embodiment of a second training step according to the present disclosure is shown. The process 400 of the second training step may include the following steps:

[0078] Step 401: Obtain a training sample set.

[0079] Here, the execution subject of the second training step can be specifically referred to Figure 3 The relevant description of step 301 in the embodiment shown is not repeated here. In addition, for a detailed description of how to obtain a training sample set and training samples, please refer to Figure 3 The relevant description in step 301 in the illustrated embodiment will not be repeated here.

[0080] Step 402: For each preset character information element identifier in the preset character information element identifier set, perform a second regular expression determination operation.

[0081] Here, the second regular expression determination operation includes the following steps 4021 to 4022:

[0082] Step 4021: determine the training samples in each training sample whose labeled character information element information includes the preset character information element indicated by the preset character information element identifier as the positive training sample set corresponding to the preset character information element identifier.

[0083] Here, the specific operation of sub-step 4021 and the technical effect it brings are the same as Figure 3 The corresponding descriptions in step 3021 in the illustrated embodiment are basically the same and will not be repeated here.

[0084] Step 4022: Generate a regular expression corresponding to the preset character information element identifier based on the positive training sample set corresponding to the preset character information element identifier.

[0085] Specifically, the execution subject of the second training step can first obtain the preset character information element in the historical police call handling text of the positive training sample according to the starting position and ending position of the annotated character information element information of each annotated character information element information of the positive training sample, including the preset character information element identifier. Then, based on the preset character information element obtained for each positive training sample in the positive training sample set corresponding to the preset character information element identifier, a regular expression corresponding to the preset character information element identifier is generated. It should be noted that various implementation methods can be used to generate a regular expression based on at least one text.

[0086] According to the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set obtained by training in the second training step shown in the above process 400, the regular expression corresponding to the preset character information element identifier is obtained by training with the training sample set, and the manual cost of generating the regular expression corresponding to the preset character information element identifier is reduced. According to the regular expression corresponding to each preset character information element identifier in the preset character information element identifier set obtained by training in the first training step shown in the above process 300, the target number of candidate regular expressions are obtained by training with the training sample set, and the generated candidate regular expressions are tested with the test sample set, and the candidate regular expression with the highest accuracy is selected as the regular expression corresponding to the preset character information element identifier. In addition to automatically generating the regular expression corresponding to the preset character information element identifier, the expression matching degree of the regular expression to the preset character information element identifier can be improved because it has been tested with the test sample set.

[0087] The method provided by the above-mentioned embodiment of the present disclosure realizes automatic extraction of character information elements from the police call text by utilizing the regular expression corresponding to each target character information element, without the need for manual operation, thereby reducing the cost of extracting character information elements from the police call text and improving the speed of extracting character information elements from the police call text.

[0088] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for extracting character information elements from police call text based on regular expressions. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0089] like Figure 5 As shown, the device 500 for extracting character information elements from police call text based on regular expressions of this embodiment includes: an acquisition unit 501 and an extraction unit 502. The acquisition unit 501 is configured to acquire the police call text of the character information elements to be extracted and a set of target character information element identifiers, wherein each of the above target character information element identifiers belongs to a preset character information element identifier set; and the extraction unit 502 is configured to match the police call text of the character information elements to be extracted with the regular expressions corresponding to each target character information element identifier in the above target character information element identifier set, so as to extract the corresponding target character information elements from the police call text of the character information elements to be extracted.

[0090] In this embodiment, the specific processing of the acquisition unit 501 and the extraction unit 502 of the device for extracting character information elements from police call text based on regular expressions and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201 and step 202 in the corresponding embodiment are not repeated here.

[0091] In some optional implementations of the present embodiment, the regular expression corresponding to each preset character information element identifier in the above-mentioned preset character information element identifier set may be obtained by pre-training through the following first training step: obtaining a training sample set and a test sample set, wherein the training sample and the test sample both include historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each of the above-mentioned preset character information elements included in the historical police call texts; for each preset character information element identifier in the above-mentioned preset character information element identifier set, performing the following first regular expression determination operation: adding the annotated character information element information in each of the above-mentioned training samples including the preset character information indicated by the preset character information element identifier The training samples of the element are determined as the positive training sample set corresponding to the preset character information element identifier; positive training samples are selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets; for each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset; based on the above-mentioned test sample set, each generated candidate regular expression is tested to determine the accuracy corresponding to each generated candidate regular expression; and the candidate regular expression with the highest accuracy among the generated candidate regular expressions is determined as the regular expression corresponding to the preset character information element identifier.

[0092] In some optional implementations of the present embodiment, the above-mentioned selecting positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets may include: performing the above-mentioned target number of positive training sample subset generation operations to generate the above-mentioned target number of positive training sample subsets, and the above-mentioned positive training sample subset generation operation includes: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein the above-mentioned N is an integer obtained by rounding down the quotient of L divided by M, the above-mentioned L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and the above-mentioned M is a positive integer greater than or equal to 2 and less than the above-mentioned L.

[0093] In some optional implementations of the present embodiment, the regular expression corresponding to each preset character information element identifier in the above-mentioned preset character information element identifier set may be pre-trained through the following second training step: obtaining a training sample set, wherein the training sample includes historical police call texts and annotated character information element information, wherein the annotated character information element information is used to characterize each of the above-mentioned preset character information elements included in the historical police call texts; for each preset character information element identifier in the above-mentioned preset character information element identifier set, performing the following second regular expression determination operation: determining the training samples in each of the above-mentioned training samples whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier as the positive training sample set corresponding to the preset character information element identifier; and generating a regular expression corresponding to the preset character information element identifier based on the positive training sample set corresponding to the preset character information element identifier.

[0094] In some optional implementations of this embodiment, the above-mentioned preset character information element identification set may include at least one of the following: ID number, mobile phone number, bank card number, credit card number, email address, and web page address.

[0095] It should be noted that the implementation details and technical effects of each unit in the device for extracting character information elements from police call text based on regular expressions provided in the embodiment of the present disclosure can be referred to the description of other embodiments in the present disclosure and will not be repeated here.

[0096] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an electronic device of an embodiment of the present disclosure. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0097] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. Various programs and data required for the operation of the system 600 are also stored in the RAM 603. The CPU 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0098] The following components are connected to the I / O interface 605: an input section 606 including a touch screen, a handwriting tablet, a keyboard, or a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet.

[0099] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609. When the computer program is executed by the central processing unit (CPU) 601, the above functions defined in the method of the present disclosure are executed. It should be noted that the computer-readable medium described in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0100] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0101] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0102] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit and an extraction unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as "a unit for acquiring the alarm reception text of the character information element to be extracted and the target character information element identification set".

[0103] As another aspect, the present disclosure also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: obtains the alarm receiving and handling text of the character information element to be extracted and the target character information element identification set, wherein each target character information element identification belongs to the preset character information element identification set; matches the alarm receiving and handling text of the character information element to be extracted with the regular expression corresponding to each target character information element identification in the target character information element identification set, so as to extract the corresponding target character information element in the alarm receiving and handling text of the character information element to be extracted.

[0104] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A method for extracting character information elements from police call text based on regular expressions, comprising: Acquire the police call handling text of the person information element to be extracted and a set of target person information element identifiers, wherein each of the target person information element identifiers belongs to a preset set of person information element identifiers; Matching the character information element to be extracted alarm reception text with the regular expressions corresponding to the target character information element identifiers in the target character information element identifier set to extract the corresponding target character information element in the character information element to be extracted alarm reception text; The regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following first training step: A training sample set and a test sample set are obtained, wherein both the training sample and the test sample include a historical police call text and annotated character information element information, wherein the annotated character information element information is used to characterize each of the preset character information elements included in the historical police call text; the annotated character information element information includes a preset character information element identifier and a starting position and an ending position, and is used to characterize that the content between the starting position and the ending position of the historical police call text in the training sample is the character information element indicated by the preset character information element identifier; For each preset character information element identifier in the preset character information element identifier set, the ratio of the number of positive samples to the number of negative samples corresponding to the preset character information element identifier in the training sample set is within a first preset ratio range, and the first preset ratio range is between greater than or equal to 0.6 and less than or equal to 1.6; the ratio of the number of positive samples to the number of negative samples corresponding to the preset character information element identifier in the test sample set is within a second preset ratio range, and the second preset ratio range is between greater than or equal to 0.6 and less than or equal to 1.6; the number of positive samples corresponding to the preset character information element identifier in the training sample set is greater than the number of positive samples corresponding to the preset character information element identifier in the test sample set; For each preset character information element identifier in the preset character information element identifier set, the following first regular expression determination operation is performed: the training samples in each of the training samples whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier are determined as the positive training sample set corresponding to the preset character information element identifier; positive training samples are selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets; for each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset; each generated candidate regular expression is tested based on the test sample set to determine the accuracy corresponding to each generated candidate regular expression; and the candidate regular expression with the highest accuracy among the generated candidate regular expressions is determined as the regular expression corresponding to the preset character information element identifier; The step of selecting positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets includes: Executing the target number of positive training sample subset generation operations to generate the target number of positive training sample subsets, the positive training sample subset generation operation comprising: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein N is an integer obtained by rounding down the quotient of L divided by M, L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and M is a positive integer greater than or equal to 2 and less than L; The method of generating a candidate regular expression corresponding to the preset character information element identifier based on each positive training sample in the positive training sample subset includes: first, for each positive training sample in the positive training sample subset, obtaining the preset character information element in the historical police receiving and handling text of the positive training sample according to the starting position and the ending position in the annotated character information element information including the preset character information element identifier in each annotated character information element information of the positive training sample; then, generating a candidate regular expression corresponding to the preset character information element identifier based on the preset character information element obtained for each positive training sample in the positive training sample subset; wherein the target repeated content is used as the content in the regular expression, and the target variable content is represented by a wildcard in the regular expression; wherein the repetition ratio of the target repeated content in at least one text is greater than or equal to the preset ratio, and the repetition ratio of the target variable content in at least one text is less than the above preset ratio; The preset character information element identification set includes at least one of the following: identity card number, mobile phone number, bank card number, credit card number, email address, and web page address.

2. A device for extracting character information elements from police call text based on regular expressions, comprising: An acquisition unit is configured to acquire the alarm handling text of the character information element to be extracted and a set of target character information element identifiers, wherein each of the target character information element identifiers belongs to a preset character information element identifier set; An extraction unit is configured to match the character information element to be extracted alarm reception and handling text with the regular expression corresponding to each target character information element identifier in the target character information element identifier set, so as to extract the corresponding target character information element in the character information element to be extracted alarm reception and handling text; The regular expression corresponding to each preset character information element identifier in the preset character information element identifier set is pre-trained through the following first training step: Acquire a training sample set and a test sample set, wherein both the training sample and the test sample include historical police call handling texts and annotated character information element information, wherein the annotated character information element information is used to characterize each of the preset character information elements included in the historical police call handling texts; The annotated character information element information includes a preset character information element identifier and a starting position and an ending position, which is used to indicate that the content between the starting position and the ending position of the historical police receiving and handling text in the training sample is the character information element indicated by the preset character information element identifier; For each preset character information element identifier in the preset character information element identifier set, the ratio of the number of positive samples to the number of negative samples corresponding to the preset character information element identifier in the training sample set is within a first preset ratio range, and the first preset ratio range is between greater than or equal to 0.6 and less than or equal to 1.6; the ratio of the number of positive samples to the number of negative samples corresponding to the preset character information element identifier in the test sample set is within a second preset ratio range, and the second preset ratio range is between greater than or equal to 0.6 and less than or equal to 1.6; the number of positive samples corresponding to the preset character information element identifier in the training sample set is greater than the number of positive samples corresponding to the preset character information element identifier in the test sample set; For each preset character information element identifier in the preset character information element identifier set, the following first regular expression determination operation is performed: the training samples in each of the training samples whose annotated character information element information includes the preset character information element indicated by the preset character information element identifier are determined as the positive training sample set corresponding to the preset character information element identifier; positive training samples are selected from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets; for each positive training sample subset in the target number of positive training sample subsets, a candidate regular expression corresponding to the preset character information element identifier is generated based on each positive training sample in the positive training sample subset; each generated candidate regular expression is tested based on the test sample set to determine the accuracy corresponding to each generated candidate regular expression; and the candidate regular expression with the highest accuracy among the generated candidate regular expressions is determined as the regular expression corresponding to the preset character information element identifier; The step of selecting positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a target number of positive training sample subsets includes: Executing the target number of positive training sample subset generation operations to generate the target number of positive training sample subsets, the positive training sample subset generation operation comprising: randomly selecting N positive training samples from the positive training sample set corresponding to the preset character information element identifier to form a positive training sample subset, wherein N is an integer obtained by rounding down the quotient of L divided by M, L is the number of positive samples in the positive training sample set corresponding to the preset character information element identifier, and M is a positive integer greater than or equal to 2 and less than L; The method of generating a candidate regular expression corresponding to the preset character information element identifier based on each positive training sample in the positive training sample subset includes: first, for each positive training sample in the positive training sample subset, obtaining the preset character information element in the historical police receiving and handling text of the positive training sample according to the starting position and the ending position in the annotated character information element information including the preset character information element identifier in each annotated character information element information of the positive training sample; then, generating a candidate regular expression corresponding to the preset character information element identifier based on the preset character information element obtained for each positive training sample in the positive training sample subset; wherein the target repeated content is used as the content in the regular expression, and the target variable content is represented by a wildcard in the regular expression; wherein the repetition ratio of the target repeated content in at least one text is greater than or equal to the preset ratio, and the repetition ratio of the target variable content in at least one text is less than the above preset ratio; The preset character information element identification set includes at least one of the following: identity card number, mobile phone number, bank card number, credit card number, email address, and web page address.

3. An electronic device, comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method according to claim 1 .

4. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to claim 1 is implemented.