<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="22"/><title>Application of search algorithms to natural language processing</title><author surname="Matsumoto" givenname="Takeshi"><org  name="Flinders University of South Australia" country="Australia" city="Adelaide"/></author><author surname="Powers" givenname="David M. W."><org  name="Flinders University of South Australia" country="Australia" city="Adelaide"/></author><author surname="Jarrad" givenname="Geoff"><org  name="CSIRO" country="Australia" city="Sydney"/></author></firstpageheader><frontmatter><p><b>Application of Search Algorithms to Natural Language Processing</b></p><p><b>Takeshi Matsumoto                 David M. W. Powers Geoff Jarrad</b></p><p>School of Informatics and Engineering School of Informatics and Engineering Business Intelligence Group</p><p>Flinders University of South Australia Flinders University of South Australia CSIRO ICT centre</p><p>takeshi.matsumoto@flinders.edu.au powers@infoeng.flinders.edu.au geoff.jarrad@csiro.au</p></frontmatter><abstract>Currently, the most common technique for Natural Language parsing is done by using pattern matching through references to a database with the aid of grammatical structures models. But the huge variety of linguistical syntax and semantics means that accurate real time analysis is very dif­ficult. We investigate several optimisation approaches to reduce the search space for finding an accurate parse of a sentence where individual words can have multiple possible syntactic categories, and catego­ries and phrases can combine together in different ways. The algorithms we con­sider include mechanisms for ordering that reduce the search cost without loss of completeness or accuracy as well as mechanisms that prune the space and may result in eliminating valid parses or re­turning a suboptimal as the best parse. We discuss the development and benchmark­ing of the existing and proposed algo­rithms in terms of accuracy, search space and parse time. Speed up of an order of magnitude was achieved without loss of completeness, whilst decrease of over two orders of magnitude was achieved in the search space. A further order of magni­tude reduction of both time and search space was achieved at the expense of some loss of accuracy in finding the most probable parse. </abstract></header><body><section number="1" title="Introduction"><p>The complexity and the sizes of the lexical data­bases and grammatical rules contribute to most of the behaviour of Natural Language parsers. By increasing the sizes of the database or including a more complex set of grammatical rules, the parser is able to handle the parsing of more complex sen­tences or is able to include more accurate informa­tion to the parsed sentences, but the introduction of these results in a more complex parsing procedure and the capability to compute for more cases is necessary for the parser. Even without the ex­tended database or rules, parsing of long sentences is often avoided due to the extremely large amount of different possibilities in parsing the sentence.</p><p>To counteract the increase in the parse time form the application of complex grammatical rules, we explore the effects of applying search algo­rithms to a parser to reduce the search space and hence enhance the parsing speed. To measure the accuracy of the parse, we use a simple scoring sys­tem derived from the probability that a particular structure would exist. This scoring system does not always parse the sentence correctly, but it provides a good indication of the likeliness of the structure from a statistical point of view.</p><p>The purpose of the project is to provide a faster way of parsing sentences without losing the effect of grammatical structures, or the semantic and syn­tactic information that have been applied to or ex­tracted from the parser. These areas being the key focus of most research done in NLP and will con­tinue to increase in complexity in the future.</p><page local="2" global="23"/></section><section number="2" title="Parsing"><p>The parser we are using was the probabilistic, lexi-calised combinatory, categorical grammar (PLCCG) parser implemented by the CSIRO<footnote anchor="1"/> (Jar­rad et al., 2003) that incorporates a bottom-up search strategy. In the training stage, the parser builds up a statistical model of the grammatical structure by learning from a manually parsed cor­pus, which is used to assign the possible categories and the probabilities of the particular category for a word, and also the probabilities associated with the actual combination of two structures. The CCG<footnote anchor="2"/>(Steedman, 1996) incorporated in the parser de­fines the rules and methods used in the combina­tion stage of the parser, and implements an extended set of the standard CCG combinators (Jarrad et al., 2003) that makes the grammar more flexible. The nature in which a combination occurs is very much like using the link grammar rules to combine between the different states.</p><p>Initially, the individual words are given a set of potential categories that it has seen for the particu­lar word in the training corpus. Due to the varieties in the training data and the increase in freedom gained from the extended grammar, some words are given a huge set of potential categories. This creates a more robust grammar, which can handle the parsing of complex sentences, but also contrib­utes to an explosion in the search space. If the par­ticular word was not seen in the training corpus, a lexical database called WordNet (Miller et al., 1993) is used to assign the possible categories for the word. This is done by extracting the part of speech (POS) tags for the unknown word and as­signing all the possible categories for that POS to the word. Finally, if the word was not found in WordNet, the set of all possible categories are as­signed to the unfamiliar word with the probability of the category being the frequency of the category form the entire training corpus. The difference in the number of initial categories for a word can be enormous, ranging from one to over one thousand.</p><p>The probability scores for the states are derived from the combination of 3 transition probabilities, the word category transition, categorial transition, and the lexical transition. The parser uses these probabilities to derive the scores of a parse to find the most probable parse, which is derived by exhaustively combining all possible states for the parsing sentence. The approach in which this is done is very similar to the chart parser (Charniak, 1993). This eventually results in the formation of a state combing all words in the sentence, which we call the terminal state. The scores of all the termi­nal states are compared and the parser returns the parse tree structure for the most probable state. If there are multiple states that are equivalent in how it was structured, the parser keeps the state with the higher probability. For duplicate scores, the first one it encounters is kept.</p><footnote label="1">Commonwealth Scientific and Industrial Research Organisa­tion</footnote><footnote label="2">Combinatory Categorial Grammar</footnote><p>The task of finding all of the possible combina­tions is almost as difficult as the travelling sales­man problem. The search space expands as the third power of the words, but due to the fact that states can only combine with adjacent states, some reduction in the search space occurs automatically. But on top of the possible combinations of the se­quences of words, there is a squared factor for the number of possible categories each combination would need to consider, which results in the model:</p><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">l-1l-1l</doubt><p><i>III </i><i>N</i><i>,,j</i><i> </i><i>■</i><i> </i><i>Nj</i></p><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">i=1j=ik=J+1</doubt><p>Where <i>i, j, </i>and <i>k </i>represents the starting position of the left sequence, ending position of the left se­quence, and the ending position of the right se­quence, respectively. <i>l </i>represents the number of words in the sentence and <i>N</i><i>tj</i><i> </i>represents the num­ber of states for the sequence between <i>i </i>and <i>j.</i></p><p>The above model clearly indicates that the task of parsing, especially when the number of catego­ries for a word can be of the order of several hun­dreds, is a lengthy task. This value can reach up to several millions even on sentences with less than 10 words. Hence the need for a search algorithm that would prune the search space without any loss of accuracy.</p></section><section number="3" title="Optimal-Search Algorithm"><p>The major goal of this project was to explore alter­native standard and novel algorithms that were ap­propriate to the task and could relatively easily be slotted into the existing parser framework. The kind of algorithms and optimisations that are rea­sonable is tightly constrained by the nature of the CCG model and the PLCCG implementation.<page local="3" global="24"/> An­other major constraint of the algorithm is one that is often ignored, which is the overhead in the exe­cution of the algorithms. This factor plays an equally important role in the search problem, but has often been ignored due to the increase in the hardware performance rate. The algorithmic design was modularised, so that an easy switching of the algorithm could be done with a uniform interface to the rest of the original parser. This meant that the algorithm relied on some of the existing struc­ture of the parser, which was the cause of some limitations in the algorithms and is an area that could be modified in the future to further increase the efficiency of the parser.</p><p>The first algorithm that was considered was Adaptive probing (Wheeler, 2001) and this was tested on a subset of the problem by simulation using a toy language (Kilby, 2002). This algorithm was considered due to the gain in search speed seen in the simplified search problem, but was re­jected due mainly to the random nature of the search, which means that an exhaustive search was necessary to provide the most probable parse.</p><p>The first enhancement was to apply a different ordering of the combinations to allow the fast build up of the relevant sections of the parse tree. By ranking the states in order of their probabilities, the parse tree was built up in such a way that the most probable state in the tree was considered first. Due to the randomised build up of the parse tree in terms of extension of the branches in the search tree, the algorithm had to include an indicator to allow the extension of branches from nodes, even after it had been used to construct its children states already. This backtracking mechanism was implemented using a list containing all of the states, which was divided into two sections. A pointer into the list indicated the division point between the two sections, one of which contained all of the states that had been used to combine with other states, and the other section contained all of the states that had not been used to combine with other states. Whenever a state was used to combine with other states, it was placed in the used section and the states that resulted from the combination were placed in the non-explored section. This di­vided list ensured that no two same combinations would ever occur more than once.</p><p>To apply the ranked ordering, the list was main­tained in a sorted manner by their probability scores and the pointer simply moved along the list, as more states were used to combine with other states. The state being pointed to by the pointer, which was the state being used to combine with other states of higher scores, was called the pivot state. By combining the pivot state with states of higher scores, the algorithm guaranteed that result­ing state of the combination would be equal or lower scored than the pivot state. This allowed for a simple algorithm for maintaining the ordered list. The ranking algorithm is essentially embodied by the following pseudo-code:</p><p>1. Populate the list with every state for every word.</p><p>2. Sort the list by their probability scores.</p><p>3. Set pointer at the first state in the list.</p></section><section number="4." title="While the list contains un-combined states:"><p>5. Set pivot as the next most probable state.</p><p>6. Return if pivot state is a terminal state.</p><p>7. Combine pivot with all adjacent states with higher probability.</p><p>8. Insertion sort all newly created states in to the list.</p></section><section number="9." title="Return failure"><p>With the application of this ordering, the algo­rithm allowed for early termination of the search, since the newly created states (being of equal or lesser probability) must be inserted below the pivot state due to the cascading effect of the product of the probability. Any terminal state found later would have a lower probability than the first one that was found, so the algorithm guarantees the retrieval of the most probable state without having to exhaustively search all possible combinations.</p><p>By only using a single list to maintain all possi­ble derivation of the states, traversals and mainte­nance of the ordering of the list used up a lot of valuable time. To counteract this, we re-introduce a charting behaviour as the second improvement to the algorithm. We implemented a table, called the indexed table, in which all the states that were in the used section were placed, rather than keeping them in the same list. The table also grouped to­gether the states that occupied the same starting and ending positions, to simplify the decision process in determining which states were adjacent to the pivot state. The ranked list was replaced by a table, which we called the sorted table that handled the push and pop manipulations to simplify and to modularise the algorithm for future use.<page local="4" global="25"/></p><p>The third major step involved the use of a criti­cal score, which is the score of the currently most probable terminal state in the sorted table. By not operating on states that are going to produce a lower probability than the critical score, it allowed for a large pruning of the search tree, weeding out states with very low probability that would not contribute to the most probable terminal state. The algorithm also provides a pre-processing stage be­fore a combination between states took place, which contributed to a little overhead, but managed to cut down the amount of unnecessary combina­tions and avoided the lengthy combination stage of two states.</p><p>The scoring system, as it stood, meant that combined states of large length would have a very low score, even if they consisted of very probable sub-structures. There was a necessity to allow lar­ger sized states a better score to indicate their higher desirability. The next major step in the evo­lution of the algorithm was to alter the scoring sys­tem to allow larger sized states higher ranking than by the use of the raw probability scores. This was achieved by normalising the scores to the most probable scores of the corresponding positions of the states and hence altered the ranking system so that states that occupied different sections in the sentence were compared relative to other states that occupied the same sequence of words. The scores of a potential perfect combination of the most probable states for each word were used to derive the normalisation scores for the particular sequence. This is not the most accurate way of de­termining the normalisation scores, but it provided an efficient way to change to ordering while not causing too much overheads in the pre-processing stage. The normalisation scores and the scores used for ranking are derived by:</p><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">S,</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">ns</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">k =i</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">normal</doubt><p>o <i>normal </i><b>_</b><b>       11 </b>nmax</p><p>Si, <i>j/sn</i><i> </i>j <i>normal </i><b><i>c </i></b><b><i>I</i></b><b><i>C </i></b><i>normal </i>0,l</p><doubt alpha="20.0" length="5" tooSmall="False" monospace="0.0">j+1,1</doubt><doubt alpha="25.0" length="16" tooSmall="False" monospace="0.0">0,i-l       "i,j</doubt><p>the length of the sentence. <i>S</i><b><i>iformal </i></b>represents the normalization score for the sequence in the range between <i>i</i><i> </i>and <i>j,</i><i> Skkmax </i>represents the score of the most probable states for word at k. <i>S</i><i>ijrank </i>represents the score used for ranking, but it also represents the heuristical score of the state. <i>S</i><i>i j </i>represents the raw probability score of the particular sequence which starts and ends at positions <i>i </i>and <i>j. </i>Note that the <i>S</i><b><i>0formal </i></b>is a constant for the same sentence and can be factored out for the purpose of ranking, which gives:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">S</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">rank</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">,j</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">S,.j/Sn</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">j</doubt><p>In the above model, <i>i </i>and <i>j </i>represents the start­ing and ending indexes of the state and <i>l </i>represents</p><p>The combined algorithm still maintains the re­trieval of the parse tree with the same probabilistic score as the exhaustive algorithm, but has managed to prune a very large section of the search tree without creating too much overhead in the execu­tion of the algorithm. The pseudo-code for this new algorithm is:</p><p>1. Construct the normalisation mapping.</p><p>2. Initialise the critical score to zero.</p></section><section number="3." title="Populate and sort the sorted table with all"><p>states for all words using the normalised scores.</p></section><section number="4." title="Remove the most probable state and insert"><p>into the indexed table.</p></section><section number="5." title="While  the  sorted  table  contains un-"><p>combined states:</p></section><section number="6." title="Remove the most probable from the"><p>sorted table as the pivot.</p><p>7. Return if the pivot is a terminal state.</p></section><section number="8." title="Combine pivot with all adjacent states in"><p>the indexed table that don't fall below the critical score.</p></section><section number="9." title="For every state that has been created:"></section><section number="10." title="Adjust the critical score if the produced"><p>state is a terminal state and the score is better.</p></section><section number="11." title="Insert the created states into the sorted"><table caption="table with the normalised score."></table><p>12. Insert the pivot into the indexed table.</p><p>13. Return failure.</p><p>We also investigated alternative algorithms that included more pruning in the search tree, and also the effects of prematurely ending the search when an approximate result was found. We experimented with ideas like pruning lower scored states at the start of the algorithm (beam search), ap­proximating the correct parse to be the first termi­nal state it found, and applying a different priority system that encouraged the build up of larger sized states without first building up the sub-structures.<page local="5" global="26"/> The beam search had the same effects to the parser as a reduced set of categories and combinators, in that, some valid sentences could not be parsed be­cause of the reduced amount of ways in forming the valid parse. This is a very common approach taken to optimise a searching task (Goodman, 1997), but was not the desired approach for this project since the task of the algorithm was to find the most probable parse for the sentence.</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">i,j</doubt><p>By terminating the algorithm prematurely, the parser sometimes retrieved the non-optimal result and also did not contribute much to the reduction of the parsing time, due to the improved ordering of the search algorithms.</p><p>By re-ordering the search, so that the build up of larger sized states were prioritised, the effects of the ordering by their scores were lost and hence the algorithm had to either exhaustively search all combinations to determine the most probable parse, or it had to end the algorithm after the pro­duction of some terminal state was made. This did not guarantee the retrieval of the most probable parse and it also meant that some unlikely combi­nations that could have been avoided by the rank­ing had to be done.</p><p>When implementing most of the experimental algorithms, some of the core structure to the algo­rithm had to be modified, but an interesting algo­rithm was discovered in the process. This was the product of the beam search and the prioritising of larger states, which we called the tree-climbing algorithm. The beam search stage, which we called the seeding stage, involved building of the parse with only the most probable state for each of the word, and the tree-climb approach, which was ap­plied in the subsequent stage, resulted in an algo­rithm that was faster than the combined optimal algorithm, but was not as accurate when it came to the retrieval of the most probable parse. However, the proportionality of the incorrect parse was significantly lower than the application of just the beam search or the tree-climb algorithm. The tree-climb approach was not attractive in terms of both parsing accuracy and time in the cases where the sub-structures had to be built up first when it was applied by itself, but the seeding stage constructed the majority of the necessary sub-structures in the search tree, and hence allowed the tree climb algo­rithm to connect up the un-combined sections and quickly form a parse for a sentence. Although this algorithm did not guarantee the retrieval of the most probable parse, it provided alternative points of view in the relevance of the scoring system which was used to determine the 'correct parse' of the sentence; some parses which were retrieved were structured more similarly to the humanly evaluated parse than the most probable parse, even though they were assigned lower probabilities.</p></section><section number="4" title="Results"><p>The algorithms were trained and tested on both the Susanne corpus and the Penn Treebank corpus (Mitchell et al., 1992), approximately 95% of each was included in the training sets (sections 02 to 21 for the Penn Treebank) and a randomly chosen subset from the rest of the corpus was used for the testing sets (section 23 for the Penn Treebank cor­pus). This corresponded to 50 sentences in the Su­sanne corpus and just over 580 sentences in the Penn Treebank corpus. The major difference be­tween the two corpora is the number of possible categories it contains. Where the Susanne corpus contains just over 500 categories, the Penn Tree-bank corpus contains over 1200 categories it can assign to each of the words. The two corpora were used to test the performance of the developed algo­rithms; hence the parsing accuracy is not the in­tended matter being evaluated here.</p><p>_<u>I </u><u>Exhaustive</u></p><doubt alpha="43.2" length="37" tooSmall="False" monospace="0.0">■ time 1.00000 □ search spaceI1.00000</doubt><doubt alpha="20.0" length="20" tooSmall="True" monospace="0.0">Rank 2.32885 0.24628</doubt><doubt alpha="100.0" length="5" tooSmall="True" monospace="0.0">Chart</doubt><doubt alpha="0.0" length="15" tooSmall="True" monospace="0.0">0.42983 0.24628</doubt><doubt alpha="33.3" length="24" tooSmall="True" monospace="0.0">Critical 0.23331 0.09444</doubt><doubt alpha="36.0" length="25" tooSmall="True" monospace="0.0">Normalise 0.15160 0.06911</doubt><doubt alpha="36.0" length="25" tooSmall="True" monospace="0.0">TreeClimb 0.02187 0.00286</doubt><p>Figure 1: Benchmarked logarithmic plot com­paring the exhaustive algorithms to the devel­oped algorithms on the Susanne corpus.</p><page local="6" global="27"/><p>The PLCCG parser and the developed algo­rithms were implemented on Python, the reason being that the parser is still under development in the areas of syntactic and semantic accuracy.</p><p>The progressive increments to the proposed algorithm all contributed to large areas of the search space being pruned, but due to the over­heads in the execution of the algorithm, some of the benefits were not as much as first expected.</p><p>Figure 1 indicates the ratio differences between the original exhaustive algorithm and the proposed algorithms on the Susanne corpus. The results from the Penn Treebank corpus are not shown, since we were unable to obtain the results for some algo­rithms due to memory problems. The left column indicates the parsing time and the right column indicates the amount of search space it explored, or the number of combinations made during the parse. The difference between the two indicates a rough estimate of the overhead in the execution of the algorithm compared to the original algorithm. As the plot indicates, the parse time of the ranked al­gorithm was excessive. The overhead in determin­ing the adjacent states contributed to most of the parse time and resulted in a worse parse time, even though it was only exploring a quarter of the search space.</p><p>After the charting was implemented, the bene­fits of the algorithms became more apparent, even through it was still exploring the same search space. The reduction of the search space by 75% from the use of the ranked ordering indicates that most of the categories assigned to the initial words did not make much contribution, due to the rare­ness of its own category and the corresponding derived states.</p><p>The inclusion of the critical score made another dramatic reduction in the search space, indicating that a lot of unnecessary searching was occurring after the terminal state was produced, which could be carefully pruned out without affecting the final result. The proportionality between the search time and the search space increased with the inclusion of the critical value, which was contributed by the overheads in the pre-processing stage before the combination between the states occurred.</p><p>The use of the normalised scores contributed to yet another reduction in the parse time and search space. This algorithm did not make as much use of the critical value compared to the raw critical algo­rithm due to better ordering of the states, but since the normalisation scores are not the perfect repre­sentation of the relative scores to each position, which is impossible to predict, the critical value still plays an important role in the algorithm. This algorithm introduces extra processing to calculate the normalised scores and to re-order the states with the same scores, but the overheads is still a lot less than the raw critical scored algorithm, due to the repeated pre-processing overheads.</p><p>The experimental tree-climb algorithm result seen on the far right shows an impressive parse time and huge reduction in the search space, but has slight inaccuracies parse compared to the other algorithms, which can be seen in Table 1.</p><p>Table 1: Statistics of parsing of the optimal and suboptimal algorithms for both the Susanne and Penn Treebank corpora.</p><p>The parse time and the search space are repre­sented as the proportionality compared to the ex­haustive algorithm and the percentage that the algorithm retrieved the most probable parse is in­dicated in the last row. The optimal algorithm is the combined algorithm of all the algorithms that provided benefits to the parsing speed without the loss of accuracy and the suboptimal algorithm is the tree-climb algorithm, which provided a fastest and also a reasonably accurate result from all tested suboptimal algorithms.</p><p>The results from the 2 corpora indicate similar trends in the characteristics of the algorithms, which indicate a consistent improvement from the application of the algorithms. The parse time and the search space showed a bigger improvement from the larger Penn Treebank corpus, even though there is over twice the number of categories to choose from. This is suspected to be the fact that more trivial sentences exists within the Penn Tree-bank testing set. Another contributing factor to this is the fact that the training set is a lot larger in the<page local="7" global="28"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Exhaustive</p></td><td class="cell"><p>Optimal</p></td><td class="cell"><p>Suboptimal</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Susanne</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Parse time</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>15.2</p></td><td class="cell"><p>1.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Search space</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>6.9</p></td><td class="cell"><p>0.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Most probable</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>84.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Penn Treebank</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>(%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Parse time</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>10.4</p></td><td class="cell"><p>0.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Search space</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>4.7</p></td><td class="cell"><p>0.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Most probable</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>100.0</p></td><td class="cell"><p>66.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Penn Treebank test. This means that the algorithm does not need to look up unknown words from WordNet or spend time assigning all possible cate­gories for the word.</p><p>The optimal search algorithm returns the most probable parse tree, but sometimes varied in the tagging and bracketing of the parse due to the cases when multiple parses have the same prob­ability. The tree-climb algorithm's performance in the accuracy domain is relatively poor, but some of the loss in the accuracy can be recovered by alter­ing the amount of states used in the seeding stage. However, because the algorithm loses track of the ranking of the states, the algorithm must exhaus­tively combine all states to determine the most probable parse.</p><p>Figure 2: Number of words in the sentence ver­sus parsing time on the Penn Treebank corpus for the exhaustive, optimal and the suboptimal algorithm.</p><p>On a corpus based comparison, it is fairly easy to see the improvements of the developed algo­rithms, but for the task of NLP, it is probably more important to look at a per sentence comparison, especially if it is in an environment where human interaction is required. Figure 2 indicates the rela­tionship between the parsing time and the number of words in the sentence for the exhaustive, opti­mal and the suboptimal search algorithms. There is a huge reduction in the parse time from the algo­rithm with the optimal algorithm, and an even greater reduction from the suboptimal algorithm. Both these algorithms possesses another great fea­ture in that the exponential coefficient factor for the parse time is a lot less than the exhaustive algo­rithm. This means that the algorithm works more efficiently with longer sentences, but the plot still indicates that the new algorithms are still better than the exhaustive algorithm for short sentences, even with the extra overheads from various forms of initialisation.</p><p>The long parsing times are the consequences of using a scripting language for the development and testing of the parser. The results should reduce by a factor of several tens or even hundreds if the parser was implemented on a natively compilable lan­guage.</p><p>Figure 3 describes the overall efficiency of the algorithms, which displays 4 different dimensions about the algorithms. The first is the linear slope seen in all the algorithms. This indicates that the non-searching processes in the individual algo­rithms (overheads), like the initialisation stage do not contribute greatly to the parse time, with the exception of the set of plots around the 10 second range, which has deviated from the other results. This is due to the extra time taken for the algo­rithms to fetch the relevant categories form Word­Net and also the assignment of all possible categories. This is not apparent in the exhaustive algorithm, because they perform a lot more combi­nations if the number of categories assigned to each of the words is large, where as the optimal and the suboptimal algorithms does not take most of them into account. The actual slope of the plots indicates the sizes of the coefficient of the relation­ship, shown more clearly in Figure 2.</p><doubt alpha="0.0" length="26" tooSmall="False" monospace="0.0">00000001000000001000000000</doubt><figure caption="Figure 3: Efficiency of the algorithms measured on the Penn Treebank corpus."></figure><p>The second dimension is the y-intercepts of the plots, which describes the efficiency of the execu­tion of the algorithm. The smaller the y-intercept, the more efficient it is in executing each combina­tion. The exhaustive algorithm clearly out­performing the others, due to the simple way it needs to be implemented. Due to the large overhead in applying the suboptimal algorithm, there is a large overhead in the algorithm, meaning that if the states of a very low probability had to be used to produce a terminal state, this algorithm would run the slowest.<page local="8" global="29"/></p><p>The third dimension is the spanning distance between the plots, which indicates the size of the exponential coefficient. The longer the distance between the quicker parses and the longer parses, the larger the exponential coefficient it has. The effect of which can be seen more clearly on Figure 2. The fourth and the final dimension is the aver­age speed of the parse time, which is indicated by the average height of the points.</p></section><section number="5" title="Conclusion and Future Work"><p>Unlike most modern search algorithms that take advantage of the continuously increasing process­ing power of the modern day computers and hence lose elegance in the search technique, the devel­oped search algorithm allows for the retrieval of the best possible solution in a very efficient man­ner while also taking into account of the overheads involved in execution of the algorithm. The im­plementation of the algorithm as the searching mechanism to find the most probable parse for the target parser has dramatically reduced the parsing time required to retrieve the same result as an ex­haustive search mechanism.</p><p>The characteristics of the algorithm has the po­tential to be converted into a simple chunk parser, which is sometimes enough to extract the relevant information from the sentences. The proposed al­gorithm encourages the quick build up of sub-parses, rather than the linear build-up algorithm of the exhaustive algorithms, hence the order in which the combination occurs allows for the split­ting of the sentence into sections or chunks by early termination of the algorithm.</p><p>The tree-climb algorithm needs further investi­gation, as the algorithm may possesses characteris­tics which may end up being more beneficial to the accuracy of the parser. This is due to the fact that the most probable parse is not always the correct parse. Further investigation techniques might in­clude getting the algorithm to find multiple solu­tions before it is returned, or to measure the accuracy after altering the amount of states used in the seeding stage. Primitive experiments done on adjusting the seeding amount has decreased the error rate, but further tests are required to under­stand the effects on this.</p><p>By modifying the probability scores to include information on things like the syntactic and seman­tic context to provide a better indication of the grammar which will provide a better scoring sys­tem, the parser should be able to provide better results and still rely on the developed optimal algo­rithm to retrieve the most probable parse. This also means that the algorithm is generic enough to be applied to other kinds of search problems. The 4 main implemented techniques; ranking the nodes in the search tree to allow for early search termina­tion, using charting to avoid processing of un­wanted search space, applying the critical point scores and a quick pre-processing stage to avoid lengthy computation, and the use normalised scores to provide a better heuristical indication of the node being searched all provide vital ways to reduce the search space of the problem.</p><p><b>Acknowledgement</b></p><p>This project was supported in part by a scholarship from the CSIRO.</p></section><references><p>Eugene Charniak. 1993. <i>Statistical Language Learning. </i>MIT Press, Cambridge, England.</p><p>Jushua Goodman. 1997. <i>Global Thresholding and Mul­tiple-Pass Parsing. </i>Proc. EMNLP-2.</p><p>Geoff Jarrad, Simon Williams, and Daniel McMichael. 2003. <i>A Framework for Total Parsing. </i>CMIS techni­cal report 03/10.</p><p>Phil Kilby. 2002. <i>Applying Adaptive Probing to Achieve Fast Parsing. </i>Project proposal paper.</p><p>Mitchell P. Marcus, Beatrice Santorini, Mary A. Mar-cinkiewicz. 1992. <i>Building a large annotated corpus of English: the Penn Treebank. </i>http://www.cis.upenn.edu/~treebank/home.html.</p><p>George A. Miller, Richard Beckwith, Christiane Fell­baum, Derek Gross, and Katherine Miller. 1993. <i>In­troduction to WordNet: An On-line Lexical Database. </i>http://www.cogsci.princeton.edu/~wn/.</p><p>Mark Steedman. 1996. <i>A Very Short Introduction to CCG. </i>ftp://ftp.cis.upenn.edu/pub/steedman/ccg/<u> ccgintro.ps.gz</u></p><p>Ruml Wheeler. 2001. <i>Incomplete Tree Search using Adaptive Probing. </i>Proc. IJCAI-01.</p></references></body></article>