Text information classification method, system, device and readable storage medium

By matching trigger words and syntactic analysis, a trigger word dictionary is constructed to classify foreign affairs event text information, which solves the problem of difficulty in identifying and classifying foreign affairs event text information in the existing technology, and achieves efficient and accurate text information processing.

CN113111661BActive Publication Date: 2024-09-10TURING AI INST NANJING CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010020598.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-09
Publication Date
2024-09-10
Estimated Expiration
2040-01-09

AI Technical Summary

Technical Problem

Existing technology cannot effectively identify and classify key information in foreign event texts, resulting in low analysis efficiency and low accuracy. Manual identification is inefficient and costly. Machine learning relies on a large number of sample training and has data sparse problems.

Method used

By obtaining text information, matching trigger words to determine the classification of foreign affairs events, using trigger word dictionaries and syntactic analysis to classify text information, including the classification of outbound events, incoming events and non-foreign affairs events, building a trigger word dictionary and performing syntactic analysis to improve Classification accuracy.

Benefits of technology

It improves the classification efficiency and accuracy of foreign event text information, simplifies the sentence structure, reduces the complexity of analysis, and solves the problem of difficult classification in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113111661B
    Figure CN113111661B
Patent Text Reader

Abstract

The present application provides a text information classification method, system, device and readable storage medium, wherein the text information classification method comprises: obtaining text information; matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences, wherein the trigger words are contained in a trigger word dictionary; based on the matching results, classifying the text information into foreign affairs events; storing the classification results in a database and / or displaying the classification results. The categories of the foreign affairs event classification include: outbound visits, incoming visits, and non-foreign affairs events. The present application can effectively reduce the difficulty of analyzing foreign affairs events while ensuring the efficiency and accuracy of processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile communication technology, and in particular to a text information classification method, system, device and readable storage medium. Background Art

[0002] Generally, foreign affairs event texts are highly complex. Current text processing technology cannot effectively identify and classify key information in foreign affairs event texts, which is not conducive to the efficient analysis of foreign affairs events.

[0003] In existing solutions, text information classification mostly adopts manual recognition or machine learning. Among them, manual recognition is usually inefficient, has high labor costs, is time-consuming and labor-intensive, and does not have the ability to process large-scale text in real time; while machine learning can process large-scale text in real time, it relies on a large number of sample training, has a serious data sparsity problem, and has low accuracy.

[0004] Therefore, how to effectively reduce the difficulty of analyzing foreign affairs events while ensuring the efficiency and accuracy of processing has become a technical problem that technical personnel in this field hope to solve. Summary of the invention

[0005] In view of the shortcomings of the prior art described above, the purpose of this application is to provide a text information classification method, system, device and readable storage medium to solve the problem in the prior art of how to effectively reduce the difficulty of analyzing foreign affairs events while ensuring the efficiency and accuracy of processing.

[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a text information classification method, comprising the following steps: acquiring text information; matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences; wherein the trigger words are included in a trigger word dictionary; based on the matching results, classifying the text information into foreign affairs events; the categories of the foreign affairs event classification include: outbound visits, incoming visits, and non-foreign affairs events; storing the classification results in a database and / or displaying the classification results.

[0007] In certain embodiments of the first aspect of the present application, the step of classifying the text information based on the matching result includes: if the match is successful and the trigger word belongs to a first classification type that can directly classify foreign affairs events, the text information is determined as a visiting event or visiting event classification pre-associated with the first classification type; if the match is successful and the trigger word belongs to a second classification type that can indirectly classify foreign affairs events, the event sentence is syntactically analyzed to obtain the syntactic relationship between each word in the event sentence, and the relevant information is obtained based on the syntactic relationship and the relevant entity objects of each role extracted from the event sentence. Based on the grammatical features of the trigger word, the semantics of the trigger word, the country attributes associated with the role entity objects, and the event location extracted from the event sentence and the country attributes associated with it, the text information is classified as an outbound event or an inbound event; if the match fails or the trigger word belongs to a third classification type that cannot be classified as a foreign affairs event through a trigger word dictionary, the event sentence is syntactically analyzed to obtain the verbs in the event sentence and the syntactic relationship between the words, and the text information is classified as an outbound event or an inbound event according to the semantics of the verbs and the syntactic relationship between the words.

[0008] In certain implementations of the first aspect of the present application, the role entity object is formed by integrating entity names belonging to the same role in the event statement.

[0009] In certain embodiments of the first aspect of the present application, each word in each event sentence corresponds to an entity name, and the entity name includes: name, position, organization and / or company, and location.

[0010] In certain embodiments of the first aspect of the present application, the integration step includes: segmenting the event sentence based on role names, conjunctions or prepositions; integrating entity names belonging to the same role in the segmented event sentence to form a role entity object for each role.

[0011] In certain embodiments of the first aspect of the present application, the step of classifying the text information as an outbound event or an incoming event based on the grammatical features related to the trigger word obtained by the syntactic relationship and each role entity object extracted from the event sentence, the semantics of the trigger word, the country attributes associated with each role entity object, and the event location extracted from the event sentence and its associated country attributes includes: judging the execution identity of each relevant role entity object related to the trigger word in grammatical features relative to the trigger word based on the semantics of the trigger word; the execution identity includes: the visiting party and the visited party; determining the similarities and differences in the country attributes between the visiting party or the visited party and the event location based on the execution identity and country attributes of each role entity object, and the event location and its country attributes, and classifying foreign affairs events accordingly.

[0012] In certain embodiments of the first aspect of the present application, the step of performing syntactic analysis on the event sentence to obtain the verbs in the event sentence and the syntactic relationship between each word, and classifying the text information as an outgoing event or an incoming event according to the semantics of the verbs and the syntactic relationship between each word includes: performing syntactic analysis on the event sentence using dependency syntactic analysis to determine the verbs and their child nodes in the event sentence, and determining the child node as the agent or the patient of the foreign affairs event according to the syntactic relationship between the child node and the verb; classifying the text information into foreign affairs events according to the meaning of the verb, and the agent and the patient, so as to classify it into other event classifications included in the foreign affairs event classification.

[0013] In certain embodiments of the first aspect of the present application, the step of matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences includes: performing sentence processing on the text information to determine whether each sentence contains key information through pattern matching, and determining the sentence containing the key information as a candidate sentence; matching trigger words from the candidate sentences according to the trigger word dictionary to obtain candidate sentences containing trigger words, and determining the candidate sentences containing trigger words as event sentences.

[0014] In certain implementations of the first aspect of the present application, the key foreign affairs information includes: time information, role information, and location information.

[0015] In certain embodiments of the first aspect of the present application, the acquired text information is preprocessed.

[0016] In certain embodiments of the first aspect of the present application, the step of storing the classification results in a database and / or displaying the classification results includes: corresponding each classification result to a corresponding classification category color and displaying it, or corresponding each classification result to a corresponding classification category column and displaying it.

[0017] In certain embodiments of the first aspect of the present application, it also includes performing a syntactic analysis on the event sentence based on the matching results to obtain the syntactic relationship between the words in the event sentence, and extracting the elements in the event sentence based on at least the syntactic relationship between the words and the semantics of the trigger word.

[0018] In certain embodiments of the first aspect of the present application, the method further includes matching the extracted elements with the element types according to preset element types, storing the matched element types in a database and / or displaying the matched element types.

[0019] The second aspect of the present application also provides a method for constructing a trigger word dictionary, comprising the following steps: obtaining at least one text information related to a foreign affairs event; performing statistical analysis on the at least one text information to obtain keywords whose frequency of appearance in the at least one text information is higher than a preset value; constructing trigger word classification types semantically related to each of the keywords, and a trigger word dictionary is composed of a set of trigger words corresponding to each trigger word classification type; wherein the trigger word classification types include a first classification type, a second classification type, and a third classification type.

[0020] In certain embodiments of the second aspect of the present application, the first classification type includes outbound visit events and inbound visit events.

[0021] The third aspect of the present application also provides a text information classification system, including: a communication unit for acquiring text information; a processing unit for matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences; wherein the trigger words are included in a trigger word dictionary; and, based on the matching results, classifying the text information into foreign affairs events; the categories of the foreign affairs event classification include: outbound events, incoming events, and non-foreign affairs events; a storage unit and / or a display unit for storing the classification results in a database and / or displaying the classification results.

[0022] In certain embodiments of the third aspect of the present application, the processing unit classifies the text information into foreign affairs events based on the matching result, including: if the match is successful and the trigger word belongs to a first classification type that can directly classify foreign affairs events, the text information is determined as a visiting event or visiting event classification pre-associated with the first classification type; if the match is successful and the trigger word belongs to a second classification type that can indirectly classify foreign affairs events, the event sentence is syntactically analyzed to obtain the syntactic relationship between each word in the event sentence, and the role entity objects extracted from the event sentence are obtained according to the syntactic relationship. The text information is classified as an outbound event or an inbound event based on the grammatical features of the trigger word, the semantics of the trigger word, the country attributes associated with each role entity object, and the event location and the country attributes associated with the event extracted from the event sentence; if the match fails or the trigger word belongs to a third classification type that cannot be classified as a foreign affairs event through the trigger word dictionary, the event sentence is syntactically analyzed to obtain the verbs in the event sentence and the syntactic relationship between the words, and the text information is classified as an outbound event or an inbound event based on the semantics of the verbs and the syntactic relationship between the words.

[0023] In certain implementations of the third aspect of the present application, the role entity object is formed by integrating entity names belonging to the same role in the event statement.

[0024] In certain embodiments of the third aspect of the present application, each word in each event sentence corresponds to an entity name, and the entity name includes: name, position, organization and / or company, and location.

[0025] In certain embodiments of the third aspect of the present application, the integration step includes: segmenting the event sentence based on role names, conjunctions or prepositions; integrating entity names belonging to the same role in the segmented event sentence to form a role entity object for each role.

[0026] In certain embodiments of the third aspect of the present application, the step of classifying the text information as an outbound event or an incoming event based on the grammatical features related to the trigger word obtained by the syntactic relationship and each role entity object extracted from the event sentence, the semantics of the trigger word, the country attributes associated with each role entity object, and the event location extracted from the event sentence and its associated country attributes includes: judging the execution identity of each relevant role entity object related to the trigger word in grammatical features relative to the trigger word based on the semantics of the trigger word; the execution identity includes: the visiting party and the visited party; determining the similarities and differences in the country attributes between the visiting party or the visited party and the event location based on the execution identity and country attributes of each role entity object, and the event location and its country attributes, and classifying foreign affairs events accordingly.

[0027] In certain embodiments of the third aspect of the present application, the step of performing syntactic analysis on the event sentence to obtain the verbs in the event sentence and the syntactic relationship between each word, and classifying the text information as an outgoing event or an incoming event according to the semantics of the verbs and the syntactic relationship between each word includes: performing syntactic analysis on the event sentence using dependency syntactic analysis to determine the verbs and their child nodes in the event sentence, and determining the child node as the agent or the patient of the foreign affairs event according to the syntactic relationship between the child node and the verb; classifying the text information into foreign affairs events according to the meaning of the verb, and the agent and the patient, so as to classify it into other event classifications included in the foreign affairs event classification.

[0028] In certain embodiments of the third aspect of the present application, the step of matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences includes: performing sentence processing on the text information to determine whether each sentence contains key information through pattern matching, and determining the sentence containing key information as a candidate sentence; matching trigger words from the candidate sentences according to the trigger word dictionary to obtain candidate sentences containing trigger words, and determining the candidate sentences containing trigger words as event sentences.

[0029] In certain implementations of the third aspect of the present application, the key foreign affairs information includes: time information, role information, and location information.

[0030] In certain implementations of the third aspect of the present application, a preprocessing unit is further included to preprocess the acquired text information.

[0031] In certain embodiments of the third aspect of the present application, the step of storing the classification results in a database and / or displaying the classification results includes: corresponding each classification result to a corresponding classification category color and displaying it, or corresponding each classification result to a corresponding classification category column and displaying it.

[0032] In certain embodiments of the third aspect of the present application, the processing unit also includes performing a syntactic analysis on the event sentence based on the matching result to obtain the syntactic relationship between each word in the event sentence, and extracting elements in the event sentence based at least on the syntactic relationship between each word and the semantics of the trigger word.

[0033] In certain embodiments of the third aspect of the present application, the processing unit further includes matching the extracted elements with the element types according to preset element types, storing the matched element types in a database and / or displaying the matched element types.

[0034] The fourth aspect of the present application also provides a server, comprising: an interface unit for communicating data with a computer device; wherein the computer device is used to store text information; a storage unit for storing at least one program; and a processing unit for calling the at least one program to coordinate the interface unit and the storage unit to execute a text information classification method as described in any one of the implementations of the first aspect of the present application.

[0035] The fifth aspect of the present application also provides a client, including: a display interface for displaying the classification results of text information; an interface unit for communicating data with a server to receive the classification results provided by the server; wherein the classification results are obtained based on the text information classification method described in any one of the implementation methods of the first aspect of the present application.

[0036] The sixth aspect of the present application also provides a computer system, comprising: one or more memories for storing at least one program; one or more processors for calling the at least one program to execute any one of the text information classification methods described in the implementation scheme of the first aspect of the present application.

[0037] The seventh aspect of the present application further provides a computer-readable storage medium storing at least one program, wherein the at least one program, when called, executes and implements a text information classification method as described in any one of the implementations of the first aspect of the present application.

[0038] As described above, the text information classification method, system, device and medium of the present application have the following beneficial effects:

[0039] On the one hand, the present application constructs a trigger word dictionary for foreign affairs events by statistically analyzing keywords with a frequency of occurrence higher than a preset value in foreign affairs events and classifying them according to their meanings, thereby facilitating the classification of foreign affairs event text information. On the other hand, the present application matches keywords in the trigger word dictionary for foreign affairs events in text information, and designs matching patterns based on different types of foreign affairs activities, and classifies text information according to the meaning of trigger words, syntactic rules of sentences in text information, etc. In this process, the sentence structure is simplified through syntactic analysis and other methods, and redundant information is removed, thereby ensuring the efficiency and accuracy of the classification results, and effectively solving the technical problem of difficulty in classifying foreign affairs events in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 Shown is a schematic diagram of one embodiment of the text information classification method in the present application.

[0041] Figure 2 Shown is a schematic diagram of the step of matching trigger words from candidate sentences containing foreign affairs key information in text information to obtain event sentences in one embodiment of the present application.

[0042] Figure 3 Shown is a schematic diagram of the step of classifying the text information into foreign affairs events based on the matching results in one embodiment of the present application.

[0043] Figure 4 Shown is a structural schematic diagram of a text information classification system in the present application in one embodiment.

[0044] Figure 5 Shown is a schematic diagram of the structure of the computer system in this application.

[0045] Figure 6 The diagram shows a server-side structure.

[0046] Figure 7 Shown is a schematic diagram of the structure of a client. DETAILED DESCRIPTION

[0047] The following is an explanation of the implementation of the present application by means of specific embodiments. People familiar with the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification.

[0048] In the following description, although the terms first, second, etc. are used to describe various types in this article in some instances, these elements should not be limited by these terms. These terms are only used to distinguish one type from another type. For example, the first classification type can be referred to as the second classification type, and similarly, the second classification type can be referred to as the first classification type, without departing from the scope of the various described embodiments. The first classification type and the classification type are both describing a type, but unless the context clearly indicates otherwise, they are not the same classification type.

[0049] Furthermore, as used in this article, the singular forms "one", "an" and "the" are intended to include plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way.

[0050] As described in the background technology, text information is classified based on keyword extraction. However, since foreign affairs events are more complex than ordinary events, it is difficult to judge the nature of foreign affairs events and classify them only by the meaning or classification of keywords, which leads to problems such as low classification accuracy and low efficiency.

[0051] In some implementations, among the methods currently used for text information classification, manual recognition is usually inefficient, has high labor costs, and is time-consuming and labor-intensive. Although machine learning can process large-scale text in real time, it relies on a large amount of sample training, has a serious data sparsity problem, and has low accuracy.

[0052] In view of this, a text information classification method can be provided in an embodiment of the present application, by using a foreign affairs event trigger word dictionary to match trigger words in sentences containing foreign affairs key information in the text information, and classifying, processing and analyzing the text information according to the type of trigger words, thereby efficiently and accurately classifying the text information into foreign affairs events.

[0053] The text information classification method can be executed by a computer system, and the computer system is implemented by a combination of its hardware and software.

[0054] The computer system at least includes: one or more memories, one or more processors, an I / O interface, a network interface, an input structure, etc.

[0055] The memory includes a program. The types of the memory include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.

[0056] In some embodiments, the memory may also include a memory remote from the one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, a local area network (LAN), a wide area network (WLAN), a storage area network (SAN), etc., or a suitable combination thereof. The controller of the memory may control access to the memory by other components of the device such as the CPU and peripheral interfaces.

[0057] The one or more processors are operably coupled to a network interface to communicatively couple the computing device to a network. For example, the network interface may connect the computing device to a local area network (such as a LAN) and / or a wide area network (such as a WAN). The processor is also operably coupled to an I / O port and an input structure that enables the computing device to interact with various other electronic devices, and the input structure enables a user to interact with the computing device. Optionally, the input structure may include a button, a keyboard, a mouse, a touchpad, etc. Optionally, the electronic display may include a touch component that facilitates user input by detecting the occurrence and / or position of an object touching its screen.

[0058] The text information is event information described in words, including but not limited to news, articles, etc. The source of the text information may be a computer network, such as accessing a web page through the Internet and extracting the text information from the web page; or the source of the text information may also be a text file edited and generated by a certain end in the network or a local end; or the source of the text information may also be a text database at a certain end in the network or a local end.

[0059] The solution of the present application is to classify text information into foreign affairs events, that is, to determine whether the text information contains foreign affairs event information. Here, text information that does not contain foreign affairs event information is defined as non-foreign affairs events, and text information that contains foreign affairs event information is defined as foreign affairs events, and further classifies foreign affairs events into outbound visits or inbound visits. Thus, the classification categories of the foreign affairs events are defined as: outbound visits, inbound visits, and non-foreign affairs events.

[0060] In some embodiments, the text information is in Chinese. In subsequent foreign affairs events, it can be analyzed based on the semantics and syntax of the Chinese language. In other embodiments, if the text information is in a foreign language, such as English, French, Japanese, German, etc., it is analyzed based on the semantics and syntax of the corresponding language characteristics.

[0061] In an exemplary embodiment, see Figure 1 , which is a schematic diagram of a text information classification method in one embodiment of the present application. In a possible implementation, the text information classification method can be executed by one or more processors of the computer device in the above embodiment calling at least one program in the memory.

[0062] In step S110, text information is acquired.

[0063] In a possible example, the text information can be directly received in the form of a data stream; or the text can be read from a document in a format such as txt, doc, docx, pdf, etc. to obtain the text information. The text information can be in units of articles, that is, each text message can contain an article or part of an article, because the events described in each article may be different; accordingly, each text message can include only the main text content; or it can include a title, abstract, and other content in addition to the main text. Of course, each text message can also contain multiple articles, which can be distinguished by the distinguishing features between different articles in each text message (such as titles, ending punctuation marks, text content and / or format features, etc.); the "article" refers to each independent unit of text information, which may be from different crawling times or different files.

[0064] In possible examples, the text information can be obtained through an event database or through web page extraction. For example, an event database contains a large amount of text information, and the text information can be obtained by communicating with the event database; for another example, the text information on the public websites of government, schools, enterprises, media and other institutions can be read through web page data extraction to obtain the text information.

[0065] In some implementations, to ensure efficiency, text information in the foreign affairs section of websites of government, schools, enterprises, media and other institutions may be directly read.

[0066] In an exemplary embodiment, the acquired text information is pre-processed.

[0067] It should be understood that the acquired original text information may contain some redundant data, such as page tags, illegal characters, etc. Therefore, in some embodiments, in the preprocessing stage, these redundant data can be cleaned up to improve the efficiency of text information classification. In some other embodiments, the preprocessing step also includes creating an index for each original text information to facilitate subsequent data operations.

[0068] In a possible implementation, the creation of the index includes creating a unique corresponding ID serial number for each original text information and storing it in the database. The unique mapping relationship between the ID serial number and the original text information can facilitate the operation of the database. For example, in the process of database retrieval, the corresponding text information can be retrieved through the index to perform related operations on it; for example, in the process of database update, the original database can be easily added or deleted through the index.

[0069] In step S120, trigger words are matched from candidate sentences containing foreign affairs key information in the text information to obtain event sentences, wherein the trigger words are included in the trigger word dictionary.

[0070] In one embodiment, candidate sentences containing foreign affairs key information in the text information are first determined.

[0071] For possible implementations, see Figure 2 , which is a schematic diagram showing the steps of matching trigger words from candidate sentences containing foreign affairs key information in text information to obtain event sentences in one embodiment of the present application.

[0072] In step S1201, the text information is processed into sentences to determine whether each sentence contains key information through pattern matching, and the sentence containing the key information is determined as a candidate sentence.

[0073] Optionally, the text information may be processed into a number of sentences, including but not limited to: sentence segmentation according to punctuation marks, or sentence segmentation according to paragraphs.

[0074] Then, by judging whether each sentence contains foreign affairs key information, the sentence containing foreign affairs key information is defined as a candidate sentence; wherein, optionally, the foreign affairs key information includes: time information, role information, and location information;

[0075] Among them, examples of the time information include: the time of occurrence of the event, the end time of the event, etc.; examples of the role information include: the name of the person, the name of the organization, the name of the company, the person's position, etc.; examples of the location information include: the location of the event, the location of the person (nationality), the location of the organization or company, etc.

[0076] In some embodiments, a sentence including time information, role information, and location information at the same time may be determined as a candidate sentence; in some other embodiments, a sentence including one or two of the time information, role information, and location information may also be determined as a candidate sentence. For example, a sentence including time information, role information, and location information at the same time may be preferentially determined as a candidate sentence, and when there is no sentence including time information, role information, and location information at the same time in the text information, a sentence including one or two of the time information, role information, and location information may be further determined as a candidate sentence until a candidate sentence is successfully determined.

[0077] In addition, if no foreign affairs key information exists in each sentence in the text information, the text information can be directly classified as a non-foreign affairs event.

[0078] In actual situations, the text information may contain multiple sentences, i.e., candidate sentences, containing foreign affairs key information. In some implementations, the candidate sentence containing the most foreign affairs key information may be selected to execute the next step, i.e., the operation of matching the trigger word; or in other implementations, the next step, i.e., the operation of matching the trigger word, may be executed for each candidate sentence separately.

[0079] In step S1202, according to the trigger word dictionary, trigger words are matched from the candidate sentences to obtain candidate sentences containing the trigger words, and the candidate sentences containing the trigger words are determined as event sentences.

[0080] Here, after the candidate sentences are determined, according to the pre-constructed trigger word dictionary, the trigger words in the trigger word dictionary are matched from the candidate sentences containing the key information, and the successfully matched sentences are determined as event sentences.

[0081] Here, based on the characteristics of foreign affairs events, in possible implementation methods, the trigger words include but are not limited to: visit, go to, visit, come, visit, visit, meet, receive, invite, attend, hold, host, participate, etc.

[0082] It should be understood that since different trigger words may correspond to different classifications of foreign affairs events, in order to improve the classification efficiency of text information, the trigger words are divided into a first classification type and a second classification type according to the meaning of the trigger words. Among them, the first classification type is a type that can directly classify the text information according to the meaning of the trigger words, and the first classification type includes: outbound visits and inbound visits. The trigger words belonging to the outbound visit events include but are not limited to: outbound visits, visits, etc. Through the meanings and grammatical features of such trigger words, it can be directly determined that the text information with the trigger words is a foreign affairs event of an outbound visit; the trigger words belonging to the inbound visit events include but are not limited to: inbound visits, visits, etc. Through the meanings and grammatical features of such trigger words, it can be directly determined that the text information with the trigger words is a foreign affairs event of an inbound visit.

[0083] The second classification type is a type that cannot directly classify the text information based on the meaning of the trigger word. The second classification type includes unknown events. The trigger words belonging to the unknown events include but are not limited to: visit, tour, visit, meeting, reception, invitation, attendance, holding, hosting, participating, etc. Such trigger words cannot directly determine whether the text information is a visiting event or an outing event. Therefore, the text information containing such trigger words needs to be further analyzed to determine the classification type of the text information.

[0084] In step S130, based on the matching result, the text information is classified into foreign affairs events.

[0085] Here, according to the matching result of the trigger word in the candidate sentence in S120, the text information is classified as a visit, an incoming visit or a non-foreign affairs event. The matching result includes a successful match and a failed match. The successful match indicates that the candidate sentence contains a trigger word in the trigger word dictionary, and the failed match indicates that the candidate sentence does not contain a trigger word in the trigger word dictionary.

[0086] Furthermore, when the match is successful, it is further determined whether the matched trigger word belongs to the first classification type, the second classification type, or the third classification type. Thus, the text information is classified into foreign affairs events according to different matching results. Moreover, based on the above description, it can be concluded that the different matching results include four types: a successful match and the matched trigger word belongs to the first classification type, a successful match and the matched trigger word belongs to the second classification type, a successful match and the matched trigger word belongs to the third classification type, and a failed match. The following will describe the four different types of matching results separately.

[0087] In an exemplary embodiment, if the match is successful and the trigger word belongs to a first classification type that can directly classify foreign affairs events, the text information is determined as a category of an outbound visit event or an incoming visit event that is pre-associated with the first classification type.

[0088] Here, the outgoing visit event or the incoming visit event in the first classification type is associated and corresponds to the outgoing visit event and the incoming visit event in the text information classification, that is, when the candidate sentence in the text information contains a trigger word in the first classification type, the text information can be directly classified as an outgoing visit event or an incoming visit event. Specifically, when the candidate sentence in the text information contains trigger words such as "go out" and "go to" that belong to the outgoing visit event type, the text information can be determined as an outgoing visit event; when the candidate sentence in the text information contains trigger words such as "visit" and "come" that belong to the incoming visit event type, the text information can be determined as an incoming visit event.

[0089] In an exemplary embodiment, if the match is successful and the trigger word belongs to the second classification type that can indirectly classify foreign affairs events, the event sentence is syntactically analyzed to obtain the syntactic relationship between the words in the event sentence, and the text information is classified as an outbound event or an inbound event based on the grammatical features related to the trigger word obtained from the syntactic relationship and the role entity objects extracted from the event sentence, the semantics of the trigger word, the country attributes associated with the role entity objects, and the event location extracted from the event sentence and its associated country attributes.

[0090] Here, if the match is successful and the matched trigger word belongs to the second classification type, that is, the classification of the text information cannot be directly determined based on the meaning of the trigger word, then the event sentence can be subjected to syntactic analysis to obtain the syntactic relationship between the words in the event sentence. Among them, the syntactic relationship between the words includes but is not limited to: the structure of each word relative to the clause, and the dependency relationship between the words. Among them, examples of the structure of each word relative to the clause include: subject-predicate-object structure, attributive / adverbial / complement structure, etc.; examples of the dependency relationship between the words include subject-predicate relationship, verb-object relationship, attributive-medial relationship, etc. The method of syntactic analysis includes but is not limited to: syntactic structure analysis, dependency syntactic parsing, etc.

[0091] In some implementations, after the event sentence is syntactically analyzed, a syntactic parsing tree of the event sentence may be constructed with the trigger word as the core, thereby facilitating classification of the text information using the meaning of the trigger word.

[0092] In an exemplary embodiment, each word in each event sentence corresponds to an entity name.

[0093] The number of entity name types can be determined according to actual needs. In some implementations, the number of entity name types includes 26 types, and in some implementations, it is expanded to 40 types. In this embodiment, according to the needs of this embodiment, the entity name includes but is not limited to: date (TIME), name (NAME), position (JOB), organization (ORG) and / or company (COMPANY), and location (LOCATION).

[0094] Here, the event sentence may be sequence labeled, so that each word in the event sentence is labeled with the corresponding entity name.

[0095] In an exemplary embodiment, the BIO annotation mode can be used for sequence annotation. It should be understood that in the BIO annotation mode, each character is marked as "BX", "IX" or "O". Among them, "BX" means that the segment where this element is located belongs to the X type and this element is at the beginning of this segment, "IX" means that the segment where this element is located belongs to the X type and this element is in the middle of this segment, "O" means that it does not belong to any type, and X represents the name of each entity. For example, in the event sentence "On April 1, President Zhang San of University A and Vice President Li Si met with President Zhao Liu and his delegation from Jiayi University of Science and Technology of Ding Country in City A.", assuming that University A is a university located in City A, and City A is a domestic city, and "Jiayi University of Science and Technology of Ding Country" is the name of the entire organization, the two characters in "Ding Country" can be respectively labeled as "B-Place I-Place", the six characters in "Jiayi University of Science and Technology" can be respectively labeled as "B-Organization I-Organization I-Organization I-Organization I-Organization I-Organization", the two characters in "City A" can be respectively labeled as "B-Place I-Place", and "In" can be labeled as "O".

[0096] In some embodiments, entity names belonging to the same role in the event statement may be integrated to form a role entity object, that is, the role entity object is used to characterize features belonging to the same role, and the features are represented by various entity names related to the role.

[0097] Therefore, when analyzing a statement, the entity names belonging to the same role can be integrated into a role entity object, thereby simplifying the structure of the event statement and reducing the complexity of the statement. In some embodiments, the role can be interpreted as a person, for example, the entity names belonging to the same person are integrated to form a role entity object, such as "University A-President-Zhang San", where "University A", "President", and "Zhang San" are all entity names of the same role "Zhang San"; in some other embodiments, the role can be interpreted as an organization or company, for example, the entity names belonging to the same organization are integrated into a role entity object, or the entity names belonging to the same company are integrated into a role entity object.

[0098] Here, after determining each entity name in the event sentence, the grammatical features of each entity name related to the trigger word can be determined by using the syntactic relationship obtained in the above syntactic analysis. In some examples, the grammatical features include grammatical relationships such as subject-predicate relationship, verb-object relationship, attributive-predicate relationship, etc. between each entity name and the trigger word.

[0099] In an exemplary embodiment, when determining each role entity object, the event sentence can be segmented based on the role name, conjunction or preposition; then, the entity names belonging to the same role in the segmented event sentence are integrated to form the role entity object of each role.

[0100] Continuing with the example of "On April 1, President Zhang San of University A and Vice President Li Si met with President Zhao Liu and his delegation from Jiayi University of Science and Technology in Ding country in City A.", the event sentence can be divided into: On April 1 (TIME), / President (JOB) Zhang San (NAME) of University A (ORG) / and / Vice President (JOB) Li Si (NAME) / met with / President Zhao Liu (NAME) and his delegation from Jiayi University of Science and Technology in Ding country in City A (LOCATION).

[0101] After segmenting the event sentence, the entity names belonging to the same role are integrated to form a role entity object for each role. In this embodiment, the entity names belonging to the same person are integrated to form a role entity object according to the syntactic relationship in the event sentence and the meaning of the entity name. Continuing with the example in the previous paragraph, the entity names belonging to the same role are integrated to form the following role entity objects:

[0102] {"person":[{"job":"Principal","org":"University A","company":null,"location":"City A","name":"Zhang San"}]}

[0103] {"person":[{"job":"Vice President","org":"University A","company":null,"location":"City A","name":"Li Si"}]}

[0104] {"person":[{"job":"Principal","org":"Dingguo Jiayi University of Science and Technology","company":null,"location":null,"name":"Zhao Liu"}]}.

[0105] In an exemplary embodiment, after clarifying each role entity object in the event sentence and the syntactic relationship between each role entity object and the trigger word, the execution identity of each related role entity object related to the trigger word in grammatical features relative to the trigger word can be determined based on the semantics of the trigger word; the execution identity includes: the visiting party and the visited party, and based on the execution identity and country attributes of each role entity object, and the location of the event and its country attributes, the differences and similarities in the country attributes between the visiting party or the visited party and the location of the event can be determined, and foreign affairs events can be classified accordingly.

[0106] In simple terms, for trigger words of the second classification type, although it is not possible to directly determine whether they belong to an outbound or inbound visit event, based on the execution identity of the role entity object related to the trigger word (determined by the semantic and grammatical features of the trigger word), the country attribute of the role entity object, the location of the event and its country attribute, it can be inferred that it is a domestic role.

[0107] Of course, the execution identity may also include: the doer and the recipient of the external affairs event.

[0108] Optionally, in order to obtain this information accurately, the event statement may be further simplified to reduce the complexity of classifying the text information into foreign affairs events.

[0109] In some embodiments, the redundant information in the event sentence is first removed, so that the event sentence only includes the trigger word and each related role entity object, and is presented in the order of subject, predicate, and object. The redundant information is irrelevant or low-relevance information in the process of integrating entity names into role entity objects, including but not limited to: date, punctuation, location and other information. The subject and object are both role entity objects, the predicate is a trigger word, and the subject is defined as the agent and the object is defined as the recipient. For example, an event sentence includes two different role entity objects A and B, and in the original event sentence A is before the trigger word and B is after the trigger word, then the event sentence can be in the form of "A trigger word B", and A is the agent relative to the trigger word, and B is the recipient relative to the trigger word.

[0110] In some embodiments, the trigger words belonging to the second classification type can be further subdivided to determine the execution identity of each related role entity object, and the execution identity includes: visitor or visitee. Here, the trigger words of the second classification type are further subdivided according to semantics into: the type in which the agent is the visitor and the recipient is the visitee (Ⅱ-Ⅰ type), and the type in which the agent is the visitee and the recipient is the visitor (Ⅱ-Ⅱ type). Here, examples of the trigger words of the Ⅱ-Ⅰ type include but are not limited to: visit, tour, visit, etc.; examples of the trigger words of the Ⅱ-Ⅱ type include but are not limited to: meeting, reception, invitation, etc. Thus, the execution identity of each related role entity object is determined by the subdivided type of the trigger words in the second classification type.

[0111] In some embodiments, the location of the event can be determined by the location entity name type in the event statement. The location of the event and each role entity object have a country attribute, and the country attribute is the country where the role entity object and the location of the event are located. The country attribute can be determined by the entity names of the organization, company, and location in the role entity object. The judgment method includes but is not limited to judging the country attribute of the role entity object by matching a preset domestic and foreign location noun dictionary through a preset pattern matching method. In addition, in some embodiments, the country attribute can be represented by a specific country type such as "Country C", "Country D", "Country B", or by the internal and external attributes compared to a certain country, such as "domestic" or "foreign" relative to "Country B".

[0112] When the trigger word belongs to type II-I or type II-II, if the visiting party is a domestic party and the event occurs abroad, the text information is classified as an outbound visit event; if the visiting party is a foreign party and the event occurs in China, the text information is classified as an incoming visit event. It should be understood that in foreign affairs events, according to language expression habits, generally there will not be a situation where the visiting party is a domestic party and the event occurs in China, or the visiting party is a foreign party and the event occurs in a foreign country. Of course, it is not limited to this, that is, the above-mentioned scheme of the present application is not limited by expressions that violate this language expression habit.

[0113] It should be noted that if we do not consider the active and passive voices in language expression, and consider that only the active voice is used in the actual language expression habits of foreign affairs news, then when classifying foreign affairs events according to the above-mentioned Ⅱ-Ⅰ type or Ⅱ-Ⅱ type, it is not necessary to determine the actor and the recipient. Instead, foreign affairs events can be classified based only on the differences and similarities in the national attributes of the visiting party and the visited party at the same place where the event occurred (that is, they can be divided into visiting events or outgoing events).

[0114] The following will be explained through a specific example. It should be understood that this example is only used to explain the implementation of the present application but not to limit the implementation of the present application.

[0115] Here, assume that the original event sentence is: "On April 1, Zhang San, president of University A, and Li Si, vice president, met with Zhao Liu, president of University A, and his party from University A, University B, in City A." University A is a university located in City A, University B, and City A is a domestic city of Country B. In this event sentence, "April 1" and "in City A" are not related to the role entity objects where Zhang San, Li Si, and Zhao Liu are located. Therefore, "April 1" and "in City A" can be removed when analyzing the role entity objects. After removing redundant information, the event sentence becomes "Zhang San, president of University A, and Li Si, vice president, met with Zhao Liu, president of University A, and his party from University A, University B, University B." Here, the entity names belonging to the same organization are integrated into role entity objects, and the trigger word is used as the predicate. The first role entity object of its subject is expressed as: "Zhang San, president of University A, and Li Si, vice president," and the second role entity object of its predicate is expressed as: "Zhao Liu, president of University A, and his party from University A, University B, University B."

[0116] According to the meaning of the trigger word "meeting", it can be classified into the type where the agent is the visited party and the recipient is the visiting party (Type II-II). Therefore, the first role entity object is the agent of the event and the visited party, and the second role entity object is the recipient of the event and the visiting party.

[0117] To put it simply, it is determined that "President Zhang San and Vice President Li Si of University A" are the visited parties, and "President Zhao Liu and his delegation from University A B of Science and Technology in Country D" are the visiting parties.

[0118] According to the name of the organization entity "University A" in the first role entity object, it can be known that the country attribute of the first role entity object is domestic, and according to the name of the organization entity "Dingguo Jiayi Polytechnic University" in the second role entity object, it can be known that the country attribute of the second role entity object is foreign. In addition, according to the place entity name "City A" in the event sentence, it can be known that the place where the event occurred is domestic. Since the place where the event occurred is the same as the country attribute of the first role entity object but different from the country attribute of the second role entity object, it can be concluded that the foreign affairs event belongs to a visiting event, that is, the text information where the event sentence is located should be classified as a visiting event.

[0119] In an exemplary embodiment, see Figure 3 , which is a schematic diagram of the step of classifying the text information into foreign affairs events based on the matching results in one embodiment of the present application. When the trigger word belongs to the third classification type, or when the trigger word fails to match in the candidate sentence, steps S1301 and S1302 can be executed to obtain.

[0120] The third classification type is a successful match and the trigger word belongs to a type that cannot be classified into a foreign event through the trigger word dictionary, that is, the trigger word cannot be used to determine whether the doer and the recipient belong to the type of the visitor or the visited party. Examples of trigger words of the third classification type include but are not limited to: attend, hold, host, participate, etc.

[0121] In step S1301, the event sentence is parsed using dependency syntax analysis to determine the verbs and their child nodes in the event sentence, and the child nodes are determined to be the agent or the patient of the external event based on the syntactic relationship between the child nodes and the verbs.

[0122] Wherein, the syntactic relationship between the words includes but is not limited to: the structure of each word relative to the clause, and the dependency relationship between the words. Wherein, examples of the structure of each word relative to the clause include: subject-predicate-object structure, attributive-adverbial-complement structure, etc.; examples of the dependency relationship between the words include subject-predicate relationship, verb-object relationship, attributive-predicate relationship, etc. The method of syntactic analysis includes but is not limited to: syntactic structure analysis, dependency syntactic parsing, etc. In some embodiments, the event sentence is syntactically analyzed to determine the verb in the event sentence, and the syntactic relationship between the verb and other words is established with the verb as the core.

[0123] In step S1302, the text information is classified into foreign affairs events according to the meaning of the verb, and the agent and the recipient, so as to be classified into other event classifications included in the foreign affairs event classification.

[0124] Here, the method of pattern matching is used to determine whether the vocabulary that has a subject-predicate or object-verb relationship with the verb is an event role. The event role includes but is not limited to: name, organization, company, etc. If the vocabulary is a vocabulary about the event role and the vocabulary and the verb have a subject-predicate relationship, the event role corresponding to the vocabulary is determined as the doer; if the vocabulary is a vocabulary about the event role and the vocabulary and the verb have an object-verb relationship, the event role corresponding to the vocabulary is determined as the recipient. After the doer and the recipient are determined, the doer and the recipient are classified as the visitor and the visited party according to the meaning of the verb.

[0125] After the visitor and the visited party are determined, the text information is classified as a foreign affairs event based on the meaning of the verb combined with the national attributes of the visitor and the visited party and the place where the event occurred, so as to classify the event into the category of outbound visit event, the category of incoming visit event, and other event categories other than the category of non-foreign affairs event. The manner of determining the meaning of the verb, the national attributes of the visitor and the visited party, and the place where the event occurred is similar to that in the above-mentioned embodiment, and will not be repeated here.

[0126] For example, "A attends meeting B at C" can be classified into other event categories, or into the attending event sub-category of other event categories.

[0127] It should be understood that the role of judging the agent and the recipient in this embodiment is mainly to determine the voice (i.e., active voice or passive voice) of the event sentence centered on the verb, thereby determining the visitor and the visited party in the event sentence. Therefore, if the active and passive voices in the language expression are not considered, and only the active voice is used in the language expression habits of foreign affairs news, it is not necessary to determine the agent and the recipient. Instead, foreign affairs events can be classified (i.e., divided into visiting events or outgoing events) based only on the similarities and differences in the country attributes of the visitor and the visited party at the same place where the event occurred.

[0128] In an exemplary embodiment, when the foreign affairs event classification cannot be obtained from the body of the text information (e.g., a news article, an article), the foreign affairs event classification can be performed by analyzing the title or abstract of the text information to determine whether the foreign affairs event classification can be obtained from the title or abstract. For text information that cannot obtain the foreign affairs event classification from the body, title, and abstract of the text information or is identified as a non-foreign affairs activity through pattern matching, it is classified as a non-foreign affairs event.

[0129] In some embodiments, the results of the classification are stored in a database and / or the results of the classification are displayed.

[0130] Here, the obtained classification results are stored in a database, or the obtained classification results are displayed, or the obtained classification results are stored in a database and displayed at the same time.

[0131] In some embodiments, the database may be integrated in the computer system. Alternatively, the database may also be located at the server, and the computer system sends the classified results, or the classified results and text information together, to the server so that the server classifies the text information according to the classified results.

[0132] In some embodiments, the computer system includes a display device, so that the classification results can be displayed on the display device, or the computer system is communicatively connected to a display device or a second computer for displaying the classification results, so that the text information classification results are sent to the display device for display, or the text information classification results are sent to the second computer and displayed on the second computer.

[0133] In an exemplary embodiment, each classification result is displayed in a corresponding classification category color, or each classification result is displayed in a corresponding classification category column. For example, a visit event is displayed in red and an incoming visit event is displayed in blue, so that after the text information is classified, the text information and the foreign affairs event classification corresponding to the text information are presented in the display interface in corresponding colors. For another example, a visit event is displayed in the left side of the display interface, and an incoming visit event is displayed in the right side of the display interface.

[0134] In an exemplary embodiment, in the process of classifying text information in the above embodiment, elements in the event sentence are extracted by syntactical relationship between words and semantics of trigger words or verbs after syntactical analysis of the event sentence. The elements include but are not limited to: name, location, behavior, etc.

[0135] In some embodiments, the event sentence can be subjected to dependency syntactic analysis to obtain the syntactic relationship between the words in the event sentence. And the event sentence is sequence-labeled to mark the words in the event sentence with entity names, so as to extract the elements in the event sentence based on the entity names. Taking "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint art and cultural exchange and dance performance between Country B and Country C in City E" as an example, the event can be determined as a visit event based on the trigger word "invite" and the steps in the above embodiments such as syntactic analysis, and the elements "Wang Wu", "Country C", "cultural exchange", "performance", etc. can be extracted from it based on actual requirements.

[0136] In other embodiments, the preset element keywords can be matched directly in the event sentence by means of pattern matching. When the event sentence contains the preset element keywords, the matched element keywords are determined as the elements corresponding to the text information. Among them, the element keywords can be included in a pre-constructed element keyword dictionary. For example, continuing with the example of "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint art and cultural exchange and dance performance between Country B and Country C in City E", assuming that the pre-constructed element keyword dictionary includes the element keywords: "Country C", "Cultural Exchange", and "Performance", then "Country C", "Cultural Exchange", and "Performance" can be matched in the above example sentences, and these element keywords can be used as elements of the text information.

[0137] In some other implementations, preset element keywords may be directly matched in the text information by pattern matching, and when the text information contains the preset element keywords, the matched element keywords are determined as the elements corresponding to the text information. The element keywords may be included in a pre-constructed element keyword dictionary.

[0138] In an exemplary embodiment, the method further includes matching the extracted elements with the preset element types according to the preset element types, storing the matched element types in a database and / or displaying the matched element types.

[0139] Here, in order to centrally process elements of similar types, it is necessary to avoid information clutter caused by too many elements. In some embodiments, one or more element types can be preset, and each element type corresponds to multiple synonymous elements. When at least one of the multiple synonymous elements is extracted from the event sentence, the element type corresponding to the synonymous element is stored in the database and / or displayed. Among them, the element type is used to cluster synonymous elements, and its examples include but are not limited to: overseas exchanges, cooperative development, education, cultural exchanges, etc.; the synonymous elements refer to elements with similar semantics or types, and its examples include but are not limited to: "dance performance" and "ballet performance", "symphony solo" and "folk music ensemble", etc. In other embodiments, an element may correspond to multiple element types, and these element types can be determined as elements of the text information and stored in the database and / or displayed. In some other embodiments, the preset element type can also be matched according to the foreign affairs event classification type of the text information combined with one or more of the extracted elements. For example, continuing with the example of "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint exchange of art and culture between Country B and Country C and a dance performance in City E", after extracting "Country C", "cultural exchange" and "performance" in the event sentence by the method in the above embodiment, the corresponding preset element types can be matched by the method in this embodiment. Among them, by the type of the event being a foreign affairs event and the element of "cultural exchange", it can be matched with the preset element type of "overseas exchange"; according to "performance", it can be matched with the preset element types of "literary performance" and "education" respectively.

[0140] In an exemplary embodiment, the extracted elements or matched element types are displayed together with the foreign affairs event classification result of the text information near the text information, so that the reader can quickly understand the content of the text information. Alternatively, the elements, element types, and foreign affairs event classification categories can also be indexed with the text information in the form of tags, so that the corresponding text information is displayed for reading when the reader selects the corresponding tag.

[0141] The text information classification method in the present application matches the keywords in the foreign affairs event trigger word dictionary in the text information, designs matching patterns according to different types of foreign affairs activities, and classifies the text information according to the meaning of the trigger words, the syntactic rules of the sentences in the text information, etc. In this process, the sentence structure is simplified by syntactic analysis and other methods, and redundant information is removed, which ensures the efficiency and accuracy of the classification results, and effectively solves the technical problem of the difficulty in classifying foreign affairs events in the prior art.

[0142] In addition, the present application also constructs a trigger word dictionary for foreign affairs events by conducting statistical analysis on keywords in foreign affairs events whose frequency is higher than a preset value and classifying them according to word meanings, thereby facilitating the classification of foreign affairs event text information.

[0143] To this end, a trigger word dictionary construction method is provided in an embodiment of the second aspect of the present application, and the trigger word dictionary construction method can be executed by a trigger word dictionary construction system. The trigger word dictionary construction system can be implemented by software and hardware in a computer device.

[0144] The trigger word dictionary construction method can be executed by a computer system, and the computer system is implemented by a combination of its hardware and software.

[0145] The computer system at least includes: one or more memories, one or more processors, an I / O interface, a network interface, an input structure, etc.

[0146] The memory includes a program. The types of the memory include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.

[0147] In some embodiments, the memory may also include a memory remote from the one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, a local area network (LAN), a wide area network (WLAN), a storage area network (SAN), etc., or a suitable combination thereof. The controller of the memory may control access to the memory by other components of the device such as the CPU and peripheral interfaces.

[0148] The one or more processors are operably coupled to a network interface to communicatively couple the computing device to a network. For example, the network interface may connect the computing device to a local area network (such as a LAN) and / or a wide area network (such as a WAN). The processor is also operably coupled to an I / O port and an input structure that enables the computing device to interact with various other electronic devices, and the input structure enables a user to interact with the computing device. Optionally, the input structure may include a button, a keyboard, a mouse, a touchpad, etc. Optionally, the electronic display may include a touch component that facilitates user input by detecting the occurrence and / or position of an object touching its screen.

[0149] In an exemplary embodiment, the trigger word dictionary construction system obtains at least one text information related to a foreign affairs event.

[0150] In a possible example, the text information can be directly received in the form of a data stream; or the text can be read from a document in a format such as txt, doc, docx, pdf, etc. to obtain the text information. The text information can be in units of articles, that is, each text message can contain an article or part of an article, because the events described in each article may be different; accordingly, each text message can include only the main text content; or it can include a title, abstract, and other content in addition to the main text. Of course, each text message can also contain multiple articles, which can be distinguished by the distinguishing features between different articles in each text message (such as titles, ending punctuation marks, text content and / or format features, etc.); the "article" refers to each independent unit of text information, which may be from different crawling times or different files.

[0151] In possible examples, the text information can be obtained through an event database or through web page extraction. For example, an event database contains a large amount of text information, and the text information can be obtained by communicating with the event database; for another example, the text information on the public websites of government, schools, enterprises, media and other institutions can be read through web page data extraction to obtain the text information.

[0152] In some implementations, to ensure efficiency, text information in the foreign affairs section of websites of government, schools, enterprises, media and other institutions may be directly read.

[0153] After acquiring the text information, the trigger word dictionary construction system performs statistical analysis on the at least one text information to obtain keywords whose frequency of appearance in the at least one text information is higher than a preset value. Here, the trigger word dictionary construction system performs corpus analysis on the at least one text information to count the frequency of each word in the at least one text information, and uses words whose frequency of appearance is greater than a preset value as keywords. In some embodiments, verbs may be preferentially used as keywords according to the characteristics of foreign affairs events. Among them, the preset value can be determined based on actual needs and the amount of text information. For example, the preset value can be >50%, that is, the word is defined as a keyword after it appears in more than 50% of the text information. It should be understood that the 50% in this embodiment is only an example and is not a limitation on the preset value of the present application. According to actual conditions, the preset value may also be set to other values, such as 30%, 35%, 40%, 45%, 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, 100%, etc., which are not listed here one by one.

[0154] After determining the keywords whose frequency of occurrence is higher than a preset value, the trigger word dictionary construction system constructs trigger word classification types that are semantically related to each of the keywords, and the trigger word dictionary is composed of a set of trigger words corresponding to each trigger word classification type; wherein the trigger word classification types include a first classification type, a second classification type, and a third classification type.

[0155] In an exemplary embodiment, the first classification type includes outgoing visit events and incoming visit events, that is, the meaning of the trigger words in the first classification type can be directly judged as outgoing visit events or incoming visit events. The trigger words belonging to the first classification type include but are not limited to: outgoing visit, going to, visiting, and coming.

[0156] In an exemplary embodiment, the second classification type is the type of visiting event or outgoing event that cannot be directly determined based on the meaning of the trigger word, and the trigger words belonging to the second classification type include but are not limited to: visit, tour, visit, meeting, reception, invitation, attendance, holding, hosting, participating, etc. In some embodiments, the trigger words belonging to the second classification type can be further subdivided. Here, the trigger words of the second classification type are further subdivided according to semantics into: the type in which the agent is the visiting party and the recipient is the visited party (Ⅱ-Ⅰ type), and the type in which the agent is the visited party and the recipient is the visiting party (Ⅱ-Ⅱ type). Here, examples of the Ⅱ-Ⅰ type trigger words include but are not limited to: visit, tour, visit, etc.; examples of the Ⅱ-Ⅱ type trigger words include but are not limited to: meeting, reception, invitation, etc.

[0157] In an exemplary embodiment, the third classification type is a type of foreign affairs event that cannot be classified by the trigger word dictionary, that is, the trigger words cannot be used to determine whether the agent and the recipient belong to the type of the visiting party or the visited party. Examples of trigger words for the third classification type include, but are not limited to: attend, hold, host, participate, etc.

[0158] In an exemplary embodiment, the text information classification method in the present application can be implemented by a text information classification system.

[0159] See also Figure 4 , which is a structural diagram of a text information classification system in the present application in one embodiment. As shown in the figure, the text information classification system includes: a communication unit 411, a processing unit 412, a storage unit 413 and / or a display unit 414.

[0160] The text information classification system uses the foreign affairs event trigger word dictionary to match trigger words in sentences containing key foreign affairs information in the text information, and classifies, processes and analyzes the text information according to the type of trigger words, thereby efficiently and accurately classifying the text information into foreign affairs events.

[0161] The text information classification system is implemented by combining hardware and software in a computer system.

[0162] The computer system at least includes: one or more memories, one or more processors, an I / O interface, a network interface, an input structure, etc.

[0163] The memory includes a program. The types of the memory include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.

[0164] In some embodiments, the memory may also include a memory remote from the one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, a local area network (LAN), a wide area network (WLAN), a storage area network (SAN), etc., or a suitable combination thereof. The controller of the memory may control access to the memory by other components of the device such as the CPU and peripheral interfaces.

[0165] The one or more processors are operably coupled to a network interface to communicatively couple the computing device to a network. For example, the network interface may connect the computing device to a local area network (such as a LAN) and / or a wide area network (such as a WAN). The processor is also operably coupled to an I / O port and an input structure that enables the computing device to interact with various other electronic devices, and the input structure enables a user to interact with the computing device. Optionally, the input structure may include a button, a keyboard, a mouse, a touchpad, etc. Optionally, the electronic display may include a touch component that facilitates user input by detecting the occurrence and / or position of an object touching its screen.

[0166] The text information is event information described in words, including but not limited to news, articles, etc. The source of the text information may be a computer network, such as accessing a web page through the Internet and extracting the text information from the web page; or the source of the text information may also be a text file edited and generated by a certain end in the network or a local end; or the source of the text information may also be a text database at a certain end in the network or a local end.

[0167] The solution of the present application is to classify text information into foreign affairs events, that is, to determine whether the text information contains foreign affairs event information. Here, text information that does not contain foreign affairs event information is defined as non-foreign affairs events, and text information that contains foreign affairs event information is defined as foreign affairs events, and further classifies foreign affairs events into outbound visits or inbound visits. Thus, the classification categories of the foreign affairs events are defined as: outbound visits, inbound visits, and non-foreign affairs events.

[0168] In some embodiments, the text information is in Chinese. In subsequent foreign affairs events, it can be analyzed based on the semantics and syntax of the Chinese language. In other embodiments, if the text information is in a foreign language, such as English, French, Japanese, German, etc., it is analyzed based on the semantics and syntax of the corresponding language characteristics.

[0169] In an exemplary embodiment, the communication unit is used to obtain text information.

[0170] In a possible example, the text information can be directly received in the form of a data stream; or the text can be read from a document in a format such as txt, doc, docx, pdf, etc. to obtain the text information. The text information can be in units of articles, that is, each text message can contain an article or part of an article, because the events described in each article may be different; accordingly, each text message can include only the main text content; or it can include a title, abstract, and other content in addition to the main text. Of course, each text message can also contain multiple articles, which can be distinguished by the distinguishing features between different articles in each text message (such as titles, ending punctuation marks, text content and / or format features, etc.); the "article" refers to each independent unit of text information, which may be from different crawling times or different files.

[0171] In possible examples, the text information can be obtained through an event database or through web page extraction. For example, an event database contains a large amount of text information, and the text information can be obtained by communicating with the event database; in another example, the text information classification system can read the text information on the public websites of government, schools, enterprises, media and other institutions through web page data extraction to obtain the text information.

[0172] In some implementations, to ensure efficiency, text information in the foreign affairs section of websites of government, schools, enterprises, media and other institutions may be directly read.

[0173] In an exemplary embodiment, the text information classification system further includes a preprocessing unit for preprocessing the acquired text information. The preprocessing unit may be configured in the processing unit or may be set independently of the processing unit.

[0174] It should be understood that the original text information obtained by the text information classification system may contain some redundant data, such as page tags, illegal characters, etc. Therefore, in some embodiments, these redundant data can be cleaned up in the preprocessing stage to improve the efficiency of text information classification. In some other embodiments, the preprocessing step also includes creating an index for each original text information to facilitate subsequent data operations.

[0175] In a possible implementation, the creation of the index includes creating a unique corresponding ID serial number for each original text information and storing it in the database. The unique mapping relationship between the ID serial number and the original text information can facilitate the operation of the database. For example, in the process of database retrieval, the corresponding text information can be retrieved through the index to perform related operations on it; for example, in the process of database update, the original database can be easily added or deleted through the index.

[0176] In an exemplary embodiment, the processing unit 412 matches trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences, wherein the trigger words are included in a trigger word dictionary.

[0177] In one embodiment, candidate sentences containing foreign affairs key information in the text information are first determined.

[0178] In a possible implementation, the processing unit 412 performs sentence processing on the text information to determine whether each sentence contains key information through pattern matching, and determines the sentence containing the key information as a candidate sentence.

[0179] Optionally, the text information may be processed into a number of sentences, including but not limited to: sentence segmentation according to punctuation marks, or sentence segmentation according to paragraphs.

[0180] Then, by judging whether each sentence contains foreign affairs key information, the sentence containing foreign affairs key information is defined as a candidate sentence; wherein, optionally, the foreign affairs key information includes: time information, role information, and location information;

[0181] Among them, examples of the time information include: the time of occurrence of the event, the end time of the event, etc.; examples of the role information include: the name of the person, the name of the organization, the name of the company, the person's position, etc.; examples of the location information include: the location of the event, the location of the person (nationality), the location of the organization or company, etc.

[0182] In some embodiments, the text information classification system may determine a sentence that includes time information, role information, and location information at the same time as a candidate sentence; in some other embodiments, the text information classification system may also determine a sentence that includes one or two of the time information, role information, and location information as a candidate sentence. For example, the text information classification system may preferentially determine a sentence that includes time information, role information, and location information at the same time as a candidate sentence. When there is no sentence that includes time information, role information, and location information at the same time in the text information, the text information classification system may further determine a sentence that includes two or one of the time information, role information, and location information as a candidate sentence until the candidate sentence is successfully determined.

[0183] In addition, if no foreign affairs key information exists in each sentence in the text information, the text information can be directly classified as a non-foreign affairs event.

[0184] In actual situations, the text information may contain multiple sentences, i.e., candidate sentences, containing foreign affairs key information. In some implementations, the candidate sentence containing the most foreign affairs key information may be selected to execute the next step, i.e., the operation of matching the trigger word; or in other implementations, the next step, i.e., the operation of matching the trigger word, may be executed for each candidate sentence separately.

[0185] In a possible implementation, the processing unit 412 matches the trigger word from the candidate sentences according to the trigger word dictionary to obtain a candidate sentence containing the trigger word, and determines the candidate sentence containing the trigger word as an event sentence.

[0186] Here, after the candidate sentences are determined, according to the pre-constructed trigger word dictionary, the trigger words in the trigger word dictionary are matched from the candidate sentences containing the key information, and the successfully matched sentences are determined as event sentences.

[0187] Here, based on the characteristics of foreign affairs events, in possible implementation methods, the trigger words include but are not limited to: visit, go to, visit, come, visit, visit, meet, receive, invite, attend, hold, host, participate, etc.

[0188] It should be understood that since different trigger words may correspond to different classifications of foreign affairs events, in order to improve the classification efficiency of text information, the trigger words are divided into a first classification type and a second classification type according to the meaning of the trigger words. Among them, the first classification type is a type that can directly classify the text information according to the meaning of the trigger words, and the first classification type includes: outbound visits and inbound visits. The trigger words belonging to the outbound visit events include but are not limited to: outbound visits, visits, etc. Through the meanings and grammatical features of such trigger words, it can be directly determined that the text information with the trigger words is a foreign affairs event of an outbound visit; the trigger words belonging to the inbound visit events include but are not limited to: inbound visits, visits, etc. Through the meanings and grammatical features of such trigger words, it can be directly determined that the text information with the trigger words is a foreign affairs event of an inbound visit.

[0189] The second classification type is a type that cannot directly classify the text information based on the meaning of the trigger word. The second classification type includes unknown events. The trigger words belonging to the unknown events include but are not limited to: visit, tour, visit, meeting, reception, invitation, attendance, holding, hosting, participating, etc. Such trigger words cannot directly determine whether the text information is a visiting event or an outing event. Therefore, the text information containing such trigger words needs to be further analyzed to determine the classification type of the text information.

[0190] In an exemplary embodiment, the processing unit 412 further classifies the text information into foreign affairs events based on the matching results.

[0191] Here, according to the matching result of the trigger word in the candidate sentence, the text information is classified as a visit, an incoming visit or a non-foreign affairs event. The matching result includes a successful match and a failed match. The successful match means that the candidate sentence contains a trigger word in the trigger word dictionary, and the failed match means that the candidate sentence does not contain a trigger word in the trigger word dictionary.

[0192] Furthermore, when the match is successful, it is further determined whether the matched trigger word belongs to the first classification type, the second classification type, or the third classification type. Thus, the text information is classified into foreign affairs events according to different matching results. Moreover, based on the above description, it can be concluded that the different matching results include four types: a successful match and the matched trigger word belongs to the first classification type, a successful match and the matched trigger word belongs to the second classification type, a successful match and the matched trigger word belongs to the third classification type, and a failed match. The following will describe the four different types of matching results separately.

[0193] In an exemplary embodiment, if the match is successful and the trigger word belongs to a first classification type that can directly classify foreign affairs events, the text information is determined as a category of an outbound visit event or an incoming visit event that is pre-associated with the first classification type.

[0194] Here, the outgoing visit event or the incoming visit event in the first classification type is associated and corresponds to the outgoing visit event and the incoming visit event in the text information classification, that is, when the candidate sentence in the text information contains a trigger word in the first classification type, the text information can be directly classified as an outgoing visit event or an incoming visit event. Specifically, when the candidate sentence in the text information contains trigger words such as "go out" and "go to" that belong to the outgoing visit event type, the text information can be determined as an outgoing visit event; when the candidate sentence in the text information contains trigger words such as "visit" and "come" that belong to the incoming visit event type, the text information can be determined as an incoming visit event.

[0195] In an exemplary embodiment, if the match is successful and the trigger word belongs to the second classification type that can indirectly classify foreign affairs events, the event sentence is syntactically analyzed to obtain the syntactic relationship between the words in the event sentence, and the text information is classified as an outbound event or an inbound event based on the grammatical features related to the trigger word obtained from the syntactic relationship and the role entity objects extracted from the event sentence, the semantics of the trigger word, the country attributes associated with the role entity objects, and the event location extracted from the event sentence and its associated country attributes.

[0196] Here, if the match is successful and the matched trigger word belongs to the second classification type, that is, the text information classification system cannot directly determine the classification of the text information based on the meaning of the trigger word, then the event sentence can be subjected to syntactic analysis to obtain the syntactic relationship between the words in the event sentence. Among them, the syntactic relationship between the words includes but is not limited to: the structure of each word relative to the clause, and the dependency relationship between the words. Among them, examples of the structure of each word relative to the clause include: subject-predicate-object structure, attributive / adverbial / complement structure, etc.; examples of the dependency relationship between the words include subject-predicate relationship, verb-object relationship, attributive-mediate relationship, etc. The method of syntactic analysis includes but is not limited to: syntactic structure analysis, dependency syntactic parsing, etc.

[0197] In some implementations, after the event sentence is syntactically analyzed, a syntactic parsing tree of the event sentence may be constructed with the trigger word as the core, thereby facilitating classification of the text information using the meaning of the trigger word.

[0198] In an exemplary embodiment, each word in each event sentence corresponds to an entity name.

[0199] The number of entity name types can be determined according to actual needs. In some implementations, the number of entity name types includes 26 types, and in some implementations, it is expanded to 40 types. In this embodiment, according to the needs of this embodiment, the entity name includes but is not limited to: date (TIME), name (NAME), position (JOB), organization (ORG) and / or company (COMPANY), and location (LOCATION).

[0200] Here, the event sentence may be sequence labeled, so that each word in the event sentence is labeled with the corresponding entity name.

[0201] In an exemplary embodiment, the BIO annotation mode can be used for sequence annotation. It should be understood that in the BIO annotation mode, each character is marked as "BX", "IX" or "O". Among them, "BX" means that the segment where this element is located belongs to the X type and this element is at the beginning of this segment, "IX" means that the segment where this element is located belongs to the X type and this element is in the middle of this segment, "O" means that it does not belong to any type, and X represents the name of each entity. For example, in the event sentence "On April 1, President Zhang San of University A and Vice President Li Si met with President Zhao Liu and his delegation from Jiayi University of Science and Technology of Ding Country in City A.", assuming that University A is a university located in City A, and City A is a domestic city, and "Jiayi University of Science and Technology of Ding Country" is the name of the entire organization, the two characters in "Ding Country" can be marked as "B-Place I-Place" respectively, the six characters in "Jiayi University of Science and Technology" can be marked as "B-Organization I-Organization I-Organization I-Organization I-Organization I-Organization", the two characters in "City A" can be marked as "B-Place I-Place" respectively, and "In" can be marked as "O".

[0202] In some embodiments, entity names belonging to the same role in the event statement may be integrated to form a role entity object, that is, the role entity object is used to characterize features belonging to the same role, and the features are represented by various entity names related to the role.

[0203] Thus, when analyzing a sentence, the entity names belonging to the same role can be integrated into a role entity object, thereby simplifying the structure of the event sentence and reducing the complexity of the sentence. In some embodiments, the role can be interpreted as a person, for example, the entity names belonging to the same person are integrated to form a role entity object, such as "University A-President-Zhang San", where "University A", "President", and "Zhang San" are all entity names of the same role "Zhang San"; in some other embodiments, the role can be interpreted as an organization or company, for example, the text information classification system integrates the entity names belonging to the same organization into a role entity object, or the text information classification system integrates the entity names belonging to the same company into a role entity object.

[0204] Here, after determining each entity name in the event sentence, the grammatical features of each entity name related to the trigger word can be determined by using the syntactic relationship obtained in the above syntactic analysis. In some examples, the grammatical features include grammatical relationships such as subject-predicate relationship, verb-object relationship, attributive-predicate relationship, etc. between each entity name and the trigger word.

[0205] In an exemplary embodiment, when determining each role entity object, the event sentence can be segmented based on the role name, conjunction or preposition; then, the entity names belonging to the same role in the segmented event sentence are integrated to form the role entity object of each role.

[0206] Continuing with the example of "On April 1, President Zhang San of University A and Vice President Li Si met with President Zhao Liu and his delegation from Jiayi University of Science and Technology in Ding country in City A.", the event sentence can be divided into: On April 1 (TIME), / President (JOB) Zhang San (NAME) of University A (ORG) / and / Vice President (JOB) Li Si (NAME) / met with / President Zhao Liu (NAME) and his delegation from Jiayi University of Science and Technology in Ding country in City A (LOCATION).

[0207] After segmenting the event sentence, the text information classification system integrates the entity names belonging to the same character to form a role entity object for each character. In this embodiment, the text information classification system integrates the entity names belonging to the same person to form a role entity object based on the syntactic relationship in the event sentence and the meaning of the entity name. Continuing with the example in the previous paragraph, the text information classification system integrates the entity names belonging to the same character to form the following role entity objects:

[0208] {"person":[{"job":"Principal","org":"University A","company":null,"location":"City A","name":"Zhang San"}]}

[0209] {"person":[{"job":"Vice President","org":"University A","company":null,"location":"City A","name":"Li Si"}]}

[0210] {"person":[{"job":"Principal","org":"Dingguo Jiayi University of Science and Technology","company":null,"location":null,"name":"Zhao Liu"}]}.

[0211] In an exemplary embodiment, after clarifying each role entity object in the event sentence and the syntactic relationship between each role entity object and the trigger word, the execution identity of each related role entity object related to the trigger word in grammatical features relative to the trigger word can be determined based on the semantics of the trigger word; the execution identity includes: the visiting party and the visited party, and based on the execution identity and country attributes of each role entity object, and the location of the event and its country attributes, the differences and similarities in the country attributes between the visiting party or the visited party and the location of the event can be determined, and foreign affairs events can be classified accordingly.

[0212] In simple terms, for trigger words of the second classification type, although it is not possible to directly determine whether they belong to an outbound or inbound visit event, based on the execution identity of the role entity object related to the trigger word (determined by the semantic and grammatical features of the trigger word), the country attribute of the role entity object, the location of the event and its country attribute, it can be inferred that it is a domestic role.

[0213] Of course, the execution identity may also include: the doer and the recipient of the external affairs event.

[0214] Optionally, in order to obtain this information accurately, the event statement may be further simplified to reduce the complexity of classifying the text information into foreign affairs events.

[0215] In some embodiments, the text information classification system first removes redundant information in the event sentence, so that the event sentence only includes trigger words and relevant role entity objects, and is presented in the order of subject, predicate, and object. The redundant information is irrelevant or low-relevance information in the process of integrating entity names into role entity objects, including but not limited to: date, punctuation, location and other information. The subject and object are both role entity objects, the predicate is a trigger word, and the subject is defined as the agent and the object is defined as the recipient. For example, an event sentence includes two different role entity objects A and B, and in the original event sentence, A is before the trigger word and B is after the trigger word, then the event sentence can be in the form of "A trigger word B", and A is the agent relative to the trigger word and B is the recipient relative to the trigger word.

[0216] In some embodiments, the trigger words belonging to the second classification type can be further subdivided to determine the execution identity of each related role entity object, and the execution identity includes: visitor or visitee. Here, the trigger words of the second classification type are further subdivided according to semantics into: the type in which the agent is the visitor and the recipient is the visitee (Ⅱ-Ⅰ type), and the type in which the agent is the visitee and the recipient is the visitor (Ⅱ-Ⅱ type). Here, examples of the trigger words of the Ⅱ-Ⅰ type include but are not limited to: visit, tour, visit, etc.; examples of the trigger words of the Ⅱ-Ⅱ type include but are not limited to: meeting, reception, invitation, etc. Thus, the execution identity of each related role entity object is determined by the subdivided type of the trigger words in the second classification type.

[0217] In some embodiments, the location of the event can be determined by the location entity name type in the event statement. The location of the event and each role entity object have a country attribute, and the country attribute is the country where the role entity object and the location of the event are located. The country attribute can be determined by the entity names of the organization, company, and location in the role entity object. The judgment method includes but is not limited to judging the country attribute of the role entity object by matching a preset domestic and foreign location noun dictionary through a preset pattern matching method. In addition, in some embodiments, the country attribute can be represented by a specific country type such as "Country C", "Country D", "Country B", or by the internal and external attributes compared to a certain country, such as "domestic" or "foreign" relative to "Country B".

[0218] When the trigger word belongs to type II-I or type II-II, if the visiting party is a domestic party and the event occurs abroad, the text information is classified as an outbound visit event; if the visiting party is a foreign party and the event occurs in China, the text information is classified as an incoming visit event. It should be understood that in foreign affairs events, according to language expression habits, generally there will not be a situation where the visiting party is a domestic party and the event occurs in China, or the visiting party is a foreign party and the event occurs in a foreign country. Of course, it is not limited to this, that is, the above-mentioned scheme of the present application is not limited by expressions that violate this language expression habit.

[0219] It should be noted that if we do not consider the active and passive voices in language expression, and consider that only the active voice is used in the actual language expression habits of foreign affairs news, then when classifying foreign affairs events according to the above-mentioned Ⅱ-Ⅰ type or Ⅱ-Ⅱ type, it is not necessary to determine the actor and the recipient. Instead, foreign affairs events can be classified based only on the differences and similarities in the national attributes of the visiting party and the visited party at the same place where the event occurred (that is, they can be divided into visiting events or outgoing events).

[0220] The following will be explained through a specific example. It should be understood that this example is only used to explain the implementation of the present application but not to limit the implementation of the present application.

[0221] Here, assume that the original event sentence is: "On April 1, Zhang San, president of University A, and Li Si, vice president, met with Zhao Liu, president of University A, and his party from University A, University B, in City A." University A is a university located in City A, University B, and City A is a domestic city of Country B. In this event sentence, "April 1" and "in City A" are not related to the role entity objects where Zhang San, Li Si, and Zhao Liu are located. Therefore, "April 1" and "in City A" can be removed when analyzing the role entity objects. After removing redundant information, the event sentence becomes "Zhang San, president of University A, and Li Si, vice president, met with Zhao Liu, president of University A, and his party from University A, University B, University B." Here, the entity names belonging to the same organization are integrated into role entity objects, and the trigger word is used as the predicate. The first role entity object of its subject is expressed as: "Zhang San, president of University A, and Li Si, vice president," and the second role entity object of its predicate is expressed as: "Zhao Liu, president of University A, and his party from University A, University B, University B."

[0222] According to the meaning of the trigger word "meeting", it can be classified into the type where the agent is the visited party and the recipient is the visiting party (Type II-II). Therefore, the first role entity object is the agent of the event and the visited party, and the second role entity object is the recipient of the event and the visiting party.

[0223] To put it simply, it is determined that "President Zhang San and Vice President Li Si of University A" are the visited parties, and "President Zhao Liu and his delegation from University A B of Science and Technology in Country D" are the visiting parties.

[0224] According to the name of the organization entity "University A" in the first role entity object, it can be known that the country attribute of the first role entity object is domestic, and according to the name of the organization entity "Dingguo Jiayi Polytechnic University" in the second role entity object, it can be known that the country attribute of the second role entity object is foreign. In addition, according to the place entity name "City A" in the event sentence, it can be known that the place where the event occurred is domestic. Since the place where the event occurred is the same as the country attribute of the first role entity object but different from the country attribute of the second role entity object, it can be concluded that the foreign affairs event belongs to a visiting event, that is, the text information where the event sentence is located should be classified as a visiting event.

[0225] In an exemplary embodiment, when the trigger word belongs to the third classification type, or when the trigger word fails to be matched in the candidate sentence, the classification of the text information may be determined in the following manner.

[0226] The third classification type is a successful match and the trigger word belongs to a type that cannot be classified into a foreign event through the trigger word dictionary, that is, the trigger word cannot be used to determine whether the doer and the recipient belong to the type of the visitor or the visited party. Examples of trigger words of the third classification type include but are not limited to: attend, hold, host, participate, etc.

[0227] In a possible implementation, the event sentence is parsed using dependency syntax analysis to determine the verbs and their child nodes in the event sentence, and the child nodes are determined to be the agent or the patient of the external event based on the syntactic relationship between the child nodes and the verbs.

[0228] Wherein, the syntactic relationship between the words includes but is not limited to: the structure of each word relative to the clause, and the dependency relationship between the words. Wherein, examples of the structure of each word relative to the clause include: subject-predicate-object structure, attributive-adverbial-complement structure, etc.; examples of the dependency relationship between the words include subject-predicate relationship, verb-object relationship, attributive-predicate relationship, etc. The method of syntactic analysis includes but is not limited to: syntactic structure analysis, dependency syntactic parsing, etc. In some embodiments, the text information classification system performs syntactic analysis on the event sentence to determine the verb in the event sentence, and establishes the syntactic relationship between the verb and other words with the verb as the core.

[0229] In a possible implementation manner, the text information is classified into foreign affairs events according to the meaning of the verb, and the agent and the recipient, so as to be classified into other event classifications included in the foreign affairs event classification.

[0230] Here, the method of pattern matching is used to determine whether the vocabulary with the subject-predicate or verb-object relationship with the verb is an event role. Wherein, the event role includes but is not limited to: name, organization, company, etc. If the vocabulary is a vocabulary about the event role and the vocabulary and the verb are in a subject-predicate relationship, the event role corresponding to the vocabulary is determined as the doer; if the vocabulary is a vocabulary about the event role and the vocabulary and the verb are in a verb-object relationship, the event role corresponding to the vocabulary is determined as the recipient. After the doer and the recipient are determined, the text information classification system classifies the doer and the recipient into the visitor and the visited party according to the meaning of the verb. After the visitor and the visited party are determined, the text information classification system classifies the text information into foreign affairs events according to the meaning of the verb in combination with the national attributes of the visitor and the visited party and the place of occurrence of the event, so as to classify the event into other event classifications other than the classification of outbound visits, the classification of incoming visits, and the classification of non-foreign affairs events. The meaning of the verb, the national attributes of the visiting party and the visited party, and the place of occurrence of the event are determined in a similar manner to the above-mentioned embodiment, so they will not be repeated here. For example, "A attends meeting B at C" can be classified into other event categories, or subdivided into the attending event sub-category under other event categories.

[0231] It should be understood that the role of judging the agent and the recipient in this embodiment is mainly to determine the voice (i.e., active voice or passive voice) of the event sentence centered on the verb, thereby determining the visitor and the visited party in the event sentence. Therefore, if the active and passive voices in the language expression are not considered, and only the active voice is used in the language expression habits of foreign affairs news, it is not necessary to determine the agent and the recipient. Instead, foreign affairs events can be classified (i.e., divided into visiting events or outgoing events) based only on the similarities and differences in the country attributes of the visitor and the visited party at the same place where the event occurred.

[0232] In an exemplary embodiment, when the foreign affairs event classification cannot be obtained from the body of the text information (e.g., a news article, an article), the foreign affairs event classification can be performed by analyzing the title or abstract of the text information to determine whether the foreign affairs event classification can be obtained from the title or abstract. For text information that cannot obtain the foreign affairs event classification from the body, title, and abstract of the text information or is identified as a non-foreign affairs activity through pattern matching, it is classified as a non-foreign affairs event.

[0233] In an exemplary embodiment, the classification results are stored in a database and / or the classification results are displayed.

[0234] Here, the text information classification system stores the obtained classification results in the database of the storage unit 413, or the text information classification system displays the obtained classification results in the display unit 414, or the text information classification system stores the obtained classification results in the database of the storage unit 413 and displays them in the display unit 414 at the same time.

[0235] In some embodiments, the database may be integrated into the text information classification system. Alternatively, the database may also be located at a server, and the text information classification system sends the classification result, or the classification result and the text information together, to the server so that the server classifies the text information according to the classification result.

[0236] In some embodiments, the computer where the text information classification system is located includes a display device, and the text information classification system displays the classification results on the display device, or the first computer where the text information classification system is located is communicatively connected to a display device or a second computer for displaying the classification results, thereby sending the text information classification results to the display device for display, or sending the text information classification results to the second computer and displaying them on the second computer.

[0237] In an exemplary embodiment, the text information classification system corresponds each classification result to a corresponding classification category color and displays it, or corresponds each classification result to a corresponding classification category column and displays it. For example, the text information classification system corresponds an outbound visit event to red and an incoming visit event to blue, so that after classifying the text information, the text information and the foreign affairs event classification corresponding to the text information are presented in the display interface with corresponding colors. For another example, the text information classification system corresponds an outbound visit event to the left side of the display interface, and corresponds an incoming visit event to the right side of the display interface.

[0238] In an exemplary embodiment, in the process of classifying text information in the above embodiment, the text information classification system further extracts elements in the event sentence by analyzing the syntactic relationship between words and the semantics of trigger words or verbs after syntactic analysis of the event sentence. The elements include but are not limited to: name, location, behavior, etc.

[0239] In some embodiments, the text information classification system can perform dependency syntactic analysis on the event sentence, so as to obtain the syntactic relationship between each word in the event sentence. In addition, the text information classification system performs sequence annotation on the event sentence, so as to mark each word in the event sentence with an entity name, so that the text information classification system can extract the elements in the event sentence according to the entity name. Taking "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint art and cultural exchange and dance performance between Country B and Country C in City E" as an example, the event can be determined as a visit event based on the trigger word "invite" and the various steps in the above embodiments such as syntactic analysis, and the elements "Wang Wu", "Country C", "cultural exchange", "performance", etc. can be extracted from it according to actual requirements.

[0240] In other embodiments, the text information classification system can directly match preset element keywords in the event sentence by means of pattern matching. When the event sentence contains preset element keywords, the matched element keywords are determined as the elements corresponding to the text information. Among them, the element keywords can be included in a pre-constructed element keyword dictionary. For example, continuing with the example of "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint art and cultural exchange and dance performance between Country B and Country C in City E", assuming that the pre-constructed element keyword dictionary includes element keywords: "Country C", "Cultural Exchange", "Performance", then the text information classification system can match "Country C", "Cultural Exchange", "Performance" in the above example sentences, and use these element keywords as elements of the text information.

[0241] In some other embodiments, the text information system can also directly match preset element keywords in the text information by pattern matching, and when the text information contains the preset element keywords, the matched element keywords are determined as the elements corresponding to the text information. The element keywords can be included in a pre-constructed element keyword dictionary.

[0242] In an exemplary embodiment, the method further includes matching the extracted elements with the preset element types according to the preset element types, storing the matched element types in a database and / or displaying the matched element types.

[0243] Here, in order to centrally process elements of similar types, it is necessary to avoid information clutter caused by too many elements. In some embodiments, one or more element types can be preset, and each element type corresponds to multiple synonymous elements. When the text classification system extracts at least one of the multiple synonymous elements from the event sentence, the element type corresponding to the synonymous element is stored in the database and / or displayed. Among them, the element type is used to cluster synonymous elements, and its examples include but are not limited to: overseas exchanges, cooperative development, education, cultural exchanges, etc.; the synonymous elements refer to elements with similar semantics or types, and its examples include but are not limited to: "dance performance" and "ballet performance", "symphony solo" and "folk music ensemble", etc. In other embodiments, an element may correspond to multiple element types, and these element types can be determined as elements of the text information and stored in the database and / or displayed. In some other embodiments, the text information classification system can also match the preset element type according to the foreign affairs event classification type of the text information combined with one or more of the extracted elements. For example, continuing with the example of "Wang Wu, head of the Little Red Flower Art Troupe of City A, was invited by Sun Qi, head of the D Art Troupe of Country C, to conduct a joint exchange of art and culture between Country B and Country C and a dance performance in City E", after extracting "Country C", "cultural exchange" and "performance" in the event sentence by the method in the above embodiment, the corresponding preset element types can be matched by the method in this embodiment. Among them, by the type of the event being a foreign affairs event and the element of "cultural exchange", it can be matched with the preset element type of "overseas exchange"; according to "performance", it can be matched with the preset element types of "literary performance" and "education" respectively.

[0244] In an exemplary embodiment, the text information classification system displays the extracted elements or matched element types together with the foreign affairs event classification results of the text information near the text information, so that the reader can quickly understand the content of the text information. Alternatively, the elements, element types, and foreign affairs event classification categories can also be indexed with the text information in the form of tags, so that the corresponding text information can be displayed for reading when the reader selects the corresponding tag.

[0245] The text information classification system in the present application matches the keywords in the foreign affairs event trigger word dictionary in the text information, designs matching patterns according to different types of foreign affairs activities, and classifies the text information according to the meaning of the trigger words, the syntactic rules of the sentences in the text information, etc. In this process, the sentence structure is simplified by syntactic analysis and other methods, and redundant information is removed, which ensures the efficiency and accuracy of the classification results, and effectively solves the technical problem of the difficulty in classifying foreign affairs events in the prior art.

[0246] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0247] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0248] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0249] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0250] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0251] Secondly, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

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

[0253] For example, each unit in the text information classification system can be implemented by software running on hardware in a computer system; similarly, the method can also be implemented by software running on hardware in a computer system.

[0254] The computer system may be any one or more computing devices with mathematical and logical operations and data processing capabilities, including but not limited to: a personal computer, a single server, a server cluster, a distributed server, a cloud-based server, etc.

[0255] In an exemplary embodiment, see Figure 5 , which is a schematic diagram of the structure of the computer system in the present application. As shown in the figure, the computer system 50 includes one or more memories 502, one or more processors 501, and one or more programs stored in the memory 502.

[0256] Among them, the one or more programs are stored in the memory and are configured to be executed by the one or more processors. The one or more processors run the programs so that the electronic device executes the above-mentioned text information classification method, that is, the processor 501 executes the execution instruction so that the computing system 50 executes the text information classification method, thereby matching the keywords in the foreign affairs event trigger word dictionary in the text information, and designing matching patterns according to different types of foreign affairs activities, and classifying the text information according to the meaning of the trigger words, the syntactic rules of the sentences in the text information, etc.

[0257] Wherein, the memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. In some embodiments, the memory may also include a memory away from one or more processors, such as a network attached memory accessed via an RF circuit or an external port and a communication network (not shown), wherein the communication network may be the Internet, one or more intranets, a local area network (LAN), a wide area network (WLAN), a storage area network (SAN), etc., or a suitable combination thereof. The memory also includes a memory controller that can control the access of other components of the device such as a CPU and a peripheral interface to the memory. The memory is used to store at least one program for executing each step exemplified based on the technical idea of ​​the present application when executed.

[0258] The one or more processors are operably coupled to the memory and / or non-volatile storage device. More specifically, the processor can execute instructions stored in the memory and / or non-volatile storage device to perform operations in the computing device, such as generating image data and / or transmitting the image data to an electronic display. In this way, the processor may include one or more general-purpose microprocessors, one or more application-specific processors (ASICs), one or more field programmable logic arrays (FPGAs), or any combination thereof. One or more processors are also operably coupled to an interface unit, through which the computing device can interact with various other electronic devices, and can enable a user to interact with the computing device. Among them, the interface unit includes I / O ports, input structures, network ports, etc. Among them, the input structures may include buttons, keyboards, mice, touch pads, etc.

[0259] The one or more processors read the at least one program from the memory to implement the functions of each module.

[0260] In addition, the computer system may further include a display unit.The electronic display may include a touch component that facilitates user input by detecting the occurrence and / or location of an object touching its screen (eg, the surface of the electronic display).

[0261] See also Figure 6, which is shown as a structural diagram of a service end. The service end includes but is not limited to a single server, a server cluster, a distributed server group, a cloud service end, etc. Here, according to the actual design, the service end can be configured in a server device located in a computer room on the building side. For example, the single server or server cluster is located in a computer room on the building side. According to the actual design, the service end is provided by a cloud service end provided by a cloud provider. Among them, the cloud service end includes a public cloud (Public Cloud) service end and a private cloud (Private Cloud) service end, wherein the public or private cloud service end includes Software-as-a-Service (Software as a Service, SaaS), Platform-as-a-Service (Platform as a Service, PaaS) and Infrastructure-as-a-Service (Infrastructure as a Service, IaaS), etc. The private cloud service end is for example Alibaba Cloud Computing Service Platform, Amazon Cloud Computing Service Platform, Baidu Cloud Computing Platform, Tencent Cloud Computing Platform, etc.

[0262] like Figure 6 As shown, the server includes an interface unit 601, a storage unit 603, and a processing unit 602. The storage unit 603 includes a non-volatile memory, a storage server, etc. The non-volatile memory is exemplified by a solid state drive or a USB flash drive. The storage server is used to store the various text information obtained and the classification results of the text information. The interface unit 601 includes a network interface, a data line interface, etc. The network interface includes but is not limited to: an Ethernet network interface device, a network interface device based on a mobile network (3G, 4G, 5G, etc.), a network interface device based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes but is not limited to: a USB interface, RS232, etc. The interface unit is connected to a computer device, the Internet, etc. The processing unit 602 is connected to the interface unit 601 and the storage unit 603, and includes: at least one of a CPU or a chip integrated with a CPU, a programmable logic device (FPGA), and a multi-core processor. The processing unit 602 also includes a memory, a register, and other storage devices for temporarily storing data.

[0263] The interface unit 601 is used for data communication with a computer device. The computer device is used to store text information. Here, the interface unit 601 is exemplified as a network card, which can communicate with the computer device through the Internet or a dedicated network.

[0264] The storage unit 603 is used to store at least one program. Here, the storage unit 603 includes, for example, a hard disk set at the server end and storing the at least one program. In addition, according to the external data required to be obtained during the program running, various text information obtained by the interface unit 601 is stored in the storage unit 603.

[0265] The processing unit 602 is used to call the at least one program to coordinate the interface unit and the storage unit to execute the text information classification method mentioned in any of the above examples. Figure 1 to Figure 3 The corresponding description is shown and will not be repeated here.

[0266] See also Figure 7 , which is a schematic diagram of the structure of a client, wherein the client is exemplified as an application program, which can be installed in devices such as smart phones and tablet computers.

[0267] In a possible implementation, the client includes an interface unit 701 and a display interface 702. The interface unit 701 includes a network interface, a data line interface, etc. The network interface includes, but is not limited to, an Ethernet network interface device, a mobile network (3G, 4G, 5G, etc.), a network interface device based on short-range communication (WiFi, Bluetooth, etc.), etc. The data line interface includes, but is not limited to, a USB interface, RS232, etc. The interface unit is communicatively connected to the interface unit of the above-mentioned server, thereby performing data communication with the server to receive the classification results provided by the server.

[0268] The display interface 702 is in communication connection with the interface unit 701, so as to display the classification result received by the interface unit 701 from the server.

[0269] It should be noted that, through the description of the above implementation methods, those skilled in the art can clearly understand that part or all of the present application can be implemented with the help of software and in combination with a necessary general hardware platform. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product. Based on this, the present application further provides a computer-readable and writable storage medium, on which a computer program of a text information classification method is stored. When the computer program storing the text information classification method is executed by a processor, the steps of the above-mentioned text information classification method are implemented.

[0270] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0271] In the embodiments provided in the present application, the computer readable and writable storage medium may include a read-only memory (ROM), a random access memory (RAM), an EEPROM, a CD-ROM or other optical disk storage device, a magnetic disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store the desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.

[0272] The present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices.

[0273] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer-readable storage media, including storage devices.

[0274] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A text information classification method, characterized in that: The following steps are involved: Get text information; Matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences; wherein the trigger words are included in the trigger word dictionary; Based on the matching results, the text information is classified into foreign affairs events; the categories of the foreign affairs events include: outbound visits, incoming visits, and non-foreign affairs events; Storing the classification results in a database and / or displaying the classification results; Wherein, based on the matching result, the step of classifying the text information into foreign affairs events includes: If the match is successful and the trigger word belongs to the first classification type that can directly classify foreign affairs events, the text information is determined as a classification of an outbound visit event or an incoming visit event pre-associated with the first classification type; If the match is successful and the trigger word belongs to the second classification type that can indirectly classify foreign affairs events, the event sentence is parsed to obtain the syntactic relationship between the words in the event sentence, and the execution identity of each related role entity object related to the trigger word in terms of grammatical features relative to the trigger word is determined based on the semantics of the trigger word; and the differences and similarities between the country attributes of the visiting party or the visited party and the place where the event occurred are determined based on the execution identity and country attributes of each role entity object, and the place where the event occurred and its country attributes, so as to classify the foreign affairs events accordingly; wherein the execution identity includes: the visiting party and the visited party; If the match fails or the trigger word belongs to the third classification type of foreign affairs event that cannot be classified through the trigger word dictionary, the event sentence is syntactically parsed using dependency syntactic analysis to determine the verbs and their sub-nodes in the event sentence, and the sub-nodes are determined to be the agent or the patient of the foreign affairs event based on the syntactic relationship between the sub-nodes and the verbs; and the text information is classified into foreign affairs events based on the meaning of the verbs, and the agent and the patient, so as to be classified into other event classifications included in the foreign affairs event classification; wherein the foreign affairs key information includes: time information, role information, and location information.

2. The text information classification method according to claim 1, characterized in that: The role entity object is formed by integrating the entity names belonging to the same role in the event statement.

3. The text information classification method according to claim 1 or 2, characterized in that: Each word in each event sentence corresponds to an entity name, and the entity name includes: name, position, organization and / or company, and location.

4. The text information classification method according to claim 2, characterized in that: The steps of integration include: The event sentence is segmented based on the role name, conjunction or preposition; The entity names belonging to the same role in the segmented event statements are integrated to form the role entity object of each role.

5. The text information classification method according to claim 1, characterized in that: The step of matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences includes: Sentence processing is performed on the text information to determine whether each sentence contains key information through pattern matching, and the sentence containing the key information is determined as a candidate sentence; According to the trigger word dictionary, trigger words are matched from the candidate sentences to obtain candidate sentences containing the trigger words, and the candidate sentences containing the trigger words are determined as event sentences.

6. The text information classification method according to claim 1, characterized in that: The acquired text information is pre-processed.

7. The text information classification method according to claim 1, characterized in that: The step of storing the classification results in a database and / or displaying the classification results includes: corresponding each classification result to a corresponding classification category color and displaying it, or corresponding each classification result to a corresponding classification category column and displaying it.

8. The text information classification method according to claim 1, characterized in that: It also includes performing syntactic analysis on the event sentence based on the matching result to obtain the syntactic relationship between the words in the event sentence, and extracting the elements in the event sentence at least according to the syntactic relationship between the words and the semantics of the trigger word.

9. The text information classification method according to claim 8, characterized in that: The method also includes matching the extracted elements with the element types according to the preset element types, storing the matched element types in a database and / or displaying the matched element types.

10. A text information classification system, characterized in that: include: a communication unit for acquiring text information; A processing unit, for matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences; wherein the trigger words are included in a trigger word dictionary; and for classifying the text information into foreign affairs events based on the matching results; the categories of the foreign affairs event classification include: outbound visit events, incoming visit events, and non-foreign affairs events; A storage unit and / or a display unit, used to store the classification results in a database and / or to display the classification results; The processing unit classifies the text information into foreign affairs events based on the matching result, including: If the match is successful and the trigger word belongs to the first classification type that can directly classify foreign affairs events, the text information is determined as a classification of an outbound visit event or an incoming visit event pre-associated with the first classification type; If the match is successful and the trigger word belongs to the second classification type that can indirectly classify foreign affairs events, the event sentence is parsed to obtain the syntactic relationship between the words in the event sentence, and the execution identity of each related role entity object related to the trigger word in terms of grammatical features relative to the trigger word is determined based on the semantics of the trigger word; and the differences and similarities between the country attributes of the visiting party or the visited party and the place where the event occurred are determined based on the execution identity and country attributes of each role entity object, and the place where the event occurred and its country attributes, so as to classify the foreign affairs events accordingly; wherein the execution identity includes: the visiting party and the visited party; If the match fails or the trigger word belongs to the third classification type of foreign affairs event that cannot be classified through the trigger word dictionary, the event sentence is syntactically parsed using dependency syntactic analysis to determine the verbs and their sub-nodes in the event sentence, and the sub-nodes are determined to be the agent or the patient of the foreign affairs event based on the syntactic relationship between the sub-nodes and the verbs; and the text information is classified into foreign affairs events based on the meaning of the verbs, and the agent and the patient, so as to be classified into other event classifications included in the foreign affairs event classification; wherein the foreign affairs key information includes: time information, role information, and location information.

11. The text information classification system according to claim 10, characterized in that: The role entity object is formed by integrating the entity names belonging to the same role in the event statement.

12. The text information classification system according to claim 10 or 11, characterized in that: Each word in each event sentence corresponds to an entity name, and the entity name includes: name, position, organization and / or company, and location.

13. The text information classification system according to claim 11, characterized in that: The steps of integration include: The event sentence is segmented based on the role name, conjunction or preposition; The entity names belonging to the same role in the segmented event statements are integrated to form the role entity object of each role.

14. The text information classification system according to claim 10, characterized in that: The step of matching trigger words from candidate sentences containing foreign affairs key information in the text information to obtain event sentences includes: Sentence processing is performed on the text information to determine whether each sentence contains key information through pattern matching, and the sentence containing the key information is determined as a candidate sentence; According to the trigger word dictionary, trigger words are matched from the candidate sentences to obtain candidate sentences containing the trigger words, and the candidate sentences containing the trigger words are determined as event sentences.

15. The text information classification system according to claim 10, characterized in that: It also includes a preprocessing unit for preprocessing the acquired text information.

16. The text information classification system according to claim 10, characterized in that: The step of storing the classification results in a database and / or displaying the classification results includes: corresponding each classification result to a corresponding classification category color and displaying it, or corresponding each classification result to a corresponding classification category column and displaying it.

17. The text information classification system according to claim 10, characterized in that: The processing unit also includes performing syntactic analysis on the event sentence based on the matching result to obtain the syntactic relationship between the words in the event sentence, and extracting elements in the event sentence at least according to the syntactic relationship between the words and the semantics of the trigger word.

18. The text information classification system according to claim 16, characterized in that: The processing unit also includes matching the extracted elements with the element types according to the preset element types, and storing the matched element types in a database and / or displaying the matched element types.

19. A server, characterized in that: include: An interface unit, used for data communication with a computer device; wherein the computer device is used for storing text information; a storage unit, configured to store at least one program; and The processing unit is used to call the at least one program to coordinate the interface unit and the storage unit to execute the text information classification method as claimed in any one of claims 1 to 9.

20. A client, characterized in that: include: A display interface for displaying the classification results of text information; The interface unit is used for data communication with a server to receive a classification result provided by the server; wherein the classification result is obtained based on the text information classification method as described in any one of claims 1 to 9.

21. A computer system, characterized in that: include: One or more memories for storing at least one program; One or more processors are used to call the at least one program to execute the text information classification method according to any one of claims 1 to 9.

22. A computer-readable storage medium, characterized in that: At least one program is stored, and when the at least one program is called, it is executed and implements the text information classification method according to any one of claims 1 to 9.