WO2003034273A1 - Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal - Google Patents

Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal Download PDF

Info

Publication number
WO2003034273A1
WO2003034273A1 PCT/US2002/023476 US0223476W WO03034273A1 WO 2003034273 A1 WO2003034273 A1 WO 2003034273A1 US 0223476 W US0223476 W US 0223476W WO 03034273 A1 WO03034273 A1 WO 03034273A1
Authority
WO
WIPO (PCT)
Prior art keywords
breakpoint
natural
chart
probabilistic
edge
Prior art date
Application number
PCT/US2002/023476
Other languages
French (fr)
Inventor
Andrew William Mackie
Original Assignee
Scansoft, Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Scansoft, Inc. filed Critical Scansoft, Inc.
Publication of WO2003034273A1 publication Critical patent/WO2003034273A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/268Morphological analysis

Definitions

  • the present invention involves the automated analysis of unrestricted natural-language input.
  • the present invention pertains to an improved method and apparatus for the efficient segmentation of compound words in unrestricted natural-language input using probabilistic breakpoint traversal.
  • a typical example of such a word is the German compound Abputtingsmogzieren. This compound is constructed by concatenating the two words Abmix and m ⁇ goudreen by means of the "linking morpheme” s.
  • the decomposition of a compound into its component words (and linking morphemes, if any) is referred to as a "segmentation" of the compound and is represented by character strings separated by the symbol "+”; for example, the segmentation of the compound Absourcingsmogzieren is represented as Absetting+s+m ⁇ greteen.
  • NLP natural-language processing
  • Germanic languages e.g., German and Dutch, but also the Scandinavian languages and, to a lesser degree, English.
  • Bass '571 the disclosure of which is incorporated by reference herein]: "In many languages, particularly Germanic languages, word compounding is an active way of creating new words in these languages; therefore, storing all meaningful compounds in a dictionary data base is, quite simply, impossible” (emphasis in original).
  • a compound-segmentation algorithm is necessary for NLP in these languages, and several such algorithms have been proposed in the art, as follows.
  • Visser U.S. Patent No. 5,774,834 to Visser [hereinafter Visser '834, the disclosure of which is incorporated by reference herein], teaches a "system and method for correcting a string of characters by skipping to pseudo-syllable borders in a dictionary" (emphasis added).
  • a retrieving unit retrieves an entry of a dictionary which corresponds to an input character string while comparing input characters, one by one, with entries of TRIE tables stored in a dictionary storing unit.”
  • a skipping unit locates a next effective pseudo-syllable border in the input character string to find candidates of those TRIE tables which correspond to the effective pseudo-syllable border.”
  • this invention depends on a specific dictionary architecture (in this case a trie).
  • Visser '834 addresses a known problem of using tries to analyze possibly defective input strings (like Frisch '617, spelling correction is the major aim of this invention) by means of the "skipping unit.”
  • Germanic compounding precludes the purely syllable-based approach typically used for compound-segmentation in languages such as Japanese (Sassano '812).
  • a method such as Visser '834, which employs "pseudo-syllable boundaries," is better adapted to Germanic compounding, however this requires the usage of a specific dictionary architecture (i.e., a trie).
  • a specific dictionary architecture i.e., a trie.
  • the other techniques in the art that are specifically intended to segment Germanic compounds (Bass '571, Frisch '617) are also top-down approaches that depend on specific dictionary architectures.
  • the present invention is directed to a linguistic processing apparatus and method for rapidly and accurately segmenting compound words in unrestricted natural-language input.
  • the present invention employs a bottom-up, statistical approach to compound- word segmentation that is independent of dictionary architecture and is relatively robust to spelling errors and neologisms. Because the present invention chooses breakpoints probabilistically, it is extremely efficient, typically converging to a correct segmentation after only a few breakpoints have been tested even for very long compound words (25+ letters). Additionally, the present invention also specifically addresses the limitations of the bottom-up approach enumerated by Bass '571, thus resulting in additional processing efficiencies.
  • the bottom-up approach to compound-word segmentation used by the present invention may be divided into three steps, as follows. First, an ordered set of breakpoints is identified in the compound using a bottom-up, statistically based method of probabilistic breakpoint analysis, a novel approach to compound decomposition provided by the present invention. Second, the set of substrings based on the probabilistic breakpoint analysis is traversed in order of decreasing probability (i.e., with the most probable substrings considered first), in a novel method of probabilistic breakpoint traversal provided by the present invention, with any substrings that are linkable components (e.g., words or linking morphemes) being identified by means of access to a lexicon.
  • linkable components e.g., words or linking morphemes
  • lexicon access is therefore independent of lexicon structure, thus allowing the choice of lexicon structure to be based on criteria external to the compound-segmentation process.
  • the compound is segmented by spanning it by the linkable components thus obtained.
  • a novel approach to segmentation, based on bidirectional chart parsing, is provided by the present invention.
  • the segmentation method in the case that a segmentation cannot be obtained by the above steps, it would be desirable for the segmentation method to be able to hypothesize at least one possible segmentation of the word to be subjected to further analysis.
  • the adaptation of bidirectional chart parsing to compound- word segmentation provided by the present invention has the advantage of preserving the hypotheses generated during the segmentation process so that, in the case that a complete segmentation cannot be obtained, the chart can be "mined" for partial segmentations that may prove to be useful in the further analysis of the word.
  • FIG. 1 is a flowchart of steps to efficiently segment compound words using probabilistic breakpoint traversal in accordance with one embodiment of the method of the present invention
  • FIG. 2 is a schematic representation of probabilistic breakpoint analysis according to the method of the present invention
  • FIG. 3 is a schematic representation of probabilistic segmentation according to the method of the present invention.
  • FIG. 4 illustrates a computer program screen display showing probabilistic breakpoint analysis according to the method of the present invention
  • FIG. 5 is a schematic representation of a chart data structure used to encode segmentation progress according to an embodiment of the present invention.
  • FIG. 6 illustrates a computer program screen display of compound- word segmentation using a method according to the present invention
  • FIG. 7 is a schematic representation of a chart data structure encoding segmentation progress corresponding to the computer program screen display of FIG. 6, according to an embodiment of the present invention.
  • FIG. 8 is a schematic representation of a breakpoint- list structure according to an embodiment of the present invention.
  • FIG. 9 illustrates a computer program screen display showing compound-word segmentation augmented with chart mining using a method according to the present invention
  • FIG. 10 illustrates the process dependencies of a method for efficiently segmenting compound words according to the present invention
  • FIG. 11 is a flowchart of one embodiment of steps for efficiently segmenting compound words in accordance with the segmentation process Segment 500 of the present invention
  • FIG. 12 is a flowchart of one embodiment of steps for identifying and sorting probabilistic breakpoints in accordance with the breakpoint- accumulation process GetBreakPts 600 of the present invention
  • FIG. 13 is a flowchart of one embodiment of steps for testing the substrings delimited by probabilistic breakpoints in accordance with the breakpoint-testing process TestBreakPts 700 of the present invention
  • FIG. 14 is a flowchart of one embodiment of steps for traversing probabilistic breakpoints to obtain substrings in accordance with the breakpoint-traversal process Traverse 800 of the present invention
  • FIG. 15 is a flowchart of one embodiment of steps for testing a substring for inclusion in a chart used to encode segmentation progress in accordance with the substring-testing process TestSubstr 900 of the present invention
  • FIG. 16 is a flowchart of one embodiment of steps for inserting an edge in the chart used to encode segmentation progess in accordance with the edge-insertion process InsertEdge 1000 of the present invention
  • FIG. 17 is a flowchart of one embodiment of steps for rightward extension of an edge in the chart used to encode segmentation progess in accordance with the rightward-extension process ExtendRight 1100 of the present invention
  • FIG. 18 is a flowchart of one embodiment of steps for leftward extension of an edge in the chart used to encode segmentation progress in accordance with the leftward-extension process ExtendLeft 1200 of the present invention
  • FIG. 19 is an embodiment of the present invention in a training configuration
  • FIG. 20 is an embodiment of the present invention in a production configuration
  • FIG. 21 is an embodiment of a probabilistic breakpoint processor of the present invention.
  • FIG. 22 is an embodiment of an augmented probabilistic breakpoint processor of the present invention.
  • the present invention is directed to a linguistic processing method and apparatus for rapidly and accurately segmenting compound words from an unrestricted natural-language input by employing a bottom-up, statistical approach that is independent of dictionary architecture.
  • a bottom-up, statistical approach that is independent of dictionary architecture.
  • bigraph A sequence of two contiguous characters.
  • breakpoint A point between two characters in a word, represented as a vertex in the chart, that may be a point of division in the segmentation of the word.
  • chart A data structure, consisting of vertices connected by edges, that encodes hypotheses generated during the course of chart parsing.
  • chart parsing A process of generating structure(s) over a given string by means of a grammar.
  • corpus plural: corpora
  • NLP Natural Language Processing
  • digraph A pair of characters used in a transliteration system to represent a single character in another system; e.g., the digraph "oe” is typically used to represent the character " ⁇ " in the standard transliteration of German.
  • endpoint (context) In the present invention, an endpoint context is the context to the immediate left of a breakpoint in a word; in the presently preferred embodiment, the endpoint contexts are expressed as trigraphs.
  • graph A set of vertices connected by edges. A graph is "connected” if a path exists from any vertex in the graph to any other vertex in the graph. A graph is "acyclic” if every path in the graph has the property that any vertex in graph can occur in the path at most once.
  • a graph is "directed” if every edge is oriented such that it can be traversed in only one direction (i.e., from its starting vertex to its ending vertex).
  • the "graph” and “chart” entities referred to the present invention are directed acyclic graphs.
  • NL natural language: A language, such as German, that is not artificially constructed (as are, for example, computer languages) and which is consequently characterized by features such as ambiguity, polysemy, etc., that present difficulties for algorithmic analysis.
  • NLP Natural-language processing
  • segmentation The process of subdividing a compound word into its constituent words and linking morphemes (if any) used to combine these words.
  • startpoint (context) In the present invention, a startpoint context is the context to the immediate right of a breakpoint in a word; in the presently preferred embodiment, the startpoint contexts are expressed as trigraphs.
  • trie A tree-based data structure typically used in retrieval applications (hence the name, which is derived from "retrieval”); referred to as a "TRIE" in Visser '834.
  • tetragraph A sequence of four contiguous characters.
  • trigraph A sequence of three contiguous characters.
  • unigraph A single character, considered independent of any surrounding context.
  • word In the present invention, a "word” is defined as a character string stored in the lexicon, or algorithmically derivable from such a character string.
  • FIG. 1 illustrates a method of efficiently segmenting compound words, according to a preferred embodiment of the present invention.
  • the method begins at step 101 with an input of natural language being received by the system.
  • the natural-language input of step 101 may consist of text (e.g., characters or symbols representing human language) entered by a user or received from another source.
  • the natural- language input of step 101 may be entered, or received, in a number of ways.
  • the natural-language input of step 101 may be entered by a user typing letters into a keyboard, or entering characters or symbols using an input/output (I/O) device such as a mouse or other like I/O device.
  • the natural-language input of step 101 may also be received from a speech recognition system which produces text corresponding to spoken speech, or may be received from a document scanner which converts images sensed from written documents, for instance, into text.
  • the natural-language input may also be in the form of a graph of characters representing ambiguous input; such graphs are typically generated by speech recognizers or document scanners as a response to imperfectly perceived input.
  • the natural-language input may also be text received in the form of a transmitted signal or an encoded signal retrieved from an electronically stored file, such as a computer file.
  • the natural-language input of step 101 may be formatted according to a standard such as ASCII, or a higher level text format such as the Rich Text Format (RTF), or the like.
  • the natural-language input of step 101 may or may not be in the form of unambiguously specified words.
  • the natural-language input of step 101 is entered in the form of unambiguously specified words.
  • a communication forum using unambiguously specified word input in step 101 occurs when the natural-language input is derived from a written composition (e.g., a technical paper, a magazine article, a book, a correspondence, or the like).
  • the natural-language input will typically be in the form of unambiguously specified words delimited by white space and/or punctuation marks.
  • the natural-language input of step 101 may be entered in ambiguously specified word form. That is, the input of step 101 may not necessarily conform to unambiguously specified words. Examples of a communication forum using ambiguously specified words as natural-language input in step 101 may occur when the input is derived from spoken words or from text perceived by a document scanner. In such input contexts, the natural-language input of step 101 is likely to consist of graphs of characters in which paths through the graphs represent hypothesized words. Use of the present invention in these less well-defined communication forums may result in higher uncertainties in segmenting the compound words in the natural- language input.
  • the entered text is treated at its lowest level of graphical divisibility, characters, for further processing.
  • Characters are the symbols (letters, punctuation marks, etc.) which make up the natural-language input.
  • the present invention is delineated in terms of "letters” being characters which include both letters and punctuation marks.
  • the present invention is delineated in terms of "compounds" being processed— even though the natural-language input being processed may not be in the form of recognizable compound words.
  • One advantage of the present invention is its capability to partially segment ill-formed and/or ambiguously specified natural-language input.
  • the standard transliteration of the German letters "a”, “ ⁇ ”, “ ⁇ ”, and “ ⁇ ” into the digraphs “ae”, “oe”, “ue”, and “ss” is used. This ensures that the present invention is as independent as possible of system- or language-specific encoding effects.
  • the present invention does not require usage of the standard transliteration, and will be likely to exhibit improved behavior if digraphs are not used because the substitution of a digraph for a single letter, as is done in the standard transliteration system, results in a reduction of usable trigraph context.
  • ligatures e.g., "fi" for the digraph "f i"
  • fi for the digraph "f i”
  • step 102 an ordered set of probabilistic breakpoints is constructed in the natural-language input based on probabilistic breakpoint analysis.
  • FIG. 2 presents a schematic representation of probabilistic breakpoint analysis (110) is presented.
  • the natural- language input is conceptualized as a graph of edges and vertices, where each edge is labeled by a character in the natural-language input and each vertex represents a breakpoint between adjacent characters in the natural-language input.
  • each vertex in the graph (representing a breakpoint) is labeled by a number from 0 to L, where L is the length of the natural-language input.
  • an edge (111) in FIG. 2 is labeled by a edge label "s" 112 and connects a vertex labeled "13" 113 to a vertex labeled "14" 114.
  • the segmentation of natural-language input into a compound word may therefore be represented as a vector of integers (where each integer corresponds to the label of a vertex identifying one of the breakpoints used to segment the compound word).
  • each integer corresponds to the label of a vertex identifying one of the breakpoints used to segment the compound word.
  • the segmentation Abhaengtechnik+s+verhaeltnis of the compound word Abhaengtechniksverhaeltnis would be represented as (13, 14), indicating that this compound word is split into three segments by dividing it at the breakpoints corresponding to the vertices labeled 13 and 14, respectively.
  • Breakpoint weights are assigned to the breakpoints in the natural- language input based on an analysis of -graphs drawn from an appropriate lexicon.
  • the probability of a particular breakpoint may be estimated as the sum of two weights that respectively represent: (1) the probability that the w-graph preceding the breakpoint ends a word and (2) the probability that the «-graph following the breakpoint starts a word. For example, the breakpoint corresponding to vertex "8" 117 in FIG. 2 will have assigned to it a breakpoint weight w 8 118.
  • the breakpoint weight will be determined based on the endpoint context and startpoint context of the breakpoint; i.e., the trigraphs that respectively end a hypothesized word to the left of the breakpoint and start a hypothesized word to the right of the breakpoint.
  • the endpoint context is the trigraph "ngi" 115 that immediately precedes vertex "8" 117
  • the startpoint context is the trigraph "gke” 116 that immediately follows vertex "8" 117.
  • the breakpoint weight vv 8 118 is relatively low, indicating that a segmentation of this natural-language input at vertex "8" is not likely.
  • the weighting of probabilistic breakpoints is accomplished by calculating the weights I of the trigraph contexts that precede and follow the breakpoint; i.e.,
  • b ⁇ is the breakpoint corresponding to the vertex v, (i.e., the vertex that follows the i' h character in the natural-language input).
  • the function F e returns the number of times that its argument occurs as a word-initial substring in a predetermined lexicon.
  • the argument is a trigraph of three contiguous characters.
  • the function F s returns the number of times that its argument occurs as a word-final substring in a predetermined lexicon.
  • the argument is a trigraph of three contiguous characters.
  • bigraph context results in lower accuracy than trigraph context; however, bigraph context requires much smaller breakpoint probability matrices.
  • Tetragraph context involves more context than trigraph context, however it also requires substantially larger breakpoint probability matrices.
  • Weighted context ⁇ _ 2 ⁇ (c (I _ 2>l) ) + ⁇ _ F s (c (l _ ) ) + >- ⁇ s ( c (, + ⁇ , 1+ 2)) + ⁇ 3 ⁇ ( c ( ⁇ + ⁇ >1+3) ) • m this case, multiple contexts are taken into account, with their contribution to the weight of the probabilistic breakpoint determined by the value of the associated constant ⁇ t . For the given formula both trigraph and bigraph contexts are taken into account with, for example, the contribution of the preceding trigraph context being determined by the value of ⁇ _ 2 .
  • breakpoint weights are assigned to each breakpoint based on a quantitative analysis of the lexicon, resulting in an ordering of the set of breakpoints according to the probability of a segmentation of the natural- language input occurring at each breakpoint in the set. For example, if the breakpoint at vertex "14" (114) is determined to be the most probable breakpoint in the natural-language input, and the breakpoint at vertex "15" is determined to be the next most probable, then the former is identified as the “first breakpoint” ("6, “ or “breakpoint 1") and the latter as the "second breakpoint” ("b 2 " or “breakpoint 2”), etc.
  • vertex 1 refers to a fixed position in the chart (specifically corresponding to the breakpoint that follows the first character of the natural-language input) while “breakpoint 1 " refers to a chart position that depends on the weights assigned to all of the breakpoints in the natural-language input (and, in the above example, corresponds to vertex "14" (114)).
  • a plurality of linkable components is identified by a probabilistic breakpoint traversal; i.e., an ordered traversal of substrings of the natural-language input delimited by the probabilistic breakpoints.
  • the ordered traversal is accomplished by iteratively splitting the natural-language input into substrings delimited by the probabilistic breakpoints.
  • a substring may be identified as a linkable component (e.g., by locating it in a lexicon).
  • lexicon access is independent of lexicon structure in the present invention, which therefore permits a choice of lexicon structure to be based on criteria external to the compound-segmentation process.
  • breakpoint weights permits ordering the substrings according to breakpoint probability.
  • an ordered set of substrings is constructed which has the desirable property that the substrings in the natural-language input that are most likely to be linkable components are ordered early in the ordered set of substrings, allowing rapid convergence to a segmentation of the natural- language input.
  • the probabilistic breakpoint traversal method of the present invention is formalized as follows. Given a natural-language input ⁇ of length L, the breakpoint set S(b household ) corresponding to the n th breakpoint in ⁇ (which is symbolized as b n and which corresponds to some vertex k (0 ⁇ k ⁇ L) in ⁇ ) is generated as follows:
  • n 1, then for each vertex v, corresponding to the breakpoint b, (0 ⁇ i ⁇ n - l), do the following: a) If v, ⁇ k, then generate the substring corresponding to the characters of ⁇ from , to k and add it to S(b n ) . b) If v ( > k, then generate the substring corresponding to the characters of ⁇ from k to v, and add it to S(b n ) .
  • breakpoint sets generated by the above procedure are all disjoint. This will ensure that the union of these sets exactly covers the set of proper substrings of ⁇ , so that the traversal of the set of breakpoint sets will neither fail to consider any possible linkable components in ⁇ nor test any substring more than once.
  • no string in S(b m ) can be equal (i.e., have the same starting vertex, ending vertex, and characters) to any string in S(b n ) , and all the breakpoint sets derived from ⁇ are therefore disjoint.
  • breakpoint sets derived from ⁇ are disjoint, it follows that the set of breakpoint sets covers the set of proper substrings of ⁇ . This is because the elements of the set of breakpoint sets are all proper substrings of ⁇ and the two sets have the same cardinality (if two sets consist of the same elements and have the same cardinality, then they are by definition equal). The latter property follows from the fact that the cardinality of a breakpoint set S(t, ) is i + 1 , and that there are L - 1 vertices in ⁇ that can generate
  • a filter is a method for determining that a substring can be removed from consideration by the segmentation method before accessing the lexicon; this speeds up the method to the extent that the tests involved are less costly than lexicon accesses.
  • An accelerator is an alteration to the breakpoint weighting function that takes into consideration additional information concerning the natural-language input (besides startpoint and endpoint context) with the result that certain breakpoints are made more probable (moving them higher in the breakpoint list and thus accelerating convergence to a segmentation).
  • the number of substrings that need to be looked up in the lexicon is substantially reduced by the application of four filters, as follows: 1) Length restriction: This filter eliminates any substrings, excluding linking morphemes, that are too short to be a linkable component in a German compound. In the presently preferred embodiment, the length restriction is set to 3 (i.e., a substring must be at least 3 characters long to be looked up in the lexicon).
  • Edge restriction Given a length restriction of N, this additional filter can be used to eliminate from consideration all substrings generated by the breakpoints at vertices 1 through N and L - N through L - l (where L is the length of the natural-language input under consideration).
  • Final trigraph restriction This filter takes advantage of the information stored in the breakpoint probability matrices (which are used to order breakpoints by probability, as discussed above); if the final three characters of the substring correspond to a zero entry in the endpoint probability matrix, then the substring is guaranteed not to occur in the lexicon, so it need not be looked up. (In the presently preferred embodiment, the final trigraph restriction is applied before the initial trigraph restriction because there are fewer different trigraphs in the endpoint probability matrix than in the startpoint probability matrix, indicating a more restricted distribution of final trigraphs in German words, as is to be expected from the inflectional character of the language.)
  • the first accelerator takes advantage of word-intemal capitalization.
  • word-internal capitalization is a useful means of increasing the convergence of the segmentation method. This was because some compounds often have the first letter of some of their constituent words capitalized (e.g., Identit ⁇ t+s+konsens+symbolik could be actually written as "IdentitatsKonsenssymbolik").
  • the weight corresponding to each trigraph which started with a capital letter e.g., "kon” in the above example
  • the preceding breakpoint would be made more probable and thus might result in a more rapid segmentation of the compound.
  • the second accelerator involves the early identification of possible linking morphemes.
  • German compounding often involves the insertion of linking morphemes between the words to be compounded.
  • Abmix and moegoudreen requires the insertion of the linking morpheme "s" between them, thus resulting in the compound Absettingsmoegoudreen (not *Abmixmoegoudreen).
  • step 104 a segmented string that is interpretable as a compound word constructed from a plurality of linkable components spanning the natural-language input is returned.
  • FIGS. 3 through 7 demonstrate the method of the present invention as applied to an exemplary German word Abhaengtechniksverhaeltnis in order to yield its segmentation Abhaengtechnik+s+verhaeltnis.
  • breakpoint probabilities in the presently preferred embodiment of the present invention are determined according to trigraph context, 20 breakpoints are considered, starting at the third vertex (between the third and fourth characters in the word) and ending at the 22 nd vertex (between the 22 nd and 23 rd characters).
  • Each of the two trigraphs adjacent to each breakpoint i.e., its startpoint context and its endpoint context, as defined above in conjunction with FIG. 2 receives a weight based on an analysis of a lexicon of German words, and the weight of the breakpoint is calculated as the sum of the two trigraph weights, as discussed above in conjunction with step 102 of FIG. 1.
  • the breakpoint at vertex 3 receives the weight 103 because the trigraph "aen” (its startpoint context) is attested as starting 103 words in the lexicon, while the trigraph "abh” (its endpoint context) is not attested as ending any words in the lexicon.
  • the breakpoint at vertex 14 receives the weight 31,845 because the trigraph "its” (its endpoint context) is attested as ending 123 words in the lexicon and the trigraph "ver” (its startpoint context) is attested as starting 31,722 words in the lexicon.
  • breakpoint set n is the set of n+1 strings that is generated by the n th breakpoint
  • FIG. 4 presents a schematic representation of probabilistic segmentation 120, according to the method of the present invention.
  • the six German words (Abhaengtechnik, abhaengig, haengig, verhaeltnis, erhaelt, and haelt) that occur in the first five breakpoint sets discussed above are shown as labeled edges connecting the corresponding vertices in FIG. 4, along with a seventh edge labeled "er” 121 that represents a possible linking morpheme (as discussed below in conjunction with FIG. 6); note that the combination of this linking morpheme with the word "haelt” 122 will result in a new linkable component, labeled "er+haelt” 123, which spans both of these edges.
  • the order in which these words are considered by the probabilistic breakpoint traversal method of the present invention is governed by the ordering of the breakpoints that delimit them, as shown in Table 1. TABLE 1
  • the first two columns list the starting and ending vertex, respectively, of the word in the sixth column.
  • the third and fourth columns list the breakpoints that respectively correspond to these vertices (with the first and last vertices in the chart corresponding to the "zeroth" breakpoint, and the character "X" used to indicate that the breakpoint corresponding to the vertex in question hasn't been scored because of the edge restriction), and the fifth column lists the higher valued of the two breakpoints in these two columns. Ordering the words by the higher breakpoint indicates in which order they will be considered by the algorithm, and if the higher breakpoint is "X", then they need not be considered at all (since they cannot be used to segment the given word).
  • FIG. 5 presents a schematic representation of a chart 150 data structure used by the present invention, the contents of which correspond to the schematic representation of probabilistic segmentation 120 presented in FIG. 4.
  • Each labeled edge in FIG. 4 corresponds to an edge object in FIG. 5 (for example, the edge labeled "er+haelt” 123 in FIG. 4 corresponds to the edge object labeled "er+haelt” 167 in FIG. 5), with each edge object schematically represented as discussed below.
  • each vertex in the chart can serve as both an ending point and a starting point of at least one edge (with the exception that no edge can end at the first vertex of the chart and no edge can start at the last vertex of the chart), each vertex is provided with two linked-list heads, labeled "E" and "S", for "ending” and "starting” respectively.
  • E linked-list heads
  • S linked-list heads
  • the pair of linked-list heads corresponding to a given vertex in FIG. 5 is shown only if at least one of the associated linked lists of edges is not null.
  • the edge-ending linked-list head for vertex "0" 152 and the edge-starting linked-list head for vertex "0" 153 are shown in FIG. 5 because the latter contains two nodes 154, 155, which respectively point to an edge object labeled "abhaengig” 161 and an edge object labeled "Abhaengmaschine" 162.
  • FIG. 6 presents a computer program screen display that demonstrates how a presently preferred embodiment of the present invention properly segments the exemplary German compound Abhaengtechniksverhaeltnis after considering the first two breakpoints only; i.e., processing the first breakpoint results in the identification of the compound's second word (verhaeltnis) and processing the second breakpoint results in the identification of the compound's first word (Abhaengmaschine).
  • the proper linking together of these two words is discussed above in conjunction with step 103 of FIG. 1. This result demonstrates the efficiency of the presently preferred embodiment, which converges rapidly to the correct solution; however, FIG.
  • FIG. 6 presents a computer screen display demonstrating the segmentation of the exemplary German compound Abhaengtechniksverhaeltnis in accordance with the method of the present invention.
  • the final state of the chart is shown at the bottom of FIG. 6, and is interpreted as follows.
  • the first line (labeled "A") contains the natural- language input, followed by the number of edge objects that were in the chart when the segmentation was completed.
  • the last line (labeled "B”) consists of a reference scale that contains the final digit of each ending vertex (of the edge labeled by the corresponding character in the first line) in the chart.
  • the intervening lines each contain a representation of one edge in the chart; e.g., the first line represents the edge labeled "e” that starts at vertex 4 in the chart and ends at vertex 5. This information is also shown on the right half of the line, which contains an ordered pair of integers indicating the start and end vertices, the label of the edge, the edge's serial number, and a pair of linkability flags " ⁇ LL, «RR>", where a is either "+” or "-”, whose meaning is discussed below.
  • the edge is both “left-linkable” and “right-linkable”; i.e., it can be combined with another, adjacent edge on either side to generate a new edge that spans both of them.
  • the segmentation method commences at the first breakpoint, which in this case results in the program looking up the substrings "Abhaengtechniks” and “verhaeltnis” in a German lexicon. Since the latter string is found in the lexicon, it is inserted into the chart as the ninth edge of the chart (this edge is both left- and right-linkable because it has not yet combined with any linking morphemes).
  • This insertion triggers the formation of a tenth edge (labeled “s+verhaeltnis”), because “verhaeltnis” can combine with the edge labeled "s" to its left (which was seeded into the chart upon initialization as the fourth edge of the chart).
  • This tenth edge is not left-linkable, since it was formed by the addition of a linking morpheme to the left of an existing (left- linkable) edge.
  • the insertion of the eleventh edge into the chart also triggers the formation of a thirteenth edge in the chart (which is labeled "Abhaengtechnik+s+verhaeltnis”), from combination with the tenth edge.
  • a thirteenth edge in the chart which is labeled "Abhaengtechnik+s+verhaeltnis”
  • the eleventh edge is flagged as being right-linkable, so the thirteenth edge can be formed by combining the tenth edge and the eleventh edge.
  • FIG. 7 presents a schematic representation of the chart 150 data structure used by an embodiment the present invention, the contents of which correspond to the computer program screen display presented in FIG. 6. Comparison with the contents of the chart data structure presented in FIG. 4 confirm the efficiency of the method of the present invention as discussed above.
  • FIG. 7 all but one of the eight linking-morpheme edges discussed above in conjunction with FIG. 6 have been suppressed for clarity; the single linking-morpheme edge shown is the fourth edge generated, which links vertex 13 with vertex 14 in the chart and is labeled "s" 163.
  • FIG. 8 presents a schematic representation of a breakpoint-list structure according to an embodiment of the present invention, using the data presented in FIG. 5 in conjunction with the analysis of the exemplary German compound Abhaengtechniksverhaeltnis.
  • the three columns on the right-hand side of FIG. 8 correspond to the first, fifth, and sixth columns of FIG. 5, and thus respectively contain the vertex defining a breakpoint, the weight calculated for the breakpoint, and the breakpoint's rank relative to the other breakpoints in the natural-language input.
  • This information is represented in a preferred embodiment of the present invention by means of a sorted list of ordered pairs BPList 180, as shown on the left-hand side of FIG. 8.
  • Each element of BPList is an ordered pair of the form "(Weight, Vertex)", with the list sorted first in descending order based on the first member of each ordered pair (hence the « th element in the list, which will be stored at location n, will have a weight that is greater than or equal to the weight of any m lh element in the list, where m > n), with subsequences of elements having the same weight sorted in ascending order based on the second member of each ordered pair (hence if two elements in the list, corresponding to the vertices m and n, where m > n, have the same weights, then the element corresponding to vertex n will precede the element corresponding to vertex m).
  • the vertex corresponding to the « th breakpoint will be obtained by inspection of the second member of the ordered pair in the (n - l) th element of BPList.
  • an optional additional process may inspect the results of the traversal and hypothesize one or more possible segmentations of the natural-language input that may then be subjected to further analysis; the chart-based approach used by the present invention is especially amenable to this approach, as discussed below.
  • FIG. 9 shows the state of the chart after the probabilistic breakpoint traversal method of present invention failed to determine a segmentation for the natural-language input Gehiskschaftsorganisation.
  • the following set of eight words was identified: ⁇ Werk, schaft, Organisation, Gani, Haft, Anis, Organ, 18.).
  • an additional 15 edges were entered into the chart during the course of the probabilistic breakpoint traversal, as shown in FIG. 9.
  • none of these edges completely spanned the chart, so the chart was subsequently mined for a partial segmentation, resulting in the segmented string:
  • chart mining relates to the limitation of breakpoint-based segmentation noted in Bass '571; i.e., "that certain words have forms which are used only when the word is combined with others in compounds" (col. 2, lines 64 - 66).
  • FIG. 10 illustrates the process dependencies for a method of efficiently segmenting compound words using probabilistic breakpoint traversal, corresponding to steps 101 through 104 of FIG. 1. These process dependencies may be thought of as a hierarchy of processes performed in efficiently segmenting compound words.
  • the segmentation process Segment 500 shown at the top of FIG. 10, ultimately achieves the efficient segmentation of compound words by executing or performing the various lower level processes of FIG. 10.
  • the segmentation process Segment 500 of FIG. 10 is further detailed in FIG. 11.
  • the performance of the segmentation process Segment 500 calls for the execution of the breakpoint-accumulation process GetBreakPts 600 as a subprocess, or subroutine, to the Segment 500 process.
  • the breakpoint-accumulation process GetBreakPts 600 is further detailed in FIG. 12.
  • the performance of the segmentation process Segment 500 calls for the execution of the breakpoint-testing process TestBreakPts 700.
  • the breakpoint-testing process TestBreakPts 700 is further detailed in FIG. 13.
  • the breakpoint-traversal process Traverse 800 and the substring-testing process TestSubstr 900 are both executed as subprocesses or subroutines to the breakpoint-testing process TestBreakPts 700.
  • the breakpoint-traversal process Traverse 800 is further detailed in FIG. 14 and the substring-testing process TestSubstr 900 is further detailed in FIG. 15.
  • the substring-testing process TestSubstr 900 is also executed by the breakpoint-traversal process Traverse 800, as detailed in FIG. 14.
  • the edge-insertion process InsertEdge 1000 is executed as a subprocess or subroutine to the substring-testing process TestSubstr 900.
  • the edge-insertion process InsertEdge 1000 is further detailed in FIG. 16.
  • the rightward-extension process ExtendRight 1100 and the leftward-extension process ExtendLeft 1200 are both executed as subprocesses or subroutines to the edge-insertion process InsertEdge 1000.
  • the rightward-extension process ExtendRight 1100 is further detailed in FIG. 17
  • the leftward-extension process ExtendLeft 1200 is further detailed in FIG. 18.
  • Each of these processes may execute the edge- insertion process InsertEdge 1000 as is further detailed in FIGS. 17 and 18.
  • segmentation process Segment 500 is depicted, which corresponds to steps 101 through 104 of FIG. 1.
  • the segmentation process 500 results in a segmented string indicating a segmentation of the natural-language input, interpreted as a compound word. This segmentation is achieved by operating on objects of two classes, an Edge class and a Chart class, which are characterized as follows.
  • An object of the Edge class encodes a linkable component (i.e., a sequence of at least one word or linking morpheme) constructed from at least one character of the natural-language input.
  • Each Edge object has the following attributes: (1) its label (representing the linkable component); (2) its starting vertex (which identifies where in the natural-language input the linkable component encoded by the Edge begins); (3) its ending vertex (which identifies where in the natural-language input the linkable component encoded by the Edge ends); (4) a flag that indicates whether or not the Edge is right- linkable (as discussed below); (5) a flag that indicates whether or not the Edge is left-linkable (as discussed below); (6) a flag that indicates whether or not the Edge is a linking morpheme; and (7) the Edge's weight (as discussed below).
  • An object of the Chart class encodes progress made toward segmentation of the natural- language input.
  • the Chart consists of an ordered set of vertices representing the breakpoints between the characters of the natural-language input.
  • Edge objects representing linkable components are entered into the Chart.
  • an Edge object When an Edge object is entered into the Chart, it is bidirectionally extended by creating new Edge objects in the Chart based on any Edge objects already in the chart which both (a) are contiguous to the new Edge object and (b) satisfy linkability requirements as discussed below.
  • an Edge object is constructed that spans the Chart (i.e., the starting vertex of the Edge is the first vertex of the Chart and the ending vertex of the Edge is the last vertex of the Chart), then the compound has been successfully segmented.
  • each vertex v ( . in the Chart has associated with it the following two linked lists: (1) a list of the Edge objects in the Chart that have v,. as their starting vertex and (2) a list of the Edge objects in the Chart that have v ( . as their ending vertex.
  • these lists are sorted according to Edge weight, where Edge weight is an estimate of the probability that the Edge will contribute toward a rapid convergence of the probabilistic breakpoint traversal to a successful segmentation of the natural-language input.
  • the segmentation process Segment 500 of FIG. 11 begins in step 501 by receiving as input a natural-language input consisting of a plurality of characters. Such a natural-language input would be, for instance, received from step 101 of FIG. 1.
  • the natural-language input consists of a sequence of characters which is to be segmented and interpreted as a compound word.
  • the segmentation process Segment 500 After receiving the natural-language input CurWord in step 501, the segmentation process Segment 500 performs various initialization steps as follows. FIG. 11 illustrates the performance of these initializations, although they need not necessarily be performed in the sequence shown. Following ' step 501 in FIG. 11, the method proceeds to the breakpoint- accumulation process GetBreakPts 600, which constructs an ordered set of probabilistic breakpoints for the natural-language input according to the method of the present invention. In addition to executing the breakpoint-accumulation process, the method initializes its loop-control variables as follows: (1) the current-breakpoint index CurBreakPt is set to zero in step 502 and (2) the loop-completion flag Spanned is set to false in step 503. Steps 501, 502, 503, and 600 may be completed in any order as long as the completion of step 501 precedes the start of step 600.
  • step 504 the current value of current-breakpoint index CurBreakPt is compared with the predetermined maximum breakpoint value MaxBP for the natural-language input CurWord. If CurBreakPt is less than MaxBP, then the method proceeds along the "yes" path to call the breakpoint- testing process TestBreakPts 700; otherwise the method proceeds along the "no" path to step 507. After the return of the breakpoint-testing process, the method proceeds to step 505. [0097] In step 505, the current value of the loop-completion flag Spanned is examined to determine whether it is false. If Spanned is false, then the method proceeds along the "yes” path to step 506; otherwise, the method proceeds along the "no" path to step 507.
  • step 506 the current value of CurBreakPt is incremented by one and the method proceeds to step 504, where the breakpoint-processing loop exit condition is tested as discussed above. Finally, in step 507, the segmentation process exits by returning to its calling process.
  • FIG. 12 depicts the breakpoint-accumulation process GetBreakPts 600 shown in FIG. 10.
  • the breakpoint-accumulation process entails the construction of an ordered list of probabilistic breakpoints based on an analysis of the natural-language input, and thus corresponds to step 102 of FIG. 1.
  • the breakpoint-accumulation process which is implemented as a loop that processes one breakpoint per iteration, begins at step 601 by setting the loop counter to the index of the vertex which corresponds to the first breakpoint weight to be calculated in the natural-language input.
  • the index of the first vertex to be considered in the natural-language input is 2, and the index of the last vertex to be considered in the natural-language input is L - 3 (where L is the length of the natural-language input, counted in characters, and the index of the first character of the natural-language input is 0).
  • step 602 is the exit condition for the breakpoint-processing loop. If the loop counter i is not greater than the index of the vertex of the last breakpoint to be considered in the natural- language input (i.e., L - 3), then the method proceeds along the "yes" path to step 603, otherwise the method proceeds along the "no" path to step 606. [0100] In step 603, the weight of the current breakpoint (which corresponds to the vertex v,) is calculated by reference to the startpoint context and the endpoint context of the current breakpoint (as discussed above in conjunction with step 102 of FIG. 1), and the method proceeds to step 604.
  • step 604 an ordered pair consisting of the weight of the current breakpoint and the loop counter i (which indexes the vertex v, in the chart) is inserted into the breakpoint list BPList as discussed above in conjunction with FIG. 8.
  • step 605 the loop counter / is incremented by one and the method proceeds to step 602, which executes the exit condition of the loop as discussed above.
  • step 606 sorts BPList according to breakpoint weight as discussed above in conjunction with FIG. 8, resulting in an ordered list of breakpoints BPList.
  • step 607 returns the ordered list of breakpoints BPList to the calling process.
  • FIG. 13 depicts the breakpoint-testing process TestBreakPts 700 shown in FIG. 10.
  • the breakpoint-testing process entails the testing of the substrings of the natural-language input delimited by a traversal of the ordered list of probabilistic breakpoints constructed by the breakpoint-accumulation process, and thus corresponds to step 103 of FIG. 1.
  • the breakpoint-testing process begins at step 701 by setting the value of the current breakpoint vertex BPVtx to the value of the second element of the ordered pair (i.e., the vertex index) indexed by the current value of CurBreakPt in the ordered list of breakpoints BPList.
  • step 702 the method proceeds to step 702, in which the current substring CurString is set equal to the substring of the natural-language input to the left of the vertex identified by current breakpoint vertex BPVtx.
  • step 702 the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
  • the chart-status flag Spanned is tested in step 703 to determine whether the insertion of the edge corresponding to CurString resulted in the complete spanning of the Chart. If Spanned is false, then the method proceeds along the "yes" path to step 704; otherwise the method proceeds along the "no" path to step 707.
  • step 704 the value of CurString is set to the substring of the natural-language input to the right of the vertex identified by current breakpoint vertex BPVtx. Note that steps 702 and 704 may be executed in opposite order from the order shown in FIG. 13.
  • the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
  • the chart-status flag Spanned is tested in step 705 to determine whether the insertion of the edge corresponding to CurString resulted in the complete spanning of the Chart. If Spanned is false, then the method proceeds along the "yes" path to step 706; otherwise the method proceeds along the "no" path to step 707.
  • step 706 the current breakpoint index CurBreakPt is tested to determine whether it is greater than one. If CurBreakPt is not greater than one, then the method proceeds along the "no" path to step 707; otherwise the method proceeds along the "yes" path to call to the breakpoint-traversal process Traverse 800. Upon return of the breakpoint-traversal process, the method proceeds to step 707. In step 707, the breakpoint-testing process TestBreakPts 700 returns to its calling process.
  • FIG. 14 depicts the breakpoint-traversal process Traverse 800 shown in FIG. 10.
  • the breakpoint-traversal process entails the testing of the substrings of the natural-language input delimited by a traversal, relative to the current value of the current breakpoint CurBreakPt, of the ordered list of probabilistic breakpoints constructed by the breakpoint-accumulation process.
  • the breakpoint-traversal process begins at step 801 by setting the current value of the breakpoint-traversal loop index j to zero, and the method proceeds to step 802.
  • step 802 the current value of the breakpoint-traversal loop index j is tested to determine whether it is equal to CurBreakPt. If/ is equal to CurBreakPt, then the method proceeds along the "yes" path to step 809; otherwise the method proceeds along the "no" path to step 803.
  • step 803 the value of the current vertex CurVtx is set equal to the value of the second element of the ordered pair (i.e., the vertex index) indexed by the current value of the breakpoint-traversal loop index y in the ordered list of breakpoints BPList, and the method proceeds to step 804.
  • step 804 the value of the current vertex CurVtx is tested to determine if it is greater than the value of current breakpoint vertex BPVtx. If CurVtx is greater than BPVtx, then the method proceeds along the "yes" path to step 806; otherwise the method proceeds along the "no" path to step 805.
  • step 805 the current value of CurString is set equal to the substring of the natural-language input from the vertex CurVtx to the vertex BPVtx. Following step 805, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
  • step 806 the current value of CurString is set equal to the substring of the natural-language input from the vertex BPVtx to the vertex CurVtx. Following step 806, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
  • step 808 the value of the breakpoint-traversal loop index y is incremented by one and the method proceeds to the loop exit condition in step 802. If the loop-exit condition is satisfied (i.e., the breakpoint-traversal loop index y is equal to CurBreakPt), then the method exits the breakpoint-traversal loop by proceeding to step 809. In step 809 the breakpoint-traversal process finishes by returning to its calling process.
  • FIG. 15 depicts the substring-testing process TestSubstr 900, shown in FIG. 10.
  • the substring-testing process tests a substring for inclusion in the chart data structure used by the present invention to encode progress made toward segmentation of the natural-language input.
  • the substring- testing process begins at step 901 by testing the length of the current substring CurString against a predetermined length limit LRLimit associated with the length restriction, discussed in conjunction with step 103 of FIG. 1. If the length of CurString is less than LRLimit, then the method proceeds along the "yes" path to step 906; otherwise the method proceeds along the "no" path to step 902.
  • step 902 the weight of the suffix of CurString is tested to determine whether it is equal to zero. This test implements the final trigraph restriction, as discussed in conjunction with step 103 of FIG. 1. If the weight of the suffix of CurString is equal to zero, then the method proceeds along the "yes" path to step 906 otherwise the method proceeds along the "no" path to step 903. [0115] In step 903, the weight of the prefix of CurString is tested to determine whether it is equal to zero. This test implements the initial trigraph restriction, as discussed in conjunction with step 103 of FIG. 1. If the weight of the prefix of CurString is equal to zero, then the method proceeds along the "yes" path to step 906; otherwise the method proceeds along the "no" path to step 904.
  • step 904 the current substring CurString is tested to determine whether it is a valid word. As discussed in conjunction with step 103 of FIG. 1, this test is typically conducted by looking up the substring in a lexicon. As also discussed in conjunction with step 103 of FIG. 1, this gives the present invention the advantage of not being dependent on a specific lexicon architecture. If CurString is determined not to be a valid word, then the method proceeds along the "no" path to step 906; otherwise the method proceeds along the "yes" path to step 905. In step 905, a new Edge object NewEdge is created based on the current substring CurString as discussed above in conjunction with FIG. 11.
  • step 905 the method proceeds to execute the edge-insertion process InsertEdge 1000 given the new Edge object NewEdge.
  • the method proceeds to step 906.
  • step 906 the substring-testing process TestSubstr 900 returns to its calling process.
  • FIG. 16 depicts the edge-insertion process InsertEdge 1000, shown in FIG. 10.
  • the edge-insertion process entails the insertion of a new Edge object NewEdge into the chart (if it is not already there) and extends this edge relative to any edges already in the chart, as discussed above in conjunction with FIG. 6.
  • the edge-insertion process begins at step 1001 by testing NewEdge to determine whether the edge is in the Chart object CurChart. If the edge is in CurChart, then the method proceeds along the "yes" path to step 1002; otherwise the method proceeds along the "no" path to step 1003. [0118] In step 1002, NewEdge is deleted and the method proceeds to step 1005.
  • step 1003 NewEdge is inserted into CurChart, as discussed above in conjunction with FIG. 6. Following step 1003, the method proceeds to execute the rightward-extension process ExtendRight 1100 to perform all possible rightward extensions of NewEdge in CurChart.
  • step 1004. the current value of the edge-status flag Spanned is tested to determine whether it is equal to true. If Spanned is equal to true, then the method proceeds along the "yes" path to step 1005; otherwise the method proceeds along the "no" path to execute the leftward-extension process ExtendLeft 1200 to perform all possible leftward extensions of NewEdge in CurChart. Upon the return of the leftward-extension process, the method proceeds to step 1005. In step 1005 the edge-insertion process InsertEdge 1000 returns to its calling process.
  • FIG. 17 depicts the rightward-extension process ExtendRight 1100, which extends an edge NewEdge to its right in the Chart object CurChart, as follows.
  • the edge NewEdge which ends at a vertex CurVtx in CurChart, is received, and the method proceeds to step 1102.
  • the CurEdge pointer is set to point at the first Edge in CurChart that starts at vertex CurVtx.
  • the method proceeds along the "yes" path from step 1103 to step 1116. Otherwise, the method proceeds along the "no" path from step 1103 to step 1104.
  • step 1104 if the Edge pointed at by CurEdge is "left-linkable” (LL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1105. Otherwise, the method proceeds along the "no" path from step 1104 to step 1115. In step 1105, the "extension edge will be right-linkable” flag (ExtRL) is set to "true”, and the method proceeds to step 1106. [0122] In step 1106, if the Edge pointed at by CurEdge is a linking morpheme (LM), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path from step 1106 to step 1107. Otherwise, the method proceeds along the "no" path from step 1106 to step 1109.
  • LM linking morpheme
  • step 1107 if NewEdge is "right- linkable” (RL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes” path to step 1108. Otherwise the method proceeds along the "no” path to step 1115. In step 1108, the "extension edge will be right-linkable” flag (ExtRL) is set to "false” and the method proceeds to step 1109.
  • RL right-linkable
  • step 1109 the "extension edge" (ExtEdge) is created because it has been determined that NewEdge can be extended by the edge pointed at by CurEdge.
  • the creation of ExtEdge is accomplished by allocating a new Edge object and setting its attributes as discussed above in conjunction with FIG. 10. The method then proceeds to step 1110.
  • step 1110 the extension edge ExtEdge is inspected to determine if it spans CurChart (i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6). If the extension edge ExtEdge spans CurChart, then the method proceeds along the "yes" path to step 1111. Otherwise, the method proceeds along the "no" path to execute the edge-insertion process InsertEdge 1000 on the extension edge ExtEdge, as is further detailed in FIG. 16 above. Upon the return of the edge-insertion process InsertEdge 1000, the method proceeds to step 1114.
  • CurChart i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6.
  • step 1111 the final-edge pointer FinalEdge is set to point at ExtEdge and the method proceeds to step 1112, in which the chart-status flag Spanned is set equal to true (steps 1111 and 1112 may be executed in any order). The method then proceeds to step 1113. In step 1113, the ExtendRight 1100 process finishes by returning to its calling process. [0126] In step 1114, the value of the chart-status flag Spanned is examined to determine whether it is true. If Spanned is true, then the method proceeds along the "yes" path to step 1113; otherwise the method proceeds along the "no" path to step 1115.
  • step 1115 the current-edge pointer CurEdge is set to point at the next edge starting at vertex CurVtx in CurChart, and the method proceeds to step 1103 to check whether CurEdge is null (if CurEdge is null, then the method proceeds along the "yes" path to step 1116; otherwise it continues the edge-processing loop by proceeding along the "no" path to step 1104).
  • step 1116 the chart-status flag Spanned is set equal to false and the method proceeds to step 1117.
  • step 1117 the process ExtendRight 1100 finishes by returning to its calling process.
  • FIG. 18 depicts the leftward-extension process ExtendLeft 1200, which extends an edge NewEdge to its left in the current Chart object CurChart, as follows.
  • the edge NewEdge which starts at a vertex CurVtx in CurChart, is received, and the method proceeds to step 1202.
  • the CurEdge pointer is set to point at the first Edge in CurChart that ends at vertex CurVtx.
  • step 1203 if CurEdge is null, then the method proceeds along the "yes" path from step 1203 to step 1216. Otherwise, the method proceeds along the "no" path from step 1203 to step 1204.
  • step 1204 if the Edge pointed at by CurEdge is "right-linkable” (RL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1205. Otherwise, the method proceeds along the "no" path from step 1204 to step 1215. In step 1205, the "extension edge will be left-linkable” flag (ExtLL) is set to true, and the method proceeds to step 1206. [0131] In step 1206, if the Edge pointed at by CurEdge is a linking morpheme (LM), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path from step 1206 to step 1207. Otherwise, the method proceeds along the "no" path from step 1206 to step 1209.
  • LM linking morpheme
  • step 1207 if NewEdge is "left-linkable” (LL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes” path to step 1208. Otherwise the method proceeds along the "no” path to step 1215. In step 1208, the "extension edge will be left-linkable” flag (ExtLL) is set to false and the method proceeds to step 1209.
  • LL left-linkable
  • step 1209 the "extension edge" (ExtEdge) is created because it has been determined that NewEdge can be extended by the edge pointed at by CurEdge.
  • the creation of ExtEdge is accomplished by allocating a new Edge object and setting its attributes as discussed above in conjunction with FIG. 10. The method then procees to step 1210.
  • step 1210 the extension edge ExtEdge is inspected to determine if it spans CurChart (i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6). If the extension edge ExtEdge spans CurChart, then the method proceeds along the "yes" path to step 1211. Otherwise, the method proceeds along the "no" path to execute the edge-insertion process InsertEdge 1000 on the extension edge ExtEdge, as is further detailed in FIG. 16 above. Upon the return of the edge-insertion process InsertEdge 1000, the method proceeds to step 1214.
  • CurChart i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6.
  • step 1211 the final-edge pointer FinalEdge is set to point at ExtEdge and the method proceeds to step 1212, in which the chart-status flag Spanned is set equal to true (steps 1211 and 1212 may be executed in any order). The method then proceeds to step 1213. In step 1213, the ExtendLeft 1200 process finishes by returning to its calling process. [0135] In step 1214, the value of the chart-status flag Spanned is examined to determine whether it is true. If Spanned is true, then the method proceeds along the "yes" path to step 1213; otherwise the method proceeds along the "no" path to step 1215.
  • step 1215 the current-edge pointer CurEdge is set to point at the next edge ending at vertex CurVtx in CurChart, and the method proceeds to step 1203 to check whether CurEdge is null (if CurEdge is null, then the method proceeds along the "yes" path to step 1216; otherwise it continues the edge-processing loop by proceeding along the "no" path to step 1204).
  • step 1216 the chart-status flag Spanned is set equal to false and the method proceeds to step 1217.
  • step 1217 the process ExtendLeft 1200 finishes by returning to its calling process.
  • FIG. 19 presents a schematic of a training configuration of a compound-word segmenter 200 for the present invention, which is interpreted as follows.
  • a word boundary analyzer 202 coupled to a memory unit 203, accepts as input a lexicon 201 and analyzes all starting and ending contexts of the words in the lexicon as described above in conjunction with step 104 of FIG. 1 , and produces as output a startpoint probability matrix 204 and an endpoint probability matrix 205.
  • FIG. 20 presents a schematic of a production configuration of a compound- word segmenter 300 of the present invention, which is interpreted as follows.
  • a probabilistic breakpoint analyzer 302 coupled to the startpoint probability matrix 204, the endpoint probability matrix 205, and a probabilistic breakpoint processor 304, accepts as input a natural-language input 301, processes it as described above in conjunction with step 102 of FIG. 1, and produces as output a breakpoint-annotated input 303.
  • the probabilistic breakpoint processor 304 then accepts as input the breakpoint-annotated input, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output a segmented string 305.
  • FIG. 21 presents a schematic of the probabilistic breakpoint processor 304 of the present invention, which is interpreted as follows.
  • a breakpoint-delimited substring tester 401 coupled to the lexicon 201 and a chart 402, accepts as input the breakpoint-annotated input 303, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output the segmented string 305.
  • FIG. 22 presents a schematic of an augmented probabilistic breakpoint processor 403 of the present invention, which is interpreted as follows.
  • An augmented breakpoint-delimited substring tester 404 coupled to the lexicon 201, the chart 402, and a chart analyzer 406, accepts as input the breakpoint-annotated input 303, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output either the segmented string 305 or a failure signal 405.
  • the chart analyzer 406 coupled to the augmented breakpoint-delimited substring tester 404 and the chart 402, accepts as input the failure signal, analyzes the chart as described above in conjunction with FIG. 9, and produces as output the segmented string 305.

Abstract

A method for segmenting a compound word in an unrestricted natural-language input (101) is disclosed. The method comprises receiving a natural-language input (101) consisting of a plurality of characters. Next, a set of probabilistic breakpoints (102) based on a probabilistic breakpoint analysis is constructed in the natural-language input (101). A plurality of linkable components (103) is identified by traversal of substrings of the natural-language input (101) delimited by the set of probabilistic breakpoints. Finally, a segmented string consisting of a plurality of linkable components spanning the natural-language input is returned (104). The segmented string can be interpreted as a compound word.

Description

METHOD AND APPARATUS FOR EFFICIENT
SEGMENTATION OF COMPOUND WORDS USING
PROBABILISTIC BREAKPOINT TRAVERSAL
BACKGROUND OF THE INVENTION
Field of the Invention
[0001] The present invention involves the automated analysis of unrestricted natural-language input. In particular, the present invention pertains to an improved method and apparatus for the efficient segmentation of compound words in unrestricted natural-language input using probabilistic breakpoint traversal.
State of the Art
[0002] Many languages, such as German, permit the construction of novel compound words by a process of iterative concatenation (often including the incorporation of additional morphemes as linking elements). Thus texts in these languages are likely to include very long words that do not occur in any dictionary of the language. For example, an analysis of a corpus of German texts containing approximately five million words yielded almost 60,000 different words at least 15 letters long (out of a vocabulary of approximately 230,000 words), only about 10,000 of which were found in a 503,000-entry German dictionary. A natural-language processing system that relied only on such a dictionary to identify words in this text would therefore be likely to recognize less than 20% of the words of at least 15 letters in length.
[0003] A typical example of such a word is the German compound Abschreibungsmoglichkeiten. This compound is constructed by concatenating the two words Abschreibung and mόglichkeiten by means of the "linking morpheme" s. In the discussion that follows, the decomposition of a compound into its component words (and linking morphemes, if any) is referred to as a "segmentation" of the compound and is represented by character strings separated by the symbol "+"; for example, the segmentation of the compound Abschreibungsmoglichkeiten is represented as Abschreibung+s+mδglichkeiten.
[0004] The segmentation of compound words is an important aspect of natural-language processing (NLP), particularly for Germanic languages (e.g., German and Dutch, but also the Scandinavian languages and, to a lesser degree, English). As noted in U.S. Patent No. 4,672,571 to Bass et al. [hereinafter Bass '571, the disclosure of which is incorporated by reference herein]: "In many languages, particularly Germanic languages, word compounding is an active way of creating new words in these languages; therefore, storing all meaningful compounds in a dictionary data base is, quite simply, impossible" (emphasis in original). Thus a compound-segmentation algorithm is necessary for NLP in these languages, and several such algorithms have been proposed in the art, as follows.
[0005] U.S. Patent No. 5,867,812 to Sassano [hereinafter Sassano '812, the disclosure of which is incorporated by reference herein], teaches a "registration apparatus for [a] compound- word dictionary." The purpose of this invention is to improve a Japanese-English machine translation system, and consequently it includes a "word segmenter" component to segment Japanese compounds. Due to the highly restricted syllabic structure of Japanese, compound segmentation based on syllabic structure is straightforward; e.g., the Japanese compound torukogo (discussed in Sassano '812) is segmented as toruko+go based on its syllabic decomposition of to-ru- ko-go.
[0006] Purely syllable-based segmentation is not practical for languages such as German or English, which have considerably more complex syllable structures than Japanese (as noted in U.S. Patent No. 5,797,122 to Spies [hereinafter Spies '122, the disclosure of which is incorporated by reference herein], German has approximately 5,000 different syllables). Additionally, because some of the linking morphemes in German are consonants, one or more segmentation boundaries of a German compound can actually occur within a syllable (e.g., in Abschreibungsmoglichkeiten, the first segmentation boundary occurs within the third syllable of the word; i.e., "bung+s").
[0007] U.S. Patent No. 5,774,834 to Visser [hereinafter Visser '834, the disclosure of which is incorporated by reference herein], teaches a "system and method for correcting a string of characters by skipping to pseudo-syllable borders in a dictionary" (emphasis added). Specifically, "a retrieving unit retrieves an entry of a dictionary which corresponds to an input character string while comparing input characters, one by one, with entries of TRIE tables stored in a dictionary storing unit." In the case that an input character "does not coincide with any of the entries in the currently-used TRIE table, a skipping unit locates a next effective pseudo-syllable border in the input character string to find candidates of those TRIE tables which correspond to the effective pseudo-syllable border." Like the system disclosed in U.S. Patent No. 4,777,617 to Frisch et al. [hereinafter Frisch '617, the disclosure of which is incorporated by reference herein], this invention depends on a specific dictionary architecture (in this case a trie). Visser '834 addresses a known problem of using tries to analyze possibly defective input strings (like Frisch '617, spelling correction is the major aim of this invention) by means of the "skipping unit."
[0008] A different approach (which is generally more suitable for Germanic languages than the syllable-based segmentation approaches discussed above) is presented in Frisch '617, which teaches a "method for verifying spelling of compound words." Specifically, it supplements the "basic technology of looking up words in a dictionary ... 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." [0009] The usage of tree-scanning techniques in Frisch '617 is necessary because of the storage architecture of its dictionary. The usage of "component flags" is necessary because the invention disclosed in Frisch '617 is a spelling verifier and consequently requires a means of determining when a compound word is "wrong." However, it is not unusual in German for a compound word to contain acronyms or foreign words. For example, although the word "Internet" does not occur in the 503, 000-word German lexicon referenced above, it occurs frequently in the 1998 volume of Der Spiegel, and also forms compounds with many other words, both German and foreign (e.g., Internetsurfer, InternetBuchanbeiter, Internetzugriffen, Internetangebot, etc.). Thus a means of dealing with out-of-dictionary elements in the compound would be desirable.
[0010] Finally, a bottom-up compound segmentation technique based on unigraph breakpoints is disclosed in Bass '571. This technique is discarded by Bass '571, in favor of a recursive, top-down segmentation technique, based on four "significant limitations" as follows:
1) "Likely break points are also common letter pairs at places other than the joints between compound constituents" (col. 4, lines 2-4). For example, because many words of English end with "s" and start with "t", the point between the letters "s" and "t" is a likely candidate for a "joint"; however, the letter pair "st" also happens occur in many English words that are not compounds.
2) "Not all misspelled words will be correctly identified as such because compounds composed of two unrelated but correctly spelled words which may be parsed into two correctly spelled words are verified as correctly spelled words" (col. 2, lines 25-29).
3) "Correctly spelled words may suffer from mishyphenation on the basis of break points when the wrong pair of words is identified as the constituents of the compound" (col. 2, lines 55-58). 4) "Certain words have forms which are used only when the word is combined with others in compounds" (col. 2, lines 64-66).
It is necessary for a compound-segmentation method based on breakpoint analysis to successfully address each of these limitations, as is done by the present invention.
[0011] In summary, the complexity of Germanic compounding precludes the purely syllable-based approach typically used for compound-segmentation in languages such as Japanese (Sassano '812). A method such as Visser '834, which employs "pseudo-syllable boundaries," is better adapted to Germanic compounding, however this requires the usage of a specific dictionary architecture (i.e., a trie). Similarly, the other techniques in the art that are specifically intended to segment Germanic compounds (Bass '571, Frisch '617) are also top-down approaches that depend on specific dictionary architectures.
[0012] Accordingly, it would be desirable to have a method that could receive a compound word (in German or another language with similar compounding properties) as input and efficiently produce its correct segmentation as output. Additionally, in the case that a segmentation cannot be determined (e.g., because the compound contains a word or acronym not in the system's lexicon), it would be desirable to have the method construct a partial segmentation of the compound so that the unrecognizable part(s) of the word are isolated for further analysis. These advantages and others are provided by the present invention, as disclosed below.
SUMMARY OF THE INVENTION
[0013] The present invention is directed to a linguistic processing apparatus and method for rapidly and accurately segmenting compound words in unrestricted natural-language input. [0014] The present invention employs a bottom-up, statistical approach to compound- word segmentation that is independent of dictionary architecture and is relatively robust to spelling errors and neologisms. Because the present invention chooses breakpoints probabilistically, it is extremely efficient, typically converging to a correct segmentation after only a few breakpoints have been tested even for very long compound words (25+ letters). Additionally, the present invention also specifically addresses the limitations of the bottom-up approach enumerated by Bass '571, thus resulting in additional processing efficiencies.
[0015] The bottom-up approach to compound-word segmentation used by the present invention may be divided into three steps, as follows. First, an ordered set of breakpoints is identified in the compound using a bottom-up, statistically based method of probabilistic breakpoint analysis, a novel approach to compound decomposition provided by the present invention. Second, the set of substrings based on the probabilistic breakpoint analysis is traversed in order of decreasing probability (i.e., with the most probable substrings considered first), in a novel method of probabilistic breakpoint traversal provided by the present invention, with any substrings that are linkable components (e.g., words or linking morphemes) being identified by means of access to a lexicon. In the present invention, lexicon access is therefore independent of lexicon structure, thus allowing the choice of lexicon structure to be based on criteria external to the compound-segmentation process. Third, during the course of the probabilistic breakpoint traversal, the compound is segmented by spanning it by the linkable components thus obtained. A novel approach to segmentation, based on bidirectional chart parsing, is provided by the present invention.
[0016] Furthermore, in the case that a segmentation cannot be obtained by the above steps, it would be desirable for the segmentation method to be able to hypothesize at least one possible segmentation of the word to be subjected to further analysis. The adaptation of bidirectional chart parsing to compound- word segmentation provided by the present invention has the advantage of preserving the hypotheses generated during the segmentation process so that, in the case that a complete segmentation cannot be obtained, the chart can be "mined" for partial segmentations that may prove to be useful in the further analysis of the word.
[0017] As noted above, an analysis of a corpus of German texts containing approximately five million words yielded almost 60,000 different words at least 15 letters long (out of a vocabulary of approximately 230,000 words), only about 10,000 of which were found in a 503,000-entry German dictionary. A natural-language processing system that relied only on such a dictionary to identify words in this text would therefore be likely to recognize less than 20% of these words. The present invention, however, when tested on this same set of words achieved a recognition rate of over 92%. The present invention is able to realize this advantage because of its focus on a bottom-up, statistical approach to compound-word segmentation based on probabilistic breakpoint traversal.
BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Other objects and advantages of the present invention will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments, in conjunction with the accompanying drawings, wherein like reference numerals have been used to designate like elements, and wherein:
[0019] FIG. 1 is a flowchart of steps to efficiently segment compound words using probabilistic breakpoint traversal in accordance with one embodiment of the method of the present invention; [0020] FIG. 2 is a schematic representation of probabilistic breakpoint analysis according to the method of the present invention;
[0021] FIG. 3 is a schematic representation of probabilistic segmentation according to the method of the present invention;
[0022] FIG. 4 illustrates a computer program screen display showing probabilistic breakpoint analysis according to the method of the present invention;
[0023] FIG. 5 is a schematic representation of a chart data structure used to encode segmentation progress according to an embodiment of the present invention;
[0024] FIG. 6 illustrates a computer program screen display of compound- word segmentation using a method according to the present invention;
[0025] FIG. 7 is a schematic representation of a chart data structure encoding segmentation progress corresponding to the computer program screen display of FIG. 6, according to an embodiment of the present invention;
[0026] FIG. 8 is a schematic representation of a breakpoint- list structure according to an embodiment of the present invention;
[0027] FIG. 9 illustrates a computer program screen display showing compound-word segmentation augmented with chart mining using a method according to the present invention;
[0028] FIG. 10 illustrates the process dependencies of a method for efficiently segmenting compound words according to the present invention; [0029] FIG. 11 is a flowchart of one embodiment of steps for efficiently segmenting compound words in accordance with the segmentation process Segment 500 of the present invention;
[0030] FIG. 12 is a flowchart of one embodiment of steps for identifying and sorting probabilistic breakpoints in accordance with the breakpoint- accumulation process GetBreakPts 600 of the present invention; [0031] FIG. 13 is a flowchart of one embodiment of steps for testing the substrings delimited by probabilistic breakpoints in accordance with the breakpoint-testing process TestBreakPts 700 of the present invention;
[0032] FIG. 14 is a flowchart of one embodiment of steps for traversing probabilistic breakpoints to obtain substrings in accordance with the breakpoint-traversal process Traverse 800 of the present invention;
[0033] FIG. 15 is a flowchart of one embodiment of steps for testing a substring for inclusion in a chart used to encode segmentation progress in accordance with the substring-testing process TestSubstr 900 of the present invention;
[0034] FIG. 16 is a flowchart of one embodiment of steps for inserting an edge in the chart used to encode segmentation progess in accordance with the edge-insertion process InsertEdge 1000 of the present invention;
[0035] FIG. 17 is a flowchart of one embodiment of steps for rightward extension of an edge in the chart used to encode segmentation progess in accordance with the rightward-extension process ExtendRight 1100 of the present invention;
[0036] FIG. 18 is a flowchart of one embodiment of steps for leftward extension of an edge in the chart used to encode segmentation progress in accordance with the leftward-extension process ExtendLeft 1200 of the present invention;
[0037] FIG. 19 is an embodiment of the present invention in a training configuration;
[0038] FIG. 20 is an embodiment of the present invention in a production configuration;
[0039] FIG. 21 is an embodiment of a probabilistic breakpoint processor of the present invention; and
[0040] FIG. 22 is an embodiment of an augmented probabilistic breakpoint processor of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [0041] Briefly, the present invention is directed to a linguistic processing method and apparatus for rapidly and accurately segmenting compound words from an unrestricted natural-language input by employing a bottom-up, statistical approach that is independent of dictionary architecture. When discussing the such method and apparatus, the following terms have the following meanings unless otherwise indicated. Additionally, any undefined terms have their ordinary meaning recognized in the art.
bigraph: A sequence of two contiguous characters. breakpoint: A point between two characters in a word, represented as a vertex in the chart, that may be a point of division in the segmentation of the word. chart: A data structure, consisting of vertices connected by edges, that encodes hypotheses generated during the course of chart parsing. chart parsing: A process of generating structure(s) over a given string by means of a grammar. corpus (plural: corpora): A representative body of text that may be analyzed to yield quantitative information useful in Natural Language Processing (NLP). compound (word): A word that may be segmented into a plurality of words and linking morphemes (if any) used to combine these words. digraph: A pair of characters used in a transliteration system to represent a single character in another system; e.g., the digraph "oe" is typically used to represent the character "δ" in the standard transliteration of German. endpoint (context): In the present invention, an endpoint context is the context to the immediate left of a breakpoint in a word; in the presently preferred embodiment, the endpoint contexts are expressed as trigraphs. graph: A set of vertices connected by edges. A graph is "connected" if a path exists from any vertex in the graph to any other vertex in the graph. A graph is "acyclic" if every path in the graph has the property that any vertex in graph can occur in the path at most once. A graph is "directed" if every edge is oriented such that it can be traversed in only one direction (i.e., from its starting vertex to its ending vertex). The "graph" and "chart" entities referred to the present invention are directed acyclic graphs. linking morpheme: A morpheme (e.g., in German, "e", "n", "s", and "er") that may be inserted between two words during the process of compound formation. For example, in German, the two words Abschreibung and Mδglichkeiten may be combined to form the compound Abschreibungsmoglichkeiten; the letter "s" that was inserted between these two words by this process is a linking morpheme (note that * bschreibungmoglichkeiten is not an acceptable German word). n-graph: A sequence of n contiguous characters; e.g., a trigraph is an w-graph with n = 3.
NL ("natural language"): A language, such as German, that is not artificially constructed (as are, for example, computer languages) and which is consequently characterized by features such as ambiguity, polysemy, etc., that present difficulties for algorithmic analysis.
NLP ("natural-language processing"): The automated processing of NL texts or utterances. segmentation: The process of subdividing a compound word into its constituent words and linking morphemes (if any) used to combine these words. startpoint (context): In the present invention, a startpoint context is the context to the immediate right of a breakpoint in a word; in the presently preferred embodiment, the startpoint contexts are expressed as trigraphs. trie: A tree-based data structure typically used in retrieval applications (hence the name, which is derived from "retrieval"); referred to as a "TRIE" in Visser '834. tetragraph: A sequence of four contiguous characters. trigraph: A sequence of three contiguous characters. unigraph: A single character, considered independent of any surrounding context. word: In the present invention, a "word" is defined as a character string stored in the lexicon, or algorithmically derivable from such a character string.
[0042] Referring now to the drawings wherein the showings are for purposes of illustrating preferred embodiments of the present invention only, and not for purposes of limiting the same, FIG. 1 illustrates a method of efficiently segmenting compound words, according to a preferred embodiment of the present invention. The method begins at step 101 with an input of natural language being received by the system. The natural-language input of step 101 may consist of text (e.g., characters or symbols representing human language) entered by a user or received from another source. The natural- language input of step 101 may be entered, or received, in a number of ways. For instance, the natural-language input of step 101 may be entered by a user typing letters into a keyboard, or entering characters or symbols using an input/output (I/O) device such as a mouse or other like I/O device. The natural-language input of step 101 may also be received from a speech recognition system which produces text corresponding to spoken speech, or may be received from a document scanner which converts images sensed from written documents, for instance, into text. The natural-language input may also be in the form of a graph of characters representing ambiguous input; such graphs are typically generated by speech recognizers or document scanners as a response to imperfectly perceived input. The natural-language input may also be text received in the form of a transmitted signal or an encoded signal retrieved from an electronically stored file, such as a computer file. The natural-language input of step 101 may be formatted according to a standard such as ASCII, or a higher level text format such as the Rich Text Format (RTF), or the like.
[0043] Depending upon the communication forum in which the present invention is being used, the natural-language input of step 101 may or may not be in the form of unambiguously specified words. In a preferred embodiment of the invention, the natural-language input of step 101 is entered in the form of unambiguously specified words. One example of a communication forum using unambiguously specified word input in step 101 occurs when the natural-language input is derived from a written composition (e.g., a technical paper, a magazine article, a book, a correspondence, or the like). For these types of input, the natural-language input will typically be in the form of unambiguously specified words delimited by white space and/or punctuation marks.
[0044] According to an alternative embodiment of the present invention, the natural-language input of step 101 may be entered in ambiguously specified word form. That is, the input of step 101 may not necessarily conform to unambiguously specified words. Examples of a communication forum using ambiguously specified words as natural-language input in step 101 may occur when the input is derived from spoken words or from text perceived by a document scanner. In such input contexts, the natural-language input of step 101 is likely to consist of graphs of characters in which paths through the graphs represent hypothesized words. Use of the present invention in these less well-defined communication forums may result in higher uncertainties in segmenting the compound words in the natural- language input. [0045] Regardless of whether the natural-language input of step 101 is in the form of unambiguously specified words or ambiguously specified words, the entered text is treated at its lowest level of graphical divisibility, characters, for further processing. Characters are the symbols (letters, punctuation marks, etc.) which make up the natural-language input. For ease of description, the present invention is delineated in terms of "letters" being characters which include both letters and punctuation marks. In addition, the present invention is delineated in terms of "compounds" being processed— even though the natural-language input being processed may not be in the form of recognizable compound words. One advantage of the present invention is its capability to partially segment ill-formed and/or ambiguously specified natural-language input.
[0046] Additionally, in the presently preferred embodiment of the present invention, the standard transliteration of the German letters "a", "ό", "ϋ", and "β" into the digraphs "ae", "oe", "ue", and "ss" is used. This ensures that the present invention is as independent as possible of system- or language-specific encoding effects. The present invention, however, does not require usage of the standard transliteration, and will be likely to exhibit improved behavior if digraphs are not used because the substitution of a digraph for a single letter, as is done in the standard transliteration system, results in a reduction of usable trigraph context. Additionally, depending on which character-encoding conventions are used by a particular embodiment of the invention, ligatures (e.g., "fi" for the digraph "f i") may also be used. It is expected that adapting the present invention from the standard transliteration to a specific transliteration based on a larger character set will improve the invention's accuracy and convergence, because this adaptation will improve the resolution of the trigraphs on which the breakpoint analysis is based, as will be further explained below. [0047] In step 102, an ordered set of probabilistic breakpoints is constructed in the natural-language input based on probabilistic breakpoint analysis. As discussed above, the prior-art methods that attempt to segment a German compound via "top down" analysis (e.g., by attempting to analyze its syllable structure or trying to recursively match it against a trie) are insufficient. Thus the present invention takes a "bottom up" approach to this problem as follows.
[0048] Referring to FIG. 2 presents a schematic representation of probabilistic breakpoint analysis (110) is presented. In FIG. 2, the natural- language input is conceptualized as a graph of edges and vertices, where each edge is labeled by a character in the natural-language input and each vertex represents a breakpoint between adjacent characters in the natural-language input. Additionally, each vertex in the graph (representing a breakpoint) is labeled by a number from 0 to L, where L is the length of the natural-language input. Thus, for example, an edge (111) in FIG. 2 is labeled by a edge label "s" 112 and connects a vertex labeled "13" 113 to a vertex labeled "14" 114. The segmentation of natural-language input into a compound word may therefore be represented as a vector of integers (where each integer corresponds to the label of a vertex identifying one of the breakpoints used to segment the compound word). For example, the segmentation Abhaengigkeit+s+verhaeltnis of the compound word Abhaengigkeitsverhaeltnis would be represented as (13, 14), indicating that this compound word is split into three segments by dividing it at the breakpoints corresponding to the vertices labeled 13 and 14, respectively.
[0049] Breakpoint weights are assigned to the breakpoints in the natural- language input based on an analysis of -graphs drawn from an appropriate lexicon. In the presently preferred embodiment of the present invention, the n- graph value used is n = 3, though other values (or combinations of values) may be used, as discussed below. The probability of a particular breakpoint may be estimated as the sum of two weights that respectively represent: (1) the probability that the w-graph preceding the breakpoint ends a word and (2) the probability that the «-graph following the breakpoint starts a word. For example, the breakpoint corresponding to vertex "8" 117 in FIG. 2 will have assigned to it a breakpoint weight w8 118. In the presently preferred embodiment, the breakpoint weight will be determined based on the endpoint context and startpoint context of the breakpoint; i.e., the trigraphs that respectively end a hypothesized word to the left of the breakpoint and start a hypothesized word to the right of the breakpoint. In the example, the endpoint context is the trigraph "ngi" 115 that immediately precedes vertex "8" 117 and the startpoint context is the trigraph "gke" 116 that immediately follows vertex "8" 117. As is discussed further in conjunction with FIG. 5 below, the breakpoint weight vv8 118 is relatively low, indicating that a segmentation of this natural-language input at vertex "8" is not likely.
[0050] In the presently preferred embodiment of the present invention, the weighting of probabilistic breakpoints is accomplished by calculating the weights I of the trigraph contexts that precede and follow the breakpoint; i.e.,
(1) Wψ v, )) = Fe(c(l_2tl)) + Fs (c(l+ +3)) where:
1) b} is the breakpoint corresponding to the vertex v, (i.e., the vertex that follows the i'h character in the natural-language input).
2) c(m n) (where m < n) represents the sequence of (n - m) + 1 characters in the natural-language input from character m to character n.
3) The function Fe returns the number of times that its argument occurs as a word-initial substring in a predetermined lexicon. In the presently preferred embodiment, the argument is a trigraph of three contiguous characters. 4) The function Fs returns the number of times that its argument occurs as a word-final substring in a predetermined lexicon. In the presently preferred embodiment, the argument is a trigraph of three contiguous characters.
[0051] In addition to trigraph context, alternative embodiments of the present invention might calculate the weight of a probabilistic breakpoint as follows:
1) Bigraph context; i.e.,' W ^v,)) = Fe(c(l_i 0) + Fs (c(l+l l+1)) .
Experimentation has indicated that using bigraph context results in lower accuracy than trigraph context; however, bigraph context requires much smaller breakpoint probability matrices.
2) Tetragraph context; i.e., Wψ^v,) = Fe(c(l_3 l)) + Fs (c + +4)) .
Tetragraph context involves more context than trigraph context, however it also requires substantially larger breakpoint probability matrices.
3) Asymmetrical context; i.e., W(b} (v, )) = Fe (c{l_m ι) ) + Fs (c(l+l l+n) ) , where m ≠ n - 1. The previous formulas all have the characteristic that the context considered on either side of the breakpoint is of the same length (e.g., trigraphs), however it is possible that other choices of context may be sufficient; e.g., the bigraph preceding the breakpoint combined with the trigraph following the breakpoint, etc.
4) Weighted context; e.g., W ^v,)) = λ_2 β(c(I_2>l)) + λ_ Fs (c(l_ )) + >-^s (c(,+ι,1+2)) + ^3^ (c(ι+ι>1+3)) • m this case, multiple contexts are taken into account, with their contribution to the weight of the probabilistic breakpoint determined by the value of the associated constant λt . For the given formula both trigraph and bigraph contexts are taken into account with, for example, the contribution of the preceding trigraph context being determined by the value of λ_2.
[0052] To summarize, all of the above approaches may be combined into the following equation:
Figure imgf000019_0001
with the appropriate values of the variables m and n, and the sequence {λ_m ,—,λ„} for each of the above cases being as follows:
1) For the symmetrical bigraph context case, m = 1, n = 2, and {λ_m,...,λn} = {λ_„...,λ2) = {1,0,0,1}.
2) For the symmetrical tetragraph context case, m = 3, n = 4, and
{λ_m,...,λn} = μ_3,...,A4} = {i, o, o, o, o, o, o, i}.
3) For the asymmetrical context case, if (for example), m = 1 , and « = 3 (note that m≠n - 1), then {λ_m,...,λ = {λ_,...,λ3} = {1, 0, 0, 0, 1}.
4) For the weighted context case, if (for example), Wb} (v( )) = λ-2F( u-2,t)) + λF(co- )) + λ2F(co+u+2)) + λ3F(c0+il+3)),thenm = 2andn = 3,and {λ_m,...,λn}= {λ_l,...,λ3}= {λ_2, 4_,,0, 0, λ2, λ3}.
5) For the symmetrical trigraph case (as implemented in the presently preferred embodiment): m = 2, « = 3, and {λ_m,...,λn} = {λ_2,...,λ3} = {1, 0, 0,0,0,1}.
[0053] Thus breakpoint weights are assigned to each breakpoint based on a quantitative analysis of the lexicon, resulting in an ordering of the set of breakpoints according to the probability of a segmentation of the natural- language input occurring at each breakpoint in the set. For example, if the breakpoint at vertex "14" (114) is determined to be the most probable breakpoint in the natural-language input, and the breakpoint at vertex "15" is determined to be the next most probable, then the former is identified as the "first breakpoint" ("6, " or "breakpoint 1") and the latter as the "second breakpoint" ("b2 " or "breakpoint 2"), etc. Note that "vertex 1" (for example) refers to a fixed position in the chart (specifically corresponding to the breakpoint that follows the first character of the natural-language input) while "breakpoint 1 " refers to a chart position that depends on the weights assigned to all of the breakpoints in the natural-language input (and, in the above example, corresponds to vertex "14" (114)).
[0054] Referring back to FIG. 1, in step 103, a plurality of linkable components is identified by a probabilistic breakpoint traversal; i.e., an ordered traversal of substrings of the natural-language input delimited by the probabilistic breakpoints. The ordered traversal is accomplished by iteratively splitting the natural-language input into substrings delimited by the probabilistic breakpoints. During the probabilistic breakpoint traversal, a substring may be identified as a linkable component (e.g., by locating it in a lexicon). Thus lexicon access is independent of lexicon structure in the present invention, which therefore permits a choice of lexicon structure to be based on criteria external to the compound-segmentation process. Also, as further discussed below, the assignment of breakpoint weights to the breakpoints permits ordering the substrings according to breakpoint probability. Thus an ordered set of substrings is constructed which has the desirable property that the substrings in the natural-language input that are most likely to be linkable components are ordered early in the ordered set of substrings, allowing rapid convergence to a segmentation of the natural- language input.
[0055] The probabilistic breakpoint traversal method of the present invention is formalized as follows. Given a natural-language input ω of length L, the breakpoint set S(b„ ) corresponding to the nth breakpoint in ω (which is symbolized as bn and which corresponds to some vertex k (0 < k < L) in ω) is generated as follows:
1) Generate the substring corresponding to the characters of ω from vertex 0 to vertex k and add it to S(bn ) .
2) Generate the substring corresponding to the characters of ω from vertex k to vertex L and add it to S(bn ) .
3) If n > 1, then for each vertex v, corresponding to the breakpoint b, (0 < i < n - l), do the following: a) If v, < k, then generate the substring corresponding to the characters of ω from , to k and add it to S(bn ) . b) If v( > k, then generate the substring corresponding to the characters of ω from k to v, and add it to S(bn ) .
[0056] It now must be proved that the breakpoint sets generated by the above procedure are all disjoint. This will ensure that the union of these sets exactly covers the set of proper substrings of ω, so that the traversal of the set of breakpoint sets will neither fail to consider any possible linkable components in ω nor test any substring more than once.
[0057] This proof is accomplished as follows. Choose any two breakpoint sets derived from ω ; i.e., S(bm ) and S(bn ) , where m ≠ n and where the breakpoint bm corresponds to the vertex v} and the breakpoint bn corresponds to the vertex vk . Because m ≠ n , then the corresponding vertices ( v, and vk ) are also not equal. However, a property of a breakpoint set S(bt ) (where the breakpoint bl corresponds to some vertex v, ) is that every string in it must either start or end on the corresponding vertex v, . Thus no string in S(bm ) can be equal (i.e., have the same starting vertex, ending vertex, and characters) to any string in S(bn) , and all the breakpoint sets derived from ω are therefore disjoint.
[0058] Because the breakpoint sets derived from ω are disjoint, it follows that the set of breakpoint sets covers the set of proper substrings of ω. This is because the elements of the set of breakpoint sets are all proper substrings of ω and the two sets have the same cardinality (if two sets consist of the same elements and have the same cardinality, then they are by definition equal). The latter property follows from the fact that the cardinality of a breakpoint set S(t, ) is i + 1 , and that there are L - 1 vertices in ω that can generate
breakpoint sets; thus the cardinality of the set of breakpoint sets is ^ _ (i + 1) ,
which is equivalent to Y\_ i , which is the cardinality of the set of proper substrings of a string of length L.
[0059] The implementation of the above method may be improved by using "filters" and "accelerators," described as follows. A filter is a method for determining that a substring can be removed from consideration by the segmentation method before accessing the lexicon; this speeds up the method to the extent that the tests involved are less costly than lexicon accesses. An accelerator, on the other hand, is an alteration to the breakpoint weighting function that takes into consideration additional information concerning the natural-language input (besides startpoint and endpoint context) with the result that certain breakpoints are made more probable (moving them higher in the breakpoint list and thus accelerating convergence to a segmentation).
[0060] In the presently preferred embodiment of the present invention, the number of substrings that need to be looked up in the lexicon is substantially reduced by the application of four filters, as follows: 1) Length restriction: This filter eliminates any substrings, excluding linking morphemes, that are too short to be a linkable component in a German compound. In the presently preferred embodiment, the length restriction is set to 3 (i.e., a substring must be at least 3 characters long to be looked up in the lexicon).
2) Edge restriction: Given a length restriction of N, this additional filter can be used to eliminate from consideration all substrings generated by the breakpoints at vertices 1 through N and L - N through L - l (where L is the length of the natural-language input under consideration).
3) Final trigraph restriction: This filter takes advantage of the information stored in the breakpoint probability matrices (which are used to order breakpoints by probability, as discussed above); if the final three characters of the substring correspond to a zero entry in the endpoint probability matrix, then the substring is guaranteed not to occur in the lexicon, so it need not be looked up. (In the presently preferred embodiment, the final trigraph restriction is applied before the initial trigraph restriction because there are fewer different trigraphs in the endpoint probability matrix than in the startpoint probability matrix, indicating a more restricted distribution of final trigraphs in German words, as is to be expected from the inflectional character of the language.)
4) Initial trigraph restriction: Similarly, if the first three characters of the substring correspond to an zero entry in the startpoint probability matrix, then the string is also guaranteed not to occur in the lexicon, so it need not be looked up.
[0061] In the presently preferred embodiment of the present invention, two accelerators are used to increase convergence, as follows.
[0062] The first accelerator takes advantage of word-intemal capitalization. In German, word-internal capitalization is a useful means of increasing the convergence of the segmentation method. This was because some compounds often have the first letter of some of their constituent words capitalized (e.g., Identitάt+s+konsens+symbolik could be actually written as "IdentitatsKonsenssymbolik"). Thus, if the weight corresponding to each trigraph which started with a capital letter (e.g., "kon" in the above example) were to be increased by a fixed amount, the preceding breakpoint would be made more probable and thus might result in a more rapid segmentation of the compound.
[0063] The second accelerator involves the early identification of possible linking morphemes. As noted above, German compounding often involves the insertion of linking morphemes between the words to be compounded. For example, to form a compound from the two words Abschreibung and moeglichkeiten requires the insertion of the linking morpheme "s" between them, thus resulting in the compound Abschreibungsmoeglichkeiten (not *Abschreibungmoeglichkeiten). Unfortunately, this has the effect of diluting what would have been a strongly weighted breakpoint ("ung+moe", with a weight of 8,816 + 278 = 9,094) into two weaker ones ("ung+smo", with a weight of 8,816 + 16 = 8,832, and "ngs+moe", with a weight of 426 + 278 = 700). In the latter case, the resulting breakpoints are first and sixth, meaning that the correct segmentation will not be obtained until six breakpoints have been tested. This dilution can be addressed by adding to the weights of the breakpoints on either side of a linking morpheme an amount proportional what the weight of the breakpoint would have been had the linking morpheme not been there. However, because of the high frequency of the letters "e", "n", and "s" in German, this approach has the potential drawback of skewing the breakpoint distribution. Thus in the presently preferred embodiment, the breakpoint weight modification described above is applied only to the letter "s" (which is the most frequently used linking morpheme). [0064] Referring back to FIG. 1, in step 104, a segmented string that is interpretable as a compound word constructed from a plurality of linkable components spanning the natural-language input is returned. FIGS. 3 through 7 demonstrate the method of the present invention as applied to an exemplary German word Abhaengigkeitsverhaeltnis in order to yield its segmentation Abhaengigkeit+s+verhaeltnis. Because this word is 25 characters long, and because breakpoint probabilities in the presently preferred embodiment of the present invention are determined according to trigraph context, 20 breakpoints are considered, starting at the third vertex (between the third and fourth characters in the word) and ending at the 22nd vertex (between the 22nd and 23rd characters). Each of the two trigraphs adjacent to each breakpoint (i.e., its startpoint context and its endpoint context, as defined above in conjunction with FIG. 2) receives a weight based on an analysis of a lexicon of German words, and the weight of the breakpoint is calculated as the sum of the two trigraph weights, as discussed above in conjunction with step 102 of FIG. 1. Thus the breakpoint at vertex 3 receives the weight 103 because the trigraph "aen" (its startpoint context) is attested as starting 103 words in the lexicon, while the trigraph "abh" (its endpoint context) is not attested as ending any words in the lexicon. Similarly, the breakpoint at vertex 14 receives the weight 31,845 because the trigraph "its" (its endpoint context) is attested as ending 123 words in the lexicon and the trigraph "ver" (its startpoint context) is attested as starting 31,722 words in the lexicon.
[0065] The bold numerals at the far right of FIG. 3 indicate the order in which the breakpoints will be traversed during the course of the probabilistic breakpoint traversal. This traversal will result in the incremental generation of the following 20 substrings as possible linkable components (these substrings are grouped below by "breakpoint set n "; i.e., "breakpoint set n" is the set of n+1 strings that is generated by the nth breakpoint) to be tested against the lexicon:
1) "Abhaengigkeits" and "verhaeltnis". 2) "Abhaengigkeit" and "sverhaeltnis", plus "s" (from the first breakpoint; because this is a single character, it is automatically excluded from lexicon lookup by the "length restriction" (discussed above in conjunction with step 103 of FIG. 1); the fact that it also happens to be a linking morpheme is taken care of by the "seeding" of the chart as discussed below in conjunction with FIG. 6).
3) "Abhaengigkeitsverhaelt" and "nis", plus "verhaelt" (from the first breakpoint) and "sverhaelt" (from the second breakpoint).
4) "Abhaengigkeitsver" and "haeltnis", plus "ver" (from the first breakpoint), "sver" (from the second breakpoint), and "haelt" (from the third breakpoint).
5) "Abhaengigkeitsv" and "erhaeltnis", plus "v" (from the first breakpoint; as noted above, this single character will also not be looked up), "sv" (not looked up), "erhaelt" (from the third breakpoint), and "er" (from the fourth breakpoint).
[0066] FIG. 4 presents a schematic representation of probabilistic segmentation 120, according to the method of the present invention. The six German words (Abhaengigkeit, abhaengig, haengig, verhaeltnis, erhaelt, and haelt) that occur in the first five breakpoint sets discussed above are shown as labeled edges connecting the corresponding vertices in FIG. 4, along with a seventh edge labeled "er" 121 that represents a possible linking morpheme (as discussed below in conjunction with FIG. 6); note that the combination of this linking morpheme with the word "haelt" 122 will result in a new linkable component, labeled "er+haelt" 123, which spans both of these edges. The order in which these words are considered by the probabilistic breakpoint traversal method of the present invention is governed by the ordering of the breakpoints that delimit them, as shown in Table 1. TABLE 1
Figure imgf000027_0001
[0067] In Table 1, the first two columns list the starting and ending vertex, respectively, of the word in the sixth column. The third and fourth columns list the breakpoints that respectively correspond to these vertices (with the first and last vertices in the chart corresponding to the "zeroth" breakpoint, and the character "X" used to indicate that the breakpoint corresponding to the vertex in question hasn't been scored because of the edge restriction), and the fifth column lists the higher valued of the two breakpoints in these two columns. Ordering the words by the higher breakpoint indicates in which order they will be considered by the algorithm, and if the higher breakpoint is "X", then they need not be considered at all (since they cannot be used to segment the given word).
[0068] FIG. 5 presents a schematic representation of a chart 150 data structure used by the present invention, the contents of which correspond to the schematic representation of probabilistic segmentation 120 presented in FIG. 4. Each labeled edge in FIG. 4 corresponds to an edge object in FIG. 5 (for example, the edge labeled "er+haelt" 123 in FIG. 4 corresponds to the edge object labeled "er+haelt" 167 in FIG. 5), with each edge object schematically represented as discussed below. Because each vertex in the chart can serve as both an ending point and a starting point of at least one edge (with the exception that no edge can end at the first vertex of the chart and no edge can start at the last vertex of the chart), each vertex is provided with two linked-list heads, labeled "E" and "S", for "ending" and "starting" respectively. For clarity, the pair of linked-list heads corresponding to a given vertex in FIG. 5 is shown only if at least one of the associated linked lists of edges is not null. For example, the edge-ending linked-list head for vertex "0" 152 and the edge-starting linked-list head for vertex "0" 153 are shown in FIG. 5 because the latter contains two nodes 154, 155, which respectively point to an edge object labeled "abhaengig" 161 and an edge object labeled "Abhaengigkeit" 162.
[0069] FIG. 6 presents a computer program screen display that demonstrates how a presently preferred embodiment of the present invention properly segments the exemplary German compound Abhaengigkeitsverhaeltnis after considering the first two breakpoints only; i.e., processing the first breakpoint results in the identification of the compound's second word (verhaeltnis) and processing the second breakpoint results in the identification of the compound's first word (Abhaengigkeit). The proper linking together of these two words (by means of the linking morpheme "s") is discussed above in conjunction with step 103 of FIG. 1. This result demonstrates the efficiency of the presently preferred embodiment, which converges rapidly to the correct solution; however, FIG. 6 also demonstrates another advantage of the present invention, which is that, even if the correct segmentation had not been determined so rapidly, the number of substrings that need to be looked up in the lexicon can be substantially reduced by the four filters discussed above in conjunction with step 103 of FIG. 1.
[0070] As can be seen in Table 2, out of the 20 substrings generated by analyzing the exemplary German compound Abhaengigkeitsverhaeltnis down to its fifth probabilistic breakpoint, only 15 of them (75%) actually need to be looked up in the German lexicon because four substrings are blocked by the length restriction and one is blocked by the final trigraph restriction. Of the 15 substrings that remain, six (Abhaengigkeit, abhaengig, haengig, verhaeltnis, erhaelt, and haelt) are actual German words, and are marked "Found" in the table.
TABLE 2
Figure imgf000030_0001
[0071] As noted above, FIG. 6 presents a computer screen display demonstrating the segmentation of the exemplary German compound Abhaengigkeitsverhaeltnis in accordance with the method of the present invention. The final state of the chart is shown at the bottom of FIG. 6, and is interpreted as follows. The first line (labeled "A") contains the natural- language input, followed by the number of edge objects that were in the chart when the segmentation was completed. The last line (labeled "B") consists of a reference scale that contains the final digit of each ending vertex (of the edge labeled by the corresponding character in the first line) in the chart. The intervening lines (labeled "C") each contain a representation of one edge in the chart; e.g., the first line represents the edge labeled "e" that starts at vertex 4 in the chart and ends at vertex 5. This information is also shown on the right half of the line, which contains an ordered pair of integers indicating the start and end vertices, the label of the edge, the edge's serial number, and a pair of linkability flags "<αLL, «RR>", where a is either "+" or "-", whose meaning is discussed below.
[0072] The segmentation of the German compound Abhaengigkeitsverhaeltnis in accordance with the method of the present invention proceeds as follows. First, the chart is initialized to 26 vertices (the edges which connect adjacent vertices thus corresponding to the 25 characters in the compound, as discussed above in conjunction with step 102 of FIG. 1), and all occurrences (if any) of the linking morphemes "e", "n", "s", and "er" in the compound are seeded into the chart as edges that connect the appropriate vertices (eight of which are inserted, as shown in FIG. 6). As can be seen in the figure, each of these eight edges is annotated as "<+LL, +RL>". This means that the edge is both "left-linkable" and "right-linkable"; i.e., it can be combined with another, adjacent edge on either side to generate a new edge that spans both of them. [0073] After the chart has been seeded with potential linking morphemes, the segmentation method commences at the first breakpoint, which in this case results in the program looking up the substrings "Abhaengigkeits" and "verhaeltnis" in a German lexicon. Since the latter string is found in the lexicon, it is inserted into the chart as the ninth edge of the chart (this edge is both left- and right-linkable because it has not yet combined with any linking morphemes). This insertion triggers the formation of a tenth edge (labeled "s+verhaeltnis"), because "verhaeltnis" can combine with the edge labeled "s" to its left (which was seeded into the chart upon initialization as the fourth edge of the chart). This tenth edge is not left-linkable, since it was formed by the addition of a linking morpheme to the left of an existing (left- linkable) edge.
[0074] Since neither of the above edges spans the chart, the algorithm proceeds to the second breakpoint, which results in the program looking up the substrings "Abhaengigkeit" and "sverhaeltnis" in the German lexicon. Since the former substring is found in the lexicon, it is inserted into the chart as the eleventh edge of the chart. This insertion triggers the formation of a twelfth edge (labeled "Abhaengigkeit+s"), since "Abhaengigkeit" can be combined with the edge labeled "s" to its right (which, as noted above, was seeded into the chart upon initialization as its fourth edge). This twelfth edge is not right- linkable, since it was formed by the addition of a linking morpheme to the right of an existing (right-linkable) edge.
[0075] The insertion of the eleventh edge into the chart also triggers the formation of a thirteenth edge in the chart (which is labeled "Abhaengigkeit+s+verhaeltnis"), from combination with the tenth edge. Although the tenth edge is flagged as not being left-linkable, the eleventh edge is flagged as being right-linkable, so the thirteenth edge can be formed by combining the tenth edge and the eleventh edge. (The combination of adjacent edges is blocked only if the left-hand edge is flagged as being not right-linkable and the right-hand edge is flagged as being not left-linkable, because this would indicate that both edges have reached their common vertex by means of a linking morpheme, and combining them at that vertex would result in an edge that contained contiguous linking morphemes, which is not permitted in German.)
[0076] This thirteenth edge spans the chart, so it is not inserted, but is instead returned by the program as a successful segmentation of the natural- language input Abhaengigkeitsverhaeltnis (as the German compound Abhaengigkeit+s+verhaeltnis). As can be seen in FIG. 6, the convergence result for the processing of this compound was 0.93%, which is the theoretical minimum convergence for this word. The theoretical minimum convergence is calculated as "^.y , where L(w) is the number of lexicon accesses that would be required for a binary splitting algorithm to segment the word w and P(w) is the number of proper substrings in w (i.e., γ + f - 1 , where n is the number of characters in w). Since a binary splitting algorithm would require at least three lexicon accesses to obtain the correct segmentation of Abhaengigkeitsverhaeltnis, and since there are 324 proper substrings in this word, the theoretical minimum convergence for this compound is -^ , or 0.93%.
[0077] FIG. 7 presents a schematic representation of the chart 150 data structure used by an embodiment the present invention, the contents of which correspond to the computer program screen display presented in FIG. 6. Comparison with the contents of the chart data structure presented in FIG. 4 confirm the efficiency of the method of the present invention as discussed above. In FIG. 7, all but one of the eight linking-morpheme edges discussed above in conjunction with FIG. 6 have been suppressed for clarity; the single linking-morpheme edge shown is the fourth edge generated, which links vertex 13 with vertex 14 in the chart and is labeled "s" 163. As discussed in conjunction with FIG. 6 above, four additional edges are generated and inserted into the chart after the linking-morpheme edges have been inserted into the chart: the ninth edge 168, the tenth edge 171, the eleventh edge 162, and the twelfth edge 170. Combination of the tenth and eleventh edges 171, 162 yields the thirteenth edge 172, which spans the chart and is therefore not inserted.
[0078] FIG. 8 presents a schematic representation of a breakpoint-list structure according to an embodiment of the present invention, using the data presented in FIG. 5 in conjunction with the analysis of the exemplary German compound Abhaengigkeitsverhaeltnis. The three columns on the right-hand side of FIG. 8 correspond to the first, fifth, and sixth columns of FIG. 5, and thus respectively contain the vertex defining a breakpoint, the weight calculated for the breakpoint, and the breakpoint's rank relative to the other breakpoints in the natural-language input. This information is represented in a preferred embodiment of the present invention by means of a sorted list of ordered pairs BPList 180, as shown on the left-hand side of FIG. 8.
[0079] Each element of BPList is an ordered pair of the form "(Weight, Vertex)", with the list sorted first in descending order based on the first member of each ordered pair (hence the «th element in the list, which will be stored at location n, will have a weight that is greater than or equal to the weight of any mlh element in the list, where m > n), with subsequences of elements having the same weight sorted in ascending order based on the second member of each ordered pair (hence if two elements in the list, corresponding to the vertices m and n, where m > n, have the same weights, then the element corresponding to vertex n will precede the element corresponding to vertex m). Thus the correspondences between elements in BPList and the data shown by FIG. 5 are shown by the bidirectional arrows in FIG. 8; for example, breakpoint 1 (the most-probable breakpoint, which is at vertex 14 and which has a weight of 31,845) is stored as the zeroth element of BPList; breakpoint 2 (the second most-probable breakpoint, which is at vertex 13 and which has a weight of 3,017) is stored as the first element of BPList, etc. In general, the vertex corresponding to the «th breakpoint will be obtained by inspection of the second member of the ordered pair in the (n - l)th element of BPList.
[0080] As noted previously, in the case that a plurality of linkable components spanning the natural-language input cannot be obtained by the probabilistic breakpoint traversal method of the present invention, an optional additional process may inspect the results of the traversal and hypothesize one or more possible segmentations of the natural-language input that may then be subjected to further analysis; the chart-based approach used by the present invention is especially amenable to this approach, as discussed below.
[0081] FIG. 9 shows the state of the chart after the probabilistic breakpoint traversal method of present invention failed to determine a segmentation for the natural-language input Geschwerkschaftsorganisation. As can be seen in the chart, the following set of eight words was identified: {Werk, schaft, Organisation, Gani, Haft, Anis, Organ, schwer). Using the German compounding rules and linking morphemes, an additional 15 edges were entered into the chart during the course of the probabilistic breakpoint traversal, as shown in FIG. 9. However, none of these edges completely spanned the chart, so the chart was subsequently mined for a partial segmentation, resulting in the segmented string:
{Gesch)werk+schaft+s+organisation (where the characters in braces indicate the portion of the natural-language input that remains unaccounted for). In the presently preferred embodiment of the present invention, the chart-mining algorithm chooses the longest edge starting at the leftmost vertex of the chart (there was none in this case), and joins it with the longest non-overlapping edge ending at the rightmost vertex of the chart, with any intervening characters left unaccounted for. [0082] As noted above in the discussion of the relevant prior art, chart mining relates to the limitation of breakpoint-based segmentation noted in Bass '571; i.e., "that certain words have forms which are used only when the word is combined with others in compounds" (col. 2, lines 64 - 66). Compounds exhibiting this behavior fall into two general classes, which are exemplified by the German compounds Schulkinder (from Schule plus Kinder), cited in Bass '571, and Schiffahrt (from Schif phis Fahrt), cited in Frisch '617. In compounds of the first type, a "combining form" has been created by truncating one of the words (in this case, by removing the final "e" of Schule, resulting in *Schul, which is not a valid word of German), while in compounds of the second type, the compounds "overlap" by sharing a character (in this case, the second "f ').
[0083] However, because of the large size of the lexicon used by the presently preferred embodiment of the present invention, neither of these classes of compounds poses a problem; e.g., since both Schulkinder and Schiffahrt occur as words in the lexicon, they not only do not need to be explicitly segmented by the algorithm, but also aid in the segmentation of any compounds that contain them; e.g., Grundschulkinder and Schiffahrtskanal (which are therefore segmented as Grund+ schulkinder and Schiffahrt+s+kanal, respectively).
[0084] In the case that a compound in one of the above two classes does not occur in the lexicon, however, its segmentation may be obtained by chart mining as follows. For words of the first class; if, for example, Schulkinder was not in the lexicon, then mining the chart would result in the string {Schul} kinder. Reference to the lexicon by methods known to the art would then be able to obtain Schule as the closest match for the unassigned characters in this string; the resulting compound would then be represented as Schul(e)+kinder, with the truncated character of the first element of the compound inserted in parentheses. Similarly, for words of the second class; if, for example, Schiffahrt was not in the lexicon, then mining the chart would result in the string Schif[f] ahrt (where the square brackets indicate the overlap of the two words Schiff (from vertex 0 to vertex 6) and Fahrt (from vertex 5 to vertex 10)). Recognition of this overlap would then result in a compound which would be represented as Schiff+(f)ahrt (as noted in Frisch '617, the correct segmentation of this type of compound is important in the processing of German texts; e.g., the proper hyphenation of Schiffahrt is "Schiff -fahrt"; i.e., it requires the restoration of the truncated "f ').
[0085] FIG. 10 illustrates the process dependencies for a method of efficiently segmenting compound words using probabilistic breakpoint traversal, corresponding to steps 101 through 104 of FIG. 1. These process dependencies may be thought of as a hierarchy of processes performed in efficiently segmenting compound words. The segmentation process Segment 500, shown at the top of FIG. 10, ultimately achieves the efficient segmentation of compound words by executing or performing the various lower level processes of FIG. 10. The segmentation process Segment 500 of FIG. 10 is further detailed in FIG. 11.
[0086] As illustrated in FIG. 10, the performance of the segmentation process Segment 500 calls for the execution of the breakpoint-accumulation process GetBreakPts 600 as a subprocess, or subroutine, to the Segment 500 process. The breakpoint-accumulation process GetBreakPts 600 is further detailed in FIG. 12. Additionally, the performance of the segmentation process Segment 500 calls for the execution of the breakpoint-testing process TestBreakPts 700. The breakpoint-testing process TestBreakPts 700 is further detailed in FIG. 13.
[0087] In performing the breakpoint-testing process TestBreakPts 700, the breakpoint-traversal process Traverse 800 and the substring-testing process TestSubstr 900 are both executed as subprocesses or subroutines to the breakpoint-testing process TestBreakPts 700. The breakpoint-traversal process Traverse 800 is further detailed in FIG. 14 and the substring-testing process TestSubstr 900 is further detailed in FIG. 15. The substring-testing process TestSubstr 900 is also executed by the breakpoint-traversal process Traverse 800, as detailed in FIG. 14.
[0088] In performing the substring-testing process TestSubstr 900, the edge-insertion process InsertEdge 1000 is executed as a subprocess or subroutine to the substring-testing process TestSubstr 900. The edge-insertion process InsertEdge 1000 is further detailed in FIG. 16.
[0089] In performing the edge-insertion process InsertEdge 1000, the rightward-extension process ExtendRight 1100 and the leftward-extension process ExtendLeft 1200 are both executed as subprocesses or subroutines to the edge-insertion process InsertEdge 1000. The rightward-extension process ExtendRight 1100 is further detailed in FIG. 17 and the leftward-extension process ExtendLeft 1200 is further detailed in FIG. 18. Each of these processes may execute the edge- insertion process InsertEdge 1000 as is further detailed in FIGS. 17 and 18.
[0090] Referring back to FIG. 11, the segmentation process Segment 500 is depicted, which corresponds to steps 101 through 104 of FIG. 1. The segmentation process 500 results in a segmented string indicating a segmentation of the natural-language input, interpreted as a compound word. This segmentation is achieved by operating on objects of two classes, an Edge class and a Chart class, which are characterized as follows.
[0091] An object of the Edge class encodes a linkable component (i.e., a sequence of at least one word or linking morpheme) constructed from at least one character of the natural-language input. Each Edge object has the following attributes: (1) its label (representing the linkable component); (2) its starting vertex (which identifies where in the natural-language input the linkable component encoded by the Edge begins); (3) its ending vertex (which identifies where in the natural-language input the linkable component encoded by the Edge ends); (4) a flag that indicates whether or not the Edge is right- linkable (as discussed below); (5) a flag that indicates whether or not the Edge is left-linkable (as discussed below); (6) a flag that indicates whether or not the Edge is a linking morpheme; and (7) the Edge's weight (as discussed below).
[0092] An object of the Chart class encodes progress made toward segmentation of the natural- language input. The Chart consists of an ordered set of vertices representing the breakpoints between the characters of the natural-language input. During the course of the probabilistic breakpoint traversal method of the present invention, Edge objects representing linkable components are entered into the Chart. When an Edge object is entered into the Chart, it is bidirectionally extended by creating new Edge objects in the Chart based on any Edge objects already in the chart which both (a) are contiguous to the new Edge object and (b) satisfy linkability requirements as discussed below. When an Edge object is constructed that spans the Chart (i.e., the starting vertex of the Edge is the first vertex of the Chart and the ending vertex of the Edge is the last vertex of the Chart), then the compound has been successfully segmented.
[0093] As discussed above in conjunction with FIG. 5, in the presently preferred embodiment of the present invention each vertex v(. in the Chart has associated with it the following two linked lists: (1) a list of the Edge objects in the Chart that have v,. as their starting vertex and (2) a list of the Edge objects in the Chart that have v(. as their ending vertex. In the present embodiment, these lists are sorted according to Edge weight, where Edge weight is an estimate of the probability that the Edge will contribute toward a rapid convergence of the probabilistic breakpoint traversal to a successful segmentation of the natural-language input.
[0094] The segmentation process Segment 500 of FIG. 11 begins in step 501 by receiving as input a natural-language input consisting of a plurality of characters. Such a natural-language input would be, for instance, received from step 101 of FIG. 1. The natural-language input consists of a sequence of characters which is to be segmented and interpreted as a compound word.
[0095] After receiving the natural-language input CurWord in step 501, the segmentation process Segment 500 performs various initialization steps as follows. FIG. 11 illustrates the performance of these initializations, although they need not necessarily be performed in the sequence shown. Following ' step 501 in FIG. 11, the method proceeds to the breakpoint- accumulation process GetBreakPts 600, which constructs an ordered set of probabilistic breakpoints for the natural-language input according to the method of the present invention. In addition to executing the breakpoint-accumulation process, the method initializes its loop-control variables as follows: (1) the current-breakpoint index CurBreakPt is set to zero in step 502 and (2) the loop-completion flag Spanned is set to false in step 503. Steps 501, 502, 503, and 600 may be completed in any order as long as the completion of step 501 precedes the start of step 600.
[0096] In step 504, the current value of current-breakpoint index CurBreakPt is compared with the predetermined maximum breakpoint value MaxBP for the natural-language input CurWord. If CurBreakPt is less than MaxBP, then the method proceeds along the "yes" path to call the breakpoint- testing process TestBreakPts 700; otherwise the method proceeds along the "no" path to step 507. After the return of the breakpoint-testing process, the method proceeds to step 505. [0097] In step 505, the current value of the loop-completion flag Spanned is examined to determine whether it is false. If Spanned is false, then the method proceeds along the "yes" path to step 506; otherwise, the method proceeds along the "no" path to step 507. In step 506, the current value of CurBreakPt is incremented by one and the method proceeds to step 504, where the breakpoint-processing loop exit condition is tested as discussed above. Finally, in step 507, the segmentation process exits by returning to its calling process.
[0098] FIG. 12 depicts the breakpoint-accumulation process GetBreakPts 600 shown in FIG. 10. The breakpoint-accumulation process entails the construction of an ordered list of probabilistic breakpoints based on an analysis of the natural-language input, and thus corresponds to step 102 of FIG. 1. The breakpoint-accumulation process, which is implemented as a loop that processes one breakpoint per iteration, begins at step 601 by setting the loop counter to the index of the vertex which corresponds to the first breakpoint weight to be calculated in the natural-language input. In the presently preferred embodiment of the present invention, which scores breakpoints based on trigraphs, the index of the first vertex to be considered in the natural-language input is 2, and the index of the last vertex to be considered in the natural-language input is L - 3 (where L is the length of the natural-language input, counted in characters, and the index of the first character of the natural-language input is 0).
[0099] The method then proceeds to step 602, which is the exit condition for the breakpoint-processing loop. If the loop counter i is not greater than the index of the vertex of the last breakpoint to be considered in the natural- language input (i.e., L - 3), then the method proceeds along the "yes" path to step 603, otherwise the method proceeds along the "no" path to step 606. [0100] In step 603, the weight of the current breakpoint (which corresponds to the vertex v,) is calculated by reference to the startpoint context and the endpoint context of the current breakpoint (as discussed above in conjunction with step 102 of FIG. 1), and the method proceeds to step 604. In step 604, an ordered pair consisting of the weight of the current breakpoint and the loop counter i (which indexes the vertex v, in the chart) is inserted into the breakpoint list BPList as discussed above in conjunction with FIG. 8. Finally, in step 605 the loop counter / is incremented by one and the method proceeds to step 602, which executes the exit condition of the loop as discussed above.
[0101] If the exit condition of the breakpoint-processing loop is satisfied (i.e., there are no more breakpoints to be processed in the natural-language input), then the method proceeds to step 606, which sorts BPList according to breakpoint weight as discussed above in conjunction with FIG. 8, resulting in an ordered list of breakpoints BPList. Finally, step 607 returns the ordered list of breakpoints BPList to the calling process.
[0102] " FIG. 13 depicts the breakpoint-testing process TestBreakPts 700 shown in FIG. 10. The breakpoint-testing process entails the testing of the substrings of the natural-language input delimited by a traversal of the ordered list of probabilistic breakpoints constructed by the breakpoint-accumulation process, and thus corresponds to step 103 of FIG. 1. The breakpoint-testing process begins at step 701 by setting the value of the current breakpoint vertex BPVtx to the value of the second element of the ordered pair (i.e., the vertex index) indexed by the current value of CurBreakPt in the ordered list of breakpoints BPList.
[0103] Following step 701, the method proceeds to step 702, in which the current substring CurString is set equal to the substring of the natural-language input to the left of the vertex identified by current breakpoint vertex BPVtx. Following step 702, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString. Upon the return of the edge-insertion process, the chart-status flag Spanned is tested in step 703 to determine whether the insertion of the edge corresponding to CurString resulted in the complete spanning of the Chart. If Spanned is false, then the method proceeds along the "yes" path to step 704; otherwise the method proceeds along the "no" path to step 707.
[0104] In step 704, the value of CurString is set to the substring of the natural-language input to the right of the vertex identified by current breakpoint vertex BPVtx. Note that steps 702 and 704 may be executed in opposite order from the order shown in FIG. 13. Following step 704, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString. Upon the return of the edge-insertion process, the chart-status flag Spanned is tested in step 705 to determine whether the insertion of the edge corresponding to CurString resulted in the complete spanning of the Chart. If Spanned is false, then the method proceeds along the "yes" path to step 706; otherwise the method proceeds along the "no" path to step 707.
[0105] In step 706, the current breakpoint index CurBreakPt is tested to determine whether it is greater than one. If CurBreakPt is not greater than one, then the method proceeds along the "no" path to step 707; otherwise the method proceeds along the "yes" path to call to the breakpoint-traversal process Traverse 800. Upon return of the breakpoint-traversal process, the method proceeds to step 707. In step 707, the breakpoint-testing process TestBreakPts 700 returns to its calling process.
[0106] FIG. 14 depicts the breakpoint-traversal process Traverse 800 shown in FIG. 10. The breakpoint-traversal process entails the testing of the substrings of the natural-language input delimited by a traversal, relative to the current value of the current breakpoint CurBreakPt, of the ordered list of probabilistic breakpoints constructed by the breakpoint-accumulation process. The breakpoint-traversal process begins at step 801 by setting the current value of the breakpoint-traversal loop index j to zero, and the method proceeds to step 802.
[0107] In step 802, the current value of the breakpoint-traversal loop index j is tested to determine whether it is equal to CurBreakPt. If/ is equal to CurBreakPt, then the method proceeds along the "yes" path to step 809; otherwise the method proceeds along the "no" path to step 803. In step 803, the value of the current vertex CurVtx is set equal to the value of the second element of the ordered pair (i.e., the vertex index) indexed by the current value of the breakpoint-traversal loop index y in the ordered list of breakpoints BPList, and the method proceeds to step 804.
[0108] In step 804, the value of the current vertex CurVtx is tested to determine if it is greater than the value of current breakpoint vertex BPVtx. If CurVtx is greater than BPVtx, then the method proceeds along the "yes" path to step 806; otherwise the method proceeds along the "no" path to step 805.
[0109] In step 805, the current value of CurString is set equal to the substring of the natural-language input from the vertex CurVtx to the vertex BPVtx. Following step 805, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
[0110] In step 806, the current value of CurString is set equal to the substring of the natural-language input from the vertex BPVtx to the vertex CurVtx. Following step 806, the method proceeds to call the substring-testing process TestSubstr 900 on the current value of CurString.
[0111] Upon the return of the substring-testing process TestSubstr 900, the chart-status flag Spanned is tested in step 807 to determine whether the insertion of the edge corresponding to CurString resulted in the complete spanning of the Chart. If Spanned is false, then the method proceeds along the "yes" path to step 808; otherwise the method proceeds along the "no" path to step 809.
[0112] In step 808 the value of the breakpoint-traversal loop index y is incremented by one and the method proceeds to the loop exit condition in step 802. If the loop-exit condition is satisfied (i.e., the breakpoint-traversal loop index y is equal to CurBreakPt), then the method exits the breakpoint-traversal loop by proceeding to step 809. In step 809 the breakpoint-traversal process finishes by returning to its calling process.
[0113] FIG. 15 depicts the substring-testing process TestSubstr 900, shown in FIG. 10. The substring-testing process tests a substring for inclusion in the chart data structure used by the present invention to encode progress made toward segmentation of the natural-language input. The substring- testing process begins at step 901 by testing the length of the current substring CurString against a predetermined length limit LRLimit associated with the length restriction, discussed in conjunction with step 103 of FIG. 1. If the length of CurString is less than LRLimit, then the method proceeds along the "yes" path to step 906; otherwise the method proceeds along the "no" path to step 902.
[0114] In step 902, the weight of the suffix of CurString is tested to determine whether it is equal to zero. This test implements the final trigraph restriction, as discussed in conjunction with step 103 of FIG. 1. If the weight of the suffix of CurString is equal to zero, then the method proceeds along the "yes" path to step 906 otherwise the method proceeds along the "no" path to step 903. [0115] In step 903, the weight of the prefix of CurString is tested to determine whether it is equal to zero. This test implements the initial trigraph restriction, as discussed in conjunction with step 103 of FIG. 1. If the weight of the prefix of CurString is equal to zero, then the method proceeds along the "yes" path to step 906; otherwise the method proceeds along the "no" path to step 904.
[0116] In step 904, the current substring CurString is tested to determine whether it is a valid word. As discussed in conjunction with step 103 of FIG. 1, this test is typically conducted by looking up the substring in a lexicon. As also discussed in conjunction with step 103 of FIG. 1, this gives the present invention the advantage of not being dependent on a specific lexicon architecture. If CurString is determined not to be a valid word, then the method proceeds along the "no" path to step 906; otherwise the method proceeds along the "yes" path to step 905. In step 905, a new Edge object NewEdge is created based on the current substring CurString as discussed above in conjunction with FIG. 11. Following step 905, the method proceeds to execute the edge-insertion process InsertEdge 1000 given the new Edge object NewEdge. Upon completion of the edge-insertion process InsertEdge 1000, the method proceeds to step 906. In step 906, the substring-testing process TestSubstr 900 returns to its calling process.
[0117] FIG. 16 depicts the edge-insertion process InsertEdge 1000, shown in FIG. 10. The edge-insertion process entails the insertion of a new Edge object NewEdge into the chart (if it is not already there) and extends this edge relative to any edges already in the chart, as discussed above in conjunction with FIG. 6. The edge-insertion process begins at step 1001 by testing NewEdge to determine whether the edge is in the Chart object CurChart. If the edge is in CurChart, then the method proceeds along the "yes" path to step 1002; otherwise the method proceeds along the "no" path to step 1003. [0118] In step 1002, NewEdge is deleted and the method proceeds to step 1005. In step 1003, NewEdge is inserted into CurChart, as discussed above in conjunction with FIG. 6. Following step 1003, the method proceeds to execute the rightward-extension process ExtendRight 1100 to perform all possible rightward extensions of NewEdge in CurChart.
[0119] Upon the return of the rightward-extension process, the method proceeds to step 1004. In step 1004, the current value of the edge-status flag Spanned is tested to determine whether it is equal to true. If Spanned is equal to true, then the method proceeds along the "yes" path to step 1005; otherwise the method proceeds along the "no" path to execute the leftward-extension process ExtendLeft 1200 to perform all possible leftward extensions of NewEdge in CurChart. Upon the return of the leftward-extension process, the method proceeds to step 1005. In step 1005 the edge-insertion process InsertEdge 1000 returns to its calling process.
[0120] FIG. 17 depicts the rightward-extension process ExtendRight 1100, which extends an edge NewEdge to its right in the Chart object CurChart, as follows. In step 1101, the edge NewEdge, which ends at a vertex CurVtx in CurChart, is received, and the method proceeds to step 1102. In step 1102, the CurEdge pointer is set to point at the first Edge in CurChart that starts at vertex CurVtx. In step 1103, if CurEdge is null, then the method proceeds along the "yes" path from step 1103 to step 1116. Otherwise, the method proceeds along the "no" path from step 1103 to step 1104.
[0121] In step 1104, if the Edge pointed at by CurEdge is "left-linkable" (LL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1105. Otherwise, the method proceeds along the "no" path from step 1104 to step 1115. In step 1105, the "extension edge will be right-linkable" flag (ExtRL) is set to "true", and the method proceeds to step 1106. [0122] In step 1106, if the Edge pointed at by CurEdge is a linking morpheme (LM), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path from step 1106 to step 1107. Otherwise, the method proceeds along the "no" path from step 1106 to step 1109. In step 1107, if NewEdge is "right- linkable" (RL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1108. Otherwise the method proceeds along the "no" path to step 1115. In step 1108, the "extension edge will be right-linkable" flag (ExtRL) is set to "false" and the method proceeds to step 1109.
[0123] In step 1109, the "extension edge" (ExtEdge) is created because it has been determined that NewEdge can be extended by the edge pointed at by CurEdge. The creation of ExtEdge is accomplished by allocating a new Edge object and setting its attributes as discussed above in conjunction with FIG. 10. The method then proceeds to step 1110.
[0124] In step 1110, the extension edge ExtEdge is inspected to determine if it spans CurChart (i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6). If the extension edge ExtEdge spans CurChart, then the method proceeds along the "yes" path to step 1111. Otherwise, the method proceeds along the "no" path to execute the edge-insertion process InsertEdge 1000 on the extension edge ExtEdge, as is further detailed in FIG. 16 above. Upon the return of the edge-insertion process InsertEdge 1000, the method proceeds to step 1114.
[0125] In step 1111 , the final-edge pointer FinalEdge is set to point at ExtEdge and the method proceeds to step 1112, in which the chart-status flag Spanned is set equal to true (steps 1111 and 1112 may be executed in any order). The method then proceeds to step 1113. In step 1113, the ExtendRight 1100 process finishes by returning to its calling process. [0126] In step 1114, the value of the chart-status flag Spanned is examined to determine whether it is true. If Spanned is true, then the method proceeds along the "yes" path to step 1113; otherwise the method proceeds along the "no" path to step 1115.
[0127] In step 1115, the current-edge pointer CurEdge is set to point at the next edge starting at vertex CurVtx in CurChart, and the method proceeds to step 1103 to check whether CurEdge is null (if CurEdge is null, then the method proceeds along the "yes" path to step 1116; otherwise it continues the edge-processing loop by proceeding along the "no" path to step 1104).
[0128] In step 1116, the chart-status flag Spanned is set equal to false and the method proceeds to step 1117. In step 1117 the process ExtendRight 1100 finishes by returning to its calling process.
[0129] FIG. 18 depicts the leftward-extension process ExtendLeft 1200, which extends an edge NewEdge to its left in the current Chart object CurChart, as follows. In step 1201, the edge NewEdge, which starts at a vertex CurVtx in CurChart, is received, and the method proceeds to step 1202. In step 1202, the CurEdge pointer is set to point at the first Edge in CurChart that ends at vertex CurVtx. In step 1203, if CurEdge is null, then the method proceeds along the "yes" path from step 1203 to step 1216. Otherwise, the method proceeds along the "no" path from step 1203 to step 1204.
[0130] In step 1204, if the Edge pointed at by CurEdge is "right-linkable" (RL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1205. Otherwise, the method proceeds along the "no" path from step 1204 to step 1215. In step 1205, the "extension edge will be left-linkable" flag (ExtLL) is set to true, and the method proceeds to step 1206. [0131] In step 1206, if the Edge pointed at by CurEdge is a linking morpheme (LM), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path from step 1206 to step 1207. Otherwise, the method proceeds along the "no" path from step 1206 to step 1209. In step 1207, if NewEdge is "left-linkable" (LL), as discussed above in conjunction with FIG. 6, then the method proceeds along the "yes" path to step 1208. Otherwise the method proceeds along the "no" path to step 1215. In step 1208, the "extension edge will be left-linkable" flag (ExtLL) is set to false and the method proceeds to step 1209.
[0132] In step 1209, the "extension edge" (ExtEdge) is created because it has been determined that NewEdge can be extended by the edge pointed at by CurEdge. The creation of ExtEdge is accomplished by allocating a new Edge object and setting its attributes as discussed above in conjunction with FIG. 10. The method then procees to step 1210.
[0133] In step 1210, the extension edge ExtEdge is inspected to determine if it spans CurChart (i.e., its first vertex is zero and its last vertex is equal to the last vertex in CurChart, as discussed above in conjunction with FIG. 6). If the extension edge ExtEdge spans CurChart, then the method proceeds along the "yes" path to step 1211. Otherwise, the method proceeds along the "no" path to execute the edge-insertion process InsertEdge 1000 on the extension edge ExtEdge, as is further detailed in FIG. 16 above. Upon the return of the edge-insertion process InsertEdge 1000, the method proceeds to step 1214.
[0134] In step 1211, the final-edge pointer FinalEdge is set to point at ExtEdge and the method proceeds to step 1212, in which the chart-status flag Spanned is set equal to true (steps 1211 and 1212 may be executed in any order). The method then proceeds to step 1213. In step 1213, the ExtendLeft 1200 process finishes by returning to its calling process. [0135] In step 1214, the value of the chart-status flag Spanned is examined to determine whether it is true. If Spanned is true, then the method proceeds along the "yes" path to step 1213; otherwise the method proceeds along the "no" path to step 1215.
[0136] In step 1215, the current-edge pointer CurEdge is set to point at the next edge ending at vertex CurVtx in CurChart, and the method proceeds to step 1203 to check whether CurEdge is null (if CurEdge is null, then the method proceeds along the "yes" path to step 1216; otherwise it continues the edge-processing loop by proceeding along the "no" path to step 1204).
[0137] In step 1216, the chart-status flag Spanned is set equal to false and the method proceeds to step 1217. In step 1217 the process ExtendLeft 1200 finishes by returning to its calling process.
[0138] FIG. 19 presents a schematic of a training configuration of a compound-word segmenter 200 for the present invention, which is interpreted as follows. A word boundary analyzer 202, coupled to a memory unit 203, accepts as input a lexicon 201 and analyzes all starting and ending contexts of the words in the lexicon as described above in conjunction with step 104 of FIG. 1 , and produces as output a startpoint probability matrix 204 and an endpoint probability matrix 205.
[0139] FIG. 20 presents a schematic of a production configuration of a compound- word segmenter 300 of the present invention, which is interpreted as follows. A probabilistic breakpoint analyzer 302, coupled to the startpoint probability matrix 204, the endpoint probability matrix 205, and a probabilistic breakpoint processor 304, accepts as input a natural-language input 301, processes it as described above in conjunction with step 102 of FIG. 1, and produces as output a breakpoint-annotated input 303. The probabilistic breakpoint processor 304 then accepts as input the breakpoint-annotated input, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output a segmented string 305.
[0140] FIG. 21 presents a schematic of the probabilistic breakpoint processor 304 of the present invention, which is interpreted as follows. A breakpoint-delimited substring tester 401, coupled to the lexicon 201 and a chart 402, accepts as input the breakpoint-annotated input 303, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output the segmented string 305.
[0141] FIG. 22 presents a schematic of an augmented probabilistic breakpoint processor 403 of the present invention, which is interpreted as follows. An augmented breakpoint-delimited substring tester 404, coupled to the lexicon 201, the chart 402, and a chart analyzer 406, accepts as input the breakpoint-annotated input 303, processes it as described above in conjunction with step 103 of FIG. 1, and produces as output either the segmented string 305 or a failure signal 405. In the latter case, the chart analyzer 406, coupled to the augmented breakpoint-delimited substring tester 404 and the chart 402, accepts as input the failure signal, analyzes the chart as described above in conjunction with FIG. 9, and produces as output the segmented string 305.
[0142] It will be appreciated by those skilled in the art that the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The presently disclosed embodiments are therefore considered in all respects to be illustrative and not restrictive. The scope of the invention is indicated by the appended claims rather than the foregoing description and all changes that come within the meaning and range and equivalence thereof are intended to be embraced therein.

Claims

CLAIMS:
1. A method for segmenting compound words in an unrestricted natural- language input, the method comprising: receiving a natural-language input consisting of a plurality of characters; constructing a set of probabilistic breakpoints in the natural-language input based on probabilistic breakpoint analysis; identifying a plurality of linkable components by traversal of substrings of the natural-language input delimited by the set of probabilistic breakpoints; and returning a segmented string consisting of a plurality of linkable components spanning the natural-language input, wherein the segmented string is interpretable as a compound word.
2. The method of Claim 1, further including the step of analyzing a chart of the linkable components in the case that the segmented string cannot be constructed and returning an unsegmented string interpretable as a partial analysis of a compound word.
3. An apparatus for segmenting compound words in a natural-language input, the apparatus comprising: a startpoint probability matrix; an endpoint probability matrix; a probabilistic breakpoint analyzer coupled to the startpoint probability matrix, the endpoint probability matrix and the natural-language input, the probabilistic breakpoint analyzer being operative to generate a breakpoint- annotated input from the natural-language input; and a probabilistic breakpoint processor coupled to the probabilistic breakpoint analyzer, the probabilistic breakpoint analyzer being operative to generate a segmented string for the compound words in the natural-language input in response to the breakpoint-annotated input.
4. The apparatus of Claim 3, further comprising a word-boundary analyzer coupled to a lexicon and a memory unit, the word-boundary analyzer being operative to generate the startpoint probability matrix and the endpoint probability matrix.
5. The apparatus of Claim 3, wherein the probabilistic breakpoint processor comprises: a lexicon; a chart; and a breakpoint-delimited substring tester coupled to the lexicon and the chart, the substring tester being operative to receive the breakpoint-annotated input and generate a segmented string in response thereto.
6. The apparatus of Claim 3, wherein the probabilistic breakpoint processor is an augmented probabilistic breakpoint processor comprising: a lexicon; a chart; an augmented breakpoint-delimited substring tester coupled to the chart and the lexicon, the substring tester being operative to identify a plurality of linkable components; and a chart analyzer coupled to the substring tester and the chart, the chart analyzer being operative to generate the segmented string.
7. The apparatus of Claim 6, wherein the augmented breakpoint- delimited substring tester generates one of: the segmented string; and a failure signal.
8. The apparatus of Claim 7, wherein the chart analyzer is coupled to receive the failure signal from the augmented breakpoint-delimited substring tester.
9. The apparatus of Claim 3, wherein the apparatus is configured as a computer readable program code run on a computer usable medium.
PCT/US2002/023476 2001-10-18 2002-07-24 Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal WO2003034273A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/042,528 2001-10-18
US10/042,528 US7610189B2 (en) 2001-10-18 2001-10-18 Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal

Publications (1)

Publication Number Publication Date
WO2003034273A1 true WO2003034273A1 (en) 2003-04-24

Family

ID=21922414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2002/023476 WO2003034273A1 (en) 2001-10-18 2002-07-24 Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal

Country Status (2)

Country Link
US (1) US7610189B2 (en)
WO (1) WO2003034273A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1964004A2 (en) * 2005-12-19 2008-09-03 Intentional Software Corporation Multi-segment string search
WO2015087075A1 (en) * 2013-12-11 2015-06-18 Touchtype Limited System and method for inputting text into electronic devices

Families Citing this family (70)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6999917B1 (en) * 2000-02-22 2006-02-14 Microsoft Corporation Left-corner chart parsing system
US20050060150A1 (en) * 2003-09-15 2005-03-17 Microsoft Corporation Unsupervised training for overlapping ambiguity resolution in word segmentation
US7747428B1 (en) 2003-09-24 2010-06-29 Yahoo! Inc. Visibly distinguishing portions of compound words
US7464020B1 (en) * 2003-09-24 2008-12-09 Yahoo! Inc. Visibly distinguishing portions of compound words
US20050102278A1 (en) * 2003-11-12 2005-05-12 Microsoft Corporation Expanded search keywords
JP4754247B2 (en) * 2004-03-31 2011-08-24 オセ−テクノロジーズ ビーブイ Apparatus and computerized method for determining words constituting compound words
JP4652737B2 (en) * 2004-07-14 2011-03-16 インターナショナル・ビジネス・マシーンズ・コーポレーション Word boundary probability estimation device and method, probabilistic language model construction device and method, kana-kanji conversion device and method, and unknown word model construction method,
US20060112091A1 (en) * 2004-11-24 2006-05-25 Harbinger Associates, Llc Method and system for obtaining collection of variants of search query subjects
US9606634B2 (en) * 2005-05-18 2017-03-28 Nokia Technologies Oy Device incorporating improved text input mechanism
US8036878B2 (en) 2005-05-18 2011-10-11 Never Wall Treuhand GmbH Device incorporating improved text input mechanism
US8374846B2 (en) * 2005-05-18 2013-02-12 Neuer Wall Treuhand Gmbh Text input device and method
US8117540B2 (en) * 2005-05-18 2012-02-14 Neuer Wall Treuhand Gmbh Method and device incorporating improved text input mechanism
US20090193334A1 (en) * 2005-05-18 2009-07-30 Exb Asset Management Gmbh Predictive text input system and method involving two concurrent ranking means
CN100483399C (en) * 2005-10-09 2009-04-29 株式会社东芝 Training transliteration model, segmentation statistic model and automatic transliterating method and device
US7698128B2 (en) * 2006-01-13 2010-04-13 Research In Motion Limited Handheld electronic device and method for disambiguation of compound text input and that employs N-gram data to limit generation of low-probability compound language solutions
JP4236057B2 (en) * 2006-03-24 2009-03-11 インターナショナル・ビジネス・マシーンズ・コーポレーション A system to extract new compound words
US7835903B2 (en) * 2006-04-19 2010-11-16 Google Inc. Simplifying query terms with transliteration
US8442965B2 (en) 2006-04-19 2013-05-14 Google Inc. Query language identification
US8762358B2 (en) 2006-04-19 2014-06-24 Google Inc. Query language determination using query terms and interface language
US8380488B1 (en) 2006-04-19 2013-02-19 Google Inc. Identifying a property of a document
US8255376B2 (en) 2006-04-19 2012-08-28 Google Inc. Augmenting queries with synonyms from synonyms map
US8706470B2 (en) * 2006-05-08 2014-04-22 David T. Lorenzen Methods of offering guidance on common language usage utilizing a hashing function consisting of a hash triplet
TW200823813A (en) * 2006-11-30 2008-06-01 Inventec Corp Method and apparatus for learning english vocabulary and computer accessible storage media to store program thereof
US7860707B2 (en) * 2006-12-13 2010-12-28 Microsoft Corporation Compound word splitting for directory assistance services
JP4446313B2 (en) * 2006-12-15 2010-04-07 インターナショナル・ビジネス・マシーンズ・コーポレーション Technology for searching for new words to be registered in a dictionary for speech processing
US20080221866A1 (en) * 2007-03-06 2008-09-11 Lalitesh Katragadda Machine Learning For Transliteration
WO2008109769A1 (en) * 2007-03-06 2008-09-12 Google Inc. Machine learning for transliteration
JP2008287406A (en) * 2007-05-16 2008-11-27 Sony Corp Information processor, information processing method, program, and recording medium
US8630841B2 (en) * 2007-06-29 2014-01-14 Microsoft Corporation Regular expression word verification
US8655643B2 (en) * 2007-10-09 2014-02-18 Language Analytics Llc Method and system for adaptive transliteration
DE602008005428D1 (en) * 2008-06-11 2011-04-21 Exb Asset Man Gmbh Apparatus and method with improved text input mechanism
US8521761B2 (en) * 2008-07-18 2013-08-27 Google Inc. Transliteration for query expansion
JP2010055235A (en) * 2008-08-27 2010-03-11 Fujitsu Ltd Translation support program and system thereof
US9798720B2 (en) * 2008-10-24 2017-10-24 Ebay Inc. Hybrid machine translation
US8275645B2 (en) * 2008-12-17 2012-09-25 Sap Ag Method and system for recursion check and low-level code generation for directed graph
US8176080B2 (en) * 2009-03-06 2012-05-08 Hewlett-Packard Development Company, L.P. Desensitizing character strings
US9189472B2 (en) 2009-03-30 2015-11-17 Touchtype Limited System and method for inputting text into small screen devices
GB0917753D0 (en) 2009-10-09 2009-11-25 Touchtype Ltd System and method for inputting text into electronic devices
US10191654B2 (en) 2009-03-30 2019-01-29 Touchtype Limited System and method for inputting text into electronic devices
GB0905457D0 (en) 2009-03-30 2009-05-13 Touchtype Ltd System and method for inputting text into electronic devices
US9424246B2 (en) 2009-03-30 2016-08-23 Touchtype Ltd. System and method for inputting text into electronic devices
GB201016385D0 (en) 2010-09-29 2010-11-10 Touchtype Ltd System and method for inputting text into electronic devices
KR20110006004A (en) * 2009-07-13 2011-01-20 삼성전자주식회사 Apparatus and method for optimizing concatenate recognition unit
EP2534585A4 (en) * 2010-02-12 2018-01-24 Google LLC Compound splitting
GB201003628D0 (en) 2010-03-04 2010-04-21 Touchtype Ltd System and method for inputting text into electronic devices
GB201200643D0 (en) 2012-01-16 2012-02-29 Touchtype Ltd System and method for inputting text
US10037319B2 (en) * 2010-09-29 2018-07-31 Touchtype Limited User input prediction
US8364709B1 (en) * 2010-11-22 2013-01-29 Google Inc. Determining word boundary likelihoods in potentially incomplete text
US9021380B2 (en) 2012-10-05 2015-04-28 Google Inc. Incremental multi-touch gesture recognition
US8782549B2 (en) 2012-10-05 2014-07-15 Google Inc. Incremental feature-based gesture-keyboard decoding
US9026428B2 (en) 2012-10-15 2015-05-05 Nuance Communications, Inc. Text/character input system, such as for use with touch screens on mobile phones
US8701032B1 (en) 2012-10-16 2014-04-15 Google Inc. Incremental multi-word recognition
US8850350B2 (en) 2012-10-16 2014-09-30 Google Inc. Partial gesture text entry
US8843845B2 (en) 2012-10-16 2014-09-23 Google Inc. Multi-gesture text input prediction
US8819574B2 (en) 2012-10-22 2014-08-26 Google Inc. Space prediction for text input
US8832589B2 (en) 2013-01-15 2014-09-09 Google Inc. Touch keyboard using language and spatial models
US9251467B2 (en) 2013-03-03 2016-02-02 Microsoft Technology Licensing, Llc Probabilistic parsing
US8887103B1 (en) 2013-04-22 2014-11-11 Google Inc. Dynamically-positioned character string suggestions for gesture typing
US9081500B2 (en) 2013-05-03 2015-07-14 Google Inc. Alternative hypothesis error correction for gesture typing
KR101509727B1 (en) * 2013-10-02 2015-04-07 주식회사 시스트란인터내셔널 Apparatus for creating alignment corpus based on unsupervised alignment and method thereof, and apparatus for performing morphological analysis of non-canonical text using the alignment corpus and method thereof
US9881006B2 (en) 2014-02-28 2018-01-30 Paypal, Inc. Methods for automatic generation of parallel corpora
US9530161B2 (en) 2014-02-28 2016-12-27 Ebay Inc. Automatic extraction of multilingual dictionary items from non-parallel, multilingual, semi-structured data
US9940658B2 (en) 2014-02-28 2018-04-10 Paypal, Inc. Cross border transaction machine translation
US9569526B2 (en) 2014-02-28 2017-02-14 Ebay Inc. Automatic machine translation using user feedback
CN106547743B (en) * 2015-09-23 2020-03-27 阿里巴巴集团控股有限公司 Translation method and system
JP6524008B2 (en) * 2016-03-23 2019-06-05 株式会社東芝 INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND PROGRAM
CN107291683A (en) * 2016-04-11 2017-10-24 珠海金山办公软件有限公司 A kind of spell checking methods and device
GB201610984D0 (en) 2016-06-23 2016-08-10 Microsoft Technology Licensing Llc Suppression of input images
US10607604B2 (en) * 2017-10-27 2020-03-31 International Business Machines Corporation Method for re-aligning corpus and improving the consistency
US10497366B2 (en) 2018-03-23 2019-12-03 Servicenow, Inc. Hybrid learning system for natural language understanding

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4777617A (en) * 1987-03-12 1988-10-11 International Business Machines Corporation Method for verifying spelling of compound words
US5797122A (en) * 1995-03-20 1998-08-18 International Business Machines Corporation Method and system using separate context and constituent probabilities for speech recognition in languages with compound words
US5806021A (en) * 1995-10-30 1998-09-08 International Business Machines Corporation Automatic segmentation of continuous text using statistical approaches
US5963893A (en) * 1996-06-28 1999-10-05 Microsoft Corporation Identification of words in Japanese text by a computer system
US6035268A (en) * 1996-08-22 2000-03-07 Lernout & Hauspie Speech Products N.V. Method and apparatus for breaking words in a stream of text
US6052657A (en) * 1997-09-09 2000-04-18 Dragon Systems, Inc. Text segmentation and identification of topic using language models
US6311152B1 (en) * 1999-04-08 2001-10-30 Kent Ridge Digital Labs System for chinese tokenization and named entity recognition

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4672571A (en) 1984-10-24 1987-06-09 International Business Machines Corporation Compound word suitability for spelling verification
DE4111781A1 (en) 1991-04-11 1992-10-22 Ibm COMPUTER SYSTEM FOR VOICE RECOGNITION
US5477451A (en) 1991-07-25 1995-12-19 International Business Machines Corp. Method and system for natural language translation
EP0634042B1 (en) 1992-03-06 2001-07-11 Dragon Systems Inc. Speech recognition system for languages with compound words
DE4213533C2 (en) 1992-04-22 1996-01-25 Ibm Method and computer system for decomposing compound words
US5867812A (en) 1992-08-14 1999-02-02 Fujitsu Limited Registration apparatus for compound-word dictionary
US5510981A (en) 1993-10-28 1996-04-23 International Business Machines Corporation Language translation apparatus and method using context-based translation models
JPH0877173A (en) 1994-09-01 1996-03-22 Fujitsu Ltd System and method for correcting character string
US5794177A (en) * 1995-07-19 1998-08-11 Inso Corporation Method and apparatus for morphological analysis and generation of natural language text
DE19533541C1 (en) 1995-09-11 1997-03-27 Daimler Benz Aerospace Ag Method for the automatic control of one or more devices by voice commands or by voice dialog in real time and device for executing the method
US6161083A (en) * 1996-05-02 2000-12-12 Sony Corporation Example-based translation method and system which calculates word similarity degrees, a priori probability, and transformation probability to determine the best example for translation
JP3622503B2 (en) * 1998-05-29 2005-02-23 株式会社日立製作所 Feature character string extraction method and apparatus, similar document search method and apparatus using the same, storage medium storing feature character string extraction program, and storage medium storing similar document search program
US6393399B1 (en) 1998-09-30 2002-05-21 Scansoft, Inc. Compound word recognition
US6473730B1 (en) * 1999-04-12 2002-10-29 The Trustees Of Columbia University In The City Of New York Method and system for topical segmentation, segment significance and segment function
US6349282B1 (en) * 1999-04-20 2002-02-19 Larnout & Hauspie Speech Products N.V. Compound words in speech recognition systems
JP2001249922A (en) * 1999-12-28 2001-09-14 Matsushita Electric Ind Co Ltd Word division system and device
US6847734B2 (en) * 2000-01-28 2005-01-25 Kabushiki Kaisha Toshiba Word recognition method and storage medium that stores word recognition program
SE519636C2 (en) * 2000-07-06 2003-03-25 Hapax Information Systems Ab Method and apparatus for analyzing compound words
US6789088B1 (en) * 2000-10-19 2004-09-07 Lg Electronics Inc. Multimedia description scheme having weight information and method for displaying multimedia
US20030014405A1 (en) * 2001-07-09 2003-01-16 Jacob Shapiro Search engine designed for handling long queries

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4777617A (en) * 1987-03-12 1988-10-11 International Business Machines Corporation Method for verifying spelling of compound words
US5797122A (en) * 1995-03-20 1998-08-18 International Business Machines Corporation Method and system using separate context and constituent probabilities for speech recognition in languages with compound words
US5806021A (en) * 1995-10-30 1998-09-08 International Business Machines Corporation Automatic segmentation of continuous text using statistical approaches
US5963893A (en) * 1996-06-28 1999-10-05 Microsoft Corporation Identification of words in Japanese text by a computer system
US6035268A (en) * 1996-08-22 2000-03-07 Lernout & Hauspie Speech Products N.V. Method and apparatus for breaking words in a stream of text
US6052657A (en) * 1997-09-09 2000-04-18 Dragon Systems, Inc. Text segmentation and identification of topic using language models
US6311152B1 (en) * 1999-04-08 2001-10-30 Kent Ridge Digital Labs System for chinese tokenization and named entity recognition

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1964004A2 (en) * 2005-12-19 2008-09-03 Intentional Software Corporation Multi-segment string search
EP1964004A4 (en) * 2005-12-19 2010-10-20 Intentional Software Corp Multi-segment string search
WO2015087075A1 (en) * 2013-12-11 2015-06-18 Touchtype Limited System and method for inputting text into electronic devices
CN105917327A (en) * 2013-12-11 2016-08-31 触摸式有限公司 System and method for inputting text into electronic devices
KR20160105400A (en) * 2013-12-11 2016-09-06 터치타입 리미티드 System and method for inputting text into electronic devices
US10706230B2 (en) 2013-12-11 2020-07-07 Touchtype Limited System and method for inputting text into electronic devices
CN105917327B (en) * 2013-12-11 2020-11-27 微软技术许可有限责任公司 System and method for entering text into an electronic device
KR102268875B1 (en) 2013-12-11 2021-06-23 마이크로소프트 테크놀로지 라이센싱, 엘엘씨 System and method for inputting text into electronic devices

Also Published As

Publication number Publication date
US20030097252A1 (en) 2003-05-22
US7610189B2 (en) 2009-10-27

Similar Documents

Publication Publication Date Title
US7610189B2 (en) Method and apparatus for efficient segmentation of compound words using probabilistic breakpoint traversal
KR970008023B1 (en) Dictionary data-base
US20090030671A1 (en) Machine translation method for PDF file
US20070124133A1 (en) Method and apparatus for training transliteration model and parsing statistic model, method and apparatus for transliteration
JPH07244661A (en) System and method for developing glyph of unknown character
Wu Grammarless extraction of phrasal translation examples from parallel texts
JP2007323671A (en) Word segmentation in chinese text
US7536296B2 (en) Automatic segmentation of texts comprising chunks without separators
US20050273316A1 (en) Apparatus and method for translating Japanese into Chinese and computer program product
US6944588B2 (en) Method and apparatus for factoring unambiguous finite state transducers
Belaïd Recognition of table of contents for electronic library consulting
EP1471440A2 (en) System and method for word analysis
JPH0211934B2 (en)
US7107205B2 (en) Method and apparatus for aligning ambiguity in finite state transducers
CN116306594A (en) Medical OCR recognition error correction method
CN116360794A (en) Database language analysis method, device, computer equipment and storage medium
Hocking et al. Optical character recognition for South African languages
US7983899B2 (en) Apparatus for and method of analyzing chinese
EP0593844B1 (en) Character recognition system
Ma et al. Bootstrapping structured page segmentation
Mohapatra et al. Spell checker for OCR
Golcher Statistical text segmentation with partial structure analysis
JP3825645B2 (en) Expression conversion method and expression conversion apparatus
Wasala et al. A data-driven approach to checking and correcting spelling errors in sinhala
US11763083B2 (en) Inference methods for word or wordpiece tokenization

Legal Events

Date Code Title Description
AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH CY DE DK ES FI FR GB IE IT LU MC NL PT SE TR

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase