CN112307269B - Intelligent analysis system and method for human-object relationship in novel - Google Patents
Intelligent analysis system and method for human-object relationship in novel Download PDFInfo
- Publication number
- CN112307269B CN112307269B CN202010855856.2A CN202010855856A CN112307269B CN 112307269 B CN112307269 B CN 112307269B CN 202010855856 A CN202010855856 A CN 202010855856A CN 112307269 B CN112307269 B CN 112307269B
- Authority
- CN
- China
- Prior art keywords
- novel
- module
- character
- event
- characters
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
- G06F40/221—Parsing markup language streams
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/237—Lexical tools
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Machine Translation (AREA)
Abstract
The invention discloses an intelligent analysis system and method for character relations in novels, which comprises a character name unifying module, a character list extracting module, a novel space three-dimensional coordinate system establishing module, a character relation function establishing module, a novel basic processing and event extracting module, a character relation initial graph establishing module, a character relation evolution module and a character relation model output module.
Description
Technical Field
The invention relates to an intelligent text analysis system, in particular to an intelligent analysis system and method for character relations in novels.
Background
With the development of artificial intelligence technology, literature creation, movie creation, game production and the like try to improve the development of cultural industry by applying big data and artificial intelligence technology. The figure relation of the novel can be analyzed by adopting an artificial intelligence technology, and the artificial intelligence analysis method has a certain positive effect on literary creation, movie and television creation and game production. The prior character relation analysis mainly depends on manual description and can not be shown through graphs. By means of the artificial intelligence technology, the character relations in all works of a writer can be analyzed and displayed in a graphical mode, and the artificial intelligence technology has certain positive significance in the field of intelligent auxiliary writing.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an intelligent analysis system and method for the character relationship in the novel, which comprises a character name unifying module, a character list extracting module, a novel space three-dimensional coordinate system establishing module, a character relationship function establishing module, a novel basic processing and event extracting module, a character relationship initial graph establishing module, a character relationship evolution module and a character relationship model outputting module;
the figure name unifying module is used for unifying the places where pronouns appear in the whole novel into the names of figures, adding the names of the figures uniformly for the places where the names of the figures are omitted, and unifying the names of the figures into one name for the places where the names of the figures are not uniform;
the character list extraction module is used for sorting and listing different characters appearing in the whole novel according to the appearance times from more to less;
the novel space three-dimensional coordinate system establishing module is used for establishing a novel space three-dimensional coordinate system;
the character relation function establishing module is used for establishing a character relation function according to three dimensions of familiarity, friendship and love;
the novel basic processing and event extracting module is used for segmenting words, marking parts of speech, respectively extracting dialogs, verbs, psychology and voice, marking typical character relations and extracting an event list;
the character relation initial graph establishing module is used for establishing the initial relation among all characters in the novel when the word distance is 0, the event distance is 0 and the time distance is 0;
the character relationship evolution module is used for establishing the character relationship among all characters corresponding to each event after the occurrence in the novel space three-dimensional coordinate system;
and the character relationship model output module is used for outputting a character relationship evolution model in a novel space three-dimensional coordinate system.
Further, the novel basic processing and event extracting module comprises a word segmentation module, a part-of-speech tagging module, a dialogue extracting module, a verb extracting module, a psychology extracting module, a voice-over extracting module, a typical character relation extracting module and an event list extracting module.
Furthermore, the character relation function establishing module uses a functionRepresenting two personsAnda relation between, the function canIs self-defined, whereinThe expression of the relation of the family is shown,the method represents the friendly situation of the user,showing a love.
Furthermore, the novel space three-dimensional coordinate system establishing module establishes a novel space three-dimensional coordinate system according to three dimensions of word distance, event distance and time distance.
Furthermore, the minimum value of the event distance is 0, the maximum value is the number of events in the novel, the event distance is from 1, and each integer is marked for 1 time; the minimum value of the word distance is 0, the maximum value is the number of characters contained in the novel, and the word distance is marked according to each event, namely, the word distance scale is marked according to the number of the characters used by each event; the minimum value of the time distance is 0, the maximum value is the time range spanned by the novel, the time distance is marked from 0 according to the time distance of the occurrence of the event.
An intelligent analysis method for human relations in novels, comprising the following steps:
s1: inputting a plurality of novels of a certain writer into the system;
s2: selecting a first novel to process, unifying the places where pronouns appear in the novel into the names of the characters, adding the names of the characters in a unified manner for the places where the names of the characters are omitted, and unifying the names of the characters into one name for the places where the names of the characters are not unified;
s3: sorting different characters appearing in the whole novel according to the appearance times from more to less;
s4: respectively calculating the minimum value and the maximum value of the word distance, the event distance and the time distance to construct a novel space three-dimensional coordinate system;
s5: performing word segmentation processing on the novel, labeling the part of speech, respectively extracting dialogue, verb, psychological activity and voice, labeling typical character relations according to analysis, extracting an event list, labeling each event according to a time generation sequence on a pitch axis of a three-dimensional coordinate system of the novel space, and labeling word distance and time distance in the three-dimensional coordinate system of the novel space according to the number of characters and the time distance corresponding to the events;
s6: in a three-dimensional coordinate system of a novel space, when the word distance is 0, the event distance is 0 and the time distance is 0, constructing the initial relation among all characters in the novel, and connecting the two charactersAndthe relationship between is expressed as,The expression of the relation of the family is shown,the method represents the friendly situation of the user,expressing love;
s7: in a three-dimensional coordinate system of a novel space, constructing the corresponding character relationship after each event occurs, wherein every two charactersAndthe relationship between them is expressed as,The expression of the relation of the family is shown,the method represents the friendly situation of the user,expressing love to obtain the relationship of the characters, and expressing the relationship of the characters in a graph;
s8: and circulating to sequentially process other novels of the writer according to the steps of S2-S8 until the last novel stops, and finally outputting the character relationship evolution model of all works of the writer.
The implementation of the invention has the following beneficial effects: the system can analyze the writing style of a writer more conveniently, more time-saving and more labor-saving, analyzes the character relations in all works of a writer, describes the relation evolution model among characters through graphs and is helpful for assisting writing to a certain extent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a block diagram of an intelligent analysis system for human relationships in novels according to the present invention.
Fig. 2 is a schematic diagram of a three-dimensional coordinate system of a novel space provided by the invention.
FIG. 3 is a graph of relationships between people after an event is generated as provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
An intelligent analysis system and method for the relationship between characters in a novel comprises a character name unifying module, a character list extracting module, a novel space three-dimensional coordinate system establishing module, a character relationship function establishing module, a novel basic processing and event extracting module, a character relationship initial graph establishing module, a character relationship evolution module and a character relationship model output module;
the figure name unifying module is used for unifying the places where pronouns appear in the whole novel into the names of figures, adding the names of the figures uniformly for the places where the names of the figures are omitted, and unifying the names of the figures into one name for the places where the names of the figures are not uniform;
the character list extraction module is used for sorting and listing different characters appearing in the whole novel according to the appearance times from more to less;
the novel space three-dimensional coordinate system establishing module is used for establishing a novel space three-dimensional coordinate system;
the character relation function establishing module is used for establishing a character relation function according to three dimensions of familiarity, friendship and love;
the novel basic processing and event extracting module is used for segmenting words, marking parts of speech, respectively extracting dialogs, verbs, psychology and voice, marking typical character relations and extracting an event list;
the character relation initial graph establishing module is used for establishing the initial relation among all characters in the novel when the word distance is 0, the event distance is 0 and the time distance is 0;
the character relationship evolution module is used for establishing the character relationship among all characters corresponding to each event after the occurrence in the novel space three-dimensional coordinate system;
and the character relation model output module is used for outputting a character relation evolution model in a novel space three-dimensional coordinate system.
Further, the novel basic processing and event extracting module comprises a word segmentation module, a part-of-speech tagging module, a dialogue extracting module, a verb extracting module, a psychology extracting module, a voice-over extracting module, a typical character relation extracting module and an event list extracting module.
Further, the character relation function establishing module uses a functionRepresenting two personsAndthe function can be customized, whereinThe expression of the relation of the family is shown,the method represents the friendly situation of the user,showing a love.
Furthermore, the novel space three-dimensional coordinate system establishing module establishes a novel space three-dimensional coordinate system according to three dimensions of word distance, event distance and time distance.
Furthermore, the minimum value of the event distance is 0, the maximum value is the number of events in the novel, the event distance starts from 1, and each integer is labeled for 1 time; the minimum value of the word distance is 0, the maximum value is the number of characters contained in the novel, and the word distance is marked according to each event, namely the word distance scale is marked according to the number of the characters used by each event; the minimum value of the time distance is 0, the maximum value is the time range spanned by the novel, the time distance is from 0, and the marking is carried out according to the time distance of the occurrence of the event.
An intelligent analysis method for human relations in novels, comprising the following steps:
s1: inputting a plurality of novels of a certain writer into the system;
s2: selecting a first novel to process, unifying the places where pronouns appear in the novel into the names of the characters, adding the names of the characters in a unified way for the places where the names of the characters are omitted, and unifying the names of the characters into one name for the places where the names of the characters are not unified;
s3: sorting different characters appearing in the whole novel according to the appearance times from more to less;
s4: respectively calculating the minimum value and the maximum value of the word distance, the event distance and the time distance to construct a novel space three-dimensional coordinate system;
s5: performing word segmentation processing on the novel, labeling the part of speech, respectively extracting dialogue, verb, psychological activity and voice, labeling typical character relations according to analysis, extracting an event list, labeling each event according to a time generation sequence on a pitch axis of a three-dimensional coordinate system of the novel space, and labeling word distance and time distance in the three-dimensional coordinate system of the novel space according to the number of characters and the time distance corresponding to the events;
s6: in a three-dimensional coordinate system of a novel space, when the word distance is 0, the event distance is 0 and the time distance is 0, constructing the initial relation among all characters in the novel, and connecting the two charactersAndthe relationship between is expressed as,The expression of the relation of the family is shown,the method represents the friendly situation of the user,expressing love;
s7: in the novel space IIIIn the dimensional coordinate system, the corresponding character relationship after each event occurs is constructed, wherein every two charactersAndthe relationship between is expressed as,The expression of the relation of the family is shown,the method represents the friendly situation of the user,expressing love to obtain character relationship, and expressing with figure;
s8: and circulating to sequentially process other novels of the writer according to the steps of S2-S8 until the last novel stops, and finally outputting the character relationship evolution model of all works of the writer.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (2)
1. An intelligent analysis system for the character relationship in the novel is characterized by comprising a character name unifying module, a character list extracting module, a novel space three-dimensional coordinate system establishing module, a character relationship function establishing module, a novel basic processing and event extracting module, a character relationship initial graph establishing module, a character relationship evolution module and a character relationship model output module;
the figure name unifying module is used for unifying the places where pronouns appear in the whole novel into the names of figures, adding the names of the figures uniformly for the places where the names of the figures are omitted, and unifying the names of the figures into one name for the places where the names of the figures are not uniform;
the figure list extraction module is used for sorting and listing different figures appearing in the whole novel according to the appearance times from more to less;
the novel space three-dimensional coordinate system establishing module is used for establishing a novel space three-dimensional coordinate system;
the character relation function establishing module is used for establishing a character relation function according to three dimensions of familiarity, friendship and love;
the novel basic processing and event extracting module is used for segmenting words, marking parts of speech, respectively extracting dialogs, verbs, psychology and voice, marking typical character relations and extracting an event list;
the character relation initial graph establishing module is used for establishing the initial relation among all characters in the novel when the word distance is 0, the event distance is 0 and the time distance is 0;
the character relationship evolution module is used for establishing the character relationship among all corresponding characters after each event occurs in a novel space three-dimensional coordinate system;
the character relation model output module is used for outputting a character relation evolution model in a novel space three-dimensional coordinate system;
the novel basic processing and event extracting module comprises a word segmentation module, a part-of-speech tagging module, a dialogue extracting module, a verb extracting module, a psychology extracting module, a voice-over extracting module, a typical character relation extracting module and an event list extracting module;
the character relation function building module is used for representing the relation between two characters px and py by using a function Rpxpy (a, f, l), and the function is self-defined, wherein a represents familiarity, f represents friendship, and l represents love;
the novel space three-dimensional coordinate system establishing module is used for establishing a novel space three-dimensional coordinate system according to three dimensions of word distance, event distance and time distance;
the minimum value of the event distance is 0, the maximum value is the number of events in the novel, the event distance is started from 1, and each integer is marked for 1 time; the minimum value of the word distance is 0, the maximum value is the number of characters contained in the novel, and the word distance is marked according to each event, namely, the word distance scale is marked according to the number of the characters used by each event; the minimum value of the time distance is 0, the maximum value is the time range spanned by the novel, the time distance is marked from 0 according to the time distance of the occurrence of the event.
2. An intelligent analysis method for human relations in novels, comprising the following steps:
s1: inputting a plurality of novels of a certain writer into the system;
s2: selecting a first novel to process, unifying the places where pronouns appear in the novel into the names of the characters, adding the names of the characters in a unified manner for the places where the names of the characters are omitted, and unifying the names of the characters into one name for the places where the names of the characters are not unified;
s3: sorting different characters appearing in the whole novel according to the appearance times from more to less;
s4: respectively calculating the minimum value and the maximum value of the word distance, the event distance and the time distance to construct a novel space three-dimensional coordinate system;
s5: performing word segmentation processing on the novel, labeling the part of speech, respectively extracting dialogue, verb, psychological activity and voice, labeling typical character relations according to analysis, extracting an event list, labeling each event according to a time generation sequence on a pitch axis of a three-dimensional coordinate system of the novel space, and labeling word distance and time distance in the three-dimensional coordinate system of the novel space according to the number of characters and the time distance corresponding to the events;
s6: in a three-dimensional coordinate system of a novel space, when a word pitch is 0, an event pitch is 0 and a time pitch is 0, constructing an initial relationship among all characters in the novel, and expressing the relationship between two characters px and py as Rpxpy (a, f, l), wherein a represents familiarity, f represents friendship, and l represents love;
s7: in a fiction space three-dimensional coordinate system, constructing a corresponding character relationship after each event occurs, wherein the relationship between every two characters px and py is represented as Rpxpy (a, f and l), a represents familiarity, f represents friendship, l represents love, the character relationship is obtained, and the character relationship is represented by a graph;
s8: and circulating to process other fiction of the writer according to the steps from S2 to S8 in sequence until the last fiction stops, and finally outputting the character relationship evolution model of all works of the writer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010855856.2A CN112307269B (en) | 2020-08-24 | 2020-08-24 | Intelligent analysis system and method for human-object relationship in novel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010855856.2A CN112307269B (en) | 2020-08-24 | 2020-08-24 | Intelligent analysis system and method for human-object relationship in novel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112307269A CN112307269A (en) | 2021-02-02 |
CN112307269B true CN112307269B (en) | 2022-09-30 |
Family
ID=74483671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010855856.2A Active CN112307269B (en) | 2020-08-24 | 2020-08-24 | Intelligent analysis system and method for human-object relationship in novel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112307269B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190755A (en) * | 2021-05-11 | 2021-07-30 | 两比特(北京)科技有限公司 | Cloud system persona analysis system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9106812B1 (en) * | 2011-12-29 | 2015-08-11 | Amazon Technologies, Inc. | Automated creation of storyboards from screenplays |
CN105005578A (en) * | 2015-05-21 | 2015-10-28 | 中国电子科技集团公司第十研究所 | Multimedia target information visual analysis system |
CN107924414A (en) * | 2015-09-16 | 2018-04-17 | 英特尔公司 | Promote to carry out multimedia integration at computing device and the personal of story generation aids in |
CN109783659A (en) * | 2017-10-06 | 2019-05-21 | 迪斯尼企业公司 | Based on the pre- visual automation Storyboard of natural language processing and 2D/3D |
CN109960789A (en) * | 2017-12-22 | 2019-07-02 | 广州帷策智能科技有限公司 | Character relation analysis method based on natural language processing |
CN110457691A (en) * | 2019-07-26 | 2019-11-15 | 北京影谱科技股份有限公司 | Feeling curve analysis method and device based on drama role |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7690997B2 (en) * | 2005-10-14 | 2010-04-06 | Leviathan Entertainment, Llc | Virtual environment with formalized inter-character relationships |
US9245022B2 (en) * | 2010-12-30 | 2016-01-26 | Google Inc. | Context-based person search |
CN109271525A (en) * | 2018-08-08 | 2019-01-25 | 北京百度网讯科技有限公司 | For generating the method, apparatus, equipment and computer readable storage medium of knowledge mapping |
-
2020
- 2020-08-24 CN CN202010855856.2A patent/CN112307269B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9106812B1 (en) * | 2011-12-29 | 2015-08-11 | Amazon Technologies, Inc. | Automated creation of storyboards from screenplays |
CN105005578A (en) * | 2015-05-21 | 2015-10-28 | 中国电子科技集团公司第十研究所 | Multimedia target information visual analysis system |
CN107924414A (en) * | 2015-09-16 | 2018-04-17 | 英特尔公司 | Promote to carry out multimedia integration at computing device and the personal of story generation aids in |
CN109783659A (en) * | 2017-10-06 | 2019-05-21 | 迪斯尼企业公司 | Based on the pre- visual automation Storyboard of natural language processing and 2D/3D |
CN109960789A (en) * | 2017-12-22 | 2019-07-02 | 广州帷策智能科技有限公司 | Character relation analysis method based on natural language processing |
CN110457691A (en) * | 2019-07-26 | 2019-11-15 | 北京影谱科技股份有限公司 | Feeling curve analysis method and device based on drama role |
Non-Patent Citations (1)
Title |
---|
基于事件关联的人物关系可视化研究;谢伟强;《中国优秀博硕士学位论文全文数据库 社会科学Ⅱ辑》;20200215;文第1-4章 * |
Also Published As
Publication number | Publication date |
---|---|
CN112307269A (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109271631B (en) | Word segmentation method, device, equipment and storage medium | |
KR101937778B1 (en) | System, method and recording medium for machine-learning based korean language conversation using artificial intelligence | |
CN112101045B (en) | Multi-mode semantic integrity recognition method and device and electronic equipment | |
CN110795913B (en) | Text encoding method, device, storage medium and terminal | |
CN114297399A (en) | Knowledge graph generation method, knowledge graph generation system, storage medium and electronic equipment | |
CN112307269B (en) | Intelligent analysis system and method for human-object relationship in novel | |
CN113360001A (en) | Input text processing method and device, electronic equipment and storage medium | |
CN111524043A (en) | Method and device for automatically generating litigation risk assessment questionnaire | |
CN116187320A (en) | Training method and related device for intention recognition model | |
CN114694224A (en) | Customer service question and answer method, customer service question and answer device, customer service question and answer equipment, storage medium and computer program product | |
CN112582073B (en) | Medical information acquisition method, device, electronic equipment and medium | |
CN112966076A (en) | Intelligent question and answer generating method and device, computer equipment and storage medium | |
CN112307754A (en) | Statement acquisition method and device | |
CN117236676A (en) | RPA process mining method and device based on multi-mode event extraction | |
CN117275466A (en) | Business intention recognition method, device, equipment and storage medium thereof | |
CN116580704A (en) | Training method of voice recognition model, voice recognition method, equipment and medium | |
CN116702746A (en) | Cross-platform multi-theme irony and cause identification method, device, equipment and medium | |
CN111008267A (en) | Intelligent dialogue method and related equipment | |
CN115270746A (en) | Question sample generation method and device, electronic equipment and storage medium | |
CN115113967A (en) | Question feedback method and device, electronic equipment and storage medium | |
CN114840680A (en) | Entity relationship joint extraction method, device, storage medium and terminal | |
CN114925206A (en) | Artificial intelligence body, voice information recognition method, storage medium and program product | |
CN112233648A (en) | Data processing method, device, equipment and storage medium combining RPA and AI | |
CN111292741A (en) | Intelligent voice interaction robot | |
EP4303716A1 (en) | Method for generating data input, data input system and computer program |
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 |