Method and device for extracting registered permanent residence information from police call handling text based on deep learning model
The method based on the deep learning model automatically extracts the household registration information from the police text, which solves the problems of low efficiency and high cost of manual extraction in the existing technology, and achieves efficient household registration information extraction.
Patent Information
- Application Number
- CN202010306789.9
- 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
In the existing technology, when the public security organs extract the household registration information from the police receipt text, there are problems such as high labor cost, reliance on manual experience and high difficulty, resulting in low efficiency.
A method based on a deep learning model is used to segment and classify the police text, and the pre-trained household registration information classification model is used to automatically extract household registration information, reducing manual intervention and learning costs.
It realizes the automatic extraction of household registration information from the docking police text, reduces the cost, and improves the extraction speed and efficiency.
Smart Images

Figure CN113111168B_ABST
Abstract
Description
Technical Field
[0001] The disclosed embodiments relate to the field of computer technology, and more particularly to a method and device for extracting registered permanent residence information from police call-handling texts based on a deep learning model. Background Art
[0002] At present, the 110 police dispatchers of the public security organs will enter the alarm text when receiving the alarm. The police handling officers will enter the alarm handling text after handling the alarm. The alarm receiving and handling text includes the above-mentioned alarm receiving text and the alarm handling text. In practice, a large number of alarm receiving and handling texts will involve descriptions of the household registration information of the persons involved in the case. Among them, the household registration information may include the household registration identification and the corresponding household registration address. For example, "Current domicile 202, Building 5, Community C, City B, Province A" is a household registration information, where "current domicile" is the household registration identification, which is used to indicate that the following content is the household registration address corresponding to the "current domicile", and "202, Building 5, Community C, City B, Province A" is the household registration address corresponding to the "current domicile". For another example, “301, 2nd Unit, Building 6, Community C, City B, Province A” is also a piece of household registration information, where “hometown” is the household registration identifier, used to indicate that the following content is the corresponding household registration address, and “301, 2nd Unit, Building 6, Community C, City B, Province A” is the household registration address corresponding to “hometown”.
[0003] For case analysts, it is very important to extract the household registration information from the police text. For example, case analysts can conduct statistical analysis based on the household registration information extracted from a large number of historical police texts to obtain relevant information about a specific type of criminal in a certain province or city, and then provide data basis for the future management of personnel with household registration addresses in the province or city. At present, most of the household registration information in the police text is extracted manually, but the labor cost of manually extracting the household registration information in the police text is too high and depends on personal experience. Summary of the invention
[0004] The disclosed embodiments propose a method and device for extracting household registration information from police call text based on a deep learning model.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for extracting household registration place information from a police call text based on a deep learning model, the method comprising: obtaining a police call text of household registration place information to be extracted; segmenting the above-mentioned police call text of household registration place information to be extracted to obtain a corresponding word segmentation sequence; for each word segment in the obtained word segmentation sequence, performing the following household registration place information classification operation: inputting the word vector corresponding to the word segmentation into a household registration place information classification model to obtain a classification result of whether the word segmentation is household registration place information, wherein the above-mentioned household registration place information classification model is pre-trained based on a deep learning model; and determining the household registration place information set corresponding to the above-mentioned police call text of household registration place information to be extracted for each word segmentation indicating that it is household registration place information according to the corresponding classification results in the above-mentioned word segmentation sequence.
[0006] In some embodiments, the household registration place information classification model based on the deep learning model is pre-trained through the following training steps: obtaining a training sample set, wherein the training sample includes a segmentation sequence obtained by segmenting the historical police call text and a labeling information sequence corresponding to the segmentation sequence, wherein the labeling information is used to indicate whether the corresponding segmentation in the segmentation sequence is the household registration place information; determining each training sample whose corresponding segmentation sequence in the training sample set includes the household registration place information segmentation as a positive sample set, wherein the household registration place information segmentation is a segmentation of the household registration place information for which the corresponding labeling information in the segmentation sequence indicates that the segmentation is the household registration place information; determining the text feature vector of the positive sample according to each household registration place information segmentation included in the segmentation sequence of each positive sample in the positive sample set; using the text feature vector of the positive sample in the positive sample set as input, and using the classification result indicating that it is the household registration place information as the corresponding expected output, training the initial deep learning model to obtain the household registration place information classification model.
[0007] In some embodiments, the above-mentioned training step also includes: inputting a preset negative sample feature vector into the above-mentioned household registration information classification model to obtain a corresponding actual output result; adjusting the model parameters of the above-mentioned household registration information classification model according to the difference between the actual output result obtained and the classification result used to indicate that it is not household registration information.
[0008] In some embodiments, the above-mentioned determining the text feature vector of the positive sample based on each registered place information segment included in the segmentation sequence of each positive sample in the above-mentioned positive sample set includes: for each positive sample in the above-mentioned positive sample set, performing the following vector generation and assignment operations: generating a text feature vector corresponding to the positive sample, wherein each component in the generated text feature vector corresponds one-to-one to each word in a preset dictionary; for each registered place information segment in the segmentation sequence of the positive sample, setting the component corresponding to the registered place information segment in the generated text feature vector to the term frequency-inverse text frequency index TF-IDF of the registered place information segment; and setting each unassigned component in the generated text feature vector to a preset value, wherein the unassigned component is the component corresponding to the word of each registered place information segment in the segmentation sequence that belongs to the above-mentioned preset dictionary but does not belong to the positive sample.
[0009] In a second aspect, an embodiment of the present disclosure provides a device for extracting household registration place information from a police call text based on a deep learning model, the device comprising: an acquisition unit, configured to acquire the police call text of the household registration place information to be extracted; a word segmentation unit, configured to segment the above-mentioned police call text of the household registration place information to be extracted to obtain a corresponding word segmentation sequence; a classification unit, configured to perform the following household registration place information classification operation for each word segment in the obtained word segmentation sequence: input the word vector corresponding to the word segmentation into a household registration place information classification model to obtain a classification result of whether the word segmentation is the household registration place information, wherein the above-mentioned household registration place information classification model is pre-trained based on a deep learning model; a determination unit, configured to determine the household registration place information set corresponding to the above-mentioned police call text of the household registration place information to be extracted for each word segmentation indicating that it is the household registration place information according to the corresponding classification results in the above-mentioned word segmentation sequence.
[0010] In some embodiments, the household registration place information classification model based on the deep learning model is pre-trained through the following training steps: obtaining a training sample set, wherein the training sample includes a segmentation sequence obtained by segmenting the historical police call text and a labeling information sequence corresponding to the segmentation sequence, wherein the labeling information is used to indicate whether the corresponding segmentation in the segmentation sequence is the household registration place information; determining each training sample whose corresponding segmentation sequence in the training sample set includes the household registration place information segmentation as a positive sample set, wherein the household registration place information segmentation is a segmentation of the household registration place information for which the corresponding labeling information in the segmentation sequence indicates that the segmentation is the household registration place information; determining the text feature vector of the positive sample according to each household registration place information segmentation included in the segmentation sequence of each positive sample in the positive sample set; using the text feature vector of the positive sample in the positive sample set as input, and using the classification result indicating that it is the household registration place information as the corresponding expected output, training the initial deep learning model to obtain the household registration place information classification model.
[0011] In some embodiments, the above-mentioned training step also includes: inputting a preset negative sample feature vector into the above-mentioned household registration information classification model to obtain a corresponding actual output result; adjusting the model parameters of the above-mentioned household registration information classification model according to the difference between the actual output result obtained and the classification result used to indicate that it is not household registration information.
[0012] In some embodiments, the above-mentioned determining the text feature vector of the positive sample based on each registered place information segment included in the segmentation sequence of each positive sample in the above-mentioned positive sample set includes: for each positive sample in the above-mentioned positive sample set, performing the following vector generation and assignment operations: generating a text feature vector corresponding to the positive sample, wherein each component in the generated text feature vector corresponds one-to-one to each word in a preset dictionary; for each registered place information segment in the segmentation sequence of the positive sample, setting the component corresponding to the registered place information segment in the generated text feature vector to the term frequency-inverse text frequency index TF-IDF of the registered place information segment; and setting each unassigned component in the generated text feature vector to a preset value, wherein the unassigned component is the component corresponding to the word of each registered place information segment in the segmentation sequence that belongs to the above-mentioned preset dictionary but does not belong to the positive sample.
[0013] 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.
[0014] 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.
[0015] In the prior art, the household registration information in the police call text is generally extracted manually, which may have the following problems: (1) There are a large number of police call texts from history that have not had their household registration information 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 the police call texts. The manpower and time cost required for manual extraction is too high; (2) Most police call texts are described in natural language, and the expression is highly colloquial and irregular, making it difficult to manually extract the household registration information; (3) There are many types of household registration identification and address information in the household registration information, and the methods for extracting household registration information of different types and items are different, which depends on manual experience, that is, the learning cost in the manual extraction process is high.
[0016] The method and device for extracting household registration information from a police call text based on a deep learning model provided by the embodiments of the present disclosure segment the words of the police call text of the household registration information to be extracted to obtain a corresponding word segmentation sequence, and then for each word segment in the obtained word segmentation sequence, the word vector corresponding to the word segmentation is input into a pre-trained household registration information classification model to extract the household registration information from the police call text of the household registration information to be extracted. Thus, the household registration information classification model is effectively utilized, and the household registration information is automatically extracted from the police call text without manual operation, which reduces the cost of extracting household registration information from the police call text and improves the extraction speed of household registration information from the police call text. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] 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:
[0018] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0019] Figure 2 It is a flowchart of an embodiment of a method for extracting registered permanent residence information from police call texts based on a deep learning model according to the present disclosure;
[0020] Figure 3 is a flow chart of one embodiment of the training steps according to the present disclosure;
[0021] Figure 4 It is a structural schematic diagram of an embodiment of a device for extracting registered residence information from police call texts based on a deep learning model according to the present disclosure;
[0022] Figure 5 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
[0023] 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.
[0024] 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.
[0025] Figure 1An exemplary system architecture 100 is shown to which an embodiment of the method for extracting domicile place information from police call texts based on a deep learning model or an apparatus for extracting domicile place information from police call texts based on a deep learning model of the present disclosure may be applied.
[0026] 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.
[0027] 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 record applications, police text domicile information extraction applications, web browser applications, etc.
[0028] 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 household registration information from police texts), or it can be implemented as a single software or software module. No specific limitation is made here.
[0029] The server 103 may be a server that provides various services, such as a background server that provides household registration information extraction for 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 household registration information) to the terminal device.
[0030] In some cases, the method for extracting household registration information from a police call text based on a deep learning model provided in an embodiment 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 household registration information to be extracted" 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 household registration information from a police call text based on a deep learning model can also be respectively set in the terminal device 101 and the server 103.
[0031] In some cases, the method for extracting household registration information from police call texts based on a deep learning model provided in the embodiments of the present disclosure may be executed by the server 103. Accordingly, the device for extracting household registration information from police call texts based on a deep learning model may also be arranged in the server 103. In this case, the system architecture 100 may also not include the terminal device 101.
[0032] In some cases, the method for extracting household registration information from police call texts based on a deep learning model provided in the embodiments of the present disclosure may be executed by the terminal device 101. Accordingly, the device for extracting household registration information from police call texts based on a deep learning model may also be provided in the terminal device 101. In this case, the system architecture 100 may also not include the server 103.
[0033] 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, to provide a service for extracting the domicile information of the police text receiving and handling), or it can be implemented as a single software or software module. No specific limitation is made here.
[0034] 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.
[0035] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a method for extracting household registration information from a police call text based on a deep learning model according to the present disclosure. The method for extracting household registration information from a police call text based on a deep learning model comprises the following steps:
[0036] Step 201, obtain the alarm text of the registered residence information to be extracted.
[0037] In this embodiment, the execution subject of the method for extracting the registered residence information of the police receiving and handling text based on the deep learning model (for example, Figure 1 The server shown in the figure can obtain the household registration information receiving and handling text to be extracted from the local storage, or the execution subject can also remotely obtain the household registration information from other electronic devices (for example, Figure 1 The terminal device shown) obtains the alarm text of the household registration information to be extracted.
[0038] Here, the household registration information alarm handling 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 household registration information alarm handling text to be extracted can also be an 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.
[0039] Step 202, segmenting the text of the police call handling with the registered residence information to be extracted to obtain a corresponding word segmentation sequence.
[0040] In this embodiment, the above-mentioned execution subject may adopt various implementation methods to segment the text of the alarm reception and handling of the household registration information to be extracted to obtain the corresponding segmentation sequence. It should be noted that how to segment the text is an existing technology that has been widely studied and applied in this field, and will not be repeated here. For example, a segmentation method based on string matching, a segmentation method based on understanding, or a segmentation method based on statistics, etc. may be adopted. For example, segmenting the text of the alarm reception and handling of the household registration information to be extracted "Zhang San, native of Province A, City B, current native of Province C, City D, works for an environmental protection company" can obtain the segmentation sequence "Zhang San / native / Province A / City B / Current native / Province C / City D / Works / at / an / environmental / company".
[0041] Step 203: perform a household registration information classification operation on each word in the obtained word segmentation sequence.
[0042] In this embodiment, the execution subject may perform a household registration information classification operation on each segmentation in the segmentation sequence obtained in step 202. Here, the household registration information classification operation is to input the word vector corresponding to the segmentation into the household registration information classification model to obtain a classification result of whether the segmentation is household registration information.
[0043] Here, the household registration information classification model is pre-trained based on the deep learning model.
[0044] In this embodiment, the execution entity may first determine the word vector corresponding to the word segmentation by various implementation methods.
[0045] In some optional implementations, the word vector corresponding to the word segmentation may include N-dimensional components, where N is a positive integer, and each of the N-dimensional components corresponds to each word in the preset dictionary. In the process of determining the word vector corresponding to the word segmentation, the component corresponding to the word segmentation in each component of the word vector of the word segmentation may be set to a first preset value (e.g., 1); and the other components of the word vector corresponding to the word segmentation (i.e., the components corresponding to words in the preset dictionary other than the word segmentation) are set to a second preset value (e.g., 0).
[0046] In some optional implementations, the word vector corresponding to the word segmentation may include N-dimensional components, where N is a positive integer, and each of the N-dimensional components corresponds to each word in the preset dictionary. In the process of determining the word vector corresponding to the word segmentation, the execution subject may first calculate the term frequency-inverse document frequency index (TF-IDF, Term Frequency–Inverse Document Frequency) of the word segmentation in the household registration information receiving and handling text to be extracted, and then set the component corresponding to the word segmentation in the word vector corresponding to the word segmentation to the calculated term frequency-inverse document frequency index of the word segmentation, and finally set the other components of the word vector corresponding to the word segmentation (i.e., the components corresponding to words in the preset dictionary other than the word segmentation) to a third preset value (e.g., 0).
[0047] Then, the execution subject can input the word vector corresponding to the word segmentation into the household registration information classification model to obtain the classification result of whether the word segmentation is household registration information. For example, for each word segmentation sequence "Zhang San, whose ancestral home is in City B, Province A, claims that Li Si, whose current ancestral home is City D, Province C, owes him a salary of 10,000 yuan" corresponding to the household registration information reception and handling text to be extracted, "Zhang San, whose ancestral home is in City B, Province A, claims that Li Si, whose current ancestral home is in City D, Province C, owes him a salary of 10,000 yuan", input the word vector corresponding to the word segmentation into the pre-trained household registration information classification model to obtain the classification result of whether the word segmentation is household registration information. For specific results, please refer to Table 1, which shows the classification results obtained by inputting each word in the above word segmentation sequence into the above household registration information classification model.
[0048] Table 1
[0049] Participle Classification results Ancestor yes First yes Province yes Second yes city yes of no Zhang San no say no Current nationality yes C yes Province yes Man yes city yes of no Li Si no Arrears no That no salary no one no Ten thousand no Yuan no
[0050] Step 204, determining the household registration place information set corresponding to the household registration place information receiving and handling alarm text to be extracted according to the corresponding classification results in the word segmentation sequence for each word segmentation indicating that it is household registration place information.
[0051] Here, in step 203, a certain segmentation in the segmentation sequence is input into the household registration place information classification model to obtain a classification result indicating whether the segmentation is household registration place information. If a classification result indicating that it is household registration place information is obtained, then the segmentation is a household registration place information segmentation. In step 204, the above-mentioned execution subject can use various implementation methods to determine the household registration place information set corresponding to the household registration place information reception and handling text to be extracted according to each household registration place information segmentation in the segmentation sequence.
[0052] In some optional implementations, the execution subject may determine each household registration information word segment in the word segmentation sequence as household registration information in the household registration information set. This implementation is more suitable for each word segment in the word segmentation sequence obtained by word segmentation to be a relatively complete household registration information.
[0053] In some optional implementations, the execution subject may also merge the household registration information segmentations directly adjacent to each other in the segmentation sequence into one household registration information, and use the obtained household registration information as the household registration information in the household registration information set. This implementation is more suitable for the segmentation sequence obtained by segmentation, in which each segmentation is relatively short and cannot form a complete household registration information. Continuing with the above example of the household registration information to be extracted, "Zhang San, whose ancestral home is in Province A, City B, claims that Li Si, whose current ancestral home is in Province C, City D, owes him a salary of 10,000 yuan", it can be seen that the corresponding segmentation sequence is "Zhang San, whose ancestral home is in Province A, City B, claims that Li Si, whose current ancestral home is in Province C, City D, owes him a salary of 10,000 yuan". According to the classification results in Table 1, the household registration information segmentations including the following can be obtained: "ancestral home", "A", "Province", "B", "City", "Current ancestral home", "C", "Province", "D", "City". In order to form meaningful household registration information, we can merge the directly adjacent household registration information segmentations into household registration information according to their positions in the above segmentation sequence, and then obtain each household registration information in the household registration information set. For example, here we can get the following household registration information set {"ancestral home province A city B", "current home province C city D"}.
[0054] It should be noted that the household registration information receiving and handling text to be extracted may not include any household registration information, in which case the household registration information set corresponding to the household registration information receiving and handling text to be extracted may be empty. The household registration information receiving and handling text to be extracted may also include at least one household registration information, in which case the household registration information set corresponding to the household registration information receiving and handling text to be extracted may include at least one household registration information.
[0055] In some optional implementations, the household registration information classification model based on the deep learning model can be implemented as follows: Figure 3 The training steps shown are pre-trained. Please refer to Figure 3 , Figure 3 A process 300 of an embodiment of a training step according to the present disclosure is shown. The training step includes the following steps:
[0056] Here, the execution subject of the training step can be the same as the execution subject of the above-mentioned method for extracting the registered permanent residence information from the police text based on the deep learning model. In this way, after the execution subject of the training step obtains the registered permanent residence information classification model through training, the model parameters of the registered permanent residence information classification model can be stored locally in the above-mentioned execution subject, and the model parameters of the registered permanent residence information classification model obtained through the above-mentioned training can be read during the execution of the above-mentioned method for extracting the registered permanent residence information from the police text based on the deep learning model.
[0057] Here, the execution subject of the training step may also be different from the execution subject of the above-mentioned method for extracting the registered permanent residence information from the police call text based on the deep learning model. In this way, after the execution subject of the training step obtains the registered permanent residence information classification model through training, the execution subject of the training step may send the model parameters of the registered permanent residence information classification model to the execution subject of the above-mentioned method for extracting the registered permanent residence information from the police call text based on the deep learning model. In this way, the execution subject of the above-mentioned method for extracting the registered permanent residence information from the police call text based on the deep learning model may read the model parameters of the registered permanent residence information classification model received from the execution subject of the training step during the execution of the above-mentioned method for extracting the registered permanent residence information from the police call text based on the deep learning model.
[0058] Step 301: Obtain a training sample set.
[0059] Here, the execution subject of the training step may first obtain a set of training samples, wherein each training sample includes a word segmentation sequence obtained by segmenting the historical police call text and a tag information sequence corresponding to the word segmentation sequence, wherein the tag information is used to indicate whether the corresponding word in the word segmentation sequence is the household registration information.
[0060] As an example, a training sample may include a word segmentation sequence "Zhang San, whose ancestral home is in Province A and City B, claims that Li Si, whose current native place is Province C and City D, owes him a salary of 10,000 yuan" and an annotation information sequence "1 / 1 / 1 / 1 / 1 / 1 / 0 / 0 / 0 / 1 / 1 / 1 / 1 / 1 / 0 / 0 / 0 / 0 / 0 / 0 / 0 / 0", where "0" is used to indicate that the corresponding word is not the household registration place information, and "1" is used to indicate that the corresponding word is the household registration place information.
[0061] In practice, the historical police call handling texts can be segmented manually to obtain a segmentation sequence and each segmentation in the segmentation sequence can be labeled to obtain a corresponding labeling information sequence.
[0062] Step 302: determine each training sample whose corresponding word segmentation sequence in the training sample set includes the household registration place information word segmentation as a positive sample set.
[0063] Here, the household registration place information segmentation is a segmentation sequence in which the corresponding annotation information indicates that the segmentation is a segmentation of the household registration place information.
[0064] Step 303: Determine the text feature vector of each positive sample in the positive sample set according to the household registration information segmentations included in the segmentation sequence of each positive sample.
[0065] In this embodiment, the executor of the training step can determine the text feature vector of each positive sample in the positive sample set determined in step 302 according to each household registration information segmentation included in the segmentation sequence of the positive sample.
[0066] In some optional implementations, step 303 may be performed as follows: suppose that the preset dictionary includes N words, where N is a positive integer, then the text feature vector of the positive sample may include N-dimensional components, and each dimensional component in the above N-dimensional components corresponds one-to-one to each word in the preset dictionary. Determining the text feature vector of the positive sample may be performed as follows: for each household registration information segment in the segmentation sequence of the positive sample, the component corresponding to the household registration information segment in the text feature vector of the positive sample is set to a fourth preset value (e.g., 1), and each unassigned component in the text feature vector of the positive sample is set to a fifth preset value (e.g., 0), and the unassigned component is a component corresponding to the words of each household registration information segment in the segmentation sequence of the positive sample that belongs to the preset dictionary but does not belong to the positive sample.
[0067] To facilitate understanding, the following example is given: assuming that the preset dictionary includes 20 words, the positive sample includes the word segmentation sequence "Zhang San, whose ancestral home is in Province A and City B, claims to have defaulted on a salary of 10,000 yuan from Li Si, whose current native place is Province C and City D, and who has defaulted on a salary of 10,000 yuan" and the annotation information sequence "1 / 1 / 1 / 1 / 1 / 0 / 0 / 0 / 1 / 1 / 1 / 1 / 1 / 0 / 0 / 0 / 0 / 0 / 0 / 0 / 0 / 0", where "0" is used to indicate that the corresponding word is not the household registration place information, and "1" is used to indicate that the corresponding word is the household registration place information. Here, for each segmentation of the positive sample's segmentation sequence "Zhang San, whose ancestral home is in / A / Province / B / City / , claims that / Li Si, whose current ancestral home is in / C / Province / D / City / , owes / his / salary / 10,000 / yuan", if the segmentation is a household registration information segmentation, the component corresponding to the household registration information segmentation in the 20-dimensional text feature vector of the positive sample is set to 1. Specifically, the annotation information sequence corresponding to the segmentation sequence can be used to determine whether the segmentation is a household registration information segmentation. Therefore, from the above-mentioned annotation information sequence "Zhang San, whose ancestral home is in / A / Province / B / City / , claims that / Li Si, whose current ancestral home is in / C / Province / D / City / , owes / his / salary / 10,000 / yuan", it can be known that "ancestral home", "A", "Province", "B", "City", "Current ancestral home", "C" and "D" are household registration information segmentations. The components corresponding to the above household registration information segmentations in the preset dictionary are the 1st, 3rd, 7th, 8th, 12th, 16th, 18th, and 20th dimensions respectively. Here, the 1st, 3rd, 7th, 8th, 12th, 16th, 18th, and 20th dimensions in the 20-dimensional text feature vector of the positive sample can be set to 1 respectively. Next, the unassigned components in the text feature vector of the positive sample can be set to 0, that is, the components except the 1st, 3rd, 7th, 8th, 12th, 16th, 18th, and 20th dimensions are set to 0, and the following text feature vector is obtained: (1,0,1,0,0,0,1,1,0,0,0,1,0,0,0,1,0,1,0,1).
[0068] In some optional implementations, step 303 may also be performed as follows:
[0069] For each positive sample in the positive sample set, perform the following vector generation and assignment operations:
[0070] First, a text feature vector corresponding to the positive sample is generated. Here, each component in the generated text feature vector corresponds to each word in the preset dictionary.
[0071] Secondly, for each registered permanent residence information segment in the segmentation sequence of the positive sample, the component corresponding to the registered permanent residence information segment in the generated text feature vector is set to the word frequency-inverse text frequency index of the registered permanent residence information segment.
[0072] Finally, each unassigned component in the generated text feature vector is set to a preset value. Here, the unassigned component is the component corresponding to each household registration information segmentation word in the segmentation sequence that belongs to the preset dictionary but does not belong to the positive sample.
[0073] To facilitate understanding, we continue to use the above example. What is different from the above example is that in the text feature vector generated here, the 1st, 3rd, 7th, 8th, 12th, 16th, 18th, and 20th dimension components corresponding to "ancestral home", "A", "province", "B", "city", "current home", "C" and "D" are not set to 1, but are set to the word frequency-inverse text frequency index of "ancestral home", "A", "province", "B", "city", "current home", "C" and "D" as 0.72, 0.65, 0.52, 0.71, 0.66, 0.75, 0.4, and 0.19 respectively. Next, the unassigned components in the text feature vector of the positive sample can be set to 0, that is, all components except the 1st, 3rd, 7th, 8th, 12th, 16th, 18th, and 20th dimensions can be set to 0, and the following text feature vector can be obtained: (0.72, 0, 0.65, 0, 0, 0.52, 0.71, 0, 0, 0.66, 0, 0, 0.75, 0, 0.4, 0, 0.19).
[0074] Step 304, using the text feature vector of the positive sample in the positive sample set as input and the classification result indicating the household registration information as the corresponding expected output, train the initial deep learning model to obtain the household registration information classification model.
[0075] Here, with the positive sample set, the execution subject of the training step can use the text feature vector of the positive sample in the positive sample set as input, and use it as the corresponding expected output to indicate that it is the classification result of the registered permanent residence information, train the initial deep learning model, and obtain the registered permanent residence information classification model. Specifically, it can be done as follows:
[0076] First, the model structure of the initial deep learning model can be determined.
[0077] Here, the initial deep learning model may include various deep learning models. For example, the initial deep learning model may include at least one of the following: a convolutional neural network, a recurrent neural network, a long short-term memory network, and a conditional random field.
[0078] As an example, if the initial deep learning model is determined to be a convolutional neural network, here we can determine which layers the convolutional neural network includes, such as which convolutional layers, pooling layers, and fully connected layers are included, as well as the order of connection between layers. If a convolutional layer is included, the size of the convolution kernel and the convolution step of the convolutional layer can be determined. If a pooling layer is included, the pooling method can be determined.
[0079] Secondly, initial values of model parameters included in the initial deep learning model can be determined.
[0080] For example, if the initial deep learning model is determined to be a convolutional neural network, the convolution kernel parameters of the convolutional layer that may be included in the convolutional neural network can be initialized, the connection parameters of the fully connected layer can be initialized, and so on.
[0081] Finally, the positive samples in the positive sample set can be used to perform parameter adjustment operations until the preset training end condition is met. The parameter adjustment operation may include: inputting the text feature vector of the positive sample into the initial deep learning model to obtain the corresponding actual output result, and then calculating the difference between the actual output result obtained above and the classification result indicating that it is the household registration information, and adjusting the model parameters of the initial deep learning model based on the obtained difference. Here, the training end condition may include, for example, at least one of the following: the number of times the parameter adjustment operation is performed reaches the preset maximum number of training times, and the calculated difference is less than the preset difference threshold.
[0082] After the above parameter adjustment operation, the model parameters of the initial deep learning model are optimized, and the initial deep learning model after the above parameter optimization can be determined as the household registration information classification model. It should be noted that how to adjust and optimize the model parameters of the initial deep learning model based on the calculated differences is a prior art widely studied and applied in this field, which will not be described in detail here. For example, the gradient descent method can be used.
[0083] In some optional implementations, the process 300 may further include the following steps 305 and 306:
[0084] Step 305: input the preset negative sample feature vector into the household registration information classification model to obtain the corresponding actual output result.
[0085] Here, since the negative sample feature vector refers to a feature vector used to characterize the negative sample, and the negative sample is a training sample whose corresponding word segmentation sequence in the training sample set does not include the household registration information word segmentation. Since the corresponding word segmentation sequence of the negative sample does not include the household registration information word segmentation, the preset negative sample feature vector can be used to characterize all negative samples.
[0086] For another example, when the text feature vector of the positive sample adopts the first optional implementation method recorded in step 303, that is, the fourth preset value and the fifth preset value are used to represent the household registration information segmentation and the non-household registration information segmentation respectively, then the preset negative sample feature vector here can be a feature vector whose each dimension component is the fifth preset value. That is, for example, the text feature vector of the positive sample has 20 dimensions, and the fifth preset value is 0, then the preset negative sample feature vector can be: (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0).
[0087] For example, when the text feature vector of the positive sample adopts the second optional implementation method recorded in step 303, that is, using the word frequency-inverse text frequency index and preset values to represent the household registration information segmentation and non-household registration information segmentation respectively, then the preset negative sample feature vector here can be a feature vector in which each dimensional component is a preset value.
[0088] Step 306: Adjust the model parameters of the household registration place information classification model according to the difference between the actual output result obtained and the classification result indicating that the household registration place information is not.
[0089] By using the training steps shown in the above process 300, a household registration information classification model can be automatically generated, reducing the labor cost of generating the household registration information classification model. As time goes by, people's expressions will change, which will be reflected in the police text. In addition, new types of household registration information may also appear with the development of society. At this time, a new training sample set can be obtained and trained using the training steps to obtain an updated household registration information classification model to meet the current expression changes in the police text and the extraction of new household registration information.
[0090] The method provided by the above-mentioned embodiments of the present disclosure utilizes the household registration place information classification model to realize automatic extraction of household registration place information from the police text without manual operation, thereby reducing the cost of extracting household registration place information from the police text and improving the extraction speed of household registration place information from the police text.
[0091] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for extracting household registration information from a police call text based on a deep learning model. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0092] like Figure 4As shown, the household registration place information extraction device 400 of the alarm text based on the deep learning model of this embodiment includes: an acquisition unit 401, a word segmentation unit 402, a classification unit 403 and a determination unit 404. Among them, the acquisition unit 401 is configured to obtain the household registration place information alarm text to be extracted; the word segmentation unit 402 is configured to segment the above-mentioned household registration place information alarm text to be extracted to obtain a corresponding word segmentation sequence; the classification unit 403 is configured to perform the following household registration place information classification operation for each word segment in the obtained word segmentation sequence: input the word vector corresponding to the word segmentation into the household registration place information classification model to obtain a classification result of whether the word segmentation is the household registration place information, wherein the above-mentioned household registration place information classification model is pre-trained based on the deep learning model; the determination unit 404 is configured to determine the household registration place information set corresponding to the above-mentioned household registration place information alarm text to be extracted for each word segmentation indicating that it is the household registration place information according to the corresponding classification result in the above-mentioned word segmentation sequence.
[0093] In this embodiment, the specific processing of the acquisition unit 401, the word segmentation unit 402, the classification unit 403 and the determination unit 404 of the device for extracting the registered permanent residence information of the police text based on the deep learning model and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment are not repeated here.
[0094] In some optional implementations of the present embodiment, the household registration place information classification model based on the deep learning model can be pre-trained through the following training steps: obtaining a training sample set, wherein the training sample includes a segmentation sequence obtained by segmenting the historical police call text and a labeling information sequence corresponding to the segmentation sequence, wherein the labeling information is used to indicate whether the corresponding segmentation in the segmentation sequence is the household registration place information; determining each training sample whose corresponding segmentation sequence in the training sample set includes the household registration place information segmentation as a positive sample set, wherein the household registration place information segmentation is a segmentation of the household registration place information indicated by the corresponding labeling information in the segmentation sequence; determining the text feature vector of the positive sample according to each household registration place information segmentation included in the segmentation sequence of each positive sample in the positive sample set; using the text feature vector of the positive sample in the positive sample set as input, and using the classification result indicating that it is the household registration place information as the corresponding expected output, training the initial deep learning model to obtain the household registration place information classification model.
[0095] In some optional implementations of this embodiment, the above-mentioned training step may also include: inputting a preset negative sample feature vector into the above-mentioned household registration place information classification model to obtain a corresponding actual output result; adjusting the model parameters of the above-mentioned household registration place information classification model according to the difference between the actual output result obtained and the classification result used to indicate that it is not household registration place information.
[0096] In some optional implementations of the present embodiment, determining the text feature vector of the positive sample according to the household registration information segmentations included in the segmentation sequence of each positive sample in the positive sample set may include: for each positive sample in the positive sample set, performing the following vector generation and assignment operations: generating a text feature vector corresponding to the positive sample, wherein each component in the generated text feature vector corresponds one-to-one to each word in a preset dictionary; for each household registration information segmentation in the segmentation sequence of the positive sample, setting the component corresponding to the household registration information segmentation in the generated text feature vector to the term frequency-inverse text frequency index TF-IDF of the household registration information segmentation; and setting each unassigned component in the generated text feature vector to a preset value, wherein the unassigned component is the component corresponding to the word of each household registration information segmentation in the segmentation sequence that belongs to the preset dictionary but does not belong to the positive sample.
[0097] It should be noted that the implementation details and technical effects of each unit in the device for extracting household registration information from police texts based on a deep learning model 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.
[0098] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 suitable for implementing an electronic device of an embodiment of the present disclosure. Figure 5 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.
[0099] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. Various programs and data required for the operation of the system 500 are also stored in the RAM 503. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0100] The following components are connected to the I / O interface 505: an input section 506 including a touch screen, a handwriting tablet, a keyboard, or a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet.
[0101] 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 509. When the computer program is executed by the central processing unit (CPU) 501, 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.
[0102] 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++, Python, 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).
[0103] 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.
[0104] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a word segmentation unit, a classification unit, and a determination unit. The names of these units do not constitute a limitation on the units themselves in certain circumstances. For example, the acquisition unit may also be described as a "unit for acquiring the alarm text of the registered residence information to be extracted."
[0105] 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 it may exist independently and not be 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 household registration information alarm reception text to be extracted; performs word segmentation on the above household registration information alarm reception text to be extracted to obtain a corresponding word segmentation sequence; for each word segment in the obtained word segmentation sequence, performs the following household registration information classification operation: inputs the word vector corresponding to the word segmentation into the household registration information classification model to obtain a classification result of whether the word segmentation is household registration information, wherein the above household registration information classification model is pre-trained based on a deep learning model; and determines the household registration information set corresponding to the above household registration information alarm reception text to be extracted for each word segmentation indicating that it is household registration information according to the corresponding classification results in the above word segmentation sequence.
[0106] 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 household registration information from police call text based on a deep learning model, comprising: Obtain the police handling text of the registered residence information to be extracted; Segmenting the text of the household registration information received and handled to obtain a corresponding word segmentation sequence; For each word segment in the obtained word segmentation sequence, the following household registration place information classification operation is performed: determining a word vector corresponding to the word segment, the word vector corresponding to the word segment includes N-dimensional components, wherein N is a positive integer, and each dimensional component in the above N-dimensional components corresponds one-to-one to each word in the preset dictionary; inputting the word vector corresponding to the word segment into the household registration place information classification model to obtain a classification result of whether the word segment is household registration place information, wherein the household registration place information classification model is pre-trained based on a deep learning model; Determine the household registration place information set corresponding to the household registration place information reception and handling alarm text to be extracted according to the corresponding classification results in the word segmentation sequence for each word segmentation indicating that it is household registration place information; The household registration information classification model based on the deep learning model is pre-trained through the following training steps: Acquire a training sample set, wherein the training sample includes a segmentation sequence obtained by segmenting the historical police call text and a tag information sequence corresponding to the segmentation sequence, wherein the tag information is used to indicate whether a corresponding segmentation in the segmentation sequence is household registration information; Determine each training sample whose corresponding segmentation sequence in the training sample set includes a household registration place information segmentation as a positive sample set, wherein the household registration place information segmentation is a segmentation sequence in which corresponding annotation information indicates that the segmentation is a segmentation of the household registration place information; Determine the text feature vector of the positive sample according to each household registration place information segmentation included in the segmentation sequence of each positive sample in the positive sample set; wherein, assuming that the preset dictionary includes N words, wherein N is a positive integer, the text feature vector of the positive sample includes N-dimensional components, and each dimensional component in the above N-dimensional components corresponds one-to-one to each word in the preset dictionary; Taking the text feature vector of the positive sample in the positive sample set as input and the classification result indicating the household registration information as the corresponding expected output, training the initial deep learning model to obtain the household registration information classification model; The training of the initial deep learning model to obtain the household registration information classification model includes: First, determine the model structure of the initial deep learning model, the initial deep learning model includes at least one of the following: convolutional neural network, recurrent neural network, long short-term memory network, conditional random field; Secondly, determining the initial values of the model parameters included in the initial deep learning model; Finally, for the positive samples in the positive sample set, a parameter adjustment operation is performed until a preset training end condition is met, and the parameter adjustment operation includes: inputting the text feature vector of the positive sample into the initial deep learning model to obtain the corresponding actual output result, and then calculating the difference between the actual output result obtained and the classification result indicating that it is the household registration information, and adjusting the model parameters of the initial deep learning model based on the obtained difference; Here, the training end condition includes at least one of the following: the number of times the parameter adjustment operation is performed reaches a preset maximum number of training times, and the calculated difference is less than a preset difference threshold; After the parameter adjustment operation, the model parameters of the initial deep learning model are optimized, and the initial deep learning model after the parameter optimization is determined as the household registration information classification model; The training step further includes: inputting a preset negative sample feature vector into the household registration place information classification model to obtain a corresponding actual output result; adjusting a model parameter of the household registration place information classification model according to a difference between the obtained actual output result and a classification result indicating that the result is not household registration place information; The determining of the text feature vector of each positive sample in the positive sample set according to each household registration place information segmentation included in the segmentation sequence of the positive sample includes: For each positive sample in the positive sample set, the following vector generation and assignment operations are performed: a text feature vector corresponding to the positive sample is generated, wherein each component in the generated text feature vector corresponds one-to-one to each word in the preset dictionary; for each registered place information segment in the segmentation sequence of the positive sample, the component corresponding to the registered place information segment in the generated text feature vector is set to the term frequency-inverse text frequency index TF-IDF of the registered place information segment; and each unassigned component in the generated text feature vector is set to a preset value, and the unassigned component is the component corresponding to the word of each registered place information segment in the segmentation sequence that belongs to the preset dictionary but does not belong to the positive sample.
2. A device for extracting registered permanent residence information from police call texts based on a deep learning model, comprising: An acquisition unit is configured to acquire the alarm handling text of the registered residence information to be extracted; A word segmentation unit is configured to segment the household registration information alarm reception text to be extracted to obtain a corresponding word segmentation sequence; The classification unit is configured to perform the following household registration place information classification operation for each segmentation in the obtained segmentation sequence: determine the word vector corresponding to the segmentation, the word vector corresponding to the segmentation includes N-dimensional components, wherein N is a positive integer, and each dimensional component in the above N-dimensional components corresponds to each word in a preset dictionary one by one; input the word vector corresponding to the segmentation into a household registration place information classification model to obtain a classification result of whether the segmentation is household registration place information, wherein the household registration place information classification model is pre-trained based on a deep learning model; A determination unit is configured to determine the household registration place information set corresponding to the household registration place information reception and handling alarm text to be extracted according to each segmentation word in the segmentation sequence for indicating that the segmentation word is household registration place information; The household registration information classification model based on the deep learning model is pre-trained through the following training steps: Acquire a training sample set, wherein the training sample includes a segmentation sequence obtained by segmenting the historical police call text and a tag information sequence corresponding to the segmentation sequence, wherein the tag information is used to indicate whether a corresponding segmentation in the segmentation sequence is household registration information; Determine each training sample whose corresponding segmentation sequence in the training sample set includes a household registration place information segmentation as a positive sample set, wherein the household registration place information segmentation is a segmentation sequence in which corresponding annotation information indicates that the segmentation is a segmentation of the household registration place information; Determine the text feature vector of the positive sample according to each household registration place information segmentation included in the segmentation sequence of each positive sample in the positive sample set; wherein, assuming that the preset dictionary includes N words, wherein N is a positive integer, the text feature vector of the positive sample includes N-dimensional components, and each dimensional component in the above N-dimensional components corresponds one-to-one to each word in the preset dictionary; Taking the text feature vector of the positive sample in the positive sample set as input and the classification result indicating the household registration information as the corresponding expected output, training the initial deep learning model to obtain the household registration information classification model; The training of the initial deep learning model to obtain the household registration information classification model includes: First, determine the model structure of the initial deep learning model, the initial deep learning model includes at least one of the following: convolutional neural network, recurrent neural network, long short-term memory network, conditional random field; Secondly, determining the initial values of the model parameters included in the initial deep learning model; Finally, for the positive samples in the positive sample set, a parameter adjustment operation is performed until a preset training end condition is met, and the parameter adjustment operation includes: inputting the text feature vector of the positive sample into the initial deep learning model to obtain the corresponding actual output result, and then calculating the difference between the actual output result obtained and the classification result indicating that it is the household registration information, and adjusting the model parameters of the initial deep learning model based on the obtained difference; Here, the training end condition includes at least one of the following: the number of times the parameter adjustment operation is performed reaches a preset maximum number of training times, and the calculated difference is less than a preset difference threshold; After the parameter adjustment operation, the model parameters of the initial deep learning model are optimized, and the initial deep learning model after the parameter optimization is determined as the household registration information classification model; The training step further includes: inputting a preset negative sample feature vector into the household registration place information classification model to obtain a corresponding actual output result; adjusting a model parameter of the household registration place information classification model according to a difference between the obtained actual output result and a classification result indicating that the result is not household registration place information; The determining of the text feature vector of each positive sample in the positive sample set according to each household registration place information segmentation included in the segmentation sequence of the positive sample includes: For each positive sample in the positive sample set, the following vector generation and assignment operations are performed: a text feature vector corresponding to the positive sample is generated, wherein each component in the generated text feature vector corresponds one-to-one to each word in the preset dictionary; for each registered place information segment in the segmentation sequence of the positive sample, the component corresponding to the registered place information segment in the generated text feature vector is set to the term frequency-inverse text frequency index TF-IDF of the registered place information segment; and each unassigned component in the generated text feature vector is set to a preset value, and the unassigned component is the component corresponding to the word of each registered place information segment in the segmentation sequence that belongs to the preset dictionary but does not belong to the positive sample.
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 as claimed in 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.
