A method and system for parsing long English sentences

By identifying and converting corpus connectors and semantic levels in English corpus, it converts long English sentences into short sentences, solving the problem of English beginners understanding complex sentences and achieving fast and accurate semantic analysis and understanding.

CN111914533BActive Publication Date: 2024-10-18GUANGDONG XIAOTIANCAI TECH CO LTD

Patent Information

Application Number
CN201910377288.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-07
Publication Date
2024-10-18
Estimated Expiration
2039-05-07

Smart Images

  • Figure CN111914533B_ABST
    Figure CN111914533B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for parsing long English sentences, the method comprising: obtaining English corpus; identifying corpus connectives in the English corpus; determining the semantic level contained in the English corpus according to the corpus connectives; analyzing the sentence structure of the English corpus, and identifying the main words in the English corpus according to the sentence structure; converting the English corpus into a corresponding plurality of English short sentences according to the corpus connectives, the semantic level and the main words; parsing the English short sentences to obtain the corpus semantics corresponding to the English corpus. The present invention can intuitively display the multiple semantic levels in the English long sentence by parsing the English long sentence into a plurality of English short sentences, thereby making it easier for English beginners and learners with poor English foundation to understand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and system for parsing long English sentences. Background Art

[0002] Mastering English proficiently has become one of the qualities we must possess. Although we have adopted many ways to improve our English level, the results are not satisfactory. For English beginners, when learning English, most English teachers currently let students memorize the meanings of words, the collocation of phrases, and grammar rules.

[0003] The above-mentioned learning based solely on memory may be effective for simple and short English sentences, but for longer English sentences, such as those containing multiple semantic levels such as attributive clauses and adverbial clauses, it is difficult to understand them by relying on rote memorization.

[0004] Therefore, a method and system for parsing long English sentences are needed to assist students in parsing the semantics of long English sentences. Summary of the invention

[0005] The purpose of the present invention is to provide a method and system for parsing long English sentences, which can intuitively display multiple semantic levels in the long English sentences by parsing the long English sentences into multiple English short sentences, so that English beginners and learners with poor English foundation can understand them more easily.

[0006] The technical solution provided by the present invention is as follows:

[0007] The present invention provides a method for parsing a long English sentence, comprising:

[0008] Obtain English corpus;

[0009] identifying corpus connectives in the English corpus;

[0010] Determining the semantic level contained in the English corpus according to the corpus connectives;

[0011] Analyzing the sentence structure of the English corpus, and identifying the main words in the English corpus according to the sentence structure;

[0012] Converting the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the subject words;

[0013] The English short sentence is parsed to obtain the corpus semantics corresponding to the English corpus.

[0014] Furthermore, it also includes:

[0015] Acquire keywords that can be used as conjunctions, and establish a keyword library based on the keywords;

[0016] Obtain an English sample containing a connective, define the connective in the English sample as a sample connective and mark it;

[0017] Comparing the English sample with the keyword library to determine sample keywords in the English sample;

[0018] Comparing the sample conjunctions with the sample keywords;

[0019] If the sample keywords are more than the sample connectives, analyzing the connective attribute information of the sample connectives and the non-connective attribute information of the sample keywords that are not sample connectives according to the sentence structure of the English sample;

[0020] A connective word recognition model is generated according to the connective word attribute information and the non-connective word attribute information.

[0021] Furthermore, comparing the sample conjunctions with the sample keywords specifically includes:

[0022] Counting the number of connectives of the sample connectives and the number of key words of the sample key words respectively, and the same sample connectives and sample key words are counted once;

[0023] Comparing the number of the connecting words with the number of the key words;

[0024] Counting the number of times each of the sample connectives appears, and the number of times each of the sample keywords appears;

[0025] The number of times the connecting words correspond to the same sample connecting words and sample keywords is compared with the number of times the keywords correspond to the same sample connecting words and sample keywords.

[0026] Furthermore, identifying the corpus connectives in the English corpus specifically includes:

[0027] Comparing the English corpus with the keyword library to determine corpus keywords in the English corpus;

[0028] Analyzing the corpus attribute information of the corpus keywords according to the sentence structure of the English corpus;

[0029] According to the corpus attribute information, in combination with the connective identification model, corpus connectives in the English corpus are identified.

[0030] Furthermore, it also includes:

[0031] The English corpus is parsed in combination with the English short sentences.

[0032] The present invention also provides a system for parsing long English sentences, comprising:

[0033] Corpus acquisition module, to acquire English corpus;

[0034] A conjunction recognition module, which recognizes the corpus conjunctions in the English corpus acquired by the corpus acquisition module;

[0035] A hierarchy analysis module, which determines the semantic hierarchy contained in the English corpus according to the corpus connectives identified by the connective identification module;

[0036] A subject analysis module, which analyzes the sentence structure of the English corpus acquired by the corpus acquisition module, and identifies the subject words in the English corpus according to the sentence structure;

[0037] a conversion module, which converts the English corpus into a plurality of corresponding English short sentences according to the corpus connectives identified by the connective identification module, the semantic levels determined by the hierarchy analysis module, and the subject words determined by the subject analysis module;

[0038] A semantic analysis module is used to analyze the English short sentences obtained by the conversion module to obtain the corpus semantics corresponding to the English corpus.

[0039] Furthermore, it also includes:

[0040] A word library building module, which obtains keywords that can be used as connecting words and builds a keyword library based on the keywords;

[0041] A sample acquisition module, which acquires an English sample containing a connective, defines the connective in the English sample as a sample connective and marks it;

[0042] A keyword recognition module compares the English sample acquired by the sample acquisition module with the keyword library established by the vocabulary library establishment module to determine sample keywords in the English sample;

[0043] A comparison module, which compares the sample conjunctions obtained by the sample acquisition module with the sample keywords identified by the keyword identification module;

[0044] an attribute analysis module, which analyzes the connective attribute information of the sample connectives and the non-connective attribute information of the sample keywords that are not sample connectives according to the sentence structure of the English sample if the comparison module finds that the sample keywords are more than the sample connectives;

[0045] The model generation module generates a connection word recognition model according to the connection word attribute information and the non-connection word attribute information obtained by the attribute analysis module.

[0046] Furthermore, the comparison module specifically includes:

[0047] A statistical unit, for respectively counting the number of connectives of the sample connectives and the number of key words of the sample key words, wherein the same sample connectives and sample key words are counted once;

[0048] A comparison unit, comparing the number of the connecting words obtained by the statistical unit with the number of the key words;

[0049] The statistical unit is configured to respectively count the number of times each of the sample connecting words appears, and the number of times each of the sample keywords appears;

[0050] The comparison unit compares the number of times of the connection words and the number of times of the keyword corresponding to the same sample connection words and sample keywords obtained by the statistical unit.

[0051] Furthermore, the conjunction recognition module specifically includes:

[0052] A keyword recognition unit compares the English corpus acquired by the corpus acquisition module with the keyword library established by the vocabulary building module to determine corpus keywords in the English corpus;

[0053] an attribute analysis unit, for analyzing the corpus attribute information of the corpus keywords identified by the keyword identification unit according to the sentence structure of the English corpus acquired by the corpus acquisition module;

[0054] A conjunction recognition unit recognizes conjunctions in the English corpus according to the corpus attribute information determined by the attribute analysis unit and in combination with the conjunction recognition model generated by the model generation module.

[0055] Furthermore, it also includes:

[0056] The corpus parsing module parses the English corpus acquired by the corpus acquisition module in combination with the English short sentences acquired by the conversion module.

[0057] The method and system for parsing long English sentences provided by the present invention can bring at least one of the following beneficial effects:

[0058] 1. In the present invention, by analyzing the corpus connectives and semantic levels of clauses in the English corpus, the English corpus is converted into a plurality of logically related English short sentences that are easy to understand, and then the English corpus is analyzed in combination with the semantics of the English short sentences, thereby reducing the difficulty of understanding the English corpus containing more clauses.

[0059] 2. In the present invention, by analyzing the attribute information corresponding to the sample keywords of the sample connectives and non-sample connectives in the English sample and summarizing the rules therein, a connective recognition model is generated, thereby ensuring that the corpus connectives in the English corpus can be recognized quickly and accurately.

[0060] 3. In the present invention, a good conjunction recognition model is established to automatically recognize the corpus conjunctions in the English corpus to be parsed, avoiding manual recognition. On the one hand, the system has a faster recognition speed, and on the other hand, the conjunction recognition model generated by the system based on a large number of English samples has a higher recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The following will explain the preferred implementation mode in a clear and understandable manner with reference to the accompanying drawings, and further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of a method and system for parsing long English sentences.

[0062] Figure 1 It is a flow chart of an embodiment of a method for parsing long English sentences of the present invention;

[0063] Figure 2 is a flow chart of another embodiment of a method for parsing an English long sentence of the present invention;

[0064] Figure 3 is a flow chart of another embodiment of a method for parsing an English long sentence of the present invention;

[0065] Figure 4 is a flow chart of another embodiment of a method for parsing an English long sentence of the present invention;

[0066] Figure 5 This is a schematic diagram of the structure of an embodiment of a system for parsing long English sentences according to the present invention.

[0067] Figure 6 It is a structural schematic diagram of another embodiment of a system for parsing long English sentences of the present invention.

[0068] Description of Figure Numbers:

[0069] 100 Systems for Parsing Long English Sentences

[0070] 10 vocabulary building module 20 sample acquisition module 30 keyword recognition module

[0071] 40 comparison module 41 statistical unit 42 comparison unit

[0072] 50 Attribute Analysis Module 60 Model Generation Module

[0073] 110 Corpus Acquisition Module

[0074] 120 Connective word recognition module 121 Keyword recognition unit 122 Attribute analysis unit 123 Connective word recognition unit

[0075] 130-level analysis module

[0076] 140 Subject Analysis Module 150 Conversion Module

[0077] 160 Semantic parsing module 170 Corpus parsing module DETAILED DESCRIPTION

[0078] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0079] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections.

[0080] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0081] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0082] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones, laptop computers, tutoring machines, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the terminal device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch screen displays and / or touch pads).

[0083] In the following discussion, a terminal device including a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, a mouse and / or a joystick.

[0084] The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a network creation application, a word processing application, a disk burning application, a spreadsheet application, a game application, a telephone application, a video conferencing application, an email application, an instant messaging application, a workout support application, a photo management application, a digital camera application, a digital camcorder application, a Web browsing application, a digital music player application, and / or a digital video player application.

[0085] Various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0086] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0087] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0088] One embodiment of the present invention, as Figure 1 As shown, a method for parsing a long English sentence includes:

[0089] S100 obtains English corpus;

[0090] Specifically, an English corpus to be parsed is obtained, where the English corpus is a long English sentence with a relatively complex structure, which may contain multiple semantic levels such as multiple attributive clauses and adverbial clauses, and the conjunctions of the attributive clauses, adverbial clauses and other clauses in the English corpus are not omitted.

[0091] In addition, the English corpus can be the homework content of the user in the learning process, such as short essays, English dialogues, etc., or it can be the user's oral practice materials. Therefore, the terminal can obtain the English corpus through the voice acquisition module, or it can obtain it by taking pictures and recognizing.

[0092] S200 identifies corpus connectives in the English corpus;

[0093] Specifically, for English corpus obtained completely according to grammatical rules, attributive clauses, adverbial clauses and other clauses generally have conjunctions as their markers. For example, a certain English corpus is: I like eating potato what is cooked by my sister when I was a child, in which the English words what and when are the corpus conjunctions of the corresponding attributive clause and adverbial clause, respectively, and can also be regarded as their markers. Therefore, the corpus conjunctions in the obtained English corpus are identified.

[0094] S300 determines the semantic level contained in the English corpus according to the corpus connectives;

[0095] Specifically, the semantic level contained in the English corpus is determined according to the corpus connectives, that is, the types and numbers of clauses such as attributive clauses and adverbial clauses contained in the English corpus are determined. For example, a certain English corpus is: I like eating potato what is cooked by my sister when I was a child, in which the English words what and when are the corpus connectives of the corresponding attributive clause and adverbial clause respectively, and the English corpus contains an attributive clause and an adverbial clause, so the semantic level of the English corpus can be determined.

[0096] S400 analyzes the sentence structure of the English corpus, and identifies the main words in the English corpus according to the sentence structure;

[0097] Specifically, the sentence structure of the English corpus is analyzed, the subject, predicate, object and components of each word of the English corpus are determined, and the main words in the English corpus are identified according to the sentence structure. The main words include the subject, predicate, object and English words related to the clauses in the English corpus.

[0098] For example, an English corpus is: I like eating potato what is cooked by mysister when I was a child, in which the English words what and when are the corpus connectives of the corresponding attributive clause and adverbial clause respectively. Among them, I is the subject, like is the predicate, eating potato is the verb-object phrase, and potato is the subject of the attributive clause. Therefore, I, like, eatingpotato, and potato can all be regarded as the main words of the English corpus.

[0099] S500 converts the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the main words;

[0100] Specifically, the English corpus is converted into a plurality of corresponding English short sentences according to the corpus connectives, the semantic level and the main words, each English phrase also has a complete structure, and the user can obtain some effective information from it. And all the English short sentences are sorted according to the logic of the semantic level in the English corpus.

[0101] For example, a certain English corpus is: I like eating potato what is cooked by mysister when I was a child, where the English words what and when are the corpus connectives of the corresponding attributive clause and adverbial clause respectively, and I, like, eating potato, and potato are extracted as the main words. Therefore, the English corpus can be converted into the following three corresponding English sentences. English sentence 1 is: I was a child, English sentence 2 is: I like eating potato, and English sentence 3 is: potato is cooked by my sister. There is a temporal connection between English sentences 1 and English sentences 2, and there is a logical order of appearance between English sentences 2 and English sentences 3. The object potato in English sentence 2 leads to the subject potato in English sentence 3. Therefore, there is a logical order of precedence in the above English sentences 1, English sentences 2, and English sentences 3.

[0102] S600 parses the English short sentence to obtain the corpus semantics corresponding to the English corpus.

[0103] Specifically, since the structure of English sentences is relatively simple and the grammatical knowledge points involved are relatively basic, parsing English sentences can be completed quickly and accurately. The semantics of each English sentence is parsed separately, and then the semantics of all English sentences are combined to finally obtain the corpus semantics corresponding to the English corpus.

[0104] In this embodiment, by analyzing the corpus connectives and semantic levels of clauses in the English corpus, the English corpus is converted into a plurality of logically related English sentences that are easy to understand, and then the English corpus is analyzed in combination with the semantics of the English sentences, thereby reducing the difficulty of understanding the English corpus containing more clauses.

[0105] Another embodiment of the present invention is an optimized embodiment of the above embodiment, as Figure 2 As shown, including:

[0106] S010 obtains keywords that can be used as conjunctions, and establishes a keyword library based on the keywords;

[0107] Specifically, keywords that can be used as conjunctions are obtained, for example, when commonly used in time adverbial clauses, what and that commonly used in attributive clauses. Keywords can be obtained by obtaining words that are allowed to be clause conjunctions from grammatical rules.

[0108] All acquired keywords are used to build a keyword database, and each keyword can be classified in the database according to the type of clause that it can represent. Therefore, it is possible that the same keyword may belong to multiple different clause categories.

[0109] S020 obtains an English sample containing a connective, defines the connective in the English sample as a sample connective and marks the connective;

[0110] Specifically, an English sample containing a conjunction is obtained, that is, an English sample containing at least one clause, and its conjunction is not omitted. The conjunctions in the English sample are defined as sample conjunctions and marked, because the same English word may be a conjunction of an English clause, or a subject, predicate, object, or other component of a sentence. In order to distinguish, the English words that act as clause conjunctions need to be marked.

[0111] For example, an English sample is: what is it in that box what is on the table. The second what that appears is the conjunction of the attributive clause, that is, the sample conjunction of the English sample. In order to distinguish it from the first what that appears, the sample conjunction is marked.

[0112] Not every English sample will have the same English word appear as both a conjunction and a non-conjunction, but to ensure that there is no confusion, the sample conjunctions in all English samples are marked.

[0113] S030 compares the English sample with the keyword library to determine sample keywords in the English sample;

[0114] Specifically, each English word in the English sample is compared with the keywords in the keyword library one by one, and the matched words are defined as sample keywords in the English sample. Among them, multiple English words may appear in the English sample and match the same keyword, that is, the same keyword, i.e., a sample keyword, appears multiple times in the English sample.

[0115] For example, an English sample is: what is it in that box what is on the table. The second what that appears is a conjunction in an attributive clause. By comparing the English sample with the keywords in the keyword library, the sample keywords obtained are what and that.

[0116] S040 compares the sample connecting words with the sample keywords;

[0117] S041 respectively counting the number of connectives of the sample connectives and the number of key words of the sample key words, and the same sample connectives and sample key words are counted once;

[0118] S042 compares the number of the connecting words with the number of the key words;

[0119] Specifically, the sample conjunctions are compared with the sample keywords. For example, an English sample is: what is it in that box what is on the table. The second what that appears is the conjunction of the attributive clause. The sample conjunction what is compared with the sample keywords what and that. First, the number of the two is compared. The number of conjunctions is one and the number of keywords is two, so one of the sample keywords must be a non-conjunction.

[0120] S043 respectively counts the number of times each of the sample connectives appears, and the number of times each of the sample keywords appears;

[0121] S044 compares the number of times the connecting words and the number of times the key words correspond to the same sample connecting words and sample key words.

[0122] Specifically, no matter whether the number of previously compared conjunctions and keywords is consistent, it is still necessary to compare the number of times the same sample conjunctions and sample keywords appear. For example, an English sample is: what is it in thatbox what is on the table. The second what that appears is a conjunction in the attributive clause. The sample conjunction what and the sample keyword what are the same. The number of conjunctions corresponding to the sample conjunction what is one, and the number of keywords corresponding to the sample keyword what is two. Therefore, one of the sample keywords what must be a non-conjunction.

[0123] S050: if the sample keywords are more than the sample connectives, analyzing connective attribute information of the sample connectives and non-connective attribute information of sample keywords other than sample connectives according to the sentence structure of the English sample;

[0124] Specifically, if the sample keywords are more than the sample connectives, whether the number of sample keywords is more than the number of sample connectives, or the number of sample keywords is more than the number of sample connectives, there must be non-connectives in the sample keywords. Therefore, the attribute information of the two is counted separately, that is, the connective attribute information and the non-connective attribute information. The attribute information includes the position and components of the words in the English sample, and the part of speech of adjacent words.

[0125] S060: Generate a connective word recognition model according to the connective word attribute information and the non-connective word attribute information.

[0126] Specifically, the common features of the attribute information of connectives, the common features of the attribute information of non-connectives, and the distinguishing features between the attribute information of connectives and the attribute information of non-connectives are analyzed, and the rules are summarized to finally generate a connective recognition model.

[0127] S100 obtains English corpus;

[0128] S200 identifies corpus connectives in the English corpus;

[0129] S300 determines the semantic level contained in the English corpus according to the corpus connectives;

[0130] S400 analyzes the sentence structure of the English corpus, and identifies the main words in the English corpus according to the sentence structure;

[0131] S500 converts the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the main words;

[0132] S600 parses the English short sentence to obtain the corpus semantics corresponding to the English corpus.

[0133] In this embodiment, attribute information corresponding to sample keywords of sample connectives and non-sample connectives in English samples is analyzed, and the rules therein are summarized to generate a connective recognition model, thereby ensuring that corpus connectives in English corpus can be recognized quickly and accurately.

[0134] Another embodiment of the present invention is an optimized embodiment of the above embodiment, as Figure 3 As shown, including:

[0135] S010 obtains keywords that can be used as conjunctions, and establishes a keyword library based on the keywords;

[0136] S020 obtains an English sample containing a connective, defines the connective in the English sample as a sample connective and marks the connective;

[0137] S030 compares the English sample with the keyword library to determine sample keywords in the English sample;

[0138] S040 compares the sample connecting words with the sample keywords;

[0139] S050: if the sample keywords are more than the sample connectives, analyzing connective attribute information of the sample connectives and non-connective attribute information of sample keywords other than sample connectives according to the sentence structure of the English sample;

[0140] S060: Generate a connective word recognition model according to the connective word attribute information and the non-connective word attribute information.

[0141] S100 obtains English corpus;

[0142] S200 identifies corpus connectives in the English corpus;

[0143] S210 compares the English corpus with the keyword library to determine corpus keywords in the English corpus;

[0144] Specifically, each English word in the English corpus is compared with the keywords in the keyword library one by one, and the words that match the comparison are defined as the corpus keywords in the English corpus. Among them, multiple English words may appear in the English corpus and match the same keyword, that is, the same keyword, that is, a corpus keyword, appears multiple times in the English corpus.

[0145] S220: analyzing the corpus attribute information of the corpus keywords according to the sentence structure of the English corpus;

[0146] Specifically, according to the sentence structure of the English corpus, the corpus attribute information of each corpus keyword is analyzed. If the same corpus keyword appears multiple times, the corpus attribute information of each occurrence must be analyzed, saved and distinguished separately.

[0147] S230 identifies corpus connectives in the English corpus according to the corpus attribute information and in combination with the connective identification model.

[0148] Specifically, according to the corpus attribute information, the corpus connectives in the English corpus are identified in combination with the connective identification model. If a certain corpus attribute information does not conform to the rule of the connective attribute information summarized in the connective identification model, the corresponding corpus keyword does not belong to the corpus connective.

[0149] Among them, in order to obtain accurate corpus conjunction recognition results, both the rules of conjunction attribute information and the rules of non-connection attribute information in the conjunction recognition model have a certain number of features. The corpus attribute information may have some features that are consistent with the rules of conjunction attribute information, and some features that are consistent with the rules of non-connection attribute information. The matching rates of the matches can be compared, and the one with a higher matching degree can be selected.

[0150] In addition, if corpus connectives in the English corpus are identified, the generated connective recognition model can be updated according to the corresponding corpus attribute information. The more resources the connective recognition model obtains, the faster and more accurate its recognition results can be.

[0151] S300 determines the semantic level contained in the English corpus according to the corpus connectives;

[0152] S400 analyzes the sentence structure of the English corpus, and identifies the main words in the English corpus according to the sentence structure;

[0153] S500 converts the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the main words;

[0154] S600 parses the English short sentence to obtain the corpus semantics corresponding to the English corpus.

[0155] In this embodiment, a good conjunction recognition model is established to automatically recognize the corpus conjunctions in the English corpus to be parsed, avoiding manual recognition. On the one hand, the system has a faster recognition speed, and on the other hand, the conjunction recognition model generated by the system based on a large number of English samples has a higher recognition accuracy.

[0156] Another embodiment of the present invention is an optimized embodiment of the above embodiment, as Figure 4 As shown, including:

[0157] S100 obtains English corpus;

[0158] S200 identifies corpus connectives in the English corpus;

[0159] S300 determines the semantic level contained in the English corpus according to the corpus connectives;

[0160] S400 analyzes the sentence structure of the English corpus, and identifies the main words in the English corpus according to the sentence structure;

[0161] S500 converts the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the main words;

[0162] S600 parses the English short sentence to obtain the corpus semantics corresponding to the English corpus.

[0163] S700 parses the English corpus in combination with the English short sentence.

[0164] Specifically, the English corpus is parsed in combination with the converted English short sentences. For example, the converted English short sentences and the English corpus can be displayed at the same time, and the sentence structure of the English corpus and the grammatical rules used are explained, so that users can understand the English corpus and truly master the grammatical knowledge points involved.

[0165] In addition, English samples with high relevance or the same sentence structure can be pushed to users for consolidation learning. For example, only the corresponding English samples can be displayed to allow users to convert English short sentences, and then check whether the results are correct, so as to provide users with expansion training.

[0166] In this embodiment, on the one hand, relevant grammatical knowledge points are parsed based on a single English corpus, and on the other hand, English samples with similar usages are pushed to users for learning, thereby better assisting users in learning English.

[0167] One embodiment of the present invention, as Figure 5 As shown, a system 100 for parsing long English sentences includes:

[0168] Corpus acquisition module 110, acquires English corpus;

[0169] A conjunction recognition module 120 is configured to recognize conjunctions in the English corpus acquired by the corpus acquisition module 110;

[0170] A hierarchy analysis module 130, which determines the semantic hierarchy contained in the English corpus according to the corpus connectives identified by the connective identification module 120;

[0171] A subject analysis module 140 is configured to analyze the sentence structure of the English corpus acquired by the corpus acquisition module 110, and identify subject words in the English corpus according to the sentence structure;

[0172] A conversion module 150 converts the English corpus into a plurality of corresponding English short sentences according to the corpus connectives identified by the connective identification module 120, the semantic levels determined by the level analysis module 130, and the subject words determined by the subject analysis module 140;

[0173] The semantic analysis module 160 analyzes the English short sentence obtained by the conversion module 150 to obtain the corpus semantics corresponding to the English corpus.

[0174] The specific operation methods of each module in this embodiment have been described in detail in the corresponding method embodiments above, so they will not be repeated here one by one.

[0175] Another embodiment of the present invention is an optimized embodiment of the above embodiment, as Figure 6 As shown, including:

[0176] The word library building module 10 acquires keywords that can be used as conjunctions and builds a keyword library based on the keywords;

[0177] A sample acquisition module 20 acquires an English sample containing a connective, defines the connective in the English sample as a sample connective and marks it;

[0178] A keyword recognition module 30 compares the English sample acquired by the sample acquisition module 20 with the keyword library established by the vocabulary library establishment module 10 to determine sample keywords in the English sample;

[0179] A comparison module 40 compares the sample conjunctions obtained by the sample acquisition module 20 with the sample keywords identified by the keyword identification module 30;

[0180] The comparison module 40 specifically includes:

[0181] A statistical unit 41 is used to respectively count the number of connectives of the sample connectives and the number of keywords of the sample keywords, and the same sample connectives and sample keywords are counted once;

[0182] A comparison unit 42 compares the number of the connecting words obtained by the statistical unit 41 with the number of the key words;

[0183] The statistical unit 41 is configured to respectively count the number of times each of the sample connecting words appears, and the number of times each of the sample keywords appears;

[0184] The comparison unit 42 compares the number of times of the connection words and the number of times of the keyword corresponding to the same sample connection words and sample keywords obtained by the statistical unit 41 .

[0185] The attribute analysis module 50 analyzes the connective attribute information of the sample connectives and the non-connective attribute information of the sample keywords that are not sample connectives according to the sentence structure of the English sample if the comparison module 40 finds that the sample keywords are more than the sample connectives.

[0186] The model generation module 60 generates a connection word recognition model according to the connection word attribute information and the non-connection word attribute information obtained by the attribute analysis module 50 .

[0187] Corpus acquisition module 110, acquires English corpus;

[0188] A conjunction recognition module 120 is configured to recognize conjunctions in the English corpus acquired by the corpus acquisition module 110;

[0189] The conjunction identification module 120 specifically includes:

[0190] The keyword recognition unit 121 compares the English corpus acquired by the corpus acquisition module 110 with the keyword library established by the vocabulary building module 10 to determine the corpus keywords in the English corpus;

[0191] The attribute analysis unit 122 analyzes the corpus attribute information of the corpus keywords identified by the keyword identification unit 121 according to the sentence structure of the English corpus acquired by the corpus acquisition module 110;

[0192] The connective identification unit 123 identifies the connectives in the English corpus according to the corpus attribute information determined by the attribute analysis unit 122 and the connective identification model generated by the model generation module 60 .

[0193] A hierarchy analysis module 130, which determines the semantic hierarchy contained in the English corpus according to the corpus connectives identified by the connective identification module 120;

[0194] A subject analysis module 140 is configured to analyze the sentence structure of the English corpus acquired by the corpus acquisition module 110, and identify subject words in the English corpus according to the sentence structure;

[0195] A conversion module 150 converts the English corpus into a plurality of corresponding English short sentences according to the corpus connectives identified by the connective identification module 120, the semantic levels determined by the level analysis module 130, and the subject words determined by the subject analysis module 140;

[0196] The semantic analysis module 160 analyzes the English short sentence obtained by the conversion module 150 to obtain the corpus semantics corresponding to the English corpus.

[0197] The corpus parsing module 170 parses the English corpus acquired by the corpus acquiring module 110 in combination with the English short sentences acquired by the converting module 150 .

[0198] The specific operation methods of each module in this embodiment have been described in detail in the corresponding method embodiments above, so they will not be repeated here one by one.

[0199] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A method for parsing long English sentences, characterized in that: include: Acquire keywords that can be used as conjunctions, and establish a keyword library based on the keywords; Obtain an English sample containing a connective, define the connective in the English sample as a sample connective and mark it; Comparing the English sample with the keyword library to determine sample keywords in the English sample; Counting the number of connectives of the sample connectives and the number of key words of the sample key words respectively, and the same sample connectives and sample key words are counted once; Comparing the number of the connecting words with the number of the key words; Counting the number of times each of the sample connectives appears, and the number of times each of the sample keywords appears; Compare the number of times of the connecting words and the number of times of the keywords corresponding to the same sample connecting words and sample keywords; If the sample keywords are more than the sample connectives, analyzing the connective attribute information of the sample connectives and the non-connective attribute information of the sample keywords that are not sample connectives according to the sentence structure of the English sample; Generate a connective word recognition model according to the connective word attribute information and the non-connective word attribute information; Obtain English corpus; identifying corpus connectives in the English corpus; Determining the semantic level contained in the English corpus according to the corpus connectives; Analyzing the sentence structure of the English corpus, and identifying the main words in the English corpus according to the sentence structure; Converting the English corpus into a plurality of corresponding English sentences according to the corpus connectives, the semantic levels and the subject words; The English short sentence is parsed to obtain the corpus semantics corresponding to the English corpus.

2. The method for parsing long English sentences according to claim 1, characterized in that: Identifying the corpus connectives in the English corpus specifically includes: Comparing the English corpus with the keyword library to determine corpus keywords in the English corpus; Analyzing the corpus attribute information of the corpus keywords according to the sentence structure of the English corpus; According to the corpus attribute information, in combination with the connective identification model, corpus connectives in the English corpus are identified.

3. The method for parsing long English sentences according to any one of claims 1 to 2, characterized in that: Also includes: The English corpus is parsed in combination with the English short sentences.

4. A system for parsing long English sentences, characterized in that: include: A word library building module, which obtains keywords that can be used as connecting words and builds a keyword library based on the keywords; A sample acquisition module, which acquires an English sample containing a connective, defines the connective in the English sample as a sample connective and marks it; A keyword recognition module compares the English sample acquired by the sample acquisition module with the keyword library established by the vocabulary library establishment module to determine sample keywords in the English sample; A comparison module compares the sample connectives obtained by the sample acquisition module with the sample keywords identified by the keyword identification module; specifically includes: a statistical unit, which respectively counts the number of connectives of the sample connectives and the number of keywords of the sample keywords, and the same sample connectives and sample keywords are counted once; a comparison unit, which compares the number of connectives obtained by the statistical unit with the number of keywords; the statistical unit respectively counts the number of connectives that appear in each of the sample connectives and the number of keywords that appear in each of the sample keywords; an attribute analysis module, which analyzes the connective attribute information of the sample connectives and the non-connective attribute information of the sample keywords that are not sample connectives according to the sentence structure of the English sample if the comparison module finds that the sample keywords are more than the sample connectives; A model generation module, which generates a connective word recognition model according to the connective word attribute information and the non-connective word attribute information obtained by the attribute analysis module; Corpus acquisition module, to acquire English corpus; A conjunction recognition module, which recognizes the corpus conjunctions in the English corpus acquired by the corpus acquisition module; A hierarchy analysis module, which determines the semantic hierarchy contained in the English corpus according to the corpus connectives identified by the connective identification module; A subject analysis module, which analyzes the sentence structure of the English corpus acquired by the corpus acquisition module, and identifies the subject words in the English corpus according to the sentence structure; a conversion module, which converts the English corpus into a plurality of corresponding English short sentences according to the corpus connectives identified by the connective identification module, the semantic levels determined by the hierarchy analysis module, and the subject words determined by the subject analysis module; A semantic analysis module is used to analyze the English short sentences obtained by the conversion module to obtain the corpus semantics corresponding to the English corpus.

5. The system for parsing long English sentences according to claim 4, characterized in that: The conjunction recognition module specifically includes: A keyword recognition unit compares the English corpus acquired by the corpus acquisition module with the keyword library established by the vocabulary building module to determine corpus keywords in the English corpus; an attribute analysis unit, for analyzing the corpus attribute information of the corpus keywords identified by the keyword identification unit according to the sentence structure of the English corpus acquired by the corpus acquisition module; A conjunction recognition unit recognizes conjunctions in the English corpus according to the corpus attribute information determined by the attribute analysis unit and in combination with the conjunction recognition model generated by the model generation module.

6. The system for parsing long English sentences according to any one of claims 4-5, characterized in that: Also includes: The corpus parsing module parses the English corpus acquired by the corpus acquisition module in combination with the English short sentences acquired by the conversion module.

Citation Information

Patent Citations

  • Display method of English sentence for easy recognition of sentence structure

    KR101906561B1

  • System and method for automatic key phrase extraction rule generation

    US20180246872A1

Cited By

  • A rule-constrained AI hierarchical interactive learning system and method for English sentences

    CN123070096A