<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wikis.swarthmore.edu/ling073/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apowell1</id>
		<title>LING073 - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wikis.swarthmore.edu/ling073/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Apowell1"/>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/Special:Contributions/Apowell1"/>
		<updated>2026-10-26T10:12:10Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5396</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5396"/>
				<updated>2017-05-11T02:37:27Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactics and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random forms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, and in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer is correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course deflate the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5343</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5343"/>
				<updated>2017-05-10T20:50:07Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactics and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, and in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer is correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course deflate the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5342</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5342"/>
				<updated>2017-05-10T20:49:26Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactics and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, and in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer is correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5341</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5341"/>
				<updated>2017-05-10T20:49:04Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactics and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, and in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5340</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5340"/>
				<updated>2017-05-10T20:46:59Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactics and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5283</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5283"/>
				<updated>2017-05-10T04:07:49Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Improving the Transducer (Analysis) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744. See [https://github.swarthmore.edu/apowell1/ling073-lin/commits/master this commit history] for more details.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate.&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5282</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5282"/>
				<updated>2017-05-10T04:06:49Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN]. Corpora, including annotated forms for precision/recall calculations, are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5281</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5281"/>
				<updated>2017-05-10T04:05:16Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available in the [https://sourceforge.net/p/apertium/svn/HEAD/tree/incubator/apertium-lin/ Apertium SVN].&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5102</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5102"/>
				<updated>2017-05-06T17:15:11Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Development */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot; This also required editing the default alphabet exclusion list so that accented characters were not excluded from the editdistance computation script.&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5101</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5101"/>
				<updated>2017-05-06T17:13:30Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
===Development===&lt;br /&gt;
In addition to the default weights, I added some weights to deal with some of the most common spelling variations in Lingala. This included accents, so that suggestions that add or remove a diacritic are prioritized over suggestions that completely change the letter, and common spelling variations, like &amp;quot;u&amp;quot; for &amp;quot;o&amp;quot; and &amp;quot;i&amp;quot; for &amp;quot;y.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For example, now, when spell checking &amp;quot;ezálí&amp;quot;, which has an incorrect diacritic over the a, the first suggestion is &amp;quot;ezalí&amp;quot; while the second is &amp;quot;esálí&amp;quot;. Similarly, &amp;quot;ezali&amp;quot;, which incorrectly lacks a diacritic on the i has the first suggestion of ezalí.&lt;br /&gt;
&lt;br /&gt;
For another example, &amp;quot;mutu&amp;quot;, which incorrectly has the prefix mu- instead of mo-, has motu as its first suggestion instead of mitu, since o is prioritized over i in the edit distiance computation.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
The Lingala monolingual language package must be installed. When compiling, generate the makefile using the flag --enable-ospell: i.e., type &amp;lt;code&amp;gt;autogen.sh --enable-ospell&amp;lt;/code&amp;gt;. This will compile the spellchecker binary, called &amp;lt;code&amp;gt;lin.zhfst&amp;lt;/code&amp;gt;. This should be moved to a Voikko spell director as follows: &amp;lt;code&amp;gt;cp lin.zhfst ~/.voikko/3/ln.zhfst&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To complete installation and integrate with Libreoffice, follow Apertium&amp;#039;s instructions for [[:apertium:Using_Apertium_spellers_with_LibreOffice-Voikko_on_Debian/Manual_compilation|manually installing voikkospell]] and related dependencies. Note: If there are any errors about missing C++ header files, try running &amp;lt;code&amp;gt;sudo apt-get install libicu-dev&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5096</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5096"/>
				<updated>2017-05-06T15:19:57Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
Number of stems in transducer: ~744&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5095</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5095"/>
				<updated>2017-05-06T15:18:41Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, and foreign words, of which there are many due to the inclusion of Wikipedia in the corpus, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5094</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5094"/>
				<updated>2017-05-06T15:17:12Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5093</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5093"/>
				<updated>2017-05-06T15:16:27Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluating the Results */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
! Number of Tokenized Words&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
| 296,907&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
| 216,596&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
| 50,618&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
| 160,046&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
| 724,157&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5092</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5092"/>
				<updated>2017-05-06T15:15:02Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Future Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
#*Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category].&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5091</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5091"/>
				<updated>2017-05-06T15:14:43Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics were required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) 471 stems were adding to the transducer, bringing the total to 744.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Future Work==&lt;br /&gt;
Further transducer improvements should be probably fall into two priorities:&lt;br /&gt;
# Reviewing morphotactical and lexical structure to make everything as linguistically sound as possible and bring into concordance with other Apertium monolingual pack structures and tag use&lt;br /&gt;
# Add additional stems to the transducer&lt;br /&gt;
**Open source word lists: See [https://sourceforge.net/p/lingala/code/HEAD/tree/hunspell/ Kevin Scannell&amp;#039;s past Lingala work] and [https://fr.wiktionary.org/wiki/Cat%C3%A9gorie:lingala French Wikitionary Lingala category]. &lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Coverage over Corpus&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Book of Mormon&lt;br /&gt;
| 61.87%&lt;br /&gt;
| 88.19%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! New Testament&lt;br /&gt;
| 71.38%&lt;br /&gt;
| 96.12%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Psalms&lt;br /&gt;
| 72.31%&lt;br /&gt;
| 93.07%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Wikipedia&lt;br /&gt;
| 52.65%&lt;br /&gt;
| 70.34%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Combined Coverage&lt;br /&gt;
| 63.43%&lt;br /&gt;
| 86.96%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Coverage over biblical texts is quite high since they use only a handful of words repeatedly. Wikipedia coverage is comparatively lower, in part because of the widely different domains covered by each article, and in part because of the substantial number of short articles that contain little more than a proper noun, the word is, and some prepositions.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Precision and Recall (500 random froms)&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! Pre-evaluation&lt;br /&gt;
! Post-evaluation&lt;br /&gt;
|-&lt;br /&gt;
! Precision&lt;br /&gt;
| 96.22642%&lt;br /&gt;
| 100.00000%&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
! Recall&lt;br /&gt;
| 19.84436%&lt;br /&gt;
| 39.29961%&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the annotated corpus (available in the same corpus repository linked to earlier) is a somewhat rough approximation since it was not annotated by a native speaker. Self-annotating a corpus is a fairly difficult task since, in general, the transducer already encodes the entirety of my knowledge of the language. Hence, I assume every analysis given my transducer isgit s correct, which may inflate the precision. The recall is rather low, mainly due to the fact that a substantial number of words whose stems are not in the .lexc file were chosen at random. The fact that only forms that were not punctuation were considered will of course default the recall relative to the coverage. With the exception of words marked &amp;lt;code&amp;gt;unk&amp;lt;/code&amp;gt; in the annotated corpus, for which I have no idea of the usage, any missing stems should be fairly trivial to add to the transducer.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5086</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5086"/>
				<updated>2017-05-05T21:51:51Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Building a Corpus */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from four sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5085</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5085"/>
				<updated>2017-05-05T21:51:18Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
The transducer morphotactics were expanded in a few critical ways. The biggest change dealt with the way class IX-X nouns are handled. Previously, there had been separate sections for nouns prefaced by &amp;quot;m&amp;quot; and nouns prefaced by &amp;quot;n,&amp;quot; but it turns out that what letter prefaces the noun can be determined by the following letter (&amp;quot;m&amp;quot; generally precedes &amp;quot;b&amp;quot; and &amp;quot;p&amp;quot;). Hence, the lexicons were combined and an archiphoneme with accompanying twol rule was used. I also realized that many class IX-X nouns sometimes lacked the preceding n/m, and a few even never had a prefix at all. Invariable nouns (always take a prefix or never take a prefix) were added to their own lexicon while nouns with spelling variations were placed in another lexicon. The &amp;quot;! Dir/LR&amp;quot; tag was then added to the null prefix in the morphotactic section so that both the prefixed and unprefixes versions of the noun could analyze but only the prefixed version could generate.&lt;br /&gt;
&lt;br /&gt;
A small but important change was the introduction of a class Ia lexicon, which behaves similarly to class IX but is actually considered class I. I had read in my grammar books that such a class existed, but did not fully appreciate how widespread its use was until trying to make substantial increases in coverage. This additional section proved essential to increasing coverage.&lt;br /&gt;
&lt;br /&gt;
A section was also added to attempt to deal with irregular nouns. It allows for verb that take one root in certain forms (infinitive, imperative, future), and a second root in everything else, and simply requires two entries per verb, one for each root.&lt;br /&gt;
&lt;br /&gt;
Finally, many spelling variations were added with a &amp;quot;! Dir/LR&amp;quot; comment so that alternative spellings of the same word could be analyzed together but only a particular one would generate. &lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5048</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5048"/>
				<updated>2017-05-05T03:25:29Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker. The source code for the transducer is available &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5047</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5047"/>
				<updated>2017-05-05T03:24:47Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Improving the Transducer (Analysis)==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluating the Results==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5046</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5046"/>
				<updated>2017-05-05T03:24:09Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]]). To respect the licensing of these works, the processed corpora are stored only in a [https://github.swarthmore.edu/apowell1/ling073-lin-corpus/tree/master/final_project_corpus private repository] on Swarthmore&amp;#039;s institutional Github server.&lt;br /&gt;
&lt;br /&gt;
==Transducer Improvements==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5045</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5045"/>
				<updated>2017-05-05T03:22:15Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]])&lt;br /&gt;
&lt;br /&gt;
==Transducer Improvements==&lt;br /&gt;
The transducer was primarily improved by adding a substantial number of stems to the &amp;lt;code&amp;gt;lexc&amp;lt;/code&amp;gt; file. Some modifications and expansions of the existing morphotactics was required for this.&lt;br /&gt;
===Adding Stems===&lt;br /&gt;
Through a system of systematically adding the most frequent unanalyzed words from the test corpus, a total of (approximately) &amp;lt;code&amp;gt;TODO&amp;lt;/code&amp;gt; were adding to the transducer.&lt;br /&gt;
&lt;br /&gt;
===Expanding and Improving Morphology===&lt;br /&gt;
&lt;br /&gt;
==Setting up the Spell Checker==&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5044</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=5044"/>
				<updated>2017-05-05T03:18:37Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page details the expansion of a Lingala transducer for use as a spell checker.&lt;br /&gt;
&lt;br /&gt;
==Building a Corpus==&lt;br /&gt;
Robust evaluation of any transducer requires a large corpus of authentic text. I created a corpus of 636,261 words drawn from main sources:&lt;br /&gt;
# Lingala [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=li Book of Mormon] available online as a searchable PDF&lt;br /&gt;
# Lingala [http://gospelgo.com/f/lingala_nt.htm New Testament], available online.&lt;br /&gt;
# Lingala [http://gospelgo.com/q/Lingala%20Bible%20-%20Psalms.pdf Psalms]&lt;br /&gt;
# Lingala [https://dumps.wikimedia.org/lnwiki/20170501/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
All of these required some preprocessing. Due to varying standards of tone markings, all accents were stripped from the corpus by converting from Unicode to ASCII using Unidecode ([[Lingala_and_Kikuyu#Installing_Unidecode_For_MT_Evaluation |installation instructions]]). Adtionally, the Psalms PDF was not searchable and had to first be converted to a text file using the free and open source Tesseract OCR software ([[User:Apowell1#Tesseract_OCR |instructions]])&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1&amp;diff=5043</id>
		<title>User:Apowell1</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1&amp;diff=5043"/>
				<updated>2017-05-05T03:17:07Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My name is Andrew Powell. I am a sophomore at Swarthmore College with intended majors in computer science and mathematics. A couple of languages I am considering include:&lt;br /&gt;
&lt;br /&gt;
*Lingala&lt;br /&gt;
*Samoan&lt;br /&gt;
*Chamorro&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
===Tesseract OCR===&lt;br /&gt;
*sudo apt-get update&lt;br /&gt;
*sudo apt-get install tesseract-ocr&lt;br /&gt;
*gs -dNOPAUSE -q -r500 -sDEVICE=tiffg4 -dBATCH -sOutputFile=test.tif test.pdf&lt;br /&gt;
**http://www.joyofdata.de/blog/a-guide-on-ocr-with-tesseract-3-03/&lt;br /&gt;
*tesseract test.tif out&lt;br /&gt;
&lt;br /&gt;
*Basic installation: https://github.com/tesseract-ocr/tesseract/wiki&lt;br /&gt;
*Compiling binaries (huge pain): https://github.com/tesseract-ocr/tesseract/wiki/Compiling&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_students]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=4940</id>
		<title>User:Apowell1/Final project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1/Final_project&amp;diff=4940"/>
				<updated>2017-04-27T16:16:27Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: Created page with &amp;quot;Just a placeholder for now...  Category:sp17_FinalProjects Category:Lingala&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Just a placeholder for now...&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4801</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4801"/>
				<updated>2017-04-24T18:01:55Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* obj */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===obl===&lt;br /&gt;
As described in the UD documentation, the obl relation is used for nominals that modify verbs, adjectives, or adverbs as a non-core argument. Just as in English, its most typically relates a verb to the object of a preposition following it. For one example, consider the last example of the previous section. &amp;quot;ndako&amp;quot; (house) has an obl dependence to &amp;quot;azongaki&amp;quot; (he returned). The relevant portion of the sentence is translated &amp;quot;he returned to (his own) house.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Molimo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molimo&amp;quot; n cl3 sg @obl #10-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;mwa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mwa&amp;quot; conn @case #11-&amp;gt;12&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n sg cl1 @nmod #12-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent @punct #13-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;Molimo&amp;quot; (Spirit) has an obl dependency to atondisamaki (he was filled). The above excerpt is translated &amp;quot;And it came to pass that as he read he was filled with the Spirit of the Lord.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===advcl===&lt;br /&gt;
As explained in the UD documentation, an advcl relation is used for any clause that modifies a verb, adjective, or adverb (or other predicate) but is not itself core. In the annotated corpus, these typically modify verbs. For one example, consider the last example of the previous section where &amp;quot;etangaki&amp;quot; (read) has an advcl dependency on  atondisamaki (he was filled). This is because the clause &amp;quot;as he read&amp;quot; describes how he was filled.&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;emonoki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komona&amp;quot; v urp p3 sg nn @advcl #2-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;tata&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;&amp;quot;tata&amp;quot; n cl1 sg @nsubj #3-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;wa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;wa&amp;quot; pr @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ngai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa @nmod #5-&amp;gt;3&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #6-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;mai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;maí&amp;quot; n cl5 pl @nsubj #7-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ma&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ma&amp;quot; pr @case #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;ebale&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ebale&amp;quot; n cl7 sg @nmod #9-&amp;gt;7&lt;br /&gt;
&amp;quot;&amp;lt;mazalaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozala&amp;quot; v aux p3 pl nn @aux #10-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;kosopana&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosopa&amp;quot; v recip inf @ccomp #11-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;kati&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;káti&amp;quot; pr @obl #13-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #14-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;liziba&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;liziba&amp;quot; n cl5 sg @nmod #15-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #16-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;Mbu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbu&amp;quot; n cl9 sg @nmod #17-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;Etane&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotána&amp;quot; v pres p3 sg nn @compound #18-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #19-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;alobaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;koloba&amp;quot; v urp p3 sg aa @root #20-&amp;gt;0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;emonoki&amp;quot; (saw) had an advcl dependency on alobaki (he said). The excerpt is translated &amp;quot;And when my father saw that the waters of the river emptied into the fountain of the Red Sea, he said,&amp;quot; so it is seen that the the father seeing the waters of the river emptied into the fountain of the Red Sea describes spoke.&lt;br /&gt;
&lt;br /&gt;
===obj===&lt;br /&gt;
The obj relation is quite simple. It is simply used to denote that the object of a verb depends on the verb. Note that the obl relation (described above) is used when a nominal describes the verb in some way but is not directly an object (like a preposition. For one example, consider the following phrase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n prop @nsubj #17-&amp;gt;18&lt;br /&gt;
&amp;quot;&amp;lt;atindaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotinda&amp;quot; v urp p3 sg aa @advcl #18-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @obj #19-&amp;gt;18&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The above is translated &amp;quot;The Lord commanded him.&amp;quot; Clearly, &amp;quot;ye&amp;quot; (him) is the object of &amp;quot;atindaki&amp;quot; ([he] commanded).&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following phrase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amonoki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;lisusu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lisúsu&amp;quot; adv @advmod #3-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;zomi&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;zomi&amp;quot; num card @compound #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; cngcoo @compound #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;babale&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mibale&amp;quot; num card @nummod #6-&amp;gt;7&lt;br /&gt;
&amp;quot;&amp;lt;basusu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mosusu&amp;quot; n cl1 pl @obj #7-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above is translated &amp;quot;And he also saw 12 others...&amp;quot; Clearly, &amp;quot;basusu&amp;quot; (others) is the object of &amp;quot;amonoki&amp;quot; (he saw).&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4800</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4800"/>
				<updated>2017-04-24T18:00:52Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===obl===&lt;br /&gt;
As described in the UD documentation, the obl relation is used for nominals that modify verbs, adjectives, or adverbs as a non-core argument. Just as in English, its most typically relates a verb to the object of a preposition following it. For one example, consider the last example of the previous section. &amp;quot;ndako&amp;quot; (house) has an obl dependence to &amp;quot;azongaki&amp;quot; (he returned). The relevant portion of the sentence is translated &amp;quot;he returned to (his own) house.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Molimo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molimo&amp;quot; n cl3 sg @obl #10-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;mwa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mwa&amp;quot; conn @case #11-&amp;gt;12&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n sg cl1 @nmod #12-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent @punct #13-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;Molimo&amp;quot; (Spirit) has an obl dependency to atondisamaki (he was filled). The above excerpt is translated &amp;quot;And it came to pass that as he read he was filled with the Spirit of the Lord.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===advcl===&lt;br /&gt;
As explained in the UD documentation, an advcl relation is used for any clause that modifies a verb, adjective, or adverb (or other predicate) but is not itself core. In the annotated corpus, these typically modify verbs. For one example, consider the last example of the previous section where &amp;quot;etangaki&amp;quot; (read) has an advcl dependency on  atondisamaki (he was filled). This is because the clause &amp;quot;as he read&amp;quot; describes how he was filled.&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;emonoki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komona&amp;quot; v urp p3 sg nn @advcl #2-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;tata&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;&amp;quot;tata&amp;quot; n cl1 sg @nsubj #3-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;wa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;wa&amp;quot; pr @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ngai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa @nmod #5-&amp;gt;3&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #6-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;mai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;maí&amp;quot; n cl5 pl @nsubj #7-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ma&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ma&amp;quot; pr @case #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;ebale&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ebale&amp;quot; n cl7 sg @nmod #9-&amp;gt;7&lt;br /&gt;
&amp;quot;&amp;lt;mazalaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozala&amp;quot; v aux p3 pl nn @aux #10-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;kosopana&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosopa&amp;quot; v recip inf @ccomp #11-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;kati&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;káti&amp;quot; pr @obl #13-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #14-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;liziba&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;liziba&amp;quot; n cl5 sg @nmod #15-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #16-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;Mbu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbu&amp;quot; n cl9 sg @nmod #17-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;Etane&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotána&amp;quot; v pres p3 sg nn @compound #18-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #19-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;alobaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;koloba&amp;quot; v urp p3 sg aa @root #20-&amp;gt;0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;emonoki&amp;quot; (saw) had an advcl dependency on alobaki (he said). The excerpt is translated &amp;quot;And when my father saw that the waters of the river emptied into the fountain of the Red Sea, he said,&amp;quot; so it is seen that the the father seeing the waters of the river emptied into the fountain of the Red Sea describes spoke.&lt;br /&gt;
&lt;br /&gt;
===obj===&lt;br /&gt;
The obj relation is quite simple. It is simply used to denote that the object of a verb depends on the verb. Note that the obl relation (described above) is used when a nominal describes the verb in some way but is not directly an object (like a preposition. For one example, consider the following phrase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n prop @nsubj #17-&amp;gt;18&lt;br /&gt;
&amp;quot;&amp;lt;atindaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotinda&amp;quot; v urp p3 sg aa @advcl #18-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @obj #19-&amp;gt;18&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
The above is translated &amp;quot;The Lord commanded him.&amp;quot; Clearly, &amp;quot;ye&amp;quot; (him) is the object of &amp;quot;atindaki&amp;quot; ([he] commanded).&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following phrase:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amonoki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;lisusu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lisúsu&amp;quot; adv @advmod #3-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;zomi&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;zomi&amp;quot; num card @compound #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; cngcoo @compound #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;babale&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mibale&amp;quot; num card @nummod #6-&amp;gt;7&lt;br /&gt;
&amp;quot;&amp;lt;basusu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mosusu&amp;quot; n cl1 pl @obj #7-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The above is translated &amp;quot;And he saw 12 others...&amp;quot; Clearly, &amp;quot;basusu&amp;quot; (others) is the object of &amp;quot;amonoki&amp;quot; (he saw).&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4799</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4799"/>
				<updated>2017-04-24T17:54:25Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===obl===&lt;br /&gt;
As described in the UD documentation, the obl relation is used for nominals that modify verbs, adjectives, or adverbs as a non-core argument. Just as in English, its most typically relates a verb to the object of a preposition following it. For one example, consider the last example of the previous section. &amp;quot;ndako&amp;quot; (house) has an obl dependence to &amp;quot;azongaki&amp;quot; (he returned). The relevant portion of the sentence is translated &amp;quot;he returned to (his own) house.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Molimo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molimo&amp;quot; n cl3 sg @obl #10-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;mwa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mwa&amp;quot; conn @case #11-&amp;gt;12&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n sg cl1 @nmod #12-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent @punct #13-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;Molimo&amp;quot; (Spirit) has an obl dependency to atondisamaki (he was filled). The above excerpt is translated &amp;quot;And it came to pass that as he read he was filled with the Spirit of the Lord.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===advcl===&lt;br /&gt;
As explained in the UD documentation, an advcl relation is used for any clause that modifies a verb, adjective, or adverb (or other predicate) but is not itself core. In the annotated corpus, these typically modify verbs. For one example, consider the last example of the previous section where &amp;quot;etangaki&amp;quot; (read) has an advcl dependency on  atondisamaki (he was filled). This is because the clause &amp;quot;as he read&amp;quot; describes how he was filled.&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;emonoki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komona&amp;quot; v urp p3 sg nn @advcl #2-&amp;gt;20&lt;br /&gt;
&amp;quot;&amp;lt;tata&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;&amp;quot;tata&amp;quot; n cl1 sg @nsubj #3-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;wa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;wa&amp;quot; pr @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ngai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa @nmod #5-&amp;gt;3&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #6-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;mai&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;maí&amp;quot; n cl5 pl @nsubj #7-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ma&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ma&amp;quot; pr @case #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;ebale&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ebale&amp;quot; n cl7 sg @nmod #9-&amp;gt;7&lt;br /&gt;
&amp;quot;&amp;lt;mazalaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozala&amp;quot; v aux p3 pl nn @aux #10-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;kosopana&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosopa&amp;quot; v recip inf @ccomp #11-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;kati&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;káti&amp;quot; pr @obl #13-&amp;gt;11&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #14-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;liziba&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;liziba&amp;quot; n cl5 sg @nmod #15-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #16-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;Mbu&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbu&amp;quot; n cl9 sg @nmod #17-&amp;gt;15&lt;br /&gt;
&amp;quot;&amp;lt;Etane&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotána&amp;quot; v pres p3 sg nn @compound #18-&amp;gt;17&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #19-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;alobaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;koloba&amp;quot; v urp p3 sg aa @root #20-&amp;gt;0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;emonoki&amp;quot; (saw) had an advcl dependency on alobaki (he said). The excerpt is translated &amp;quot;And when my father saw that the waters of the river emptied into the fountain of the Red Sea, he said,&amp;quot; so it is seen that the the father seeing the waters of the river emptied into the fountain of the Red Sea describes spoke.&lt;br /&gt;
&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4798</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4798"/>
				<updated>2017-04-24T17:46:01Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===obl===&lt;br /&gt;
As described in the UD documentation, the obl relation is used for nominals that modify verbs, adjectives, or adverbs as a non-core argument. Just as in English, its most typically relates a verb to the object of a preposition following it. For one example, consider the last example of the previous section. &amp;quot;ndako&amp;quot; (house) has an obl dependence to &amp;quot;azongaki&amp;quot; (he returned). The relevant portion of the sentence is translated &amp;quot;he returned to (his own) house.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a second example, consider the following sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;na&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;na&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Molimo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molimo&amp;quot; n cl3 sg @obl #10-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;mwa&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mwa&amp;quot; conn @case #11-&amp;gt;12&lt;br /&gt;
&amp;quot;&amp;lt;Nkolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Nkolo&amp;quot; n sg cl1 @nmod #12-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent @punct #13-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, &amp;quot;Molimo&amp;quot; (Spirit) has an obl dependency to atondisamaki(he was filled). The above excerpt is translated &amp;quot;And it came to pass that as he read he was filled with the Spirit of the Lord.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===advcl (?)===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4780</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4780"/>
				<updated>2017-04-24T03:56:42Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===obl (?)===&lt;br /&gt;
===advcl (?)===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4778</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4778"/>
				<updated>2017-04-24T03:55:16Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===nmod===&lt;br /&gt;
The nmod relation is used quite frequently. Most frequently, it indicates possession, since possession in Lingala is denoted by use of the connective ya followed by the possessor (this takes the translation &amp;quot;the X of Y&amp;quot;). It is also used quite frequently for the object of prepositional phrases that describe a noun, typically some sort of spatial qualifier.&lt;br /&gt;
&lt;br /&gt;
The following examples show the use of nmod for possession:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;amibwakaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kobwáka&amp;quot; v refl urp p3 sg aa @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;likolo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;likoló&amp;quot; n cl5 sg @case #3-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;lya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lya&amp;quot; conn @case #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;mbeto&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mbeto&amp;quot; n cl9 sg @obl #5-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nmod #7-&amp;gt;5&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;And he cast himself upon his bed.&amp;quot; Or, more literally, &amp;quot;And he cast himself on top of the bed of his.&amp;quot; The personal pronoun ye has an nmod dependence to the bed. (Note that likolo is marked with a case dependence here despite being a noun. Likolo means &amp;quot;the top,&amp;quot; but can effectively function as a preposition when used with the connective.)&lt;br /&gt;
&lt;br /&gt;
The following example has two examples of the nmod dependence -- one to denote possession and the other to give a spatial qualification through the use of a preposition.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #5-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;ndako&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ndako&amp;quot; n cl1 sg @obl #6-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;ya&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ya&amp;quot; conn @case #7-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;yemei&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yemei&amp;quot; prn pers p1 sg aa @nmod #8-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;o&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;o&amp;quot; pr @case #9-&amp;gt;10&lt;br /&gt;
&amp;quot;&amp;lt;Yelusaleme&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;Yelusaleme&amp;quot; noun prop @nmod #10-&amp;gt;6&lt;br /&gt;
&amp;quot;&amp;lt;;&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;;&amp;quot; sent @punct #11-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that he returned to his own house at Jerusalem&amp;quot;. The nmod dependence for the pronoun yemei indicates his possession of the home and the nmod dependence for the proper noun Yelusaleme indicates the home&amp;#039;s location in Jerusalem.&lt;br /&gt;
 &lt;br /&gt;
===Relation 3===&lt;br /&gt;
===Relation 4===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4776</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4776"/>
				<updated>2017-04-24T03:44:33Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Examples of dependency relations are shown below. Note that Lingala has some odd constructions with nouns and verbs that can allow them to function as if they were a different part of speech, so sometimes a certain dependency might seem to correspond to an otherwise incompatible part of speech.&lt;br /&gt;
&lt;br /&gt;
===ccomp===&lt;br /&gt;
The ccomp relation is used in the manner described in the UD documentation: it denotes a clause relating to a main verb that is a core argument. This comes up very frequently in the Book of Mormon corpus that was being used for annotations, since the construction &amp;quot;It came to pass that...&amp;quot; is used quite frequently. The verb following &amp;quot;that&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For a basic example, consider the following partial sentence:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;azongaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kozónga&amp;quot; v urp p3 sg aa @ccomp #4-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is translated &amp;quot;It came to pass that he returned...&amp;quot; Here, &amp;quot;returned&amp;quot; has a ccomp dependency to &amp;quot;came.&amp;quot; For a slightly more complicated example, consider the following excerpt:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mpe&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mpé&amp;quot; cngcoo @cc #1-&amp;gt;2&lt;br /&gt;
&amp;quot;&amp;lt;esalemaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kosalema&amp;quot; v urp p3 sp nn @root #2-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;ete&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ete&amp;quot; cnjsub @mark #3-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;bo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;bó&amp;quot; cnjsub @mark #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;etangaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotánga&amp;quot; v urp p3 sp nn @advcl #5-&amp;gt;8&lt;br /&gt;
&amp;quot;&amp;lt;ye&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;yé&amp;quot; prn pers p3 sg aa @nsubj #6-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;,&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;,&amp;quot; cm @punct #7-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;atondisamaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;kotónda&amp;quot; v caus pass urp p3 sg aa @ccomp #8-&amp;gt;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is translated &amp;quot;And it came to pass that as he read he was filled...&amp;quot; As before, &amp;quot;filled&amp;quot; has a ccomp dependency to &amp;quot;came,&amp;quot; but in this example there is an intervening advcl. &lt;br /&gt;
&lt;br /&gt;
===Relation 2===&lt;br /&gt;
===Relation 3===&lt;br /&gt;
===Relation 4===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4770</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4770"/>
				<updated>2017-04-23T04:38:57Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page. [https://github.swarthmore.edu/apowell1/ling073-lin-corpus Related models and corpora] are available on GitHub.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Just placeholders for now...&lt;br /&gt;
===Relation 1===&lt;br /&gt;
===Relation 2===&lt;br /&gt;
===Relation 3===&lt;br /&gt;
===Relation 4===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4769</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4769"/>
				<updated>2017-04-23T04:34:16Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Dependency Relations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
Just placeholders for now...&lt;br /&gt;
===Relation 1===&lt;br /&gt;
===Relation 2===&lt;br /&gt;
===Relation 3===&lt;br /&gt;
===Relation 4===&lt;br /&gt;
===Relation 5===&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4768</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4768"/>
				<updated>2017-04-23T04:33:09Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4767</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4767"/>
				<updated>2017-04-23T04:33:00Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
| UAS: 61.83%, LAS: 53.44%&lt;br /&gt;
| 262&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
| UAS: 29.20%, LAS: 20.35%&lt;br /&gt;
| 113&lt;br /&gt;
| 8&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The lower stats for &amp;lt;code&amp;gt;lin.annotated2.ud.conllu&amp;lt;/code&amp;gt; are to be expected since the text for this corpus was drawn from a completely different source with a very different style.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4766</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4766"/>
				<updated>2017-04-23T04:25:25Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
|&lt;br /&gt;
| 262&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated2.ud.conllu&lt;br /&gt;
| UAS: 39.82%, LAS: 21.24%&lt;br /&gt;
|&lt;br /&gt;
| 113&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4765</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4765"/>
				<updated>2017-04-23T04:22:13Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| UAS: 69.85%, LAS: 61.45%&lt;br /&gt;
|&lt;br /&gt;
| 262&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.nomorph.conllu&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1&amp;diff=4748</id>
		<title>User:Apowell1</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=User:Apowell1&amp;diff=4748"/>
				<updated>2017-04-22T04:04:57Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;My name is Andrew Powell. I am a sophomore at Swarthmore College with intended majors in computer science and mathematics. A couple of languages I am considering include:&lt;br /&gt;
&lt;br /&gt;
*Lingala&lt;br /&gt;
*Samoan&lt;br /&gt;
*Chamorro&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Tesseract OCR:&lt;br /&gt;
*sudo apt-get update&lt;br /&gt;
*sudo apt-get install tesseract-ocr&lt;br /&gt;
*gs -dNOPAUSE -q -r500 -sDEVICE=tiffg4 -dBATCH -sOutputFile=test.tif test.pdf&lt;br /&gt;
**http://www.joyofdata.de/blog/a-guide-on-ocr-with-tesseract-3-03/&lt;br /&gt;
*tesseract test.tif out&lt;br /&gt;
&lt;br /&gt;
*Basic installation: https://github.com/tesseract-ocr/tesseract/wiki&lt;br /&gt;
*Compiling binaries (huge pain): https://github.com/tesseract-ocr/tesseract/wiki/Compiling&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_students]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4742</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4742"/>
				<updated>2017-04-21T17:23:51Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
==Evaluation==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ UD Parser Evaluation&lt;br /&gt;
|-&lt;br /&gt;
! &lt;br /&gt;
! lin.withmorph.udpipe&lt;br /&gt;
! lin.nomorph.udpipe&lt;br /&gt;
! Number of forms&lt;br /&gt;
! Number of sentences&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.ud.conllu&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
! lin.annotated.nomorph.conllu&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Dependency Relations==&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala&amp;diff=4741</id>
		<title>Lingala</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala&amp;diff=4741"/>
				<updated>2017-04-21T17:16:04Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page documents available resources for Lingala, both external and developed. &lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Keyboard Layout===&lt;br /&gt;
Information on a Lingala keyboard layout is available on both a [[Lingala/Keyboard|wiki page]] and [https://github.swarthmore.edu/apowell1/ling073-lin-keyboard GitHub repository].&lt;br /&gt;
&lt;br /&gt;
===Corpus===&lt;br /&gt;
A Lingala corpus is stored in a private [https://github.swarthmore.edu/apowell1/ling073-lin-corpus GitHub repository].&lt;br /&gt;
&lt;br /&gt;
===Grammar Description===&lt;br /&gt;
A [[Lingala/Grammar|wiki page]] details Lingala grammar and morphology.&lt;br /&gt;
&lt;br /&gt;
===Transducer===&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin Lingala transducer] is available on Github, with additional information described on a [[Lingala/Transducer|wiki page]]&lt;br /&gt;
&lt;br /&gt;
===Disambiguation===&lt;br /&gt;
Information on morphological disambiguation with the developed transducer is available on the following page: [[Lingala/Disambiguation]].&lt;br /&gt;
&lt;br /&gt;
===Machine Translation===&lt;br /&gt;
Information on a machine translation system between [[Lingala and Kikuyu]] is available on this wiki.&lt;br /&gt;
&lt;br /&gt;
===Universal Dependencies===&lt;br /&gt;
Information on universal dependencies for Lingala is available on the following page: [[Lingala/Universal_Dependencies]]&lt;br /&gt;
&lt;br /&gt;
==External Resources==&lt;br /&gt;
===Computational Resources===&lt;br /&gt;
*A machine translation site is available [https://dic.lingala.be/ here]. &lt;br /&gt;
**This takes Lingala text and provides word-by-word translation. It also has limited capabilities to translate English to Lingala.&lt;br /&gt;
**License: Copyright  Peter Van Hertum&lt;br /&gt;
&lt;br /&gt;
*A FireFox addon that works as a Lingala spell checker is available [https://addons.mozilla.org/en-US/firefox/addon/lingala-spell-checker/ here].&lt;br /&gt;
**From the description, &amp;quot;This spell checker recognizes over 100,000 Lingala words, including very general verb forms.&amp;quot;&lt;br /&gt;
**License: Created by Kevin Scannell. No License listed.&lt;br /&gt;
&lt;br /&gt;
*An online spellchecker is available [https://www.spellchecker.net/dr_congo_spell_checker.html here].&lt;br /&gt;
**From the description: &amp;quot;Copy and paste the desired text message to the text field above, and then click the appropriate button. Another window will appear showing your own text message together with mistakes right now underlined with red.&amp;quot;&lt;br /&gt;
**License: ©1999-2017 SpellChecker.net, Inc. All Rights Reserved.&lt;br /&gt;
&lt;br /&gt;
*Some Lingala NLP tools under development are available for download [https://sourceforge.net/projects/lingala/?source=navbar here].&lt;br /&gt;
**License: GNU General Public License version 2.0 (GPLv2)&lt;br /&gt;
**Note that it appears to be some time since any changes have been made to this project. It is unclear what state it is in.&lt;br /&gt;
&lt;br /&gt;
*An online Lingala keyboard can be found [http://gate2home.com/Lingala-Keyboard here]&lt;br /&gt;
**License: © Gate2Home.com - Type in your language, anywhere. (© VirtualKeyboard 3.7.0.760)&lt;br /&gt;
&lt;br /&gt;
*A similar but slightly different Lingala keyboard can be found [http://www.101languages.net/lingala/keyboard/ here].&lt;br /&gt;
**No license found&lt;br /&gt;
&lt;br /&gt;
===Dictionaries/Phrasebooks/Glossaries===&lt;br /&gt;
&lt;br /&gt;
*Felix Divuilu (2005). [http://www.africaadoptions.org/wp-content/uploads/2013/07/lingala-dictionary.pdf English-Lingala Lingala-English Dictionary]. Congolese Voluntary Organisation.&lt;br /&gt;
**License: &amp;quot;All right reserved. No part of this publication may be reproduced, stored in a retrieval system, or  transmitted, in any form or by any means, without the prior permission in writing of The Congolese Voluntary Organisation or as expressly permitted by the law, or under terms agreed with the appropriate reprographic rights organisation. Enquiries concerning reproduction outside the scope of the above should be sent to The Congolese Voluntary Organisation at the address above.&amp;quot;&lt;br /&gt;
**This is a phrasebook / basic English-Lingala, Lingala-English dictionary.&lt;br /&gt;
**A PDF is available at the address linked to above.&lt;br /&gt;
&lt;br /&gt;
*Malcolm Gusocietythrie and John F. Carrington (1988). [https://www.worldcat.org/title/lingala-grammar-and-dictionary-english-lingala-lingala-english/oclc/28376577&amp;amp;referer=brief_results Lingala: Grammar and Dictionary]. Baptist Missionary &lt;br /&gt;
**License: Most likely &amp;quot;All rights reserved,&amp;quot; but would need to verify with a physical copy of the book&lt;br /&gt;
**This is marketed as both a dictionary and a basic overview of Lingala grammar, but without access to the physical book, it is more difficult to determine its contents in any greater detail.&lt;br /&gt;
**This should be available through ILL&lt;br /&gt;
&lt;br /&gt;
*See Redden and Bongo (1963) in the Grammatical Descriptions section. This resource contains both grammar and an extensive number of phrases.&lt;br /&gt;
&lt;br /&gt;
*Arizona M Baongoli (2006). [https://www.worldcat.org/title/learn-to-speak-lingala/oclc/170060515&amp;amp;referer=brief_results Learn to Speak Lingala]. Eldoret.&lt;br /&gt;
**License: Most likely &amp;quot;All rights reserved,&amp;quot; but would need to verify with a physical copy of the book&lt;br /&gt;
**According to the table of contents, this contains an English/Lingala glossary, basic Lingala grammar, and a Lingala/English verbs list&lt;br /&gt;
**This is available via E-ZBorrow. I requested the second edition (2009) on 21 January 2017&lt;br /&gt;
&lt;br /&gt;
===Grammatical Descriptions===&lt;br /&gt;
*Eyamba G. Bokamba (2012). [http://www.lingref.com/cpp/acal/42/paper2778.pdf A Polylectal Grammar of Lingála and Its Theoretical Implications]. In Proceedings of the 42nd Annual Conference on African Linguistics.&lt;br /&gt;
**License: © 2012 Eyamba G. Bokamba&lt;br /&gt;
**This is a paper giving an overview of grammar in three Lingala dialects. It also includes an extensive list of referencs.&lt;br /&gt;
**A PDF is available at the address linked to above.&lt;br /&gt;
&lt;br /&gt;
*Michael Meeuwis (1998). [https://www.worldcat.org/title/lingala/oclc/40651364&amp;amp;referer=brief_results Lingala]. München: LINCOM EUROPA.&lt;br /&gt;
**License: Likely &amp;quot;All rights reserved,&amp;quot; but need access to physical text to verify.&lt;br /&gt;
**According to the Amazon description, &amp;quot;The present volume presents an overview of the phonological, tonological, and morphological characteristics of this language, and also includes a section on the main syntactic patterns, as well as a sample text with morphemic glosses and a translation.&amp;quot;&lt;br /&gt;
**This is available through E-ZBorrow, and I submitted a request for it on 21 January 2017.&lt;br /&gt;
&lt;br /&gt;
*James E Redden and F Bongo (1963). [https://drive.google.com/open?id=0B9QDHej9UGAdUVluaHVzcG9NbTQ Lingala Basic Course]. Department of State.&lt;br /&gt;
**License: Not listed, perhaps &amp;quot;All rights reserved&amp;quot;&lt;br /&gt;
**This contains basic grammar and also has an extensive number of Lingala phrases and their English translation.&lt;br /&gt;
**A PDF is available at the address linked to above.&lt;br /&gt;
&lt;br /&gt;
*John D Odhner (1981). [http://www.worldcat.org/title/english-lingala-manual/oclc/7553567 English-Lingala Manual]. University Press of America.&lt;br /&gt;
**License: Need access to physical book, but likely &amp;quot;All rights reserved&amp;quot;&lt;br /&gt;
**Not able to find a complete table of contents online, but this appears to be a basic grammatical description of Lingala. It may also includes phrases.&lt;br /&gt;
**This is available through E-ZBorrow, and I submitted a request for it on 21 January 2017&lt;br /&gt;
&lt;br /&gt;
*Michael Meeuwis (2013). Lingala. [https://global.oup.com/academic/product/the-survey-of-pidgin-and-creole-languages-volume-iii-contact-languages-based-on-languages-from-africa-australia-and-the-americas-9780199691425?cc=us&amp;amp;lang=en&amp;amp;# In The Survey of Pidgin and Creole Languages Volume III Contact Languages Based on Languages from Africa, Australia, and the Americas].&lt;br /&gt;
**License: All rights reserved&lt;br /&gt;
**According to the publisher description, each the chapter on Lingala contains information on phonology, syntax, morphology, and lexicons&lt;br /&gt;
**This is available through E-ZBorrow, and I submitted a request for it on 21 January 2017&lt;br /&gt;
**Some of the information is also available [http://apics-online.info/contributions/60 online]&lt;br /&gt;
&lt;br /&gt;
*Michael Meeuwis (2010). [https://www.worldcat.org/title/grammatical-overview-of-lingala/oclc/696459347&amp;amp;referer=brief_results A Grammatical Overview Of Lingala]. Lincom.&lt;br /&gt;
**License: All rights resered, but need access to physical book to verify&lt;br /&gt;
**Standard Lingala grammar book&lt;br /&gt;
**Submitted ILL request on 21 January 2017&lt;br /&gt;
&lt;br /&gt;
===Scientific Works===&lt;br /&gt;
*Bienvenue Sene-Mongaba (2015). [http://ac.els-cdn.com/S1877042815044651/1-s2.0-S1877042815044651-main.pdf?_tid=aa6b1b46-e03d-11e6-8179-00000aacb35f&amp;amp;acdnat=1485046793_c1e6e74313b4eea1ed22e8f9dc7bc425 The Making of Lingala Corpus: An Under-resourced Language and the Internet]. CILC 2015.&lt;br /&gt;
**License: Creative Commons BY-NC-ND&lt;br /&gt;
**This article details the challenges that arise in compiling a standardized Lingala corpus given that it is mainly a spoken language.&lt;br /&gt;
**PDF available at the link above&lt;br /&gt;
&lt;br /&gt;
*Lauri Karttunen. [https://www.researchgate.net/publication/221629202_Computing_with_Realizational_Morphology Computing with Realizational Morphology].  CICLing 2003.&lt;br /&gt;
**License not listed&lt;br /&gt;
**This article discusses the concept of &amp;quot;Relizational Morphology&amp;quot; and illustrates an example of the idea using Lingala.&lt;br /&gt;
**PDF download available at the link above&lt;br /&gt;
&lt;br /&gt;
*Eyamba G. Bokamba. [http://www.sciencedirect.com/science/article/pii/0024384188900174 Code-mixing, language variation, and linguistic theory: Evidence from Bantu Languages]. In Lingua 27, 1988.&lt;br /&gt;
**License: © 1988, Elsevier Science Publishers B.V. (North-Holland) &lt;br /&gt;
**This article discusses how code mixing (the mixing of two languages) in the context of Lingala and French&lt;br /&gt;
**PDF download available at the link above&lt;br /&gt;
&lt;br /&gt;
*Eyama G. Bokama (2011). [https://books.google.com/books?hl=en&amp;amp;lr=&amp;amp;id=NHcSBwAAQBAJ&amp;amp;oi=fnd&amp;amp;pg=PA50&amp;amp;dq=lingala+linguistics&amp;amp;ots=92MaPBhT7u&amp;amp;sig=PHE86CX_nZLiLQ0J8dJbByICjLI#v=onepage&amp;amp;q=lingala%20linguistics&amp;amp;f=false The Spread of Lingala as a Lingua Franca in the Congo Basin]. in The Languages of Urban Africa.&lt;br /&gt;
**License: All rights reserved&lt;br /&gt;
**This chapter provides historical context on Lingala and how it has spread regionally&lt;br /&gt;
**The link above links directly to the chapter in Google Books&lt;br /&gt;
&lt;br /&gt;
===Corpora===&lt;br /&gt;
*See Meeuwis, 1998 in the grammar section. This book also contains a &amp;quot;sample text with morphemic glosses and a translation.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*Kayo-Lampe and Michael Meeuwis (1999). [http://www.worldcat.org/title/14-lingala-poems/oclc/67745085&amp;amp;referer=brief_results 14 Lingala Poems]. Gent.&lt;br /&gt;
**License: Likely &amp;quot;All rights reserved,&amp;quot; but need physical text to verify&lt;br /&gt;
**This book is contains translations and annotations of 14 Lingala poems&lt;br /&gt;
**According to WorldCat, the only copies available are in Europe. I submitted an ILL request, but was told no libraries were willing to lend it.&lt;br /&gt;
&lt;br /&gt;
*Arizona Banongoli (2011). [http://www.worldcat.org/title/translation-of-classic-lingala-songs/oclc/733548859&amp;amp;referer=brief_results Translation of Classic Lingala Songs]. Congoman Publishers.&lt;br /&gt;
**License: Likely &amp;quot;All rights reserved,&amp;quot; but need physical text to verify&lt;br /&gt;
**This book contains Lingala songs and their English translation&lt;br /&gt;
**This is available through E-ZBorrow, and I submitted a request on 21 January 2017.&lt;br /&gt;
&lt;br /&gt;
*(2010). [https://www.lds.org/bc/content/shared/content/lingala/pdf/language-materials/34406_lin.pdf?lang=lin Buku Ya Molomoni]. Church of Jesus Christ of Latter-day Saints.&lt;br /&gt;
**License: &amp;quot;© 2004 o Intellectual Reserve, Inc&amp;quot;&lt;br /&gt;
**This is a Lingala translation of the Book of Mormon&lt;br /&gt;
**A PDF is available at think link given above&lt;br /&gt;
&lt;br /&gt;
*See Michael Meeuwis (2013) in the grammar section. It also includes a transcription of an interview with annotation. I believe the excerpted gloss is available [https://cdstar.shh.mpg.de/bitstreams/EAEA0-5916-5CA3-28EB-0/60_gt.pdf here].&lt;br /&gt;
&lt;br /&gt;
*[http://unicode.org/udhr/d/udhr_lin_tones.html Universal Declaration of Human Rights] (with tones)&lt;br /&gt;
**License: © 1996 – 2009 The Office of the High Commissioner for Human Rights&lt;br /&gt;
**This is a Lingala translation of the universal declaration of human rights&lt;br /&gt;
&lt;br /&gt;
*Lingala language Wikipedia available [https://ln.wikipedia.org/wiki/Lok%C3%A1s%C3%A1_ya_libos%C3%B3 here].&lt;br /&gt;
**License: See [https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content here] for a complete explanation of Wikipedia licenses&lt;br /&gt;
**Full text available at the link provided&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_ResourceDocumentation]]&lt;br /&gt;
[[Category:Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4740</id>
		<title>Lingala/Universal Dependencies</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala/Universal_Dependencies&amp;diff=4740"/>
				<updated>2017-04-21T17:14:51Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: Created page with &amp;quot;Lingala Universal Dependencies are documented on this page.  Category: sp17_UD Category: Lingala&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lingala Universal Dependencies are documented on this page.&lt;br /&gt;
&lt;br /&gt;
[[Category: sp17_UD]]&lt;br /&gt;
[[Category: Lingala]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4564</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4564"/>
				<updated>2017-04-17T14:01:40Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* kik → lin MT Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a demonstrative nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.10%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Number of stems in longer corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
*Number of stems in large corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus): 86.32%&lt;br /&gt;
*PER (longer corpus): 75.21%&lt;br /&gt;
*Percentage unknown words: 39.50% [Actually probably a bit higher since some words were marked with an &amp;quot;@&amp;quot; and not translated while the script only looks for words marked with a &amp;quot;*&amp;quot;]&lt;br /&gt;
*Percentage known words: 60.60%&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4563</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4563"/>
				<updated>2017-04-17T14:00:12Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* kik → lin MT Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a demonstrative nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.10%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Number of stems in longer corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
*Number of stems in large corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus): 86.32%&lt;br /&gt;
*PER (longer corpus): 75.21%&lt;br /&gt;
*Percentage unknown words: 39.50%&lt;br /&gt;
*Percentage known words: 60.60%&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4543</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4543"/>
				<updated>2017-04-15T17:19:55Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* lin → kik MT Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a demonstrative nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.10%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Number of stems in longer corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
*Number of stems in large corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4542</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4542"/>
				<updated>2017-04-15T17:19:09Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Additional Constraint Grammar Rules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a demonstrative nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.10%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Number of stems in longer corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in large corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4498</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4498"/>
				<updated>2017-04-13T15:44:14Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* lin Transducer Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.10%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Number of stems in longer corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in large corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4497</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4497"/>
				<updated>2017-04-13T15:42:02Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* lin → kik MT Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.08%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.90%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Number of stems in longer corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in large corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4496</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4496"/>
				<updated>2017-04-13T15:41:08Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* lin → kik MT Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.08%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.88%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 89.29%&lt;br /&gt;
*Number of stems in longer corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in large corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4495</id>
		<title>Lingala and Kikuyu</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Lingala_and_Kikuyu&amp;diff=4495"/>
				<updated>2017-04-13T15:35:14Z</updated>
		
		<summary type="html">&lt;p&gt;Apowell1: /* Final Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between [[Lingala]] and [[Kikuyu]]. Code is stored in a [https://github.swarthmore.edu/apowell1/ling073-kik-lin GitHub Repository].&lt;br /&gt;
==Developed Resources==&lt;br /&gt;
===Parallel Corpus===&lt;br /&gt;
&lt;br /&gt;
A [https://github.swarthmore.edu/apowell1/ling073-lin-kik-corpus parallel corpus] created using two translations of Genesis is available on Github.&lt;br /&gt;
&lt;br /&gt;
===Contrastive Grammar===&lt;br /&gt;
Contrastive Grammar is detailed on the wiki page [[Lingala and Kikuyu/Contrastive Grammar]].&lt;br /&gt;
&lt;br /&gt;
===Lexical Selection===&lt;br /&gt;
Lexical selection is detailed on the wiki page [[Lingala and Kikuyu/Lexical Selection]].&lt;br /&gt;
&lt;br /&gt;
===Structural Transfer===&lt;br /&gt;
Structural transfer is detailed on the wiki page [[Lingala and Kikuyu/Structural Transfer]]&lt;br /&gt;
&lt;br /&gt;
==Installing Unidecode For MT Evaluation==&lt;br /&gt;
Most available Lingala text does not mark tones; however, the Lingala transducer has been configured using spellrelax to provide analyses and surface generation with tone markings included as accents on vowels. As a result, generated translations will include tone markings not present in the reference translation and artificially inflate evaluation metrics such as WER and PER. Fortunately, we can take advantage of the fact that accented characters are not present in ASCII to replace accented characters with their unaccented version on the command line.&lt;br /&gt;
&lt;br /&gt;
[https://pypi.python.org/pypi/Unidecode Unidecode] is a Python package that implements a function to convert Unicode strings into their closest ASCII approximation. For simple accented characters, this is precisely the mapping we need to remove the accents for evaluation against a reference translation. Unidecode can also be used on the command line with our machine translation system as follows: &amp;lt;code&amp;gt;echo /path/to/kik-corpus | apertium -d . kik-lin | unidecode&amp;lt;/code&amp;gt;. To install unidecode, it is recommended to use &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt;, as experience suggests that &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; will not run the necessary installation scripts to make unidecode accessible in Bash.&lt;br /&gt;
&lt;br /&gt;
On the Ling 073 virtual machines, Pip can be installed using &amp;lt;code&amp;gt;sudo apt-get install python-pip&amp;lt;/code&amp;gt;. After installing pip, unidecode can be installed using &amp;lt;code&amp;gt; pip install unidecode&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
==Lexical Selection==&lt;br /&gt;
This section is part of the [[Lexical transfer]] assignment. In addition to adding many one-to-one mappings to our .dix file, we have included a couple of one-to-many mappings for each direction of translation. See [[Lingala and Kikuyu/Lexical Selection]] for further details.&lt;br /&gt;
&lt;br /&gt;
From Lingala to Kikuyu, we consider four one-to-many mappings:&lt;br /&gt;
*The Lingala verb kokíma can be translated in English as both &amp;quot;to run&amp;quot; and &amp;quot;to run away.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, hanyũk and ũr.&lt;br /&gt;
*The Lingala verb kofánda can be translated in English as both &amp;quot;to sit&amp;quot; and &amp;quot;to live&amp;quot; (as in reside). Kikuyu has two distinct verbs corresponding to these English translations, respectively, ikar and tũũr.&lt;br /&gt;
*The Lingala verb kobánza can be translated in English as both &amp;quot;to think&amp;quot; and &amp;quot;to remember.&amp;quot; Kikuyu has two distinct verbs corresponding to these English translations, respectively, ĩcir and ririkan.&lt;br /&gt;
*The Lingala noun mabele can be translated in English as both &amp;quot;sand&amp;quot; and &amp;quot;milk.&amp;quot; Kikuyu has two distinct nouns corresponding to these English translations, respectively, thanga and ria.&lt;br /&gt;
&lt;br /&gt;
From Kikuyu to Lingala, we consider three one-to-many-mappings:&lt;br /&gt;
*The Kikuyu verb igu can be translated in English as both &amp;quot;to obey&amp;quot; and &amp;quot;to hear.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, kotosa and koyoka.&lt;br /&gt;
*The Kikuyu verb rut can be translated in English as both &amp;quot;to learn&amp;quot; and &amp;quot;to remove.&amp;quot; Lingala has two distinct verbs corresponding to these English translations, respectively, koyekola and kokukula.&lt;br /&gt;
*the Kikuyu noun ria can be translated in English as both &amp;quot;milk&amp;quot; and &amp;quot;pond.&amp;quot; Lingala has two distinct nouns corresponding to these English translations, respectively, mabele and etimá.&lt;br /&gt;
&lt;br /&gt;
==Initial Evaluation==&lt;br /&gt;
===lin → kik evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 87.50%&lt;br /&gt;
**PER: 87.50%&lt;br /&gt;
**Number of words: 9&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 99.06%&lt;br /&gt;
**PER: 94.34%&lt;br /&gt;
**Number of words: 107&lt;br /&gt;
**Number of unknown words: 71&lt;br /&gt;
**Proportion of stems translated correctly:33.64%&lt;br /&gt;
&lt;br /&gt;
===kik → lin evaluation===&lt;br /&gt;
*Evaluation on mini corpus:&lt;br /&gt;
**WER: 80%&lt;br /&gt;
**PER: 80%&lt;br /&gt;
**Number of words: 7 (This should really be 8, but the command we are supposed to use to count this outputs 7. The proportion remains unchanged in our case, however.)&lt;br /&gt;
**Number of unknown words: 0&lt;br /&gt;
**Proportion of stems translated correctly: 100%&lt;br /&gt;
&lt;br /&gt;
*Evaluation of corpus:&lt;br /&gt;
**WER: 98.13%&lt;br /&gt;
**PER: 90.65%&lt;br /&gt;
**Number of words: 106&lt;br /&gt;
**Number of unknown words: 79 (Note: Using the commands on the wiki gives a slightly different count that using the apertium-eval-translator tool. We use the count given by the command, not the tool)&lt;br /&gt;
**Proportion of stems translated correctly: 25.47%&lt;br /&gt;
&lt;br /&gt;
==Final Evaluation==&lt;br /&gt;
===lin → kik Implementation Details===&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
===kik → lin Implementation Details===&lt;br /&gt;
This direction of the RBMT system was improved by adding items to the bilingual dictionary, adding additional morphology to the transducer, writing more constraint grammar rules, and writing additional transfer rules. Specific implementation details with examples of improved output are detailed in the sections that follow.&lt;br /&gt;
&lt;br /&gt;
====Bilingual Dictionary Expansion====&lt;br /&gt;
Difference can be seen by looking at the Github commit history.&lt;br /&gt;
&lt;br /&gt;
====Morphology Expansion====&lt;br /&gt;
*Support for proper nouns&lt;br /&gt;
**Example sentence: &amp;quot;Nzambe&amp;quot; (God)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nzambe/*Nzambe$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nzambe/Nzambe&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for imperative mood&lt;br /&gt;
**Example sentence: &amp;quot;Kíma!&amp;quot; (Run!)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Kíma/*Kíma$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Kíma/kokíma&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^!/!&amp;lt;sent&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for intensifying suffixes (-a becomes -áká to denote certainty (infinitive, future) or insistence (imperative))&lt;br /&gt;
**Example sentence 1: &amp;quot;Azalákí kopésáká&amp;quot; (He was really distributing...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/*kopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Azalákí/kozala&amp;lt;v&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;/kozala&amp;lt;vaux&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^kopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;inf&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: &amp;quot;Akopésáká&amp;quot; (He will really give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Akopésáká/*Akopésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Akopésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;intns&amp;gt;&amp;lt;fut&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 3: &amp;quot;Pésáká&amp;quot; (Now do give...)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Pésáká/*Pésáká$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output &amp;lt;code&amp;gt;^Pésáká/kopésa&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;intns&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for more than 1 radical extension&lt;br /&gt;
**Example sentence: &amp;quot;Nabángisamákí na Pierre&amp;quot; (I was scared by Pierre, or more literally, I was made, by Pierre, to fear something/someone)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^Nabángisamákí/*Nabángisamákí$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^Nabángisamákí/kobánga&amp;lt;v&amp;gt;&amp;lt;caus&amp;gt;&amp;lt;pass&amp;gt;&amp;lt;urp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$ ^na/na&amp;lt;pr&amp;gt;/na&amp;lt;cngcoo&amp;gt;$ ^Pierre/Pierre&amp;lt;n&amp;gt;&amp;lt;prop&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for numerals&lt;br /&gt;
**Example sentence: &amp;quot;zómi&amp;quot; (ten)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^zómi/*zómi$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^zómi/zómi&amp;lt;num&amp;gt;&amp;lt;ord&amp;gt;/zómi&amp;lt;num&amp;gt;&amp;lt;card&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Support for quantifiers&lt;br /&gt;
**Example sentence: &amp;quot;mbelí nyónso&amp;quot; (each knife)&lt;br /&gt;
**Old output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/*nyónso$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output: &amp;lt;code&amp;gt;^mbelí/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;sg&amp;gt;/mbelí&amp;lt;n&amp;gt;&amp;lt;cl9&amp;gt;&amp;lt;pl&amp;gt;$ ^nyónso/nyónso&amp;lt;det&amp;gt;&amp;lt;qnt&amp;gt;$^./.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Constraint Grammar Rules====&lt;br /&gt;
*If I am an adjective and a quantifier but I do not agree in number with the preceding noun, I must be a quantifier&lt;br /&gt;
**Example sentence: &amp;quot;bilóko moké&amp;quot; (A few things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; small things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
	&amp;quot;moké&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;moké&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;moké&amp;quot; det qnt&lt;br /&gt;
;	&amp;quot;moké&amp;quot; adj sg REMOVE:21&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a singular adjective, I cannot be plural&lt;br /&gt;
**Example sentence: &amp;quot;nzelá molaí&amp;quot; (a long road)&lt;br /&gt;
**Old output (below) &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 pl REMOVE:25&lt;br /&gt;
&amp;quot;&amp;lt;molaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj sg&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I am a noun that can be singular or plural and am followed by a plural adjective, I cannot be singular&lt;br /&gt;
**Example sentence: &amp;quot;nzelá milaí&amp;quot; (long roads)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 sg&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;nzelá&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;nzelá&amp;quot; n cl9 pl&lt;br /&gt;
;	&amp;quot;nzelá&amp;quot; n cl9 sg REMOVE:28&lt;br /&gt;
&amp;quot;&amp;lt;milaí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;molaí&amp;quot; adj pl&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be an ordinal and a cardinal and am modifying a plural noun, I am not an ordinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;bilóko míbalé&amp;quot; (two things, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; the second thing)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;bilóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 pl&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num ord REMOVE:31&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be and ordinal and a cardinal and am modifying a a singular noun, I am not a cardinal. (One is never both an ordinal and cardinal, so this is not a problem.)&lt;br /&gt;
**Example sentence: &amp;quot;elóko mibalé&amp;quot; (the second thing, &amp;#039;&amp;#039;not&amp;#039;&amp;#039; two things)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num card&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;elóko&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;elóko&amp;quot; n cl7 sg&lt;br /&gt;
&amp;quot;&amp;lt;míbalé&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;míbalé&amp;quot; num ord&lt;br /&gt;
;	&amp;quot;míbalé&amp;quot; num card REMOVE:34&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If I can be a demonstrative nominal and a relative pronoun and am proceeded by a noun, I cannot be a nominal.&lt;br /&gt;
**Example sentence: &amp;quot;Mobali óyo amonaki ngáí&amp;quot; (The man who saw me...)&lt;br /&gt;
**Old output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn dem sg&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:*New output (below)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;Mobali&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;mobali&amp;quot; n cl1 sg&lt;br /&gt;
&amp;quot;&amp;lt;óyo&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;óyo&amp;quot; prn rel&lt;br /&gt;
	&amp;quot;óyo&amp;quot; det dem&lt;br /&gt;
;	&amp;quot;óyo&amp;quot; prn dem sg REMOVE:37&lt;br /&gt;
&amp;quot;&amp;lt;amonaki&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;komóna&amp;quot; v urp p3 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;ngáí&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;ngáí&amp;quot; prn pers p1 sg aa&lt;br /&gt;
&amp;quot;&amp;lt;.&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;.&amp;quot; sent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Additional Transfer Rules====&lt;br /&gt;
*Enhance existing basic verb transfer rule to work with newly implemented imperative&lt;br /&gt;
**Example sentence: &amp;quot;ina&amp;quot; (sing)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;aa&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#koyemba&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans:&amp;lt;code&amp;gt;^in&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk:&amp;lt;code&amp;gt;^verb&amp;lt;verb&amp;gt;{^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^koyemba&amp;lt;v&amp;gt;&amp;lt;imp&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;yemba&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Map Kikuyu associative to Lingala connective by removing extra agreement tags found in Kikuyu&lt;br /&gt;
**Example sentence: &amp;quot;wa&amp;quot;&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#ya&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^a&amp;lt;assoc&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;/ya&amp;lt;conn&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^conn_chunk&amp;lt;conn&amp;gt;{^ya&amp;lt;conn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^ya&amp;lt;conn&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;ya&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Basic adjective transfer: keep number markings if a variable adjective in Lingala, discard otherwise&lt;br /&gt;
**Example sentence 1: anene (big)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#monéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^nene&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;/monéne&amp;lt;adj&amp;gt;&amp;lt;cl1&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^monéne&amp;lt;adj&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;minéne&amp;lt;/code&amp;gt;&lt;br /&gt;
**Example sentence 2: mata (sour)&lt;br /&gt;
**Old output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^default&amp;lt;default&amp;gt;{^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;#bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
**New output&lt;br /&gt;
***Tagger: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Biltrans: &amp;lt;code&amp;gt;^mata&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;/bololo&amp;lt;adj&amp;gt;&amp;lt;cl7&amp;gt;&amp;lt;pl&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Chunker: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Interchunk: &amp;lt;code&amp;gt;^adjective&amp;lt;adj&amp;gt;{^bololo&amp;lt;adj&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Postchunk: &amp;lt;code&amp;gt;^bololo&amp;lt;adj&amp;gt;$^.&amp;lt;sent&amp;gt;$&amp;lt;/code&amp;gt;&lt;br /&gt;
***Complete translation: &amp;lt;code&amp;gt;bololo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===lin Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus): 80.53%&lt;br /&gt;
*Recall (annotated corpus): 55.64%&lt;br /&gt;
*Coverage (large corpus): 62.08%&lt;br /&gt;
*Number of words (large corpus): 275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in transducer: 273&lt;br /&gt;
&lt;br /&gt;
===kik Transducer Evaluation===&lt;br /&gt;
*Precision (annotated corpus):&lt;br /&gt;
*Recall (annotated corpus): &lt;br /&gt;
*Coverage (large corpus):&lt;br /&gt;
*Number of words (large corpus):&lt;br /&gt;
*Number of stems in transducer:&lt;br /&gt;
&lt;br /&gt;
===lin → kik MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [lin-kik.automorf.bin applied to lin.corpus.large.txt]: 48.88%&lt;br /&gt;
*Trimmed coverage over large corpus [lin-kik.automorf.bin applied to lin.longer.txt]: 88.57%&lt;br /&gt;
*Number of stems in longer corpus:  275,546 (actual), 304,425 (tokenized)&lt;br /&gt;
*Number of stems in large corpus: 117 (actual) 140 (tokenized, perhaps including punctuation)&lt;br /&gt;
&lt;br /&gt;
===kik → lin MT Evaluation===&lt;br /&gt;
*WER (longer corpus):&lt;br /&gt;
*PER (longer corpus):&lt;br /&gt;
*Percentage unknown words:&lt;br /&gt;
*Percentage known words:&lt;br /&gt;
*Trimmed coverage over longer corpus [kik-lin.automorf.bin applied to kik.corpus.larger.txt]:&lt;br /&gt;
*Trimmed coverage over large corpus [kik-lin.automorf.bin applied to kik.longer.txt]:&lt;br /&gt;
*Number of stems in longer corpus:&lt;br /&gt;
*Number of stems in large corpus:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;br /&gt;
[[Category:Lingala]]&lt;br /&gt;
[[Category:Kikuyu]]&lt;/div&gt;</summary>
		<author><name>Apowell1</name></author>	</entry>

	</feed>