专利汇可以提供Method for verifying spelling of compound words专利检索,专利查询,专利分析的服务。并且This invention describes a method for automatically verifying spelling of compound words in many natural languages such as German, Danish, Swedish, Norwegian, Dutch, Icelandic, Afrikaans, Swiss German, etc. The basic technology of looking up words in a dictionary is supplemented by the association of component flags with each word and by the application of powerful tree-scanning techniques that isolate the components of compound words and determine their correctness in isolation and in association with each other. The technique can be used in word processing systems to support spelling verification, to hyphenate text, and to unhyphenate text.,下面是Method for verifying spelling of compound words专利的具体信息内容。
The invention disclosed broadly relates to data processing and more particularly relates to linguistic applications in data processing.
Text processing word processing systems have been developed for both stand-alone applications and distributed processing applications. The terms text processing and word processing will be used interchangeably herein to refer to data processing systems primarily used for the creation, editing, communication, and/or printing of alphanumeric character strings composing written text. A particular distributed processing system for word processing is disclosed in the European patent application 86 112 336.2. The figures and specification of this patent application are incorporated herein by reference, as an example of a host system within which the subject invention herein can be applied.
Three techniques for verifying spelling of compound words have been used by word processing systems. One prior art technique contains all the compound words that the system was able to verify stored in a dictionary data base. Verification consists of checking the dictionary for a match. An obvious limitation of this technique is the enormous amount of storage required to obtain passable coverage. Comprehensive coverage is impossible, particularly in the Germanic languages, because word compounding is used so extensively that a dictionary of all meaningful compounds cannot be constructed.
A second prior art technique described in the European patent application 85 110 142.8 consists of parsing, or separating, the constituent words of the compound and then checking them against the words stored in the dictionary data base. This technique is the only practical way of obtaining adequate verification of compound words, but the approach is prone to problems such as false coordination of components and imprecise determination of the "joints" between the word components. In this technique, certain letter pairs which had a high probability of being the "joints" between components were used as clues for breaking the words and then verifying the parts against the dictionary. In terms of system performance, since any unrecognized word must be parsed before it can be marked as misspelled, the parser must have a large number of break points in order to verify correct compounds. Thus, the identification of incorrect words is slowed down and degrades the performance of the system. Also, since languages that use compound words have longer average word lengths than non-compounding languages, the wasted computer time to try all the combinations allowed by the list of "joint" letter pairs can be considerable. As mentioned above, this second parsing technique suffers from false coordination errors. That is, a misspelled word consisting of two correctly spelled components will be considered correct. For example, if the word "overtime" is misspelled as "evertime" the word would be considered correct by this technique since "ever" and "time" are both correctly spelled components. Similarly, run-on words such as "thatis" will be verified as "correct" compounds. Ambiguities in identifying the components of a compound can lead to incorrect hyphenation. For example, "snakeskin" may be interpreted as "snakes-kin."
A third prior art technique described in the European patent application 85 110 139.4 consists of parsing the components of a compound word and checking against a dictionary for compound flags associated with each word to see if the components are associated in a permissible sequence. This prevents words that can be purely prefixes such as "pseudo" from verifying either in isolation or in a position other than the beginning of the word. Six compound flags are used to categorize word components. The six types of flags are: 1) word is uncompoundable; 2) word can be used alone or in the front or middle; 3) word can be used alone or in any position; 4) word can be used alone or in the back of a compound; 5) word can be used at the front or middle of a compound; and 6) the word can be used only at the back of a compound. While this technique is better than either of the first two techniques, the approach is limited because the six flags are insufficient to describe all situations. False coordination can occur as in the second technique, and some words will fail to verify because the compound flags assigned to the component words in the dictionary inadequately describe their function when used in a compound. A further deficiency of the third technique which results in wasted computer time is the isolation of all the possible components and their compound flags in an initial stage, followed by a second stage where the compound flags are examined. The inefficiency of the technique results from the permutations of components that have to be considered even when some of the components have compound flags that will eventually result in an invalid combination. The mechanism used in this technique also makes it impossible to account for letter elisions used during compounding as in the German word "schiffahrt" which has to be decomposed into "schiff" and "fahrt" in order to verify properly.
The shortcomings of the prior art techniques have made it necessary to develop a more efficient algorithm and a comprehensive set of compound codes to handle agglutinative languages in computerized applications adequately.
It is therefore an object of the invention to provide an improved technique for verifying the spelling of compound words.
It is yet a further object of the invention to provide an improved technique for verifying the spelling of compound words, which also accounts for letter elisions.
It is still a further object of the invention to provide an improved technique for verifying the spelling of compound words which is more efficient and comprehensive in the handling of agglutinative languages, than has been available in the prior art.
These and other objects, features and advantages of the invention are achieved by the method for verifying spelling of compound words disclosed herein. This invention describes a method for automatically verifying spelling of compound words in many natural languages such as German, Danish, Swedish, Norwegian, Dutch, Icelandic, Afrikaans, Swiss German, etc. The basic technology of looking up words in a dictionary is supplemented by the association of component flags with each word and by the application of powerful tree-scanning techniques that isolate the components of compound words and determine their correctness in isolation and in association with each other. The technique can be used in word processing systems to support spelling verification, to hyphenate text, and to unhyphenate text.
These and other objects, features and advantages of the invention will be more fully appreciated with reference to the accompanying figures.
The invention is a technique for parsing compound words by matching the input word against dictionary words to obtain those that match a portion of the input word and have appropriate compounding codes. When the input word does not match any dictionary word exactly, the process is repeated with the remaining portion of the input word until either a match is found and all the components have been identified, or all possibilities have been explored and none is satisfactory.
Two aspects of the invention are a comprehensive set of compound flags associated with each dictionary entry and an efficient method for examining the input word systematically. These two aspects are described in detail.
Linguistic and theoretical analysis of compound words has shown that each component may have any of four independent characteristics relative to compound formation: 1) it can occur as an isolated word, 2) it can be a front component or prefix, 3) it can be a middle component of a word, and 4) it can be a back component or suffix. These four characteristics can occur in any combination for a total of 15 possibilities, the case where none of the characteristics apply never being used. The word "sun," for example, might be tagged with characteristics 1 and 2 since it can occur as an isolated word or as a prefix in words like "sunglasses" or suntan." The word "glasses," on the other hand, would have characteristics 1 and 4 since it can be used either isolated or as a suffix. A word like "pseudo" would be marked with characteristic 2 since it can only be a prefix. The word "intangible" would have characteristic 1 because it only occurs as an isolated word. For some German language examples, the combination of features 1+3+4 can be associated with the word "Sandale" which can occur alone or as a middle or back component of a word:
Example of word "Sandale" with features 1+3+4:
Leder + Sandale + Reparatur = Ledersandalereparatur
Example of word "ig" with features 3+4:
Kurz + Bein + ig + keit = Kurzbeinigkeit
Additional codes may be used to indicate the type of morphological transformation that a word can undergo.
The dictionary containing the compounding characteristics for each word can be generated either manually or automatically. The automatic process requires the decomposition of correct compound words into their components using the parsing algorithm given below while keeping track of the position of each component within the word. The segmented words can be reviewed manually to assure that no compounding codes for incorrectly segmented words are admitted into the dictionary.
The parsing algorithm is a process for systematically exploring all possible word breaks efficiently. The algorithm is based on "preorder" scanning of trees. Although it is not obvious that this type of scanning is applicable to word parsing, the application is made possible by recognizing that the components of a compound word can be ordered so as to map "isomorphically" with a tree of variable depth.
Consider, for example, the word "isomorphically" as a compound word. If we examine this word for the substrings that can match against the dictionary we will find the words that are capitalized in Fig. 1.
The list of words in Fig. 1 can be represented as a tree of the form indicated in Fig. 2. The tree in Fig. 2 can be scanned in preorder sequence to examine all the possibilities that can be used for word formation. However, some branches of the tree can be eliminated from consideration at the outset since the words forming the branches will have inappropriate compound flags. For example, it is not even necessary to check beyond the word "IS" since it can only occur as an isolated word.
In practice, at each branching point in the tree, the dictionary is examined for all words starting with those particular letters to optimize dictionary access. The candidate words are considered by applying the algorithm recursively or by placing the words in a stack that is processed iteratively. Either of these two approaches will produce equivalent results.
A "stack," in computer terminology, is an array where information is stored in a prescribed sequence. Generally, the last item stored in the stack is the first one retrieved (analogous to a stack of coins on a table). The implementation of the invention with a stack requires that as the dictionary is scanned for substrings that match the word, the position and length of each matching dictionary word is stored in the stack. It is not necessary to save the matching dictionary word, since it is a substring of the compound word. When all suitable matches have been found (as determined by examination of the flags associated with the dictionary entries), the characters of the compound word not included in the last word added to the stack are matched against the dictionary again, and the process is repeated until a suitable match that encompasses all the remaining characters of the compound word are found. However, if no suitable matches are found, the unsuccessful words at the top of the stack are removed and another attempt is made with the next word in the stack. If the stack is empty before a suitable match is found, the process finishes without identifying any components.
If certain language-specific characteristics are present, morphological adaptation procedures are applied to analyze for elision of consonants (as for "schiffahrt") or to convert multiple letter combinations such as "ue" into a "u" with an umlaut depending on the requirements of the language. In a German hyphenated word like "Zuk-ker" the removal of the hyphen also changes the spelling to "Zucker."
A stack-based implementation of the algorithm is given below in a pseudo-code similar to PL/1:
There are circumstances when letters are elided for linguistic reasons when two words are combined and the resulting compound word is not strictly a juxtaposition of the components. The invention is able to process these cases for certain general cases. In German, for example, a letter is elided when a word ending in a double consonant is combined with another word that starts with the same consonant. For example, the word "Schiffahrt" (German for "boat trip") is constructed from "Schiff" ("boat") and "Fahrt" ("trip") by eliding an "f." Therefore, as part of the morphological transformations performed by the invention, when no suitable dictionary entries can be found for the remainder of the word (in this case for "ahrt"), a check is made to see if the previous component ends in a double consonant and the next character a vowel. When these conditions are found, the starting character of the remaining string is set to last character of the previous word. In this way the program checks for the word "fahrt."
A case analogous to letter elisions is the case of letter insertions. In German this happens with the genitive case where the letter "s" is added to the initial component. The invention handles this problem by checking to see if the remaining component starts with "s" whenever no suitable match can be found. If an "s" is present, it is skipped and a match is attempted on the remaining portion of the compound word.
Just as English requires proper nouns and adjectives derived from them to be capitalized (e.g., American), so German grammar requires that all nouns be capitalized. Thus, a German dictionary contains many words starting with upper case. This presents a problem when matching a compound word, since only its first character may be capitalized and any internal components will start in lower case. This is solved by the invention by ordering the dictionary in alphabetical order without regard to case (but indicating case as an additional attribute) and by converting the dictionary words and the compound word to a common character set at the time of matching.
In addition to the features that characterize the usage of a component in a compound word, codes specifying specific transformations can be associated with each word in the dictionary. For example, the Afrikaans language has a large number of words for which the combining non-back form of the genitive singular has the same spelling as the nominative plural, both adding "s" to the nominative singular. When such a word is compounded with a word starting with "s," one of them must be elided. This can be indicated by associating a special code with such words. For example, such a code associated with the word "mans" would result in elision of an "s" when combined with "skool:" mans + skool = manskool. Such specific transformations are represented by codes in the dictionary and enable the decomposition of the compound word into its components. Notice that this technique relies on the specific encoding of the attribute within the dictionary rather than as a part of the algorithm as indicated for elisions above.
One of the by-products of compound word analysis as described in this invention is the state of the stack after a compound has been processed. The stack contains the information that identifies the components of the compound, and hence, the major hyphenation points of the compound. These hyphenation points may be supplemented by hyphenation information stored for each component. In addition, the fact that the invention identifies letter elisions makes it possible to hyphenate correctly such words. For example, the German word "Schiffahrt" would be correctly hyphenated as "Schiff-fahrt" by restoring the elided letter.
The flow diagram of Fig. 3 is implemented with a stack. Step 20 says to get the text word. This is a either text from an input buffer or it can be supplied by another computer program. In Step 22, we clear the stack. That means we set the stack to empty and we set the level equal to one. The procedure by which we scan the stack is basically a pre-order form and that means that you set a chain as in Fig.4, starting with the node "a" which splits off into nodes "b" and "c." The nodes "b" and "c" are at the level 2 and then if "b" splits into nodes "d," "e" and "f," this is the third level. If node "c" splits into nodes "g" and "h," again this is the third level. The tree would be scanned by going from "a" to "b" to "d," then "e," then "f," back to "b," back to "a" and then to "c" to "g" and then "h," back to "c" and back to "a." That would terminate the scan of the tree. The disclosed invention does the equivalent function for trying the various possibilities of finding substrings within a word for verification. We now proceed to the label "Forward." At this point, we get the text word in Step 24; in this case, there is no change in the text word because it has not been altered. It is the same as that which was originally input. In subsequent looping through the flow chart, it would be a modified version of the word. Then we proceed to Step 26 labeled "Check dictionary for matching substrings." At this stage, we check the dictionary and any dictionary entries which match exactly against the initial portion of the string are identified. If none of the words match, we go to the label "Backward" where we are going to decrement the levels and try other possibilities by going to other branches of the chain. But if there are some matching entries, then this creates a new level, so we increment the level in Step 28. In order to account for upper case, we have to check if the level is greater than one in Step 30. That means it is not an initial substring of the word, and we disregard the upper case that may be in the word stored in the dictionary. At this point, we come to Step 32 labeled "Store number of substrings at current level in their length in stack." Basically this is just a mechanism for storing the strings for future reference. It is storing the place where the string starts and its length for the current level. By having stored this information, we proceed to check the flag of the substrings in Step 32. If we find an unsuitable flag, then we go to Step 36 marked "More substrings at the current level." We continue checking those substrings until we either do not find any substrings at the current level or until we find a substring with a suitable flag. When we find the substring with the suitable flag, we proceed to Step 38 "Apply transformation specified by flag or code, if any." In this step, transformations requiring additions of letters are performed. After these transformations are applied, then we check to see if the substring is at the end of the word in Step 40. If it is, then we can say that the word verified because all the components have been checked and they have appropriate flags, so at this point, we exitat Step 42. However, if the substring is not at the end of the word, now we remove from the word that initial substring in Step 44 and keep the remainder (the right part) of the substring and then go back to the label "Go forward" to repeat the process with the remaining substring. In this way, each segment of the word is iteratively processed until the whole word has been recognized. In Step 46 labeled "Apply morphological transformations," whenever there are no more substrings at the current level, the operator must take into consideration whether there were any transformations applied between the words. At this point, those transformations are applied. If the transformation is successful, again we go to the label "Forward," continue processing the string. If we cannot transform it, then we go back to the label "Backward". "Backward" is really the process of recovering from a failure along the branch and if we can explore the branch of a tree which does not lead to a complete recognition of the word, then we decrement the level in Step 50 after we have tried all the possibilities at that level (Step 52). If the level is zero in Step 54, then we know that the word does not verify (Step 56) because we have tried all the possibilities. If the level is not zero and there are more substrings at the current level, we continue with "Forward" until we exhaust all the possibilities.
标题 | 发布/更新时间 | 阅读量 |
---|---|---|
一种短文本主题确定方法 | 2020-05-08 | 602 |
用于用户与计算机系统之间通信的方法和系统 | 2020-05-13 | 368 |
一种在统一识别框架下小型化手写体文本识别器的方法 | 2020-05-08 | 205 |
自然语言处理模型训练方法、任务执行方法、设备及系统 | 2020-05-08 | 619 |
一种基于区块链网络的信息处理方法及装置 | 2020-05-14 | 415 |
自然语言处理方法、自然语言处理装置及智能问答系统 | 2020-05-13 | 248 |
基于用户辅助修正下的实体对特定关系抽取方法 | 2020-05-13 | 766 |
一种基于OCR的文字图像识别方法及装置 | 2020-05-08 | 37 |
一种基于跨领域推荐思想的声音直播主播价值评定方法 | 2020-05-11 | 177 |
从web API规范生成聊天机器人 | 2020-05-12 | 137 |
高效检索全球专利专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。
我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。
专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。