CN115794889B - Personal relationship processing method and device, electronic equipment and computer readable storage medium - Google Patents

Personal relationship processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115794889B
CN115794889B CN202211656196.0A CN202211656196A CN115794889B CN 115794889 B CN115794889 B CN 115794889B CN 202211656196 A CN202211656196 A CN 202211656196A CN 115794889 B CN115794889 B CN 115794889B
Authority
CN
China
Prior art keywords
identity
person
determining
candidate
principal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211656196.0A
Other languages
Chinese (zh)
Other versions
CN115794889A (en
Inventor
曾亮
王世彪
王志海
喻波
刘旺
董晓斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wondersoft Technology Co Ltd
Original Assignee
Beijing Wondersoft Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wondersoft Technology Co Ltd filed Critical Beijing Wondersoft Technology Co Ltd
Priority to CN202211656196.0A priority Critical patent/CN115794889B/en
Publication of CN115794889A publication Critical patent/CN115794889A/en
Application granted granted Critical
Publication of CN115794889B publication Critical patent/CN115794889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a personal relationship processing method, a device, electronic equipment and a computer readable storage medium, relating to the field of data processing, wherein the method comprises the following steps: acquiring analysis instructions aiming at case information; if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information; when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, and determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relationship between the principal and the first candidate person; integrating the association personnel and the first candidate personnel based on the gender and the first identity relation to obtain a final association person; and determining a second identity relation between the final associator and the principal, and storing the final associator and the second identity relation. The embodiment of the invention reduces the workload of users and improves the case handling efficiency.

Description

Personal relationship processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of personal relationship processing technology, and in particular, to a personal relationship processing method, a personal relationship processing apparatus, an electronic device, and a computer readable storage medium.
Background
When analyzing data related to a case, identity information of different persons exists in case information, a large number of dialogues of persons exist in case related information, and a user wants to acquire suspected relations among case persons from the case information. In practical application, the personnel go to analyze piece by piece, so that the workload is high, the labor cost and the time cost are wasted, and the case handling efficiency is low.
Disclosure of Invention
In view of the above, embodiments of the present invention have been made to provide a personal relationship processing method, a personal relationship processing apparatus, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a personal relationship processing method, which includes:
acquiring analysis instructions aiming at case information;
If the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information;
when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, and determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relationship between the principal and the first candidate person;
integrating the association person and the first candidate person based on the gender and the first identity relation to obtain a final association person;
and determining a second identity relation between the final association person and the principal, and storing the final association person and the second identity relation.
In one or more embodiments, the determining an associated person with whom the principal is associated based on the target predicate and determining a gender of the associated person includes:
determining a third identity relationship based on the target predicate;
extracting context information of the target predicate;
determining that associated personnel exist in the context information;
And determining the gender of the associated person based on the third identity relationship.
In one or more embodiments, the determining that there is an associated person from the context information includes:
performing name recognition on the context information to obtain candidate names;
and filtering the candidate names to obtain target names of the associated persons.
In one or more embodiments, the determining a first candidate person from a preset identity information database based on the principal and determining a first identity relationship of the principal with the first candidate person includes:
acquiring a household address of the party;
determining candidate identity information which is the same as the household address from the identity information database;
determining target identity information of a first candidate person from the candidate identity information based on the name matching degree;
a first identity relationship of the principal with the first candidate person is determined based on the target identity information.
In one or more embodiments, the determining candidate identity information that is the same as the home address from the identity information database includes:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
And matching in the filtered identity information database based on the household address to obtain candidate identity information.
In one or more embodiments, the determining target identity information of the first candidate person from the candidate identity information based on the name matching degree includes:
and matching the principal with the candidate identity information based on the first two words of the name to obtain target identity information of the first candidate person.
In one or more embodiments, the determining a first identity relationship of the principal with the first candidate person based on the target identity information includes:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
In one or more embodiments, the integrating the associated person and the first candidate person based on the gender and the first identity relationship to obtain a final associated person includes:
combining the associated personnel and the first candidate personnel to obtain a personnel collection;
and removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
In one or more embodiments, further comprising:
if the analysis instruction does not include the principal, determining a second candidate person from the identity information database based on any person when the identity information of the any person is detected;
determining a fourth identity relationship of the any person with the second candidate person;
and storing the second candidate person and the fourth identity relation.
Correspondingly, the embodiment of the invention also discloses a personal relationship processing device, which comprises:
the acquisition module is used for acquiring analysis instructions aiming at the case information;
the detection module is used for performing predicate detection and identity information detection on the case information if the analysis instruction comprises a principal;
the processing module is used for determining an associated person associated with the principal based on the target predicate when the target predicate in the case information is detected, determining the sex of the associated person, determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relation between the principal and the first candidate person;
the integration module is used for integrating the association person and the first candidate person based on the gender and the first identity relation to obtain a final association person;
A first determination module for determining a second identity relationship of the final associated person with the principal;
and the storage module is used for storing the final association person and the second identity relationship.
In one or more embodiments, the processing module includes:
a first determination submodule for determining a third identity relationship based on the target predicate;
the extraction module is used for extracting the context information of the target predicate;
a second determining submodule, configured to determine that there is an associated person from the context information;
and the third determination submodule is used for determining the gender of the associated person based on the third identity relation.
In one or more embodiments, the second processing sub-module is specifically configured to:
performing name recognition on the context information to obtain candidate names;
and filtering the candidate names to obtain target names of the associated persons.
In one or more embodiments, the processing module further comprises:
an acquisition sub-module for acquiring the home address of the party;
a fourth determining sub-module, configured to determine candidate identity information identical to the home address from the identity information database;
A fifth determining sub-module, configured to determine target identity information of the first candidate person from the candidate identity information based on a name matching degree;
a sixth determination sub-module for determining a first identity relationship of the principal with the first candidate person based on the target identity information.
In one or more embodiments, the fourth determination submodule is specifically configured to:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
and matching in the filtered identity information database based on the household address to obtain candidate identity information.
In one or more embodiments, the fifth determining submodule is specifically configured to:
and matching the principal with the candidate identity information based on the first two words of the name to obtain target identity information of the first candidate person.
In one or more embodiments, the sixth determination submodule is specifically configured to:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
In one or more embodiments, the integration module is specifically configured to:
Combining the associated personnel and the first candidate personnel to obtain a personnel collection;
and removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
In one or more embodiments, further comprising:
the second determining module is used for determining a second candidate person from the identity information database based on any person when the identity information of any person is detected if the analysis instruction does not include the principal;
a third determining module, configured to determine a fourth identity relationship between the any person and the second candidate person;
the storage module is further configured to store the second candidate person and the fourth identity relationship.
Correspondingly, the embodiment of the invention discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, performs the steps of the above-described personal relationship processing method embodiments.
Accordingly, embodiments of the present invention disclose a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the above-described personal relationship processing method embodiments.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, an analysis instruction for case information is acquired; if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information; when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, determining a first candidate person from a preset identity information database based on the principal, determining a first identity relation between the principal and the first candidate person, integrating the associated person and the first candidate person based on the sex and the first identity relation to obtain a final associated person, determining a second identity relation between the final associated person and the principal, and storing the final associated person and the second identity relation. Therefore, the application program is used for extracting the personal relationship, the complexity and the data quantity of the data are filtered for one time, and then the user can further confirm the personnel to be investigated on the basis, so that the workload of the user is reduced, and the case handling efficiency is improved.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a personal relationship processing method of the present invention;
FIG. 2 is a logic flow diagram of one embodiment of a personal relationship processing method of the present invention;
fig. 3 is a block diagram of an embodiment of a personal relationship processing apparatus of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
One of the core concepts of the embodiment of the invention is that an analysis instruction aiming at case information is obtained; if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information; when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, determining a first candidate person from a preset identity information database based on the principal, determining a first identity relation between the principal and the first candidate person, integrating the associated person and the first candidate person based on the sex and the first identity relation to obtain a final associated person, determining a second identity relation between the final associated person and the principal, and storing the final associated person and the second identity relation. Therefore, the application program is used for extracting the personal relationship, the complexity and the data quantity of the data are filtered for one time, and then the user can further confirm the personnel to be investigated on the basis, so that the workload of the user is reduced, and the case handling efficiency is improved.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a personal relationship processing method of the present invention may be applied to analyzing the identity relationship of a person, for example, the communication between the police and the party records a plurality of persons mentioned by the party, and the police needs to analyze the identity relationship between the party and each person, so that the method may be used for analysis; for another example, if a certain identity information file includes identity information of a plurality of persons, the identity relationship between each person can be analyzed by using the method, and so on. The method specifically comprises the following steps:
step 101, an analysis instruction for case information is acquired.
The case information may include identity information of a person, where the identity information includes, but is not limited to, name, gender, identification card number, home address, etc. The types of case information include, but are not limited to, the communication content and the identity information file.
Furthermore, the method can be realized through an application program, the application program can be installed in the terminal, a user can actively initiate an analysis instruction in the terminal, the application program can automatically initiate the analysis instruction when meeting a certain condition, and other modes can be adopted, and in practical application, the method can be set according to practical requirements, and the embodiment of the invention is not limited to the above.
And 102, if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information.
If the principal is included in the analysis instructions, predicate detection and identity information detection may be performed on the case information based on the principal. Wherein, the predicate may be a predicate call representing an identity relationship, such as a parent-child, a mother-child, etc.; identity information detection includes, but is not limited to, detecting whether identity information is present in the case information.
Step 103, when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, and determining the sex of the associated person, and determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relationship between the principal and the first candidate person.
When any predicate (called a target predicate for convenience of description) in the case information is detected, an associated person associated with the principal can be determined according to the target predicate, and then the sex of the associated person can be determined.
For example, if the case information records that the predicate of the principal and the person a is "sister", it is determined that the person a is an associated person and that the sex of the person a is "female".
Further, it is also possible to determine a person possibly associated with the principal (for convenience of description, referred to as "first candidate") from a preset identity information database, and then determine an identity relationship (for convenience of description, referred to as "first identity relationship") between the principal and the first candidate. Wherein, at least one piece of identity information is stored in a preset identity information database.
For example, the identity information database stores the identity information of the person B, C, D, and when the identity information is detected, it is determined that the party may be associated with the person C, and then further determines the identity relationship between the party and the person C.
In an embodiment of the present invention, the determining, based on the target predicate, an associated person with whom the principal is associated, and determining a sex of the associated person, includes:
determining a third identity relationship based on the target predicate;
extracting context information of the target predicate;
determining that associated personnel exist in the context information;
and determining the gender of the associated person based on the third identity relationship.
Specifically, upon detection of the target predicate, an identity relationship (noted as "third identity relationship" for ease of description) of the principal and the associated person may be determined from the target predicate. Meanwhile, extracting the context information including the target predicate, for example, the context information includes: the target predicate and the first three sentences and the last three sentences of the target predicate. And then extracting identity information from the context information, wherein the identity information is the identity information of the associated personnel. And then determining the sex of the associated personnel according to the determined third identity relation and the identity information.
Wherein the determining that the associated personnel exist in the context information comprises:
performing name recognition on the context information to obtain candidate names;
and filtering the candidate names to obtain target names of the associated persons.
Specifically, after the context information is obtained, name recognition may be performed on the context information to obtain candidate names possibly associated with the principal, and then the names are filtered to filter out foreseeable unqualified names, thereby obtaining the names of the associated persons (for convenience of description, referred to as "target names").
The name may be identified by adopting HanLP, or by adopting an application program containing HanLP, or by calling an API (Application Programming Interface ) of HanLP, or by identifying in other manners, and may be set according to actual requirements in practical application, which is not limited by the embodiment of the present invention.
In an embodiment of the present invention, the determining, based on the principal, a first candidate person from a preset identity information database, and determining a first identity relationship between the principal and the first candidate person, includes:
Acquiring a household address of the party;
determining candidate identity information which is the same as the household address from the identity information database;
determining target identity information of a first candidate person from the candidate identity information based on the name matching degree;
a first identity relationship of the principal with the first candidate person is determined based on the target identity information.
Specifically, the home address of the principal may be obtained from the identity information of the principal, then identity information identical to the home address is determined from the identity information database (for convenience of description, referred to as "candidate identity information"), name matching is performed, the candidate identity information satisfying the preset condition is used as the identity information of the first candidate (for convenience of description, referred to as "target identity information"), and the identity relationship between the principal and the first candidate (for convenience of description, referred to as "first identity relationship") may be determined according to the target identity information.
Wherein the determining candidate identity information identical to the home address from the identity information database comprises:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
And matching in the filtered identity information database based on the household address to obtain candidate identity information.
Specifically, when the identity information of the same home address is determined, the identity information can be determined according to the identity card number in the identity information. Namely, the home address is extracted from the ID card number, and then the home address is matched.
Further, in order to improve the accuracy of matching, the identity information database may be filtered before the home address is extracted, the obviously wrong identification card number is filtered, so as to obtain a filtered identity information database, and then the home address is matched in the filtered identity information database, so as to obtain the identity information identical to the home address of the party.
It should be noted that, the matching may be performed on the identity information database based on the identification card number to obtain the matched identity information, and then the matched identity information is filtered to obtain the candidate identity information. In practical applications, the order of matching and filtering may be adjusted according to practical requirements, which is not limited by the embodiment of the present invention.
The determining the target identity information of the first candidate person from the candidate identity information based on the name matching degree comprises the following steps:
And matching the principal with the candidate identity information based on the first two words of the name to obtain target identity information of the first candidate person.
Specifically, when performing name matching, matching may be performed according to the first two words of the name, so as to obtain the name of the first candidate person, thereby obtaining the identity information (for convenience of description, referred to as "target identity information") of the first candidate person.
For example, in the identity information with the same home address of the party named "Zhang Xiaohu", the name in the candidate identity information a is named "Zhang Xiaolong", and the name in the candidate identity information B is named "tiger", then the association between "Zhang Xiaohu" and "Zhang Xiaolong" is greater than the association between "Zhang Xiaohu" and "Zhang Dahu" according to the actual name rule, so Zhang Xiaolong is used as the first candidate, and the identity information of Zhang Xiaolong is used as the target identity information.
Wherein said determining a first identity relationship of said principal with said first candidate person based on said target identity information comprises:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
Specifically, in determining the first identity relationship of the principal with the first candidate person, the determination may be based on the gender and age in the target identity information.
If the age difference is not less than the age difference threshold and the gender is the same, the first identity relationship comprises: father, son, mother and woman.
If the age difference is not less than the age difference threshold, the gender is different, and the male age is greater than the female age, the first identity relationship comprises: male and female parents; if the male age is less than the female age, the first identity relationship comprises: a mother and a child.
If the age difference is less than the age difference threshold and the gender is the same, the first identity relationship comprises: brothers, sisters.
If the age difference is less than the age difference threshold, the gender is different, and the male age is greater than the female age, the first identity relationship comprises: a brothers; if the male age is less than the female age, the first identity relationship comprises: sisters.
It should be noted that, the first identity relationship may be other identity relationships besides the foregoing, and in practical application, the first identity relationship may be set according to practical requirements, which is not limited in the embodiment of the present invention.
And 104, integrating the associated person and the first candidate person based on the gender and the first identity relationship to obtain a final associated person.
After the first identity relationship is determined, the associated person and the first candidate person may be integrated according to the gender and the first identity relationship, thereby obtaining a final associated person associated with the principal.
In the embodiment of the present invention, the integrating the associated person and the first candidate person based on the gender and the first identity relationship to obtain a final associated person includes:
combining the associated personnel and the first candidate personnel to obtain a personnel collection;
and removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
Specifically, all the determined associated persons and the first candidate persons are combined to obtain a person collection, then the person collection is de-duplicated and filtered according to the gender and the first identity relationship, and the same and repeated persons are filtered out, so that the final associated person is obtained.
Step 105, determining a second identity relation between the final associator and the principal, and storing the final associator and the second identity relation.
After the final relationship is determined, the identity relationship between the final relationship and the principal (for convenience of description, the final relationship is denoted as a second identity relationship) can be determined according to the identity information database, and then the final relationship and the second identity relationship are stored.
In an embodiment of the present invention, after step 105, the method may further include:
if the analysis instruction does not include the principal, determining a second candidate person from the identity information database based on any person when the identity information of the any person is detected;
determining a fourth identity relationship of the any person with the second candidate person;
and storing the second candidate person and the fourth identity relation.
Specifically, if the analysis instruction does not include a principal, all persons in the case information can be analyzed, when the identity information of any person is detected, a candidate person (for convenience of description, denoted as a second candidate person) can be determined from the identity information database based on the any person, then the identity relationship (for convenience of description, denoted as a fourth identity relationship) between the any person and the second candidate person is determined, and the second candidate person and the fourth identity relationship are stored. That is, any person may be treated as a principal, and the specific process is substantially the same as steps 101 to 105, and will not be described here.
For ease of understanding, FIG. 2 shows a logic flow diagram of an embodiment of the present invention to analyze instructions including examples of principal agents. Specifically, in response to the analysis instruction, predicate detection and identity information detection are performed on the case information.
Predicate analysis: extracting target predicates, determining identity relations according to the target predicates, extracting context information of the target predicates to conduct name recognition to obtain a plurality of candidate names, filtering the candidate names to obtain target names of association personnel, and determining the gender of the association personnel according to the identity relations.
Identity information detection: obtaining a household address of a principal, filtering an identity information database to obtain a filtered identity information database, obtaining candidate identity information identical to the household address from the filtered identity information database, matching the name of the principal with the candidate identity information based on the first two words of the name to obtain target identity information of a first candidate, determining the gender and age of the target identity information, and determining the first identity relation between the target identity information and the principal according to the gender and the age.
Combining and de-duplicating the data obtained by predicate analysis and the data obtained by identity information detection to obtain final associated personnel, and storing the final associated personnel in a database.
In the embodiment of the invention, an analysis instruction for case information is acquired; if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information; when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, determining a first candidate person from a preset identity information database based on the principal, determining a first identity relation between the principal and the first candidate person, integrating the associated person and the first candidate person based on the sex and the first identity relation to obtain a final associated person, determining a second identity relation between the final associated person and the principal, and storing the final associated person and the second identity relation. Therefore, the application program is used for extracting the personal relationship, the complexity and the data quantity of the data are filtered for one time, and then the user can further confirm the personnel to be investigated on the basis, so that the workload of the user is reduced, and the case handling efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 3, a block diagram of an embodiment of a personal relationship processing apparatus of the present invention is shown, and may specifically include the following modules:
an obtaining module 301, configured to obtain an analysis instruction for case information;
a detection module 302, configured to perform predicate detection and identity information detection on the case information if the analysis instruction includes a principal;
a processing module 303, configured to determine, when a target predicate in the case information is detected, an associated person associated with the principal based on the target predicate, and determine a sex of the associated person, and determine, based on the principal, a first candidate person from a preset identity information database, and determine a first identity relationship between the principal and the first candidate person;
An integration module 304, configured to integrate the associated person and the first candidate person based on the gender and the first identity relationship, so as to obtain a final associated person;
a first determining module 305 for determining a second identity relationship of the final associated person with the principal;
and the storage module 306 is configured to store the final association person and the second identity relationship.
In an embodiment of the present invention, the processing module includes:
a first determination submodule for determining a third identity relationship based on the target predicate;
the extraction module is used for extracting the context information of the target predicate;
a second determining submodule, configured to determine that there is an associated person from the context information;
and the third determination submodule is used for determining the gender of the associated person based on the third identity relation.
In an embodiment of the present invention, the second processing sub-module is specifically configured to:
performing name recognition on the context information to obtain candidate names;
and filtering the candidate names to obtain target names of the associated persons.
In an embodiment of the present invention, the processing module further includes:
an acquisition sub-module for acquiring the home address of the party;
A fourth determining sub-module, configured to determine candidate identity information identical to the home address from the identity information database;
a fifth determining sub-module, configured to determine target identity information of the first candidate person from the candidate identity information based on a name matching degree;
a sixth determination sub-module for determining a first identity relationship of the principal with the first candidate person based on the target identity information.
In an embodiment of the present invention, the fourth determining submodule is specifically configured to:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
and matching in the filtered identity information database based on the household address to obtain candidate identity information.
In an embodiment of the present invention, the fifth determining submodule is specifically configured to:
and matching the principal with the candidate identity information based on the first two words of the name to obtain target identity information of the first candidate person.
In an embodiment of the present invention, the sixth determining submodule is specifically configured to:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
In an embodiment of the present invention, the integration module is specifically configured to:
combining the associated personnel and the first candidate personnel to obtain a personnel collection;
and removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
In an embodiment of the present invention, the method further includes:
the second determining module is used for determining a second candidate person from the identity information database based on any person when the identity information of any person is detected if the analysis instruction does not include the principal;
a third determining module, configured to determine a fourth identity relationship between the any person and the second candidate person;
the storage module is further configured to store the second candidate person and the fourth identity relationship.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
the personal relationship processing method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes the processes of the personal relationship processing method embodiment when being executed by the processor, can achieve the same technical effects, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the embodiment of the personal relationship processing method and can achieve the same technical effects, and in order to avoid repetition, the description is omitted.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of a personal relationship processing method and a personal relationship processing apparatus provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (16)

1. A personal relationship processing method, the method comprising:
acquiring analysis instructions aiming at case information;
if the analysis instruction comprises a principal, performing predicate detection and identity information detection on the case information, wherein the predicate is a predicate title representing an identity relationship;
when a target predicate in the case information is detected, determining an associated person associated with the principal based on the target predicate, determining the sex of the associated person, and determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relationship between the principal and the first candidate person;
integrating the association person and the first candidate person based on the gender and the first identity relation to obtain a final association person;
determining a second identity relationship between the final associator and the principal, and storing the final associator and the second identity relationship;
wherein said determining a first candidate person from a preset identity information database based on said principal and determining a first identity relationship of said principal with said first candidate person comprises:
Acquiring a household address of the party; determining candidate identity information which is the same as the household address from the identity information database; matching the principal with the candidate identity information based on the first two words of the name to obtain target identity information of a first candidate person; a first identity relationship of the principal with the first candidate person is determined based on the target identity information.
2. The personal relationship processing method of claim 1, wherein the determining that an associated person exists with the principal based on the target predicate and determining a gender of the associated person comprises:
determining a third identity relationship based on the target predicate;
extracting context information of the target predicate;
determining that associated personnel exist in the context information;
and determining the gender of the associated person based on the third identity relationship.
3. The personal relationship processing method of claim 2, wherein said determining from the context information that there is an associated person comprises:
performing name recognition on the context information to obtain candidate names;
And filtering the candidate names to obtain target names of the associated persons.
4. The personal relationship processing method according to claim 1, wherein said determining candidate identity information identical to the home address from the identity information database includes:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
and matching in the filtered identity information database based on the household address to obtain candidate identity information.
5. The method of personal relationship processing of claim 1, wherein the determining a first identity relationship of the principal with the first candidate person based on the target identity information comprises:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
6. The personal relationship processing method according to claim 1, wherein the integrating the associated person and the first candidate person based on the gender and the first identity relationship to obtain a final associated person includes:
combining the associated personnel and the first candidate personnel to obtain a personnel collection;
And removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
7. The personal relationship processing method according to any one of claims 1 to 6, characterized by further comprising:
if the analysis instruction does not include the principal, determining a second candidate person from the identity information database based on any person when the identity information of the any person is detected;
determining a fourth identity relationship of the any person with the second candidate person;
and storing the second candidate person and the fourth identity relation.
8. A personal relationship processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring analysis instructions aiming at the case information;
the detection module is used for carrying out predicate detection and identity information detection on the case information if the analysis instruction comprises a principal, wherein the predicate is a predicate title representing an identity relationship;
the processing module is used for determining an associated person associated with the principal based on the target predicate when the target predicate in the case information is detected, determining the sex of the associated person, determining a first candidate person from a preset identity information database based on the principal, and determining a first identity relation between the principal and the first candidate person;
The integration module is used for integrating the association person and the first candidate person based on the gender and the first identity relation to obtain a final association person;
a first determination module for determining a second identity relationship of the final associated person with the principal;
an acquisition sub-module for acquiring the home address of the party;
a fourth determining sub-module, configured to determine candidate identity information identical to the home address from the identity information database;
a fifth determining sub-module, configured to match the principal with the candidate identity information based on the first two words of the name, to obtain target identity information of the first candidate person;
a sixth determination submodule for determining a first identity relation between the principal and the first candidate person based on the target identity information;
and the storage module is used for storing the final association person and the second identity relationship.
9. The personal relationship processing apparatus of claim 8, wherein the processing module comprises:
a first determination submodule for determining a third identity relationship based on the target predicate;
the extraction module is used for extracting the context information of the target predicate;
A second determining submodule, configured to determine that there is an associated person from the context information;
and the third determination submodule is used for determining the gender of the associated person based on the third identity relation.
10. The personal relationship processing apparatus of claim 9, wherein the second determination submodule is specifically configured to:
performing name recognition on the context information to obtain candidate names;
and filtering the candidate names to obtain target names of the associated persons.
11. The personal relationship processing apparatus of claim 8, wherein the fourth determination submodule is specifically configured to:
filtering the identity information database based on the identity card number to obtain a filtered identity information database;
and matching in the filtered identity information database based on the household address to obtain candidate identity information.
12. The apparatus for personal relationship processing according to claim 8, wherein the sixth determination submodule is specifically configured to:
a first identity relationship of the principal to the first candidate person is determined based on the gender and age in the target identity information.
13. The personal relationship processing apparatus of claim 8, wherein the integration module is specifically configured to:
combining the associated personnel and the first candidate personnel to obtain a personnel collection;
and removing the duplication of the personnel collection based on the gender and the first identity relation to obtain a final associated person.
14. The personal relationship processing apparatus according to any one of claims 8 to 13, further comprising:
the second determining module is used for determining a second candidate person from the identity information database based on any person when the identity information of any person is detected if the analysis instruction does not include the principal;
a third determining module, configured to determine a fourth identity relationship between the any person and the second candidate person;
the storage module is further configured to store the second candidate person and the fourth identity relationship.
15. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of the personal relationship processing method of any one of claims 1 to 7.
16. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the personal relationship processing method of any of claims 1 to 7.
CN202211656196.0A 2022-12-22 2022-12-22 Personal relationship processing method and device, electronic equipment and computer readable storage medium Active CN115794889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211656196.0A CN115794889B (en) 2022-12-22 2022-12-22 Personal relationship processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211656196.0A CN115794889B (en) 2022-12-22 2022-12-22 Personal relationship processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115794889A CN115794889A (en) 2023-03-14
CN115794889B true CN115794889B (en) 2023-09-01

Family

ID=85426340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211656196.0A Active CN115794889B (en) 2022-12-22 2022-12-22 Personal relationship processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115794889B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776544A (en) * 2016-11-24 2017-05-31 四川无声信息技术有限公司 Character relation recognition methods and device and segmenting method
CN109361895A (en) * 2017-12-11 2019-02-19 罗普特(厦门)科技集团有限公司 The searching method and system of suspect relationship personnel
CN111798344A (en) * 2020-07-01 2020-10-20 北京金堤科技有限公司 Method and device for determining subject name, electronic equipment and storage medium
CN114239561A (en) * 2021-12-10 2022-03-25 北京天眼查科技有限公司 Supply relation obtaining method and device, storage medium and electronic equipment
CN114491286A (en) * 2021-12-27 2022-05-13 深圳云天励飞技术股份有限公司 Target person analysis method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100228664A1 (en) * 2009-03-04 2010-09-09 United Parcel Service Of America, Inc. Identity validation for financial transactions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776544A (en) * 2016-11-24 2017-05-31 四川无声信息技术有限公司 Character relation recognition methods and device and segmenting method
CN109361895A (en) * 2017-12-11 2019-02-19 罗普特(厦门)科技集团有限公司 The searching method and system of suspect relationship personnel
CN111798344A (en) * 2020-07-01 2020-10-20 北京金堤科技有限公司 Method and device for determining subject name, electronic equipment and storage medium
CN114239561A (en) * 2021-12-10 2022-03-25 北京天眼查科技有限公司 Supply relation obtaining method and device, storage medium and electronic equipment
CN114491286A (en) * 2021-12-27 2022-05-13 深圳云天励飞技术股份有限公司 Target person analysis method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
关于建立全国在逃人员信息系统与人口信息系统联系的研究;桑平;警察技术(05);全文 *

Also Published As

Publication number Publication date
CN115794889A (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN106446816B (en) Face recognition method and device
US10824874B2 (en) Method and apparatus for processing video
CN105653537B (en) Paging query method and device for database application system
CN103678637A (en) Method and device for acquiring test question information
US20110125746A1 (en) Dynamic machine assisted informatics
CN110309251B (en) Text data processing method, device and computer readable storage medium
CN104537341A (en) Human face picture information obtaining method and device
CN109165574B (en) Video detection method and device
CN109358898B (en) Information processing method and device, electronic equipment and storage medium
CN109697231A (en) A kind of display methods, system, storage medium and the processor of case document
CN108108346B (en) Method and device for extracting theme characteristic words of document
CN111338692A (en) Vulnerability classification method and device based on vulnerability codes and electronic equipment
CN110990541A (en) Method and device for realizing question answering
US9665574B1 (en) Automatically scraping and adding contact information
CN107330427B (en) Picture processing method and device
CN113568934B (en) Data query method and device, electronic equipment and storage medium
CN110634018A (en) Feature depiction method, recognition method and related device for lost user
CN115794889B (en) Personal relationship processing method and device, electronic equipment and computer readable storage medium
WO2015074493A1 (en) Method and apparatus for filtering out low-frequency click, computer program, and computer readable medium
CN110196924B (en) Method and device for constructing characteristic information base and method and device for tracking target object
CN109002528B (en) Data import method, device and storage medium
CN105843890B (en) Knowledge base-based big data and common data oriented data acquisition method and system
JP7070665B2 (en) Information processing equipment, control methods, and programs
CN116501733A (en) Data product generation method, device, equipment and storage medium
CN106572126B (en) Active equipment number calculation method and server

Legal Events

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