<?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="71"/><title>Harvesting the Bitexts of the Laws of Hong Kong From the Web</title><author surname="Kit" givenname="Chunyu"><org  name="City University of Hong Kong" country="Hong Kong" city="Kowloon"/></author><author surname="Liu" givenname="Xiaoyue"><org  name="City University of Hong Kong" country="Hong Kong" city="Kowloon"/></author><author surname="Sin" givenname="KingKui"><org  name="City University of Hong Kong" country="Hong Kong" city="Kowloon"/></author><author surname="Webster" givenname="Jonathan J."><org  name="City University of Hong Kong" country="Hong Kong" city="Kowloon"/></author></firstpageheader><frontmatter><p><b>Harvesting the Bitexts of the Laws of Hong Kong From the Web</b></p><p><b>Chunyu Kit   Xiaoyue Liu   KingKui Sin   Jonathan J. Webster</b></p><p>Department of Chinese, Translation and Linguistics City University of Hong Kong, Tat Chee Ave., Kowloon, Hong Kong (ctckit, xyliuQ, ctsinkk, ctjjw}@cityu.edu.hk</p></frontmatter><abstract>In this paper we present our recent work on harvesting English-Chinese bitexts of the laws of Hong Kong from the Web and aligning them to the subpara­graph level via utilizing the number­ing system in the legal text hierarchy. Basic methodology and practical tech­niques are reported in detail. The re­sultant bilingual corpus, 10.4M English words and 18.3M Chinese characters, is an authoritative and comprehensive text collection covering the specific and special domain of HK laws. It is par­ticularly valuable to empirical MT re­search. This piece of work has also laid a foundation for exploring and harvest­ing English-Chinese bitexts in a larger volume from the Web. </abstract></header><body><section number="1" title="Introduction"><p><i>Bitexts, </i>also referred to as <i>parallel texts </i>or <i>bilin­gual corpora, </i>collections of bilingual text pairs aligned at various levels of granularity, have been playing a critical role in the current development of machine translation technology. It is such large data sets that give rise to the plausibility of empirical approaches to machine translation, most of which involve the application of a variety of machine learning techniques to infer various types of translation knowledge from bitext data to facilitate automatic translation and enhance translation quality.   Large volumes of training data of this kind are indispensable for construct­ing statistical translation models (Brown et al., 1993; Melamed, 2000), acquiring bilingual lex­icon (Gale and Church, 1991; Melamed, 1997), and building example-based machine translation 2003; Way and Gough, 2003). They also provide a basis for inferring lexical connection between vocabularies in cross-languages information re­trieval (Davis and Dunning, 1995).</p><doubt alpha="61.9" length="42" tooSmall="False" monospace="0.0">(EBMT) systems (Nagao, 1984; Carl and Way,</doubt><p>Existing parallel corpora have illustrated their particular value in empirical NLP research, e.g., Canadian Hansard Corpus (Gale and Church, 1991b), HK Hansard (Wu, 1994), <i>INTERSECT </i>(Salkie, 1995), <i>ENPC </i>(Ebeling, 1998), the Bible parallel corpus (Resnik et al., 1999) and many others. The Web is being explored not only as a super corpus for NLP and linguistic research (Kil-garriff and Grefenstette, 2003) but also, more im­portantly to MT research, as a treasure for mining bitexts of various language pairs (Resnik, 1999; and Gough, 2003). The Web has been the play­ground for many NLPers. More and more Web sites are found to have cloned their Web pages in several languages, aiming at conveying informa­tion to audience in different languages. This gives rise to a huge volume of wonderful bilingual or multi-lingual resources freely available from the Web for research. What we need to do is to har­vest the right resources for the right applications.</p><doubt alpha="53.5" length="86" tooSmall="False" monospace="0.0">Chen and Nie, 2000; Nie and Cai, 2001; Nie and Chen, 2002; Resnik and Smith, 2003; Way</doubt><p>In this paper we present our recent work on harvesting English-Chinese parallel texts of the laws of Hong Kong from the Web and constructing a subparagraph-aligned bilingual corpus of about 20 million words.<page local="2" global="72"/> The bilingual texts ofthe laws is introduced in Section 2, with an emphasis on HK's legislation text hierarchy and its num­bering system that can be utilized for text align­ment to subparagraph level. Section 3 presents basic methodology and technical details for har­vesting and aligning bilingual Web page pairs, ex­tracting content texts from the pages, and align­ing text structures in terms of the text hierarchy via utilizing consistent intrinsic features in the Web pages and content texts. Section 4 presents XML schema for encoding the alignment results and illustrates the display mode for browsing the aligned bilingual corpus. Section 5 concludes the paper, highlighting the value of the corpus in term of its volume, translation quality, specificity and comprehensiveness, and alignment granular­ity. Our future work to explore the Web for har­vesting more quantities of parallel bitexts is also briefly outlined.</p></section><section number="2" title="Bilingual Texts of the Laws of HK"><p>The laws of Hong Kong (HK) before 1987 were exclusively enacted in English. They were trans­lated into Chinese in the run-up to the handover in 1997. Since then all HK laws have been en­acted in both English and Chinese, both versions being equally authentic. This gives rise to a valu­able set of bitexts in large quantity and high qual­ity that can be utilized to facilitate empirical MT research.</p><subsection number="2.1" title="BLIS Corpus"><p>The bilingual texts of the laws of Hong Kong have been made available to the public in re­cent years by the Justice Department of the HK-SAR through the bilingual laws information sys­tem (BLIS). All these texts are freely accessible from http://www.justice.gov.hk/.</p><p>BLIS provides the most comprehensive docu­mentation of HK legislation. It contains all statute laws of Hong Kong currently in operation, includ­ing all ordinances and subsidiary legislation of HK (and some of their past versions dating back to 60 June 1997), the Basic Law and the Sino-British Joint Declaration, the constitution of PRC and national laws that apply in HK, and other rel­evant instruments. The entire bilingual corpus of</p><doubt alpha="54.5" length="44" tooSmall="False" monospace="0.0">► SSI« «J£StS5j!D*Sl5!»■Mim&lt;*i(£i*J5K*SiflSi</doubt><p>■ Clupkr ] INTERPRETATION AND GENERAL CLAUSES ORDINANCE &gt; Chipltr 2 PUBLIC FINANCE ORDINANCE lOilpltr 3 JURY ORDINANCE I Chapler <i>i </i>HIGH COURT ORDINANCE TChiplsr! OFFICIAL LANGUAGES ORDINANCE » CAP i OFFICIAL LANGUAGES ORDINANCE</p><p>"CAP JA DISTRICT COURT CIVIL PROCEDURE IGEKTRAL) (USE OF LANGUAGE) RULES</p><p>Cap M Empnwfjing s.Ktiiin 3WWIW7 <u>Cm SA s 1 lOirctoil is scat)</u> <i>Mlmmi</i> <u>CtcSAslDlttrmttllicIl</u> JMXHW7 <u>Cap </u><i><u>iA</u></i><i><u> </u></i><u>s 3 Ust of lanatiaac iii proceedings</u> 31MW1997 » CAP5B OFFICIAL LANGUAGES (TRANSLATION) RULES &gt; CAP SC fflGH COURT CIVIL PROCEDURE (USE OF L ANGUAGE) RULES ' Oiaplfr 6 BANKRUPTCY ORDINANCE</p><p>I Chaplif 7 LANDLORD AND TENANT (CONSOLIDATION) ORDINANCE</p><figure caption="Figure 1: Illustration of BLIS hierarchy"></figure><p>BLIS legal texts contains approximately 10 mil­lion English words and 18 million Chinese char­acters. Lexical resources of this kind are particu­larly useful in bilingual legal terminology studies and text alignment work.</p></subsection><subsection number="2.2" title="Text Hierarchy"><p>BLIS organizes the legal texts in terms of the hierarchy of the Loose-Leaf Edition of the Laws of Hong Kong. At the top level, the ordinances are arranged by chapters, each of which is identi­fied by an <i>assigned number </i>and a <i>short title, </i>e.g.,</p><p>Chapter 5 OFFICIAL LANGUAGES ORDINANCE /</p><p><i>%5m- të&amp;WiJcWM. </i>The assigned number for a subsidiary legislation chapter consists of a chap­ter number and a following uppercase letter, e.g.,</p><p>CAP 5C HIGH COURT CIVIL PROCEDURE (USE OF LANGUAGE)   RULES  / ®5C^ If SKKf ë</p><p>The content of an ordinance, exclusive of its long title, is divided and identified according to a very rigid numbering system which encodes the hierarchy of the texts of the laws. Both the Chi­nese and English versions of an ordinance fol­low exactly the same hierarchical structures such as chapters (3^), parts ($ß), sections (H), sub­sections (#0, paragraphs (K) and subparagraphs (ff).  This allows us to align the bitexts along<page local="3" global="73"/></p><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">mm</doubt><doubt alpha="36.8" length="38" tooSmall="False" monospace="0.0">wscwm ■ &amp;.&amp;&amp;mi¥'¥$kmmjk^bm :01/07/1997</doubt><doubt alpha="29.4" length="34" tooSmall="False" monospace="0.0">(2))S'B"«»^(l.ï1'J,    - LÏ.-t*ÏË-</doubt><doubt alpha="64.3" length="56" tooSmall="False" monospace="0.0">(5)«4fflsffl*e»'t3ffifflSKfr ■ ärfflÄ43-ffiasr£ig&gt;cSä* •</doubt><p>Use or language in Version 30/06/1997 proceedings Date:</p><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">Chinese</doubt><doubt alpha="61.9" length="21" tooSmall="False" monospace="0.0">Chapter:    5A Title:</doubt><p>Heading:</p><p>(1) A judge may use either or both of the official languages in any proceedings or a part of any proceedings before him as he considers appropriate for the just and expeditious disposal of the proceedings before him.</p><p>(2) The decision of thejudge under submle (1) is final.</p><p>(3) A party to or a witness in any proceedings or a part of any proceedings before the court may(a) use either or both of the official languages; and (b) address the court or testify in any language.</p><p>(4) A legal representative in any proceedings or a part of any proceedings before the court may use either or both of the official languages,</p><p><i>(5) </i>Documents prepared for use by the court in any proceedings may be in either official language.</p><figure caption="Figure 2: BLIS texts in pair"></figure><p>this hierarchical structure, once they are down­loaded from the BLIS official site. To our knowl­edge, a well-aligned bilingual corpus of this size covering a special domain so comprehensively is seldom readily available for the Chinese-English language pair.</p><p>Excerpts from the BLIS corpus are illustrated in Figure 1 and 2, one illustrating its hierarchy and the other a pair of BLIS bitexts. From the excerpts we can see that not everything has an exact match between a pair of BLIS Web pages. For example, the Chinese side has a gazette number "25 of 1998 s. 2" and a piece of "remarks" at the beginning of content text, whereas its English counterpart has none of them.</p></subsection></section><section number="3" title="Harvesting Bitexts from the Web"><p>Basically two phases are involved in construct­ing the bilingual corpus of the laws of HK. The first phase is to harvest the monolingual texts of HK laws from the BLIS site and align them into pairs. It involves the following steps: (1) down­loading Web pages one by one with the aid of a Web crawler, (2) extracting the texts from them by filtering out the HTML markup, and (3) align­ing the extracted monolingual texts into bilingual pairs. The second phase is to align finer-grained text structures within each text pair.</p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">Page</doubt><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">English</doubt><figure caption="Figure 3: BLIS web pages connected as two dou­ble linked lists"></figure><subsection number="3.1" title="Downloading BLIS Web Pages"><p>A BLIS Web page does not necessarily corre­spond to any particular text structure such as a chapter, a part, a section, a subsection, or a para­graph in the BLIS hierarchy. A chapter, espe­cially a short one, may be organized into a few sections in a Web page or in several contiguous pages. Some sections, e.g., the long ones, are di­vided into several pages. In general, BLIS does not maintain any reliable match between its Web pages and any particular text hierarchical struc­tures.</p><p>Fortunately, in most cases a BLIS page always has a counterpart in the other language. There is a "switch language" button on each page to link to the counterpart page. Such linkage allows us to download the Web pages in pairs and, conse­quently, harvest a list of page-to-page aligned bi-texts.</p><p>In addition to the pair link, each BLIS page also carries links for the "next" and the "previous sec­tion of enactment". These two kinds of linkage turn the pages into two double linked lists, each in a language, as illustrated in Figure 3, with each page as a node. Nodes in pairs are also double linked between the two lists.</p><p>However, the pairwise linkage is not reliable in the BLIS site, because there are missing Web pages in one of the two languages in question (see Table 3 below for more details). In order to download all bitexts of legislation from the site, we need to go through one linked list and down­load each page and its counterpart, if there is one, in the other language. Such scanning gives a list of text pairs, where some pages may have a null</p><p>DISTRICT COURT Gazette</p><p>CIVIL PROCEDURE Number: (GENERAL) (USE OF LANGUAGE) RULES<page local="4" global="74"/></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><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Page</p></td><td class="cell"><p></p></td><td class="cell"><p>Page</p></td><td class="cell"><p></p></td><td class="cell"><p>Page ^ Page ^ Page</p></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></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>é&gt;®</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Page</p></td><td class="cell"><p></p></td><td class="cell"><p>Page</p></td><td class="cell"><p></p></td><td class="cell"><p>Page ^ Page Page</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><td class="cell"></td></tr></table><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">Chinese</doubt><p>Total time    Downloaded files</p><p>Files English</p><doubt alpha="39.4" length="71" tooSmall="False" monospace="0.0">English 17 hours 50,638 (429MB) Chinese     18 hours     50,510 (460MB)</doubt><table caption="Table 1: File downloading"></table><p>counterpart. An alternative strategy is to down­load each list separately, and then match the pages into pairs sequentially with the aid of numbering information in the header of each page - see 3.2 below. These two strategies verify one another, making sure that all pages are downloaded and put in the right pairs.</p><p>The downloading is carried out by a Web crawler implemented in Java. In order to accom­plish the above strategies, it also has to handle a number of technical issues.</p><p>• It sleeps for a while (e.g., 10 seconds) when it finishes downloading a certain number of pages (e.g., 50 pages), because the BLIS site refuses continuous access from one site for a too long time.</p><p>• When an error occurs, it remembers the cur­rent URL. Then it re-starts from where it stops.</p><p>The data about the file downloading from BLIS site is given in Table 1. One can conceive that if the time intervals for sleep and downloading could be automatically tuned by the crawler to maximize the downloading efficiency, it would get the job done significantly more quickly. Our option for 10 seconds sleep between every 50 files is based on error records of a number of test runs.</p></subsection><subsection number="3.2" title="Aligning Web Pages"><p>Every BLIS Web page is identified by a subti­tle that carries numbering information about the page, as illustrated in Figure 1. Such a subtitle is exactly retained in the page as its HTML title.</p><doubt alpha="23.9" length="46" tooSmall="False" monospace="0.0">Aligned    50,506 (62.3MB)"    50,506 (38.5MB)</doubt><doubt alpha="30.8" length="39" tooSmall="False" monospace="0.0">Missing   132 4 Total     50,638 50,510</doubt><doubt alpha="43.2" length="37" tooSmall="False" monospace="0.0">Size*        10.4M words_18.3M char.s</doubt><p>"The size of extracted texts. *Exclusive of punctuation marks.</p><table caption="Table 3: The number of aligned and missing files"></table><p>This feature is utilized to align BLIS pages: all downloaded files are named in terms of the num­bering information extracted from their HTML ti­tles, as illustrated in Table 2. Consequently, all files are naturally aligned in pairs by their names. Any file names not in a pair indicate the missing counterparts in the other language. The statistics of file alignment are given in Table 3.</p></subsection><subsection number="3.3" title="Text Extraction"><p>Basically, this task involves two aspects, namely, filtering HTML markup and extracting content text. A straightforward strategy is that we first clean up HTML tags in each page and then the non-legal content. The tags are in brackets, and non-legal content in a consistent pattern through­out all BLIS pages. However, a more convenient way to do it is to make use of a reliable feature in the BLIS pages: legal content is placed in be­tween two - the only two - horizontal bars in each page. Accordingly, we implement a strategy to first extract every thing in between the two bars and then clean up remaining HTML tags. The output from this procedure includes</p><p>• a header as a fixed set of items, including chapter number, title, heading, etc., and</p><p>• a piece of content text as a list of numbered items each in a line. (See the header and con­tent text in Figure 2.)</p><p>The text in a BLIS page is displayed as a sequence of hierarchically numbered items, such as subsec­tions, paragraphs and subparagraphs.</p></subsection><subsection number="3.4" title="Text Alignment within Text Pairs"><p>After page (or file) alignment, each page finds its counterpart in the other language. After text ex­traction, a page gives a content text consisting of a list of numbered items, each in a line. A such<page local="5" global="75"/></p><table caption="Table 2: Naming downloaded files in terms of BLIS numbering" class="main" frame="box" rules="all" border="0" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>File</p></td><td class="cell"><p>name</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>BLIS HTML page title</p></td><td class="cell"><p>Chinese</p></td><td class="cell"><p>English</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Cap 5A ...</p></td><td class="cell"><p>5A_c.txt</p></td><td class="cell"><p>5A_e.txt</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Cap 5A s 1 ...</p></td><td class="cell"><p>5A-1_c.txt</p></td><td class="cell"><p>5A-1_e.txt</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Cap 5A s 2 ...</p></td><td class="cell"><p>5A-2_c.txt</p></td><td class="cell"><p>5A-2_e.txt</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Cap 5A s 3 ...</p></td><td class="cell"><p>5A-3_c.txt</p></td><td class="cell"><p>5A-3_e.txt</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></tr></table><p>Remarks:</p><doubt alpha="66.2" length="65" tooSmall="False" monospace="0.0">Adaptation amendments retroactively made - see 26 of  1999 s.3//°</doubt><p>(1) All Ordinances shall be enacted and published in both official languages.//</p><p>(2) Nothing in subsection  (1)   shall require an Ordinance to be enacted and published in both official languages where that Ordinance amends another Ordinance and-//</p><p>(a) that other Ordinance was enacted in the English language only; and//</p><p>(b) no authentic text of that Ordinance has been published in the Chinese language under section 4B(1).//</p><p>(3) Nothing in subsection  (1)   shall require an Ordinance to be enacted and published in both official languages where the Chief Executive in Council-   (Amended 26 of 1999 s.3)//</p><p>"Indicating a text line break.</p><table caption="Table 4: Anchors in a sample text"></table><p>item can be divided into a numbering item and the remaining content text in the line, as illustrated in Table 4. The Chinese counterpart of this text car­ries similar lines, if no missing line in any page of the pair.</p><p>Unfortunately, missing lines are found in some BLIS pages, as exemplified in Figure 2. There is no guarantee that matching text lines one by one in sequence would carry out the expected align­ment within a page pair. However, the numbering items at the beginning of each line can be utilized as <i>anchors </i>to facilitate the alignment. The strat­egy along this line is given as follows.</p><p>1. Anchor identification: numbering items <i>at the beginning of each line </i>are recognized as anchors, with the beginning and the end of the whole content text as two special an­chors, resulting in a list of anchors for each page;</p><p>2. Anchor alignment: match the two lists ofan-chors sequentially. If a pair of anchors does not match, give up the smaller one (in terms of the BLIS numbering hierarchy) and move on to the next possible pair, working in ex­actly the same procedure as matching iden­tical anchor pairs between two sorted lists of anchors.</p><p>3. Text line alignment: a pair of matched an­chors give a pair of matched lines; an un­matched anchor indicates a missing line in the other language.</p></subsection></section><section number="4" title="XML Markup for the Aligned Corpus"><p>XML is applied to encode the text alignment outcomes output from the above alignment pro­cedure. It has been a standard for data repre­sentation and exchange on the Web, and also accepted by the NLP community as a standard for linguistic data annotation and representation (Ide et al., 2000; Mengel and Lezius, 2000; Kim et al., 2001). There are a series of yearly NLPXML workshops for it since 2001. It pro­vides a platform-independent flexible and sophis­ticated plain text format for data encoding and manipulation. It is particularly suitable for hier­archical linguistic data such as the hierarchically-aligned bilingual corpus that we have produced. What's more, converting data to XML format not only significantly reduces the complexity of data exchange among different computer systems but also enhances data transmission reliability and eases Web browsing.</p><p>There have been many corpora that are anno­tated with XML, e.g., HCRC Map Task Corpus (Anderson et al., 1991), American National Cor­pus (Ide and Macleod, 2001), the La Republica corpus (Baroni et al., 2004). Below we present the XML schema for our subparagraph-aligned BLIS bitexts, with sample annotation, and nec­essary Web browsing.</p><subsection number="4.1" title="XML Schema"><p>The current version of the XML schema for the bilingual BLIS corpus, as given in Figure 4, fo­cuses on encoding all text structures in the BLIS hierarchy, including all elements in each BLIS Web page. It is to be extended to cover finer-grained structures such as clauses, phrases and words, as we proceed to align the BLIS bitexts at these linguistic levels. For simplicity, we al­low para to subsume all types of text line, be they a section, subsection, paragraph or subpara­graph. The annotation of a sample bitext with this schema is illustrated in Figure 5. Annotation of this kind is carried out by a Java program auto­matically for the entire bitext corpus.</p></subsection><subsection number="4.2" title="Corpus Browsing"><p>A number of display modes are designed for browsing the subparagraph-aligned bitexts, in­cluding bilingual modes and monolingual modes.</p><page local="6" global="76"/><doubt alpha="50.8" length="132" tooSmall="True" monospace="0.0">;:.;.nC1n:':::.':;::&gt; ■"' ■:: ■ &lt;xs:scheina (!ir:lrin:KJ-"htt;p://iMvn,j.n3.org/2001/XMLSchema"&gt;- &lt;ks: coinple^Type name-'paraType"?</doubt><doubt alpha="60.0" length="15" tooSmall="True" monospace="0.0">- «s; sequence?</doubt><doubt alpha="71.0" length="200" tooSmall="True" monospace="0.0">&lt;üs;element rarne-'sourceValue"type-'xs:string"ininGccurs-'O" /?&lt;üs ; element name-"target Value"ty;:^- Ks:string"minOccurs-'u" /?&lt;/xs;sequence? &lt;/xsicomplexType&gt; ■ &lt;ni:sin"i;jieïyp3narne="docidType"?</doubt><doubt alpha="70.6" length="34" tooSmall="True" monospace="0.0">- &lt;xs:rsstnction base="ns:string"?</doubt><doubt alpha="55.9" length="111" tooSmall="True" monospace="0.0">&lt;xs: pattern value="[0-9]{4}-[n-9K4}" /&gt; &lt;/xs: restriction? &lt;/xs:simpleType&gt; ■■ &lt;^s:cümple:&lt;Type name-'header"?</doubt><doubt alpha="69.1" length="259" tooSmall="True" monospace="0.0">- &lt;xs:sequence? it name-'sourceLabel"type-'xs:string" /&gt;it- ■ ;: :■-"target La bel11iyrjrr-'xsistring" /?it rame-'value"type-"xs:string"minOccurs-'G" /&gt;it name-'sourceValue"type-"xs:string"minOccurs-'G" /&gt;it name-'targetValue"type-"xs:string"rninOccurs-'D" /?</doubt><doubt alpha="68.3" length="63" tooSmall="True" monospace="0.0">&lt;/xs:sequf)nce&gt; =;/xs:complexType? «s: element name-'biCorpus"?</doubt><doubt alpha="70.0" length="30" tooSmall="True" monospace="0.0">- &lt;xs:complexType? - sequence?</doubt><doubt alpha="67.7" length="65" tooSmall="True" monospace="0.0">- &lt;xs:element name-"document"?■■ &lt;xs:complexType? - &lt;xs:sequence?</doubt><doubt alpha="45.5" length="11" tooSmall="True" monospace="0.0">: a erne':■</doubt><doubt alpha="0.0" length="4" tooSmall="True" monospace="0.0">:: ,</doubt><doubt alpha="63.9" length="36" tooSmall="True" monospace="0.0">■. ; 3 -xs:eeme xs:e erne ixsicsrrip</doubt><doubt alpha="55.6" length="27" tooSmall="True" monospace="0.0">nama-narna: name-r\:-.&lt;r\?,</doubt><doubt alpha="100.0" length="5" tooSmall="True" monospace="0.0">narne</doubt><doubt alpha="65.9" length="167" tooSmall="True" monospace="0.0">'chapter"type-'header" /? 'title"type-'header" /&gt;!gazettePJD"iyus-'header" ./&gt; 'article"type-'header" /&gt; 'heading"type-'header" /&gt; 'verdate"type-'header" /&gt; 'content"?</doubt><p>n<b>.=iCi"iS</b>--,:para" type="paraType" in^xuccurs-'unbc-unded" <i>j&gt;</i> &lt;j;s:attribute natts-'Nn" "y;&gt;;-"docidType" use-'required" /&gt; &lt;j;s:attribute na:Ti5="sourceLanguage" type="jts:string" ..i:"j=="required" <i>j-, </i>attribute nama-'targetLanguage" type-'xs:string" use-'required" /?</p><doubt alpha="83.3" length="6" tooSmall="True" monospace="0.0">xType?</doubt><doubt alpha="16.7" length="18" tooSmall="True" monospace="0.0">:1-".ii;;:.:,-;"S&gt;</doubt><doubt alpha="68.1" length="94" tooSmall="True" monospace="0.0">&lt;/üs:tornpleüType&gt; ^/xs': element?&lt;/üs: sequence? &lt;/xs:complextype&gt; &lt;/üs:elernent? &lt;As:schema&gt;</doubt><figure caption="Figure 4: XML schema for aligned BLIS bitexts"></figure><p>In a bilingual mode, text line pairs are displayed in sequence. Switch of language order or from one mode to another is allowed any time during browsing. The bilingual display mode is illus­trated in Figure 6.</p></subsection></section><section number="5" title="Conclusion"><p>We have presented in the above sections our re­cent work on harvesting and aligning the bitexts of the laws of Hong Kong, including basic tech­niques for downloading English-Chinese bilin­gual legal texts from BLIS official site, sound strategies for aligning the bitexts by utilizing the numbering system in the legal texts, and neces­sary XML annotation for the alignment results. The value ofthe outcomes, i.e., the subparagraph-aligned bilingual corpus, can be evaluated in terms ofthe following aspects.</p><p><b>Corpus size </b>The entire corpus is of 10.4M En­glish words and 18.3M Chinese characters, several times larger than the well-known Penn Treebank Corpus in size.</p><doubt alpha="69.2" length="13" tooSmall="True" monospace="0.0">- &lt;gazetteNo&gt;</doubt><doubt alpha="30.0" length="40" tooSmall="True" monospace="0.0">'       :::&gt;GazHî1:B dumber-::/.: .: : &gt;</doubt><p>&lt;taraetLaaei<b>&gt;£ftSS</b>&lt;/targetLaBei&gt; &lt;sourceValue&gt;(4) To draw up and introduce budgets and final &lt;targetValue?(0)S4<b>(Më</b>(llitS!SS. ftS; &lt;/targetValue? &lt;/para&gt; &lt;sourceValue&gt;(5) To draft and introduce bills, motions and subordinate legislation; and&lt;/sourceValue&gt; &lt;tarcetvalu8&gt;(5) <b>S£Mëfhâ£.</b><b>        PfiSäl; </b><i>&lt;/V?j^^b&gt; </i>&lt;/para? - &lt;para?</p><doubt alpha="75.0" length="32" tooSmall="True" monospace="0.0">ïisourceValue /&gt; &lt;targetValue /&gt;</doubt><doubt alpha="63.6" length="11" tooSmall="True" monospace="0.0">- &lt;article&gt;</doubt><doubt alpha="83.9" length="62" tooSmall="True" monospace="0.0">&lt;sourceLabel?Article&lt;/sourcel_abel? &lt;targetLabebl&lt;/targetLabeb</doubt><doubt alpha="70.0" length="10" tooSmall="True" monospace="0.0">&lt;/article&gt;</doubt><doubt alpha="72.7" length="11" tooSmall="True" monospace="0.0">- sheading?</doubt><doubt alpha="38.9" length="18" tooSmall="True" monospace="0.0">■:-;Hsading&lt;-/: ..</doubt><doubt alpha="77.8" length="45" tooSmall="True" monospace="0.0">&lt;targetLabebrlSSl&lt;/targ3tLab3b «ourceValue /&gt;</doubt><doubt alpha="40.0" length="10" tooSmall="False" monospace="0.0">ts\IÉ. : &gt;</doubt><doubt alpha="70.0" length="10" tooSmall="True" monospace="0.0">^/heading?</doubt><doubt alpha="63.6" length="11" tooSmall="True" monospace="0.0">- &lt;verdate&gt;</doubt><doubt alpha="40.0" length="30" tooSmall="True" monospace="0.0">I: Versian Oatn    '      ■ :;</doubt><doubt alpha="81.8" length="33" tooSmall="True" monospace="0.0">&lt;targetLabel&gt;K£EIJ8k/targetLabel&gt;</doubt><doubt alpha="46.8" length="47" tooSmall="True" monospace="0.0">&lt;',,-:!,js&gt;01/07/1997i:/value?Verdate?&lt;content&gt;</doubt><doubt alpha="81.3" length="91" tooSmall="True" monospace="0.0">&lt;50urceValue?Article 62 The Government of the Hong Kong Special Administrative Region shall</doubt><doubt alpha="74.6" length="114" tooSmall="True" monospace="0.0">following powers and functions :&lt;/sourceValue&gt; &lt;targ8tValu8&gt;**+:HitrSr#S(fîSISJttfîffiT?(li=&lt;/targatValue? &lt;/para&gt;</doubt><doubt alpha="78.4" length="111" tooSmall="True" monospace="0.0">&lt;sourceValue?(l) To formulate and implement policiesj^/snurcevalue? &lt;targetValua?(-) HSMÉttfrSS; &lt;/targetValua?</doubt><doubt alpha="75.0" length="56" tooSmall="True" monospace="0.0">&lt;ïi'jurcevj!LiH&gt;(2) To conduct administrative affairs■ &gt;</doubt><doubt alpha="68.0" length="50" tooSmall="True" monospace="0.0">&lt;targetValue?(r) ^S&amp;Sfî&amp;ÏÏÈ;&lt;/targetValue&gt; &lt;/para&gt;</doubt><doubt alpha="80.0" length="105" tooSmall="True" monospace="0.0">&lt;saurceva!LN3&gt;(3) To conduct external affairs as authorized by the Central People's Government under this</doubt><doubt alpha="63.4" length="93" tooSmall="True" monospace="0.0">La w ;&lt;/'.■ ource Value? &lt;îargetValue?(H) 8ta*ftS*ft!l'r,*ÀFSS!)ffë«ft!lîi*rï«:&lt;/targetValus?</doubt><doubt alpha="80.5" length="133" tooSmall="True" monospace="0.0">&lt;sourceValue&gt;(6) To designate officials to sit in on the meetings of the Legislative Council and to speak on behalf of the government</doubt><doubt alpha="82.7" length="52" tooSmall="True" monospace="0.0">&lt;targetValue&gt;(A)^SÈSflJSiâtMftSRJrtSÈ.&lt;/targetValue&gt;</doubt><doubt alpha="55.0" length="20" tooSmall="True" monospace="0.0">'-'./'jïlyrTÎSîîï.'»</doubt><figure caption="Figure 5: Sample bitext in XML encoding"></figure><p><b>Translation quality </b>All texts of the corpus are prepared by the Law Drafting Division of the Department of Justice, Hong Kong Gov­ernment. Legal texts are known to be more precise and less ambiguous than most other types of text.</p><p><b>Specificity and comprehensiveness </b>The corpus covers specifically the domain of Hong Kong legislation. It is the most authoritative and complete text collection of the laws of Hong Kong.</p><p><b>Alignment granularity </b>The entire corpus is aligned precisely to the subparagraph level. Most subparagraphs in the legal texts are phrases, fragments of a clause, or clauses; as shown in Table 4.</p><page local="7" global="77"/><p>A bilingual corpus of this size and quality cov­ering a specific domain so comprehensively is particularly useful not only in empirical MT re­search but also in computational studies of bilin­gual terminology and legislation. Our future work will focus on word alignment for inferring bilin­gual lexical resources and on automatic recogni­tion of legal terminology.</p><p>Also, our experience in constructing this bilin­gual corpus has laid a foundation for us to con­tinue to harvest more bilingual text materials from the Web, e.g., from Hong Kong government's Web sites. We find that almost all Hong Kong government web sites, which are in large num­bers, maintain their Web pages consistently par­allel in English and Chinese. We are not sure if such bitexts in such pages are larger than that in the BLIS site in volume. We do know they cover a large number of distinct domains. This is partic­ularly useful for MT. If we can harvest and align the bitexts from such Web pages efficiently via utilizing their intrinsic characteristics of URL cor­respondence and text structure, it would not be a dream any more to put an end to the time of hav­ing too few existing translation materials for em­pirical MT studies, at least, for the language pair of Chinese and English.</p></section><section title="Acknowledgements"><p>The work described in this paper was supported by the Research Grants Council of HKSAR, China, through the CERG grants 9040861 and 9040482. We wish to thank our team members for their help.</p><table caption="Figure 6: Illustration of browsing modes" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Implorer \^][</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Fils Edit Viaw Favorites TcgIs Help</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>a</p><p>Chuter ljOTFMRmTION AND GENERAL 1</p></td><td class="cell"><p>biCorpus cCorpus eCorpus</p><p>Chapten <b>1</b></p><p>Tili?: iiiiTtîïPRI  ■   <i>'Mi </i>AMD GEMER.',   UUSES OKDiNANC   <i>W&amp;'M^ ; </i>Gazette Numhei : Heading; Long title ( <i>M ) </i>Version Date: 30/06/1997</p><p>To consolidate and amend the law relating to the construction, appll:aticn and Interpretation of la», to make general provisions with regard thereto, to detine terms and expressions used in laws and public documents, to make- general provision with regard to public officers, public contracts and civil and criminal proceedings and for purposes and for matters incidental thereto or connected therewith</p><p>4!fflS<b>*Si</b>«s«MSSM«l. IM. f»ïB«&gt; MIKE«!«!!.«:. St»'*;;</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>CLAUSES ORDINANCE</p><p>Cap 1 Long title</p><p>PflRT I SHORT TITLE AND APPLICATION CaolslShott title Carj 1 s2 Arjvjlication</p><p>FART il INTLRPREÏATION 0? vVÜRD;" AÏÏD EXPRESSIONS</p><p>"     ' !"' ":. fi.:</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>.                                ■   .■./ ..</p></td><td class="cell"><p>■)îtn*i)SS»r«:Tii, sriEM-isiÀ». <i>mm-ms-à®. mmwîmr-Wfjo </i><i>sa</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>; .                           ■ .</p><p><b>..' ! . :I. ■ . ■'. ■.: .....■   :' \:</b></p></td><td class="cell"><p>Sàâ*iI#;!JâiSÏSi»ï«iîîlS(îil!|i:ïS!ï-''*ifï.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>". ■   ■::   ■<footnote anchor="1"/> <footnote anchor="1"/> <footnote anchor="1"/> ■  ■ ........ <b><i>!■'?&lt;</i></b></p><p>■■■■ ........ ■</p></td><td class="cell"><p><b>[31 </b>December <b>1966] </b>L,N <b>88of1966</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>oost</p><p>■.........</p></td><td class="cell"><p>[1<b>966</b>^2fi <b>31 </b>3 ! 1<b>966^s</b>?8<b>®rÉM</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>"</p><p>FART IIA GENERAL FRC'SONS AS TO LAWS IN BOTH OFFICIAL LANGUAGES SelÄf^ it t <b>t </b>F dit II</p><p>.   : :.     ■   / ■ ■     . .. "■■</p></td><td class="cell"><p>(Originally <b>31 of 1966) («1916Ö3B«)</b></p></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"></td></tr><tr class="row"><td class="cell"></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>FART HI 'JEjNEHAL PROVISIONS AS TO ORDINANCES</p><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>.'. -, . ;</p><p>Cap 1 s 14rRepealecfi</p><p><i>M</i></p></td><td class="cell"><p></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></tr></table></section><references><p>Anne H. Anderson, Miles Bader, Ellen G. Bard, Eliz­abeth Boyle, Gwyneth Doherty, Simon Garrod, Stephen Isard, Jacqueline Kowtko, Jan McAllis­ter, Jim Miller, Catherine Sotillo, Henry Thompson, and Regina Weinert. 1991. The HCRC map task corpus. <i>Language and Speech, </i>34(4):351-366.</p><p>Marco Baroni, Silvia Bernardini, Federica Comastri, Lorenzo Piccioni, Alessandra Volpi, Guy Aston, and Marco Mazzoleni. 2004. Introducing the La Repubblica corpus: A large, annotated, TEI(XML)-compliant corpus of newspaper Italian. In <i>LREC 2004, </i>pp. 1771-1774.</p><p>Simon P. Botley, Anthony M. McEnery, and Andrew Wilson (eds.). 2000. <i>Multilingual Corpora in Teaching and Research. </i>Amsterdam: Rodopi.</p><p>Peter F. Brown, Stephen A. Della Pietra, Vincent J. Della Pietra, and Robert L. Mercer. 1993. The mathematics of statistical machine translation: Pa­rameter estimation. <i>Computational Linguistics, </i>19(2):263-311.</p><doubt alpha="66.7" length="45" tooSmall="False" monospace="0.0">Michael Carl and Andy Way (eds.). 2003.Recent</doubt><p><i>Advances in Example-based Machine Translation. </i>Dordrecht: Kluwer.</p><p>Jiang Chen and Jian Y. Nie. 2000. Parallel Web text mining for cross-language information retrieval. In <i>RIAO'2000, </i>pp. 62-77. Paris.</p><p>Mark Davis and Ted Dunning. 1995. A TREC evalu­ation of query translation methods for multi-lingual text retrieval. In <i>TREC-4, </i>pp. 483-498. NIST.</p><p>Jarle Ebeling. 1998. Contrastive linguistics, transla­tion, and parallel corpora. In <i>Meta, </i>43(4):602-615.</p><p>William A. Gale and Kenneth W. Church. 1991. Iden­tifying word correspondences in parallel texts. In <i>Fourth DARPA Workshop on Speech and Natural Language, </i>pp. 152-157. Asilomar, California.</p><p>William A. Gale and Kenneth W. Church. 1991b. A Program for Aligning Sentences in Bilingual Cor­pora. In<i>ACL'91, </i>pp. 177-184. Berkeley.</p><p>Nancy Ide, Patrice Bonhomme, and Laurent Romary.</p><p>2000. XCES: an XML-based encoding standard for linguistic corpora. In <i>LREC2000, </i>pp. 825-830. Athens, Greece.</p><page local="8" global="78"/><p>Nancy Ide and Catherine Macleod. 2001. The Amer­ican National Corpus: A Standardized Resource of American English. <i>Proceedings of Corpus Linguis­tics 2001, </i>Lancaster UK.</p><p>Adam Kilgarriff and Gregory Grefenstette. 2003. In­troduction to the Special Issue on the Web as Cor­pus. <i>Computational Linguistics, </i>29(3):333-347.</p><p>Jin-Dong Kim, Tomoko Ohta, Yuka Tateisi, Hideki Mima and Jun'ichi Tsujii. 2001. XML-based lin­guistic annotation of corpus. In <i>NLPXML-1</i>, pp. 47­54. Tokyo.</p><p>I. Dan Melamed. 1997. Automatic discovery of non-compositional compounds in parallel data. In <i>EMNLP'97, </i>pp. 97-108. Brown University, Au­gust.</p><p>I. Dan Melamed. 2000. Models oftranslational equiv­alence among words. <i>Computational Linguistics, </i>26(2):221-249.</p><p>Andreas Mengel and Wolfgang Lezius. 2000. An XML-based representation format for syntactically annotated corpora. In <i>LREC2000, </i>Volume 1, pp. 121-126. Athens, Greece.</p><p>Makoto Nagao. 1984. A framework of a mechanical translation between Japanese and English by anal­ogy principle. <i>Artificial and Human Intelligence, </i>pp. 173-180. Amsterdam: North-Holland.</p><p>Jian Y. Nie and Jian Cai. 2001. Filtering noisy paral­lel corpora of Web pages. In <i>IEEE Symposium on Natural Language Processing and Knowledge En­gineering, </i>pp. 453-458. Tucson, AZ.</p><p>Jian Y. Nie and Jiang Chen. 2002. Exploiting the Web as Parallel Corpora for Cross-Language Infor­mation Retrieval. <i>Web Intelligence, </i>pp. 218-239.</p><p>Philip Resnik, Mari B. Olse, and Mona Diab. 1999. The Bible as a parallel corpus: Annotating the "Book of 2000 Tongues". <i>Computers and the Hu­manities, </i>33(1-2):129-153.</p><p>Philip Resnik. 1999b. Mining the Web for Bilingual Text. In <i>ACL '99, </i>pp. 527-534. Mailand.</p><p>Philip Resnik and Noah A. Smith. 2003. The Web as a Parallel Corpus.  <i>Computational Linguistics,</i> 29(3):349-380.</p><p>Raphael Salkie. 1995. INTERSECT: a parallel cor­pus project at Brighton University. <i>Computers and Texts 9 </i>(May 1995), pp. 4-5.</p><p>Jean Veronis. 2000. <i>Parallel Text Processing. </i>Dor­drecht: Kluwer.</p><doubt alpha="61.5" length="39" tooSmall="False" monospace="0.0">Andy Way and Nano Gough.   2003. wEBMT:</doubt><p>Developing and validating an example-based ma­chine translation system using the World Wide Web. <i>Computational Linguistics, </i>29(3):421-457.</p><p>Dekai Wu. 1994. Aligning a parallel English-Chinese corpus statistically with lexical criteria. In <i>ACL'94, </i>pp. 80-87. Las Cruces, New Mexico, U.S.A.</p></references></body></article>