Benjamin Aw
Add updated pkl file v3
6fa4bc9
{
"paper_id": "W02-0110",
"header": {
"generated_with": "S2ORC 1.0.0",
"date_generated": "2023-01-19T05:14:37.568371Z"
},
"title": "Formal Language Theory for Natural Language Processing",
"authors": [
{
"first": "Shuly",
"middle": [],
"last": "Wintner",
"suffix": "",
"affiliation": {
"laboratory": "",
"institution": "University of Haifa",
"location": {
"postCode": "31905",
"settlement": "Haifa",
"country": "Israel"
}
},
"email": "[email protected]"
}
],
"year": "",
"venue": null,
"identifiers": {},
"abstract": "This paper reports on a course whose aim is to introduce Formal Language Theory to students with little formal background (mostly linguistics students). The course was first taught at the European Summer School for Logic, Language and Information to a mixed audience of students, undergraduate, graduate and postgraduate, with various backgrounds. The challenges of teaching such a course include preparation of highly formal, mathematical material for students with relatively little formal background; attracting the attention of students of different backgrounds; preparing examples that will emphasize the practical importance of material which is basically theoretical; and evaluation of students' achievements.",
"pdf_parse": {
"paper_id": "W02-0110",
"_pdf_hash": "",
"abstract": [
{
"text": "This paper reports on a course whose aim is to introduce Formal Language Theory to students with little formal background (mostly linguistics students). The course was first taught at the European Summer School for Logic, Language and Information to a mixed audience of students, undergraduate, graduate and postgraduate, with various backgrounds. The challenges of teaching such a course include preparation of highly formal, mathematical material for students with relatively little formal background; attracting the attention of students of different backgrounds; preparing examples that will emphasize the practical importance of material which is basically theoretical; and evaluation of students' achievements.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Abstract",
"sec_num": null
}
],
"body_text": [
{
"text": "Computational linguistics students typically come from two different disciplines: Linguistics or Computer Science. As these are very different paradigms, it is usually necessary to set up a common background for the two groups of students. One way to achieve this goal is by introducing the core topics of one paradigm to students whose background is in the other. This paper reports on such an experiment: teaching Formal Language Theory, a core computer science subject, to students with no background in computer science or mathematics. The course was first taught at the 13th European Summer School in Logic, Language and Information (Helsinki, Finland) in the summer of 2001.",
"cite_spans": [
{
"start": 638,
"end": 657,
"text": "(Helsinki, Finland)",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "While formal language theory is not a core computational linguistics topic, it is an essential prerequisite for a variety of courses. For example, regular expressions and finite-state technology are instrumental for many NLP applications, including morphological analyzers and generators, part-of-speech taggers, shallow parsers, intelligent search engines etc. The mathematical foundations of context-free grammars are necessary for a thorough understanding of natural language grammars, and a discussion of the Chomsky hierarchy is mandatory for students who want to investigate more expressive linguistic formalisms such as unification grammars.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "The motivation for teaching such a course to students with no background in formal methods, especially linguists, stems from the observation that many students with background in linguistics are interested in computational linguistics but are overwhelmed by the requirements of computational linguistics courses that are designed mainly for computer science graduates. Furthermore, in order to establish a reasonable level of instruction even in introductory computational linguistics courses, I found it essential to assume a firm knowledge of basic formal language theory. This assumption does not hold for many non-CS gradutes, and the course described here is aimed at such students exactly.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "The challenges of teaching such a course are many. Teaching at the European Summer School is always a challenge, as this institution attracts students from a variety of disciplines, and one never knows what background students in one's class will have. In this particular case, the course was advertised as a foundational computation course. Foundational courses presuppose absolutely no background knowledge, and should especially be accessible to people from other disciplines. The material had to be prepared in a way that would make it accessible to students of linguistics, for example, who might possess no knowledge of mathematics beyond highschool level.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "Another characteristic of the European Summer Schools is that the students' education levels vary greatly. It is not uncommon to have, in one class, undergraduate, graduate and post-graduate students. This implies that the level of addressing the class has to be very delicately determined: it is very easy to bore most students or to speak over their heads. An additional difficulty stems from the fact that while the language of instruction at the Summer School is English, most participants (students and lecturers alike) are not native speakers of English.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "Undoubtedly the greatest challenge was to prepare the course in a way that will attract the attention of the class. Formal language theory is a highly theoretical, mostly mathematical subject. Standard textbooks (Hopcroft and Ullman, 1979; Harrison, 1978) present the material in a way that will appeal to mathematicians: very formal, with one subject built on top of its predecessor, and with very formal (if detailed) examples. Even textbooks that aim at introducing it to non-mathematicians (Partee et al., 1990) use mostly examples of formal (as opposed to natural) languages. In order to motivate the students, I decided to teach the course in a way that emphasizes natural language processing applications, and in particular, to use only examples of natural languages.",
"cite_spans": [
{
"start": 212,
"end": 239,
"text": "(Hopcroft and Ullman, 1979;",
"ref_id": "BIBREF1"
},
{
"start": 240,
"end": 255,
"text": "Harrison, 1978)",
"ref_id": "BIBREF0"
},
{
"start": 494,
"end": 515,
"text": "(Partee et al., 1990)",
"ref_id": "BIBREF2"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "While this paper focuses on a particular course, taught at a particular environment, I believe that the lessons learned while developing and teaching it are more generally applicable. A very similar course can be taught as an introduction to NLP classes in institutions whose majority of students come from computer science, but who would like to attract linguistics (and other non-CS) graduates and provide them with the necessary background. I hope that the examples given in the paper will prove useful for developers of such courses. More generally, the paper demonstrates a gentle approach to formal, mathematical material that builds on terminology familiar to its audience, rather than use the standard mathematical paradigm in teaching. I believe that this approach can be useful for other courses as well.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Overview",
"sec_num": "1"
},
{
"text": "Courses at the Summer School are taught in sessions of 90 minutes, on a daily basis, either five or ten days. This course was taught for five days, totaling 450 minutes (the equivalent of ten academic hours, approximately one third of the duration of a standard course). However, the daily meetings eliminate the need to recapitulate material, and the pace of instruction can be enhanced.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "I decided to cover a substantial subset of a standard Formal Language Theory course, starting with the very basics (e.g., set theory, strings, relations etc.), focusing on regular languages and their computational counterpart, namely finite-state automata, and culminating in context-free grammars (without their computational device, push-down automata). I sketch the structure of the course below.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "The course starts with a brief overview of essential set theory: the basic notions, such as sets, relations, strings and languages, are defined. All examples are drawn from natural languages. For example, sets are demonstrated using the vowels of the English alphabet, or the articles in German. Set operations such as union or intersection, and set relations such as inclusion, are demonstrated again using subsets of the English alphabet (such as vowels and consonants). Cartesian product is demonstrated in a similar way (example 1) whereas relations, too, are exemplified in an intuitive manner (example 2). Of course, it is fairly easy to define strings, languages and operations on strings and languages -such as concatenation, reversal, exponentiation, Kleene-closure etc. -using natural language examples.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "The second (and major) part of the course discusses regular languages. The definitions of regular expressions and their denotations are accompanied by the standard kind of examples (example 3). After a brief discussion of the mathematical properties of regular languages (in particular, some closure properties), finite-state automata are gently introduced. Following the practice of the entire course, no mathematical definitions are given, but a rigorous textual description of the concept which is accompanied by several examples serves as a substitute to a standard definition. Very simple automata, especially extreme cases (such as the automata accept-Example 1 Cartesian product Let be the set of all the vowels in some language and \u00a1 the set of all consonants. For the sake of simplicity, take to be \u00a2 a, e, i, o, u\u00a3 and \u00a1 to be \u00a2 b, d, f, k, l, m, n, p, s, Note that w is deterministic: for any state and alphabet symbol there is at most one possible transition.",
"cite_spans": [
{
"start": 839,
"end": 865,
"text": "b, d, f, k, l, m, n, p, s,",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "\u00a2 \u00a6 \u00a5 \u00a7 \u00a9 \u00a9 \u00a5 \u00a9 \u00a9 \u00a5 \u00a9 ! \u00a9 \u00a5 \" # \u00a9 $ \u00a6 \u00a9 \u00a5 & % ' \u00a9 $ ( \u00a9 \u00a5 0 ) 1 \u00a9 3 2 4 \u00a9 \u00a5 0 ) \u00a9 !",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "is not deterministic: the initial state has three outgoing arcs all labeled by y . The third automaton, I , has -arcs and hence is not deterministic. While might be the most readable, w is the most compact as it has the fewest nodes.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "ing concatenation and union. Finally, automata are shown to be a natural representation for dictionaries and lexicons (example 5).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "This part of the course ends with a presentation of regular relations and finite-state transducers. The former are shown to be extremely common in natural language processing (example 6). The latter are introduced as a simple extension of finite-state automata. Operations on regular relations, and in particular composition, conclude this part (example 7).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "The third part of the course deals with context-free grammars, which are motivated by the inability of regular expressions to account for (and assign structure to) several phenomena in natural languages. Example 8 is the running example used throughout this part.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "Basic notions, such as derivation and derivation Example 5 Dictionaries as finite-state automata Many NLP applications require the use of lexicons or dictionaries, sometimes storing hundreds of thousands of entries. Finite-state automata provide an efficient means for storing dictionaries, accessing them and modifying their contents. To understand the basic organization of a dictionary as a finite-state machine, assume that an alphabet is fixed (we will use T @ D \u00a2 a, b, 7 8 7 8 7 , z\u00a3 in the following discussion) and consider how a single word, say go, can be represented. As we have seen above, a na\u00efve representation would be to construct an automaton with a single path whose arcs are labeled by the letters of the word go: y $",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "To represent more than one word, we can simply add paths to our \"lexicon\", one path for each additional word. Thus, after adding the words gone and going, we might have:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "y $ p y y $ p 2 y $",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "This automaton can then be determinized and minimized:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "p y y $ p 2",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "With such a representation, a lexical lookup operation amounts to checking whether a word is a member in the language generated by the automaton, which can be done by \"walking\" the automaton along the path indicated by . This is an extremely efficient operation: it takes exactly one \"step\" for each letter of . We say that the time required for this operation is linear in the length of . T is a set of part-of-speech and morphological tags, including \u00a2 - PRON, Finally, consider the relation that maps every English noun in singular to its plural form. While the relation is highly regular (namely, adding \"s \" to the singular form), some nouns are irregular. Some instances of this relation are: cat hat ox child mouse sheep cats hats oxen children mice sheep language phenomena, including subject-verb agreement, verb subcategorization, etc. Finally, some mathematical properties of context-free languages are discussed. The last part of the course deals with questions of expressivity, and in particular strong and weak Note that the terminal symbols correspond to words of English, and not to letters as was the case in the previous chapter.",
"cite_spans": [
{
"start": 457,
"end": 462,
"text": "PRON,",
"ref_id": null
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "generative capacity of linguistic formalism. The Chomsky hierarchy of languages is defined and explained, and substantial focus is placed on determining the location of natural languages in the hierarchy. By this time, students will have obtained a sense of the expressiveness of each of the formalisms discussed in class, so they are more likely to understand many of the issues discussed in Pullum and Gazdar (1982) , on which this part of the course is based. The course ends with hints to more expressive formalisms, in particular Tree-Adjoining Grammars and various unification-based formalisms.",
"cite_spans": [
{
"start": 393,
"end": 417,
"text": "Pullum and Gazdar (1982)",
"ref_id": "BIBREF3"
}
],
"ref_spans": [],
"eq_spans": [],
"section": "Structure of the course",
"sec_num": "2"
},
{
"text": "While the Summer School does not conduct teaching evaluations, I felt that it would be useful to receive feedback from participants of the course. To this end, I designed a standard teaching evaluation form and asked students to fill it in on the last class. The data in this section are drawn from the students' responses.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "The number of students who submitted the questionnaire was 52. Nationality was varied, with the majority from Finland, Poland, Italy, Germany, the United Kingdom and the United States, but also from Canada, the Netherlands, Spain, Greece, Romania, France, Estonia, Korea, Iran, the Ukraine, Belgium, Japan, Sweden, Russia and Denmark. Thirty six defined themselves as graduate students, thirteen as undergraduates and three as post-PhD.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "The most interesting item was background. Participants had to describe their backgrounds by choosing from Linguistics, Mathematics, Computer Science, Logic or Other. Only 32% described their background as Linguistics; 29% chose Computer Science; 21% chose Mathematics; and 15% -Logic. Other backgrounds included mostly Philosophy but also Biology and Physics. Why students of Computer Science, and in particular graduate students, should take Formal Language Theory in such an interdisciplinary Summer School is unclear to me.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "Students were asked to grade their impression of the course, on a scale of 1-5, along the following dimensions:",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "The course is interesting The course covers important and useful material The course progresses at the right pace The course is fun",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "The average grade was 4.53 for the interest question; 4.47 for the usefulness question; 3.67 for the pace question; and 4.13 for fun. These results show that participants felt that the course was interesting and useful, and even fun. However, many of them felt that it did not progress in the right pace. This might be partially attributed to the high rate of computer science and mathematics students in the audience: many of them must have seen the material earlier, and felt that progress was too slow for them.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Enrollment data",
"sec_num": "3"
},
{
"text": "This paper demonstrates that it is possible to teach formal, mathematical material to students with little or no formal background by introducing the material gently, albeit rigorously. By the end of the course, students with background in linguistics or philosophy are able to understand the computer science theoretical foundations underlying many aspects of natural language processing, in particular finite-state technology and formal grammars. This sets up a common background for more advanced classes in computational linguistics. The course was taught once at an international, interdisciplinary summer school. I intend to teach it again this summer in a similar, albeit smaller event; I also intend to teach it to graduate Humanities students who express interest in computational linguistics, in order to introduce them to some foundational theoretical aspects of computer science essential for working on natural language processing applications. The positive reaction of most students to the course is an encouraging incentive to develop more courses along the same lines.",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Conclusions",
"sec_num": "4"
}
],
"back_matter": [
{
"text": "I wish to extend my gratitude to my students at ESSLLI-2001, who made teaching this course such an enjoyable experience for me. I am grateful to the reviewers for their useful comments. This work was supported by the Israeli Science Foundation (grant no. 136/1).",
"cite_spans": [],
"ref_spans": [],
"eq_spans": [],
"section": "Acknowledgments",
"sec_num": null
}
],
"bib_entries": {
"BIBREF0": {
"ref_id": "b0",
"title": "Introduction to formal language theory",
"authors": [
{
"first": "Michael",
"middle": [
"A"
],
"last": "Harrison",
"suffix": ""
}
],
"year": 1978,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Michael A. Harrison. 1978. Introduction to formal lan- guage theory. Addison-Wesley, Reading, MA.",
"links": null
},
"BIBREF1": {
"ref_id": "b1",
"title": "Introduction to automata theory, languages and computation. Addison-Wesley Series in Computer Science",
"authors": [
{
"first": "John",
"middle": [
"E"
],
"last": "Hopcroft",
"suffix": ""
},
{
"first": "Jeffrey",
"middle": [
"D"
],
"last": "Ullman",
"suffix": ""
}
],
"year": 1979,
"venue": "",
"volume": "",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "John E. Hopcroft and Jeffrey D. Ullman. 1979. In- troduction to automata theory, languages and com- putation. Addison-Wesley Series in Computer Sci- ence. Addison-Wesley Publishing Company, Reading, Mass.",
"links": null
},
"BIBREF2": {
"ref_id": "b2",
"title": "Mathematical Methods in Linguistics",
"authors": [
{
"first": "H",
"middle": [],
"last": "Brabara",
"suffix": ""
},
{
"first": "Alice",
"middle": [],
"last": "Partee",
"suffix": ""
},
{
"first": "Robert",
"middle": [
"E"
],
"last": "Ter Meulen",
"suffix": ""
},
{
"first": "",
"middle": [],
"last": "Wall",
"suffix": ""
}
],
"year": 1990,
"venue": "Studies in Linguistics and Philosophy",
"volume": "30",
"issue": "",
"pages": "",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Brabara H. Partee, Alice ter Meulen, and Robert E. Wall. 1990. Mathematical Methods in Linguistics, volume 30 of Studies in Linguistics and Philosophy. Kluwer Academic Publishers, Dordrecht.",
"links": null
},
"BIBREF3": {
"ref_id": "b3",
"title": "Natural languages and context-free languages",
"authors": [
{
"first": "Geoffrey",
"middle": [
"K"
],
"last": "Pullum",
"suffix": ""
},
{
"first": "Gerald",
"middle": [],
"last": "Gazdar",
"suffix": ""
}
],
"year": 1982,
"venue": "Linguistics and Philosophy",
"volume": "4",
"issue": "",
"pages": "471--504",
"other_ids": {},
"num": null,
"urls": [],
"raw_text": "Geoffrey K. Pullum and Gerald Gazdar. 1982. Natural languages and context-free languages. Linguistics and Philosophy, 4:471-504.",
"links": null
}
},
"ref_entries": {
"FIGREF0": {
"type_str": "figure",
"uris": null,
"num": null,
"text": "the-DET-def cat-N-sg"
},
"TABREF1": {
"html": null,
"num": null,
"text": "Epsilon-moves are introduced, followed by a brief discussion of minimization and determinization, which is culminated with examples such as 4. Equivalent automataThe following three finite-state automata are equivalent: they all accept the set \u00a2 go, gone, going\u00a3 .",
"content": "<table><tr><td/><td>Example 4 x w</td><td/><td/><td>p</td><td>y</td></tr><tr><td/><td>y</td><td>$</td><td>p</td><td>2</td></tr><tr><td>5 6 \u00a4 \u00a9 8 7 8 7 8 7 , \u00a3 9 \u00a1 is different: it is the set of all vowel-consonant pairs, etc. Notice that the Cartesian product</td><td>y</td><td>$</td><td/><td>p</td><td>y</td></tr><tr><td>which is a completely different entity (albeit with the same number of elements). The Cartesian</td><td>y</td><td>$</td><td>p</td><td>2</td></tr><tr><td>product consonant pairs, whereas \u00a1 @ \u00a4 A \u00a1 is the set of all possible consonant-possible diphthongs. \u00a4 is the set of all</td><td>y</td><td>$</td><td/><td/></tr><tr><td>Example 2 Relation</td><td>y</td><td>$</td><td/><td>p</td><td>y</td></tr><tr><td>Let the set of all German nouns. The Cartesian product be the set of all articles in German and \u00a1</td><td>I</td><td/><td>p</td><td>2</td></tr><tr><td>\u00a4 is the set of all article-noun pairs. Any subset B \u00a1 of this set of pairs is a relation from to . In par-\u00a1 ticular, the set C E D \u00a2 \u00a6 \u00a5 0 F ' \u00a9 ! G I H P F R Q and G S Q and \u00a1 F and G agree on number, gender and case\u00a3 is a rela-</td><td/><td/><td/><td/></tr><tr><td>tion. Informally, which form a grammatical noun phrase in German: holds for all pairs of article-noun C</td><td/><td/><td/><td/></tr><tr><td>such a pair is in the relation if and only if the article</td><td/><td/><td/><td/></tr><tr><td>and the noun agree.</td><td/><td/><td/><td/></tr><tr><td>ing the empty language, or picted. Example 3 Regular expressions T ), are explicitly de-V U</td><td/><td/><td/><td/></tr><tr><td colspan=\"2\">Given the alphabet of all English letters, \u00a2 W \u00a9 3 \u00a7 \u00a9 X Y \u00a9 8 7 8 7 8 7 Y \u00a9 ! G W \u00a9 \u00a3 , the language T is denoted by the T D U regular expression T (recall our convention of us-V U ing as a shorthand notation). The set of all strings T which contain a vowel is denoted by T U a d c e 2 c f c b $ g c f 5 i h a T . The set of all strings that begin in \"un\" is V U denoted by b 5 p q h T . The set of strings that end in ei-U ther \"tion\" or \"sion\" is denoted by T r U a ! b s c t ) ! h a v $ p q h . u b Note that all these languages are infinite.</td><td/><td/><td/></tr><tr><td>To demonstrate the usefulness of finite-state au-</td><td/><td/><td/><td/></tr><tr><td>tomata in natural language applications, some op-</td><td/><td/><td/><td/></tr><tr><td>erations on automata are directly defined, includ-</td><td/><td/><td/><td/></tr></table>",
"type_str": "table"
},
"TABREF2": {
"html": null,
"num": null,
"text": "Relations over languages Consider a simple part-of-speech tagger: an application which associates with every word in some natural language a tag, drawn from a finite set of tags.",
"content": "<table><tr><td colspan=\"7\">In terms of formal languages, such an application</td></tr><tr><td colspan=\"7\">implements a relation over two languages. For sim-</td></tr><tr><td colspan=\"7\">plicity, assume that the natural language is defined</td></tr><tr><td colspan=\"7\">over T D T w D \u00a2 W \u00a9 3 \u00a7 \u00a2 PRON, V, DET, ADJ, N, P\u00a3 . Then the part-\u00a9 8 7 8 7 8 7 \u00a9 and that the set of tags is \u00a3 of-speech relation might contain the following pairs,</td></tr><tr><td colspan=\"6\">depicted here vertically (that is, a string over depicted over an element of T ):</td><td>w is T</td></tr><tr><td>I</td><td colspan=\"4\">know some new tricks</td><td/></tr><tr><td colspan=\"2\">PRON V</td><td colspan=\"3\">DET ADJ N</td><td/></tr><tr><td>said</td><td>the</td><td>Cat</td><td>in</td><td>the</td><td>Hat</td></tr><tr><td>V</td><td colspan=\"2\">DET N</td><td>P</td><td colspan=\"2\">DET N</td></tr><tr><td colspan=\"4\">As another example, assume that</td><td colspan=\"3\">T w is as above, and</td></tr></table>",
"type_str": "table"
},
"TABREF3": {
"html": null,
"num": null,
"text": "Composition of finite-state transducers Let C w be the following relation, mapping some English words to their German counterparts:",
"content": "<table><tr><td colspan=\"5\">C w \u00a2 tomato:Tomate, cucumber:Gurke, D grapefruit:Grapefruit, grapefruit:pampelmuse,</td></tr><tr><td colspan=\"4\">pineapple:Ananas, coconut:Koko,</td></tr><tr><td colspan=\"2\">coconut:Kokusnu\u00df\u00a3</td><td/><td/></tr><tr><td colspan=\"5\">Let to their English translations: be a similar relation, mapping French words C</td></tr><tr><td colspan=\"5\">C \u00a2 tomate:tomato, ananas:pineapple, D pampelmousse:grapefruit, concombre:cucumber,</td></tr><tr><td colspan=\"5\">cornichon:cucumber, noix-de-coco:coconut\u00a3</td></tr><tr><td colspan=\"5\">Then their German translations (the English translations C 6 w is a relation mapping French words to C</td></tr><tr><td colspan=\"5\">are used to compute the mapping, but are not part of</td></tr><tr><td colspan=\"2\">the final relation):</td><td/><td/></tr><tr><td colspan=\"5\">C C w D pampelmousse:Grapefruit, \u00a2 tomate:Tomate, ananas:Ananas,</td></tr><tr><td colspan=\"5\">pampelmousse:Pampelmuse, concombre:Gurke,</td></tr><tr><td colspan=\"5\">cornichon:Gurke, noix-de-coco:Koko,</td></tr><tr><td colspan=\"2\">noix-de-coco:Kokusnu\u00dfe\u00a3</td><td/><td/></tr><tr><td colspan=\"2\">Example 8 Rules</td><td/><td/></tr><tr><td colspan=\"4\">Assume that the set of terminals is</td><td>\u00a2 the, cat, in, hat\u00a3</td></tr><tr><td colspan=\"3\">and the set of non-terminals is</td><td colspan=\"2\">\u00a2 D, N, P, NP, PP\u00a3 .</td></tr><tr><td colspan=\"5\">Then possible rules over these two sets include:</td></tr><tr><td>D</td><td>the</td><td>NP</td><td colspan=\"2\">D N</td></tr><tr><td>N</td><td>cat</td><td>PP</td><td colspan=\"2\">P NP</td></tr><tr><td>N</td><td>hat</td><td>NP</td><td colspan=\"2\">NP PP</td></tr><tr><td>P</td><td>in</td><td/><td/></tr></table>",
"type_str": "table"
}
}
}
}