<?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="108"/><title>eBonsai: An Integrated Environment for Annotating Treebanks</title><author surname="Hiroshi" givenname="Ichikawa"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author><author surname="Masaki" givenname="Noguchi"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author><author surname="Taiichi" givenname="Hashimoto"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author><author surname="Takenobu" givenname="Tokunaga"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author><author surname="Hozumi" givenname="Tanaka"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author></firstpageheader><frontmatter><p><b>eBonsai: An integrated environment for annotating treebanks</b></p><p><b>Ichikawa Hiroshi, Noguchi Masaki, Hashimoto Taiichi, Tokunaga Takenobu, Tanaka Hozumi</b></p><p>Department of Computer Science, Tokyo Institute of Technology Tokyo Meguro Ôokayama 2-12-1, Japan ichikawa@cl.cs.titech.ac.jp</p></frontmatter><abstract>Syntactically annotated corpora (tree-banks) play an important role in re­cent statistical natural language pro­cessing. However, building a large tree-bank is labor intensive and time con­suming work. To remedy this prob­lem, there have been many attempts to develop software tools for annotating treebanks. This paper presents an integrated en­vironment for annotating a treebank, called eBonsai. eBonsai helps annota-tors to choose a correct syntactic struc­ture of a sentence from outputs of a parser, allowing the annotators to re­trieve similar sentences in the treebank for referring to their structures. </abstract></header><body><section number="1" title="Introduction"><p>Statistical approach has been a main stream of natural language processing research for the last decade. Particularly, syntactically annotated cor­pora (treebanks), such as Penn Treebank (Marcus et al., 1993), Negra Corpus (Skut et al., 1997) and EDR Corpus (Jap, 1994), contribute to im­prove the performance of morpho-syntactic anal­ysis systems. It is notorious, however, that build­ing a large treebank is labor intensive and time consuming work. In addition, it is quite difficult to keep quality and consistency of a large tree-bank. To remedy this problem, there have been many attempts to develop software tools for anno­tating treebanks (Plaehn and Brants, 2000; Bird et al., 2002).</p><p>This paper presents an integrated environment for annotating treebanks, called eBonsai. Fig­ure 1 shows a snapshot of eBonsai. eBonsai first performs syntactic analysis of a sentence us­ing a parser based on GLR algorithm (MSLR parser) (Tanaka et al., 1993), and provides can­didates of its syntactic structure. An annotator chooses a correct structure from these candidates. When choosing a correct structure, the annotator can consult the system to retrieve already anno­tated similar sentences to make the current deci­sion. Integration of annotation and retrieval is a significant feature of eBonsai.</p><p>To realize the tight coupling of annotation and retrieval, eBonsai has been implemented as the following two plug-in modules of an universal tool platform: Eclipse (The Eclipse Foundation, 2001).</p><p>• Annotation plug-in module: This module helps to choose a correct syntactic structure from candidate structures.</p><p>• Retrieval plug-in module: This module re­trieves similar sentences to a sentence in question from already annotated sentences in the treebank.</p><p>These two plug-in modules work cooperatively in the Eclipse framework. For example, infor­mation can be transferred easily between these two modules in a copy-and-past manner. Further­more, since they are implemented as Eclipse plug­in modules, these functionalities can also inter­act with other plug-in modules and Eclipse native features such as CVS.</p><page local="2" global="109"/><figure caption="Figure 1: A snapshot of eBonsai"></figure><p><b>plain-text corpora</b></p></section><section number="1." title="Picking a sentence"><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">p</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">e</doubt></section><section number="2." title="Syntactic analysis using the MSLR parser"><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">pa</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">query</doubt><subsection number="3.1." title="loosing a correct syntactic structure   ^ '"><p>sentences</p></subsection><subsection number="3.2." title="structure retrieval"><p><b>syntactic structure</b></p></subsection></section><section number="4." title="Adding the structure to the treebank"><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">tree an</doubt><figure caption="Figure 2: A workflow of annotation using eBonsai"></figure><p><b>lain-text sentenc</b> <b>cked shared forest</b><page local="3" global="110"/></p></section><section number="2" title="Annotating treebanks"><figure caption="Figure 2 shows a workflow of annotating a tree-bank using eBonsai."></figure><p>1. An annotator picks a sentence to annotate from plain-text corpora.</p><p>2. The MSLR parser (Tanaka et al., 1993) per­forms syntactic analysis of the sentence.</p><p>3. The annotator chooses a correct syntactic structure from the output of the parser. If necessary, retrieval of structures in the tree-bank is available in this step.</p><p>4. The annotator adds the chosen syntactic structure to the treebank.</p><p>The coverage of Japanese grammar used in the MSLR parser is fairly wide. The number of gram­mar rules of the current system is almost 3,000. That means we have a lot of outputs as a result of syntactic analysis in step 2. These structures are represented in terms of a special data struc­ture called packed shared forest (PSF) (Tomita, 1986). The main role of eBonsai is supporting annotators to choose a correct one from a lot of candidate structures in step 3.</p></section><section number="3" title="Annotation plug-in module"><subsection number="3.1" title="Overview"><p>The annotation plug-in module helps to choose a correct syntactic structure from a set ofstructures represented by a packed shared forest which is an output of the MSLR parser.</p><p>Since there are generally so many syntactic structures given by the parser, it is impractical to find a correct one by checking all of them. The an­notation plug-in module shows a single structure at a time as shown in figure 1, and asks annotators to specify a constraint. The system reflects the constraint immediately by filtering out the struc­tures violating it. This process is repeated until a single correct structure is identified. The con­straints which can be specified by annotators are following two:</p><p>1. Annotators can specify a destination con­stituent of a dependent constituent.</p><p>2. Annotators can specify a correct label of a node.</p><p>This plug-in module is a reimplementation of an annotation tools developed by Ôkazaki (Ôkazaki et al., 2001) in an Eclipse framework.</p></subsection><subsection number="3.2" title="Example of annotation"><p>Take the following Japanese sentence for an ex­ample to explain the usage of the annotation plug­in module.</p><p>fSOiÊOÛ^ (yellow paper for warning-ACC) (mailbox-DAT) Anr&amp;^/c^ (put, but), g <i>rr</i></p><p>S^t'tlTl^l^ (not being paid yet). <i>(I put a yellow paper for warning in the mailbox, but it is not paid yet.)</i></p><p>1. An annotator double-clicks a PSF file name in Eclipse "Navigator" (a left window) to pick up a sentence to annotate.</p><p>2. A new window opens and one of the struc­tures is shown in terms of a syntactic tree (a right window).</p><p>This window is called "Annotation editor". The notation "1/9" in the left-top part of the window indicates that the presented struc­ture is the first one out of nine.</p><p>3. A red node (e.g. "&lt; <i>WlM^-M-M </i>&gt;" (verb phrase)) indicates that this node has other possible label names.</p><p>4. Clicking a right button on the red node makes a list of possible label names pop up as shown below.</p><page local="4" global="111"/><p>5. Annotators can choose a correct label name of the node in the list. In this case, label "&lt; ^M^-^-M &gt;" will be selected.</p><p>6. Then label "&lt; iM^-ffl-M &gt;" (verb phrase) changes to "&lt; ^M^-^^-M &gt;" (noun phrase) in the tree and its color be­comes black at the same time. Black label names indicate that there is no other possi­ble label for this node.</p><p>Now, the number of structures shown in the left-top part of Annotation editor decreases to 3.</p><p>7. A green node (e.g. "&lt; WMffi-^-M-M &gt; ") indicates the constituent governed by that node can depend on more than one con­stituent.</p><p>8. Clicking a right button on node "&lt; MSIffi-^-M-M &gt;" makes a list of destinations of dependency pop up as shown below.</p><p>9. Annotators can choose a correct destination in the list. In this case, <i>"WM^ffcAtl</i><i>Tl</i><i>S </i>ll/c <i>(put (a yellow paper) in the mailbox)" </i>will be selected.</p><p>10. At this moment, all nodes have turned into black and the number of structure becomes 1. That means the annotation ofthis sentence has been finished.</p><figure caption="Figure 3: A popup menu of Annotation editor3.3   Other features"></figure><p>The following features are also implemented.</p><p>• Unlimitedly repeatable Undo/Redo. It is possible to undo/redo after saving results by using the popup menu. (figure 3).</p><p>• Viewing other structures. Items [Previous tree] and [Next tree] in the popup menu shows different structures.</p><p>• Folding constituents. Clicking a right but­ton on a node and selecting item [Switch folding] makes the structure under the node folded. Selecting the same item again un­folds the structure.</p><p>• Copying a part of a structure to the retrieval plug-in module. Item [Copy to search] in the popup menu copies a selected structure to the query input window. This feature will be described in detail in the later section.</p></subsection></section><section number="4" title="Retrieval plug-in module"><subsection number="4.1" title="Overview"><p>During the course of annotation, annotators usu­ally put constraints to narrow down to a correct structure considering the meaning of a sentence. However, there are cases in which it is difficult to pin down a correct one by referring to only that sentence. Annotators can consult the system to retrieve the similar structure of sentences in the treebank. The retrieval plug-in module provides annotators such functionality. The retrieval plug­in module receives a syntactic structure as a query and provides a list of sentences which include the given structure.</p><p>The retrieval plug-in module has been realized with the method proposed by Yoshida (Yoshida et al., 2004). The method is based on Yoshikawa's method (Yoshikawa et al., 2001) which was orig­inally proposed for handling XML documents ef­fectively by using relational database (RDB) sys­tems.<page local="5" global="112"/> Yoshida adopted Yoshikawa's method to deal with syntactic structures in the database. Since an XML document can be represented as a tree, Yoshikawa's method is also applicable to deal with syntactic structures.</p><figure caption="Figure 4: An input query for retrieval"></figure><p>An input query is given as a tree as shown in Figure 4. The structure is then translated into a SQL query and the retrieval is performed.</p><p>A query involving a large number ofnodes gen­erates a longer SQL query, thus degrades retrieval speed significantly. Yoshida proposed to decom­pose an input query into a set of subtrees, and to translate each subtree into a SQL query.</p></subsection><subsection number="4.2" title="Example of structure retrieval"><p>1. An annotator puts a query tree in the query input window (upper-left window of Fig­ure 5). The query can be modified by the following way.</p><p>• A node label can be changed by click­ing a left button on the node and putting a new label in the input area. A label can contain a wild card character "%".</p><p>• A child node can be added by clicking a right button on a node and selecting menu item [Add child].</p><p>2. Clicking a right button in the query input window and selecting a menu item starts re­trieval. There are four types of search.</p><p>• Menu item [Search] retrieves sentences containing a structure which is exactly the same as the query.</p><p>• Menu item [Partial search] retrieves sentences with less rigid condition than item [Search]. It allows some child nodes missing from the query.</p><figure caption="Figure 5: An example of structure retrieval"></figure><p>• Menu item [Narrow search] searches in the previously retrieved sentences in­stead of in the entire treebank.</p><p>• Menu item [Partial narrow search] is the combination of [Partial search] and [Narrow search].</p><p>3. Retrieval results are shown in the retrieval result list window (a left-bottom window in Figure 5).</p><p>4. Clicking a sentence in the list shows the de­tailed structure of the sentence in the detail window (a right window of Figure 5). A part of the structure matching with the query is colored with blue.</p><p>5. If there is more than one substructure match­ing with the query in a sentence, the sys­tem shows the total number of matching parts, and the identifier of the currently col­ored part by number. Menu items [Previous match] and [Next match] allows annotators to move the other matching parts.</p></subsection></section><section number="5" title="Interplay between annotation and retrieval"><p>Since both the annotation plug-in module and the retrieval plug-in module are implemented as<page local="6" global="113"/></p><p>Eclipse plug-ins, they can easily exchange infor­mation each other. Thanks for this feature, an-notators can copy a part of syntactic structures shown in Annotation editor and submit it to the retrieval module as a query. This can be done by the following procedure.</p><p>1. Dragging a mouse pointer over the area cov­ering a target syntactic structure selects the structure, of which color changes to blue.</p><p>2. Clicking a right button in Annotation editor makes a command list pop up, and select­ing item [Copy to search] copies the selected structure to the query input window.</p><p>3. The annotator can modify the query if needed.</p><p>4. Clicking a right button in the query input window makes a command list pop up and selecting one of search commands performs a search.</p></section><section number="6" title="Conclusion and Future Work"><p>This paper introduced eBonsai, an integrated en­vironment for annotating treebanks. eBonsai was implemented as two plug-in modules of Eclipse: the annotation plug-in module for choosing a cor­rect syntactic structure from outputs of a parser, and the retrieval plug-in module for retrieving sentences including similar structure to a query in the treebank. These two modules are tightly cou­pled, thus during the course of annotation, anno-tators can refer to already annotated sentences in the treebank by using the retrieval module. This helps to annotate difficult cases.</p><p>The future work includes the following issues.</p><p>• Introduction of a project management func­tionality by coupling with such as the CVS system.</p><p>• Further improvement of the interface.</p><p>• Automatic presentation of reference sen­tences with their structure without annota-tors' explicit retrieval.</p><p>• Functionality to share know-how among an-notators.</p></section><references><p>S. Bird, X. Maeda, K. Ma, H. Lee, B. Randall, and S. Za-yat. 2002. TableTrans, MultiTrans, InterTrans and Tree-Trans: Diverse tools built on the annotation graph toolkit. In <i>Proceedings of the Third International Conference on Language Resources and Evaluation (LREC 2002), </i>pages 364-370.</p><p>Japan Electronic Dictionary Research Institute, 1994. <i>"Electronic Dictionary User's Manual 2.1".</i></p><p>M. P. Marcus, B. Santorini, and M. A. Marcinkiewicz. 1993. Building a large annotated corpus of english: The Penn Treebank. <i>Computational Linguistics, </i>19(2):313-330.</p><p>A. Ôkazaki, K. Shirai, T. Tokunaga, and H. Tanaka. 2001. A syntactic annotation tool with user navigation. In <i>Pro­ceedings of the 15 th Annual Conference of Japanese So­ciety for Artificial Intelligence.</i></p><p>Ô. Plaehn and T. Brants. 2000. Annotate - An effi­cient interactive annotation tool. In <i>Proceedings ofthe Sixth Conference on Applied Natural Language Process­ing ANLP-2000.</i></p><p>W. Skut, B. Krenn, T. Brants, and H. Uszkoreit. 1997. An annotation scheme for free word order languages. In <i>Pro­ceedings ofthe 5th Conference on Applied Natural Lan­guage Processing, </i>pages 88-95.</p><p>H. Tanaka, T. Tokunaga, and M. Aizawa. 1993. Integra­tion of morphological and syntactic analysis aased on LR parsing algorithm. In <i>Proceedings of International Work­shop on Parsing Technologies, </i>pages 101-109.</p><p>The Eclipse Foundation. 2001. Eclipse official site. http://www.eclipse.org/.</p><p>M. Tomita. 1986. <i>Efficient Parsing for Natural Language</i>. Kluwer Academic Publisher.</p><p>K. Yoshida, T. Hashimoto, T. Tokunaga, and H. Tanaka. 2004. Retrieving annotated corpora for corpus annota­tion. In <i>Proceedings of the Fourth International Con­ference on Language Resources and Evaluation (LREC 2004), </i>pages 1775-1778.</p><p>M. Yoshikawa, T. Amagasa, T. Shimura, and S. Uemura. 2001. Xrel: A pathbased approach to storage and re­trieval of xml documents using relational database. <i>ACM Transactions on Internet Technology, </i>1(1).</p></references></body></article>