<?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=Ltarlin1</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=Ltarlin1"/>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/Special:Contributions/Ltarlin1"/>
		<updated>2026-10-25T16:02:50Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5481</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5481"/>
				<updated>2017-05-14T00:52:55Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-cha Link to Github page]&lt;br /&gt;
&lt;br /&gt;
== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.345 (2031 analyses of 1510 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase. Also, this initial evaluation includes the two sentences (listed below) that I added to the corpus to test the disambiguator so that the size of the corpus would be constant before and after this step.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Words can sometimes be either nouns, verbs, or adjectives depending on the surrounding context. For example, the word &amp;#039;dánkolo&amp;#039; takes a different grammatical role in the two following sentences:&lt;br /&gt;
* Hu liʼeʼ i dánkolo (I saw the big one)&lt;br /&gt;
* Hu liʼeʼ i dánkolo na taotao (I saw the big person)&lt;br /&gt;
&lt;br /&gt;
In the first sentence, the word serves as a noun because there is no other noun later in the sentence. However, in the second sentence, the noun &amp;#039;taotao (person)&amp;#039; is present, making &amp;#039;dánkolo&amp;#039; into an adjective. I believe that in any sentence of the form of the second sentence, the noun that the adjective modifies will be exactly two words away. Therefore, the constraint that I will use is that every time that a noun is two words after the adjective/noun ambiguous word, the transducer should select the adjective analysis of the word. Conversely, whenever this context does not appear, I will force the transducer to default to the noun reading.&lt;br /&gt;
&lt;br /&gt;
== Final Evaluation of Ambiguity ==&lt;br /&gt;
Final ambiguity is 1.344 (2029 analyses of 1510 tokens).&lt;br /&gt;
* This makes sense because the disambiguation rule I wrote focused specifically on a single construction that did not appear at all in my original corpus. Therefore, the only two sentences with ambiguities removed were the two that I added to test whether the rules were working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5445</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5445"/>
				<updated>2017-05-12T05:18:49Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-cha Link to Github page]&lt;br /&gt;
&lt;br /&gt;
== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.345 (2031 analyses of 1510 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase. Also, this initial evaluation includes the two sentences (listed below) that I added to the corpus to test the disambiguator so that the size of the corpus would be constant before and after this step.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Words can sometimes be either nouns, verbs, or adjectives depending on the surrounding context. For example, the word &amp;#039;dánkolo&amp;#039; takes a different grammatical role in the two following sentences:&lt;br /&gt;
* Hu liʼeʼ i dánkolo (I saw the big one)&lt;br /&gt;
* Hu liʼeʼ i dánkolo na taotao (I saw the big person)&lt;br /&gt;
&lt;br /&gt;
In the first sentence, the word serves as a noun because there is no other noun later in the sentence. However, in the second sentence, the noun &amp;#039;taotao (person)&amp;#039; is present, making &amp;#039;dánkolo&amp;#039; into an adjective. I believe that in any sentence of the form of the second sentence, the noun that the adjective modifies will be exactly two words away. Therefore, the constraint that I will use is that every time that a noun is two words after the adjective/noun ambiguous word, the transducer should select the adjective analysis of the word.&lt;br /&gt;
&lt;br /&gt;
== Final Evaluation of Ambiguity ==&lt;br /&gt;
Final ambiguity is 1.344 (2030 analyses of 1510 tokens).&lt;br /&gt;
* This makes sense because the disambiguation rule I wrote focused specifically on a single construction that did not appear at all in my original corpus. The only reason that both new sentences were not analyzed correctly was that I could not figure out how to make it default to the noun unless the sentence fit the specified environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5444</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5444"/>
				<updated>2017-05-12T05:18:36Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-cha Code]&lt;br /&gt;
&lt;br /&gt;
== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.345 (2031 analyses of 1510 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase. Also, this initial evaluation includes the two sentences (listed below) that I added to the corpus to test the disambiguator so that the size of the corpus would be constant before and after this step.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Words can sometimes be either nouns, verbs, or adjectives depending on the surrounding context. For example, the word &amp;#039;dánkolo&amp;#039; takes a different grammatical role in the two following sentences:&lt;br /&gt;
* Hu liʼeʼ i dánkolo (I saw the big one)&lt;br /&gt;
* Hu liʼeʼ i dánkolo na taotao (I saw the big person)&lt;br /&gt;
&lt;br /&gt;
In the first sentence, the word serves as a noun because there is no other noun later in the sentence. However, in the second sentence, the noun &amp;#039;taotao (person)&amp;#039; is present, making &amp;#039;dánkolo&amp;#039; into an adjective. I believe that in any sentence of the form of the second sentence, the noun that the adjective modifies will be exactly two words away. Therefore, the constraint that I will use is that every time that a noun is two words after the adjective/noun ambiguous word, the transducer should select the adjective analysis of the word.&lt;br /&gt;
&lt;br /&gt;
== Final Evaluation of Ambiguity ==&lt;br /&gt;
Final ambiguity is 1.344 (2030 analyses of 1510 tokens).&lt;br /&gt;
* This makes sense because the disambiguation rule I wrote focused specifically on a single construction that did not appear at all in my original corpus. The only reason that both new sentences were not analyzed correctly was that I could not figure out how to make it default to the noun unless the sentence fit the specified environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5443</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5443"/>
				<updated>2017-05-12T05:17:26Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
&lt;br /&gt;
== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.345 (2031 analyses of 1510 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase. Also, this initial evaluation includes the two sentences (listed below) that I added to the corpus to test the disambiguator so that the size of the corpus would be constant before and after this step.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Words can sometimes be either nouns, verbs, or adjectives depending on the surrounding context. For example, the word &amp;#039;dánkolo&amp;#039; takes a different grammatical role in the two following sentences:&lt;br /&gt;
* Hu liʼeʼ i dánkolo (I saw the big one)&lt;br /&gt;
* Hu liʼeʼ i dánkolo na taotao (I saw the big person)&lt;br /&gt;
&lt;br /&gt;
In the first sentence, the word serves as a noun because there is no other noun later in the sentence. However, in the second sentence, the noun &amp;#039;taotao (person)&amp;#039; is present, making &amp;#039;dánkolo&amp;#039; into an adjective. I believe that in any sentence of the form of the second sentence, the noun that the adjective modifies will be exactly two words away. Therefore, the constraint that I will use is that every time that a noun is two words after the adjective/noun ambiguous word, the transducer should select the adjective analysis of the word.&lt;br /&gt;
&lt;br /&gt;
== Final Evaluation of Ambiguity ==&lt;br /&gt;
Final ambiguity is 1.344 (2030 analyses of 1510 tokens).&lt;br /&gt;
* This makes sense because the disambiguation rule I wrote focused specifically on a single construction that did not appear at all in my original corpus. The only reason that both new sentences were not analyzed correctly was that I could not figure out how to make it default to the noun unless the sentence fit the specified environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5442</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5442"/>
				<updated>2017-05-12T02:56:57Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.338 (2005 analyses of 1498 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Words can sometimes be either nouns, verbs, or adjectives depending on the surrounding context. For example, the word &amp;#039;dánkolo&amp;#039; takes a different grammatical role in the two following sentences:&lt;br /&gt;
* Hu liʼeʼ i dánkolo (I saw the big one)&lt;br /&gt;
* Hu liʼeʼ i dánkolo na taotao (I saw the big person)&lt;br /&gt;
&lt;br /&gt;
In the first sentence, the word serves as a noun because there is no other noun later in the sentence. However, in the second sentence, the noun &amp;#039;taotao (person)&amp;#039; is present, making &amp;#039;dánkolo&amp;#039; into an adjective. I believe that in any sentence of the form of the second sentence, the noun that the adjective modifies will be exactly two words away. Therefore, the constraint that I will use is that every time that a noun is two words after the adjective/noun ambiguous word, the transducer should select the adjective analysis of the word.&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5441</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5441"/>
				<updated>2017-05-12T02:44:21Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Initial Evaluation of Ambiguity ==&lt;br /&gt;
Initial ambiguity is 1.338 (2005 analyses of 1498 tokens).&lt;br /&gt;
* Many of the ambiguous forms are pronouns. The way the transducer works at this moment, I gave every pronoun the ability to be analyzed in any person and number. I wasn&amp;#039;t sure if this was the best way to go about it, but it does cause a lot of multiple analyses in this disambiguation phase.&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro&amp;diff=5434</id>
		<title>Chamorro</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro&amp;diff=5434"/>
				<updated>2017-05-12T00:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Developed Resources ==&lt;br /&gt;
* https://wikis.swarthmore.edu/ling073/Chamorro/Keyboard&lt;br /&gt;
* https://github.swarthmore.edu/ltarlin1/-ling073-cha-keyboard&lt;br /&gt;
* https://github.swarthmore.edu/ltarlin1/ling073-cha-corpus&lt;br /&gt;
* https://wikis.swarthmore.edu/ling073/Chamorro/Grammar&lt;br /&gt;
* https://github.swarthmore.edu/ltarlin1/ling073-cha&lt;br /&gt;
* https://wikis.swarthmore.edu/ling073/Chamorro/Transducer&lt;br /&gt;
* https://wikis.swarthmore.edu/ling073/Chamorro/Disambiguation&lt;br /&gt;
Resources for machine translation between Bikol and Chamorro &lt;br /&gt;
* https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro&lt;br /&gt;
&lt;br /&gt;
== External Resources ==&lt;br /&gt;
=== Computational Resources ===&lt;br /&gt;
I could not find any computational resources for Chamorro.&lt;br /&gt;
&lt;br /&gt;
=== Dictionaries ===&lt;br /&gt;
* Learn Chamorro app, available on iOS and Android &amp;lt;ref&amp;gt;http://www.chamoru.info/learn-chamorro-app/&amp;lt;/ref&amp;gt; [Copyright 2017, all rights reserved]&lt;br /&gt;
* Online dictionary, appears to have a variety of words and phrases &amp;lt;ref&amp;gt;http://www.chamoru.info/dictionary/&amp;lt;/ref&amp;gt; [Copyright 2015 by Chamoru.Info, all rights reserved]&lt;br /&gt;
* List of words, with a few unhelpful annotations &amp;lt;ref&amp;gt;http://language.psy.auckland.ac.nz/austronesian/language.php?id=18&amp;lt;/ref&amp;gt; [Creative commons attribution license]&lt;br /&gt;
* Chamorro cultural glossary, not too many words but maybe still helpful &amp;lt;ref&amp;gt;http://www.guampedia.com/haleta-chamorro-cultural-glossary/&amp;lt;/ref&amp;gt; [Copyrighted in 2014 by Guampedia]&lt;br /&gt;
* Chamorro-English dictionary available at McCabe (Topping, Donald M. Chamorro-English dictionary. Honolulu: University Press of Hawaii, 1975. Print.) [All rights reserved]&lt;br /&gt;
&lt;br /&gt;
=== Grammars ===&lt;br /&gt;
* Reference grammar available at McCabe, should be useful for linguistic resources (Topping, Donald M, and Bernadita Camacho-Dungca. Chamorro Reference Grammar. Honolulu: University Press of Hawaii, 1973. Print.) [All rights reserved]&lt;br /&gt;
* Guampedia has lots of materials, including a description of orthography rules &amp;lt;ref&amp;gt;http://www.guampedia.com/chamorro-orthography-rules/&amp;lt;/ref&amp;gt; [Copyrighted in 2014 by Guampedia]&lt;br /&gt;
* Dictionary and grammar of the Chamorro language from 1918 &amp;lt;ref&amp;gt;https://archive.org/details/dictionarygramma00preirich&amp;lt;/ref&amp;gt; [Public domain]&lt;br /&gt;
&lt;br /&gt;
=== Scientific works ===&lt;br /&gt;
* Glottolog lists many resources, but I don&amp;#039;t know how available these are &amp;lt;ref&amp;gt;http://glottolog.org/resource/languoid/id/cham1312&amp;lt;/ref&amp;gt; [Creative commons attribution license]&lt;br /&gt;
* Guampedia also has an article about the history of Chamorro orthography &amp;lt;ref&amp;gt;http://www.guampedia.com/chamorro-orthography/&amp;lt;/ref&amp;gt; [Copyrighted in 2014 by Guampedia]&lt;br /&gt;
* The Chamorro Language of Guam, published in 1903, free for download &amp;lt;ref&amp;gt;https://www.jstor.org/stable/659055?seq=1#page_scan_tab_contents&amp;lt;/ref&amp;gt; [Request permissions for copyright]&lt;br /&gt;
* Alternative Analyses of Chamorro Vowels, from 1973, free for download &amp;lt;ref&amp;gt;http://www.jstor.org/stable/30029125?seq=1#page_scan_tab_contents&amp;lt;/ref&amp;gt; [Request permissions for copyright]&lt;br /&gt;
&lt;br /&gt;
=== Corpora ===&lt;br /&gt;
* Found online Bible translated in 1908, seems very complete &amp;lt;ref&amp;gt;https://www.stepbible.org/version.jsp?version=Chamorro&amp;lt;/ref&amp;gt; [Copyrights listed on page]&lt;br /&gt;
* Other online bible, used for translation part of semester &amp;lt;ref&amp;gt;http://paralleltext.info/data/cha-x-bible-2010/41/001/&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Universal declaration of human rights &amp;lt;ref&amp;gt;http://www.ohchr.org/EN/UDHR/Pages/Language.aspx?LangID=cjd&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Translation of 1671 speech by Chief Hurao of Guam &amp;lt;ref&amp;gt;http://ns.gov.gu/hurao.html&amp;lt;/ref&amp;gt; [Unsure about copyright]&lt;br /&gt;
* 418 content pages on Wikipedia, but most have very little text &amp;lt;ref&amp;gt;https://ch.wikipedia.org/w/index.php?title=Espesiat:AllPages&amp;amp;hideredirects=1&amp;lt;/ref&amp;gt; [Creative Commons license]&lt;br /&gt;
** the page for Indonesia has a couple sentences, which may be helpful&lt;br /&gt;
&lt;br /&gt;
=== References ===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_ResourceDocumentation]]&lt;br /&gt;
[[Category:Chamorro]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5433</id>
		<title>Chamorro/Disambiguation</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Chamorro/Disambiguation&amp;diff=5433"/>
				<updated>2017-05-12T00:17:57Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: Created page with &amp;quot;boop  Category:Sp17 Disambiguation&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;boop&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17 Disambiguation]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5398</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5398"/>
				<updated>2017-05-11T03:14:14Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Private link]&lt;br /&gt;
[https://github.com/mercurio83/ling073-ltarlin1-autoglosser Public link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called [http://mirror.unl.edu/ctan/graphics/pgf/contrib/tikz-dependency/tikz-dependency-doc.pdf tikz-dependency] that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are m (for multiple, or batch processing) or s (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are 1 (for yes) or 0 (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[OPTIONAL] Dependencies&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5311</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5311"/>
				<updated>2017-05-10T06:47:02Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called [http://mirror.unl.edu/ctan/graphics/pgf/contrib/tikz-dependency/tikz-dependency-doc.pdf tikz-dependency] that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are m (for multiple, or batch processing) or s (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are 1 (for yes) or 0 (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[OPTIONAL] Dependencies&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5310</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5310"/>
				<updated>2017-05-10T06:46:50Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called [http://mirror.unl.edu/ctan/graphics/pgf/contrib/tikz-dependency/tikz-dependency-doc.pdf tikz-dependency] that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are 1 (for yes) or 0 (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[OPTIONAL] Dependencies&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5309</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5309"/>
				<updated>2017-05-10T06:45:25Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called [http://mirror.unl.edu/ctan/graphics/pgf/contrib/tikz-dependency/tikz-dependency-doc.pdf tikz-dependency] that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[OPTIONAL] Dependencies&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5308</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5308"/>
				<updated>2017-05-10T06:43:40Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[OPTIONAL] Dependencies&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5307</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5307"/>
				<updated>2017-05-10T06:43:21Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dependencies [OPTIONAL]&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5306</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5306"/>
				<updated>2017-05-10T06:41:54Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039;: This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039;: This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dependencies &amp;lt;optional&amp;gt;&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5305</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5305"/>
				<updated>2017-05-10T06:41:36Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]. The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039; : This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039; : This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039; : This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dependencies &amp;lt;optional&amp;gt;&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5304</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5304"/>
				<updated>2017-05-10T06:40:55Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Clone the github repository found [https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser here]&lt;br /&gt;
&amp;lt;li&amp;gt;The &amp;lt;code&amp;gt;autoglosser.py&amp;lt;/code&amp;gt; file can be run with the following format: &amp;lt;code&amp;gt;python autoglosser.py [input file] [type] [POS tags] &amp;lt;dependencies to include - OPTIONAL&amp;gt;&amp;lt;/code&amp;gt;. Each of these arguments is explained in more detail below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;input file&amp;#039;&amp;#039;&amp;#039; : This argument specifies the CG file to be diagrammed. The code expects the name of the file to follow the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot;, but this parameter only requires the label. For example, if the desired input file were &amp;quot;fox_input.txt&amp;quot;, this argument would simply be &amp;quot;fox&amp;quot;. The exception to this rule is if the user wants to do batch processing, in which case this argument is simply the name of the file containing the other filenames.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;type&amp;#039;&amp;#039;&amp;#039; : This argument specifies whether the input file is a single sentence or a list of filenames. The options are &amp;quot;m&amp;quot; (for multiple, or batch processing) or &amp;quot;s&amp;quot; (for a single sentence).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;POS tags&amp;#039;&amp;#039;&amp;#039; : This argument specifies whether the part-of-speech tags should be displayed below the text of the sentence. The options are &amp;quot;1&amp;quot; (for yes) or &amp;quot;0&amp;quot; (for no).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Dependencies &amp;lt;optional&amp;gt;&amp;#039;&amp;#039;&amp;#039; : This optional argument (or arguments) are the specific dependency types that should be displayed in the graph. If more than one is desired, simply list them here separated by spaces. For example, if you wanted to only see dependencies of type &amp;quot;det&amp;quot; and &amp;quot;amod&amp;quot;, you would add &amp;quot;det amod&amp;quot; after the POS tag argument.&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
I evaluated the quality of the autoglosser by the extent to which it accomplished the things I set out to accomplish. On a most basic level, the project goal was to provide an automatic way to visualize the syntactic dependencies of a sentence in Latex. Not only did my code do this, it provided additional customization to selectively view certain portions of the diagram. It also allowed for automatic batch processing to expedite the visualization process for a large corpus. Although there are still ways that the functionality of the autoglosser could be expanded and the aesthetics improved, the results that I got are what I hoped to produce for this final project.&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5303</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5303"/>
				<updated>2017-05-10T06:22:13Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Users */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Who Will Benefit ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5302</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5302"/>
				<updated>2017-05-10T06:21:52Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph basic.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos.png|800px|Dependency tree of &amp;quot;The resulting graph after setting the POS tags as visible.]]&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
In some situations, it may be useful to only view dependencies of a certain type. My tool allows you to optionally specify specific tag names that you want to appear in the graph. If no individual dependency types are listed, it will default to showing all of them. This is the same sentence as the previous examples, but this time with only the &amp;#039;amod&amp;#039; dependencies displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:example graph with pos and filter.png|800px|Dependency tree of &amp;quot;The resulting graph after only displaying dependencies of type &amp;#039;amod&amp;#039;.]]&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
If this dependency visualization is done on a large scale, it would be tedious to run the program separately for each individual sentence in the corpus. To speed things up, I implemented an option to input a .txt file with a list of filenames. The autoglosser will take that list and generate a separate output file (containing Latex code) for each filename in the list. This makes large scale diagramming more efficient and only requires the user to construct one large file.&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
There were several design choices that I made because I thought they looked the best, but these can be changed with simple edits to the autoglosser.py file.&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
I added a default 0.2cm gap between columns (words) and a default 0.2ex gap between rows (only relevant when POS tags are visible).&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
When there was a dependency between two consecutive words, the label was sometimes wider than the connecting arrow. To clean up the visual, I added an extra 0.5cm between columns whenever this occurred.&lt;br /&gt;
&lt;br /&gt;
=== Filename Format ===&lt;br /&gt;
In my code, I hard-coded the program to take input files in the form &amp;quot;&amp;lt;label&amp;gt;_input.txt&amp;quot; and to create output files in the form &amp;quot;&amp;lt;label&amp;gt;_output.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_with_pos_and_filter.png&amp;diff=5301</id>
		<title>File:Example graph with pos and filter.png</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_with_pos_and_filter.png&amp;diff=5301"/>
				<updated>2017-05-10T06:08:43Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_with_pos.png&amp;diff=5300</id>
		<title>File:Example graph with pos.png</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_with_pos.png&amp;diff=5300"/>
				<updated>2017-05-10T06:08:22Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_basic.png&amp;diff=5299</id>
		<title>File:Example graph basic.png</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=File:Example_graph_basic.png&amp;diff=5299"/>
				<updated>2017-05-10T06:08:00Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5298</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5298"/>
				<updated>2017-05-10T06:07:29Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
Although this graph is fancy and colorful, the output of my code is a simplified version that includes all of the most relevant information and has some customizable features. A description of the code, the output, and how to run the program follows.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence, so it was relatively simple to translate from one form to another.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires prior knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== Basic Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, each corresponding part of speech, the other side of the dependency, and the type of dependence relationship. The more specific part-of-speech information present in the CG file is ignored because it would clutter the sentence diagram if it were included.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by the simplest version of my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-graph.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
== More Complicated Solution ==&lt;br /&gt;
I also added several customizable features to the program. I will briefly explain how each works here.&lt;br /&gt;
&lt;br /&gt;
=== Visible POS Tags ===&lt;br /&gt;
I added the capability to display the part of speech tags below the text of the sentence. However, since this option may not always be desired, one of the command line arguments for the program toggles it on or off. This is the same graph as above, except with the POS tags visible:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Dependency Filter ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Batch Diagramming ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hard-coded Parameters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Column/Row Spacing ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Word Spacing ===&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5295</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5295"/>
				<updated>2017-05-10T05:03:51Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Code ==&lt;br /&gt;
[https://github.swarthmore.edu/ltarlin1/ling073-ltarlin1-autoglosser Github link]&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== The Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, the other word that it depends on, and the type of dependence relationship. The other information belonging to that word, such as part of speech, are included in the parse but ignored at this point.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-graph.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5078</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5078"/>
				<updated>2017-05-05T07:03:53Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== The Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, the other word that it depends on, and the type of dependence relationship. The other information belonging to that word, such as part of speech, are included in the parse but ignored at this point.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-graph.png|800px|Dependency tree of &amp;quot;The resulting graph after running the original CG dependency file through my program.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=File:Lee-graph.png&amp;diff=5077</id>
		<title>File:Lee-graph.png</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=File:Lee-graph.png&amp;diff=5077"/>
				<updated>2017-05-05T07:02:09Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5076</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5076"/>
				<updated>2017-05-05T07:01:59Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:Lee-tikz-dependency.png|800px|Dependency tree of &amp;quot;An example output of the tikz-dependency latex package.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== The Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, the other word that it depends on, and the type of dependence relationship. The other information belonging to that word, such as part of speech, are included in the parse but ignored at this point.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step that my program takes is using string formatting to extract the relevant aspects of this &amp;quot;info&amp;quot;--namely the &amp;quot;from word&amp;quot;, the &amp;quot;to word&amp;quot;, and the type of dependency (indicated by the &amp;#039;@&amp;#039; symbol). Once I have all of this information, I can simply plug it into the corresponding locations in the desired format. Therefore, the final Latex code outputted by my program is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\begin{dependency}&lt;br /&gt;
	\begin{deptext}[column sep=0.2cm]&lt;br /&gt;
		The \&amp;amp; quick \&amp;amp; brown \&amp;amp; fox \&amp;amp; jumps \&amp;amp; over \&amp;amp; the \&amp;amp; lazy \&amp;amp; dog \&amp;amp; in \&amp;amp; the \&amp;amp; green \&amp;amp; fields \&amp;amp; ROOT \\ &lt;br /&gt;
	\end{deptext}&lt;br /&gt;
	\depedge{4}{1}{det}&lt;br /&gt;
	\depedge{4}{2}{amod}&lt;br /&gt;
	\depedge{4}{3}{amod}&lt;br /&gt;
	\depedge{5}{4}{nsubj}&lt;br /&gt;
	\depedge{14}{5}{root}&lt;br /&gt;
	\depedge{9}{6}{case}&lt;br /&gt;
	\depedge{9}{7}{det}&lt;br /&gt;
	\depedge{9}{8}{amod}&lt;br /&gt;
	\depedge{5}{9}{obl}&lt;br /&gt;
	\depedge{13}{10}{case}&lt;br /&gt;
	\depedge{13}{11}{det}&lt;br /&gt;
	\depedge{13}{12}{amod}&lt;br /&gt;
	\depedge{5}{13}{obl}&lt;br /&gt;
\end{dependency}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you add the line &amp;lt;code&amp;gt;\usepackage{tikz-dependency}&amp;lt;/code&amp;gt; to a blank Latex file, you can add this code and get the resulting image:&lt;br /&gt;
&lt;br /&gt;
asdf&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=File:Lee-tikz-dependency.png&amp;diff=5075</id>
		<title>File:Lee-tikz-dependency.png</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=File:Lee-tikz-dependency.png&amp;diff=5075"/>
				<updated>2017-05-05T06:51:59Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5074</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5074"/>
				<updated>2017-05-05T06:51:41Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph, as in the following example image:&lt;br /&gt;
&lt;br /&gt;
[[File:UD tree example.png|800px|Dependency tree of &amp;quot;Everyone in this class works on a different language.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
== Users ==&lt;br /&gt;
This tool would be useful for linguists who want to speed up the visual-making process when working with universal dependencies. It does not have much of an application outside the technical linguistics domain because generating the input files to my program requires knowledge of universal dependencies.&lt;br /&gt;
&lt;br /&gt;
== The Solution ==&lt;br /&gt;
My autoglosser parses each line of the CG file and separates it into the relevant portions--the words that make up the sentence, the other word that it depends on, and the type of dependence relationship. The other information belonging to that word, such as part of speech, are included in the parse but ignored at this point.&lt;br /&gt;
&lt;br /&gt;
Therefore, a CG file like the one we looked at in class&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;lt;The&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;The&amp;quot; det def sp @det #1-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;quick&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;quick&amp;quot; adj sint @amod #2-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;brown&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;brown&amp;quot; adj @amod #3-&amp;gt;4&lt;br /&gt;
&amp;quot;&amp;lt;fox&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;fox&amp;quot; n sg @nsubj #4-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;jumps&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;jump&amp;quot; vblex pres p3 sg @root #5-&amp;gt;0&lt;br /&gt;
&amp;quot;&amp;lt;over&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;over&amp;quot; pr @case #6-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #7-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;lazy&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;lazy&amp;quot; adj sint @amod #8-&amp;gt;9&lt;br /&gt;
&amp;quot;&amp;lt;dog&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;dog&amp;quot; n sg @obl #9-&amp;gt;5&lt;br /&gt;
&amp;quot;&amp;lt;in&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;in&amp;quot; pr @case #10-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;the&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;the&amp;quot; det def sp @det #11-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;green&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;green&amp;quot; adj sint @amod #12-&amp;gt;13&lt;br /&gt;
&amp;quot;&amp;lt;fields&amp;gt;&amp;quot;&lt;br /&gt;
	&amp;quot;field&amp;quot; n pl @obl #13-&amp;gt;5&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;
is turned into something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
words = [&amp;#039;The&amp;#039;, &amp;#039;quick&amp;#039;, &amp;#039;brown&amp;#039;, &amp;#039;fox&amp;#039;, &amp;#039;jumps&amp;#039;, &amp;#039;over&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;lazy&amp;#039;, &amp;#039;dog&amp;#039;, &amp;#039;in&amp;#039;, &amp;#039;the&amp;#039;, &amp;#039;green&amp;#039;, &amp;#039;fields&amp;#039;, &amp;#039;.&amp;#039;]&lt;br /&gt;
&lt;br /&gt;
info = [&lt;br /&gt;
[&amp;#039;&amp;quot;The&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#1-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;quick&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#2-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;brown&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#3-&amp;gt;4&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;fox&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@nsubj&amp;#039;, &amp;#039;#4-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;jump&amp;quot;&amp;#039;, &amp;#039;vblex&amp;#039;, &amp;#039;pres&amp;#039;, &amp;#039;p3&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@root&amp;#039;, &amp;#039;#5-&amp;gt;0&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;over&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#6-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#7-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;lazy&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#8-&amp;gt;9&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;dog&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;sg&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#9-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;in&amp;quot;&amp;#039;, &amp;#039;pr&amp;#039;, &amp;#039;@case&amp;#039;, &amp;#039;#10-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;the&amp;quot;&amp;#039;, &amp;#039;det&amp;#039;, &amp;#039;def&amp;#039;, &amp;#039;sp&amp;#039;, &amp;#039;@det&amp;#039;, &amp;#039;#11-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;green&amp;quot;&amp;#039;, &amp;#039;adj&amp;#039;, &amp;#039;sint&amp;#039;, &amp;#039;@amod&amp;#039;, &amp;#039;#12-&amp;gt;13&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;field&amp;quot;&amp;#039;, &amp;#039;n&amp;#039;, &amp;#039;pl&amp;#039;, &amp;#039;@obl&amp;#039;, &amp;#039;#13-&amp;gt;5&amp;#039;], &lt;br /&gt;
[&amp;#039;&amp;quot;.&amp;quot;&amp;#039;, &amp;#039;sent&amp;#039;]]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
more stuff here&lt;br /&gt;
&lt;br /&gt;
== Evaluation ==&lt;br /&gt;
it works, i promise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5073</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5073"/>
				<updated>2017-05-05T06:16:03Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5072</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5072"/>
				<updated>2017-05-05T06:14:13Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&amp;#039;m gonna make this later but in case anyone clicks on this page hoping to know what I&amp;#039;m doing, I&amp;#039;m making an autoglosser that converts a dependency file (in CG form) to Latex code to interact with the tikz-dependency visualization package&lt;br /&gt;
&lt;br /&gt;
== The Problem ==&lt;br /&gt;
For my final project, I decided to create an autoglosser that would automatically convert the universal dependency files we worked with in class into visual form in Latex. There is a Latex package called tikz-dependency that allows for quick input of sentences and its corresponding dependencies, but it still requires the user to manually select each dependency. Therefore, my code automatically generates Latex code that fits the expected format for the tikz-dependency package and therefore can easily be displayed in a graph.&lt;br /&gt;
&lt;br /&gt;
== Previous Work ==&lt;br /&gt;
As discussed in the above section, the tikz-dependency package uses the tikz interface to facilitate the graph-making process. The syntax of a dependency in this format is strikingly similar to that which we saw in class (i.e. #4-&amp;gt;6) because both refer to the &amp;quot;from word&amp;quot; and the &amp;quot;to word&amp;quot; using offset from the beginning of the sentence.&lt;br /&gt;
&lt;br /&gt;
Theoretically, I would be able to also convert input files in the conllu format (as well as the CG format we worked with in class) to appropriate Latex code, but I do not fully understand this format yet. I will continue to learn about the conllu format and hopefully have it up and running in a few days.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5067</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5067"/>
				<updated>2017-05-05T05:45:14Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&amp;#039;m gonna make this later but in case anyone clicks on this page hoping to know what I&amp;#039;m doing, I&amp;#039;m making an autoglosser that converts a dependency file (in CG form) to Latex code to interact with the tikz-dependency visualization package&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5065</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5065"/>
				<updated>2017-05-05T05:44:49Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&amp;#039;m gonna make this later but in case anyone clicks on this page, I&amp;#039;m making an autoglosser that converts a dependency file (in CG form) to Latex code to interact with the tikz-dependency visualization package&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5063</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5063"/>
				<updated>2017-05-05T05:43:13Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&amp;#039;m gonna make this later&lt;br /&gt;
&lt;br /&gt;
[[Category:sp17_FinalProjects]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5062</id>
		<title>Ltarlin1/Final Project</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Ltarlin1/Final_Project&amp;diff=5062"/>
				<updated>2017-05-05T05:42:52Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: Created page with &amp;quot;I&amp;#039;m gonna make this later&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&amp;#039;m gonna make this later&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4873</id>
		<title>Bikol and Chamorro/Structural transfer</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4873"/>
				<updated>2017-04-25T04:33:38Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Bikol to Chamorro ==&lt;br /&gt;
&lt;br /&gt;
=== Modifiers ===&lt;br /&gt;
The item I chose to deal with is the presence of a modifier describing a noun. Chamorro places the modifier before the noun while Bikol places the noun first. Furthermore, the subject pronoun is placed at the end in Chamorro but before the noun-modifier phrase in Bikol.&lt;br /&gt;
* Example sentence: I went to the big house.&lt;br /&gt;
** Chamorro: Malak i dánkolo na gumaʼ yoʼ&lt;br /&gt;
** Bikol: Nagdumán akó sa haróng na dakúla&lt;br /&gt;
&lt;br /&gt;
Here are the outputs for the following modes after structural transfer.&lt;br /&gt;
* &amp;lt;b&amp;gt;tagger:&amp;lt;/b&amp;gt; ^dumán&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;$ ^akó&amp;lt;prn&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$ ^sa&amp;lt;det&amp;gt;&amp;lt;def&amp;gt;$ ^haróng&amp;lt;n&amp;gt;$ ^na&amp;lt;link&amp;gt;$ ^dakúla&amp;lt;adj&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;biltrans:&amp;lt;/b&amp;gt; ^dumán&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;/malak&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;$ ^akó&amp;lt;prn&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/yoʼ&amp;lt;prn&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;$ ^sa&amp;lt;det&amp;gt;&amp;lt;def&amp;gt;/i&amp;lt;det&amp;gt;&amp;lt;def&amp;gt;$ ^haróng&amp;lt;n&amp;gt;/gumaʼ&amp;lt;n&amp;gt;$ ^na&amp;lt;link&amp;gt;/na&amp;lt;link&amp;gt;$ ^dakúla&amp;lt;adj&amp;gt;&amp;lt;sg&amp;gt;/dánkolo&amp;lt;adj&amp;gt;&amp;lt;sg&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;chunker:&amp;lt;/b&amp;gt; apertium-transfer: Rule 2 akó&amp;lt;prn&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt;/yoʼ&amp;lt;prn&amp;gt;&amp;lt;p1&amp;gt;&amp;lt;sg&amp;gt; sa&amp;lt;det&amp;gt;&amp;lt;def&amp;gt;/i&amp;lt;det&amp;gt;&amp;lt;def&amp;gt; haróng&amp;lt;n&amp;gt;/gumaʼ&amp;lt;n&amp;gt; na&amp;lt;link&amp;gt;/na&amp;lt;link&amp;gt; dakúla&amp;lt;adj&amp;gt;&amp;lt;sg&amp;gt;/dánkolo&amp;lt;adj&amp;gt;&amp;lt;sg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
apertium-transfer: Rule 1 .&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;&lt;br /&gt;
^default&amp;lt;default&amp;gt;{^malak&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;$}$ ^a_type&amp;lt;DET&amp;gt;{^i&amp;lt;det&amp;gt;$}$ ^a_type&amp;lt;SA&amp;gt;{^dánkolo&amp;lt;adj&amp;gt;$}$ ^a_type&amp;lt;LINK&amp;gt;{^na&amp;lt;link&amp;gt;$}$ ^a_type&amp;lt;SN&amp;gt;{^gumaʼ&amp;lt;n&amp;gt;$}$ ^a_type&amp;lt;PRN&amp;gt;{^yoʼ$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;interchunk:&amp;lt;/b&amp;gt; apertium-interchunk: Rule 1 a_type&amp;lt;SN&amp;gt;{^gumaʼ&amp;lt;n&amp;gt;$}&lt;br /&gt;
^default&amp;lt;default&amp;gt;{^malak&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;$}$ ^a_type&amp;lt;DET&amp;gt;{^i&amp;lt;det&amp;gt;$}$ ^a_type&amp;lt;SA&amp;gt;{^dánkolo&amp;lt;adj&amp;gt;$}$ ^a_type&amp;lt;LINK&amp;gt;{^na&amp;lt;link&amp;gt;$}$ ^a_type&amp;lt;SN&amp;gt;{^gumaʼ&amp;lt;n&amp;gt;$}$ ^a_type&amp;lt;PRN&amp;gt;{^yoʼ$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;postchunk:&amp;lt;/b&amp;gt; ^malak&amp;lt;vblex&amp;gt;&amp;lt;past&amp;gt;$ ^i&amp;lt;det&amp;gt;$ ^dánkolo&amp;lt;adj&amp;gt;$ ^na&amp;lt;link&amp;gt;$ ^gumaʼ&amp;lt;n&amp;gt;$ ^yoʼ$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;bcl-cha&amp;lt;/b&amp;gt; #malak i dánkolo na #gumaʼ #yoʼ&lt;br /&gt;
&lt;br /&gt;
=== Pre-evaluation ===&lt;br /&gt;
* WER = 94.90%&lt;br /&gt;
* PER = 91.72%&lt;br /&gt;
* Percentage of unknown words = 87.41%&lt;br /&gt;
&lt;br /&gt;
=== Post-evaluation ===&lt;br /&gt;
* WER = 94.90%&lt;br /&gt;
* PER = 90.45%&lt;br /&gt;
* Percentage of unknown words = 87.41%&lt;br /&gt;
&lt;br /&gt;
== Chamorro to Bikol ==&lt;br /&gt;
&lt;br /&gt;
=== Pluralizing Nouns ===&lt;br /&gt;
The item I chose to deal with in structural transfer is plural nouns. In Chamorro, a prefix is added to a noun to make it plural, while in Bikol, a separate lemma is added before the noun to pluralize it.&lt;br /&gt;
* Example sentence: You are teachers.&lt;br /&gt;
** Chamorro: Manmaʼestro hamyo &lt;br /&gt;
** Bikol: Mga maéstro kamó&lt;br /&gt;
&lt;br /&gt;
Here are the outputs for the following modes after structural transfer was implemented for plural nouns.&lt;br /&gt;
* &amp;lt;b&amp;gt;tagger:&amp;lt;/b&amp;gt; ^Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;$ ^hamyo&amp;lt;prn&amp;gt;&amp;lt;px2pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;biltrans:&amp;lt;/b&amp;gt; ^Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;/Maéstro&amp;lt;n&amp;gt;$ ^hamyo&amp;lt;prn&amp;gt;&amp;lt;px2pl&amp;gt;/kamó&amp;lt;prn&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;chunker:&amp;lt;/b&amp;gt;&lt;br /&gt;
apertium-transfer: Rule 2 Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;/Maéstro&amp;lt;n&amp;gt;&lt;br /&gt;
&lt;br /&gt;
apertium-transfer: Rule 1 .&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;&lt;br /&gt;
^nm&amp;lt;pl&amp;gt;{^mga&amp;lt;pl&amp;gt;$}$ ^n&amp;lt;Noun&amp;gt;{^Maéstro&amp;lt;n&amp;gt;$}$ ^default&amp;lt;default&amp;gt;{^kamó&amp;lt;prn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;interchunk:&amp;lt;/b&amp;gt; ^nm&amp;lt;pl&amp;gt;{^mga&amp;lt;pl&amp;gt;$}$ ^n&amp;lt;Noun&amp;gt;{^Maéstro&amp;lt;n&amp;gt;$}$ ^default&amp;lt;default&amp;gt;{^kamó&amp;lt;prn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;postchunk:&amp;lt;/b&amp;gt; ^mga&amp;lt;pl&amp;gt;$ ^Maéstro&amp;lt;n&amp;gt;$ ^kamó&amp;lt;prn&amp;gt;$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;cha-bcl:&amp;lt;/b&amp;gt; mga Maéstro #kamó&lt;br /&gt;
tagger, biltrans, chunker, interchunk, postchunk, and the pair itself (abc-xyz)&lt;br /&gt;
&lt;br /&gt;
=== Pre-evaluation ===&lt;br /&gt;
* WER = 96.32%&lt;br /&gt;
* PER = 89.57%&lt;br /&gt;
* Percentage of unknown words = 91.72%&lt;br /&gt;
&lt;br /&gt;
=== Post-evaluation ===&lt;br /&gt;
* WER = 89.47%&lt;br /&gt;
* PER = 89.47%&lt;br /&gt;
* Percentage of unknown words = 10.00%&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_StructuralTransfer]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4656</id>
		<title>Bikol and Chamorro/Structural transfer</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4656"/>
				<updated>2017-04-19T19:46:29Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Bikol to Chamorro ==&lt;br /&gt;
&lt;br /&gt;
=== Pre-evaluation ===&lt;br /&gt;
* WER = 94.90%&lt;br /&gt;
* PER = 91.72%&lt;br /&gt;
* Percentage of unknown words = 87.41%&lt;br /&gt;
&lt;br /&gt;
== Chamorro to Bikol ==&lt;br /&gt;
&lt;br /&gt;
=== Pluralizing Nouns ===&lt;br /&gt;
The item I chose to deal with in structural transfer is plural nouns. In Chamorro, a prefix is added to a noun to make it plural, while in Bikol, a separate lemma is added before the noun to pluralize it.&lt;br /&gt;
* Example sentence: You are teachers.&lt;br /&gt;
** Chamorro: Manmaʼestro hamyo &lt;br /&gt;
** Bikol: Mga maéstro kamó&lt;br /&gt;
&lt;br /&gt;
Here are the outputs for the following modes after structural transfer was implemented for plural nouns.&lt;br /&gt;
* &amp;lt;b&amp;gt;tagger:&amp;lt;/b&amp;gt; ^Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;$ ^hamyo&amp;lt;prn&amp;gt;&amp;lt;px2pl&amp;gt;$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;biltrans:&amp;lt;/b&amp;gt; ^Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;/Maéstro&amp;lt;n&amp;gt;$ ^hamyo&amp;lt;prn&amp;gt;&amp;lt;px2pl&amp;gt;/kamó&amp;lt;prn&amp;gt;$^.&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;chunker:&amp;lt;/b&amp;gt;&lt;br /&gt;
apertium-transfer: Rule 2 Maʼestro&amp;lt;n&amp;gt;&amp;lt;pl&amp;gt;/Maéstro&amp;lt;n&amp;gt;&lt;br /&gt;
&lt;br /&gt;
apertium-transfer: Rule 1 .&amp;lt;sent&amp;gt;/.&amp;lt;sent&amp;gt;&lt;br /&gt;
^nm&amp;lt;pl&amp;gt;{^mga&amp;lt;pl&amp;gt;$}$ ^n&amp;lt;Noun&amp;gt;{^Maéstro&amp;lt;n&amp;gt;$}$ ^default&amp;lt;default&amp;gt;{^kamó&amp;lt;prn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;interchunk:&amp;lt;/b&amp;gt; ^nm&amp;lt;pl&amp;gt;{^mga&amp;lt;pl&amp;gt;$}$ ^n&amp;lt;Noun&amp;gt;{^Maéstro&amp;lt;n&amp;gt;$}$ ^default&amp;lt;default&amp;gt;{^kamó&amp;lt;prn&amp;gt;$}$^sent&amp;lt;SENT&amp;gt;{^.&amp;lt;sent&amp;gt;$}$&lt;br /&gt;
* &amp;lt;b&amp;gt;postchunk:&amp;lt;/b&amp;gt; ^mga&amp;lt;pl&amp;gt;$ ^Maéstro&amp;lt;n&amp;gt;$ ^kamó&amp;lt;prn&amp;gt;$^.&amp;lt;sent&amp;gt;$&lt;br /&gt;
* &amp;lt;b&amp;gt;cha-bcl:&amp;lt;/b&amp;gt; mga Maéstro #kamó&lt;br /&gt;
tagger, biltrans, chunker, interchunk, postchunk, and the pair itself (abc-xyz)&lt;br /&gt;
&lt;br /&gt;
=== Pre-evaluation ===&lt;br /&gt;
* WER = 96.32%&lt;br /&gt;
* PER = 89.57%&lt;br /&gt;
* Percentage of unknown words = 91.72%&lt;br /&gt;
&lt;br /&gt;
=== Post-evaluation ===&lt;br /&gt;
* WER = 89.47%&lt;br /&gt;
* PER = 89.47%&lt;br /&gt;
* Percentage of unknown words = 10.00%&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_StructuralTransfer]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4615</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4615"/>
				<updated>2017-04-18T15:27:05Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evaluation ==&lt;br /&gt;
&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* &amp;lt;i&amp;gt;Bola&amp;lt;/i&amp;gt; (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
* &amp;lt;i&amp;gt;Komplimenta&amp;lt;/i&amp;gt; (compliment) is chosen as a default if the above conditions are not satisfied.&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** Itaó mo an bola (Give a &amp;lt;i&amp;gt;compliment&amp;lt;/i&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
&lt;br /&gt;
==== guakse ====&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) = &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out = &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between kuró-kusó and balík is guided by the following rules:&lt;br /&gt;
* kuró-kusó (scrub clothes) is chosen when:&lt;br /&gt;
** Followed by a definite article and then a word meaning &amp;quot;clothes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* kuró-kusó is chosen in the following example:&lt;br /&gt;
** Hu guakse i magagu-hu (I &amp;lt;i&amp;gt;scrubbed&amp;lt;/i&amp;gt; my &amp;lt;u&amp;gt;clothes&amp;lt;/u&amp;gt;)&lt;br /&gt;
* balík is chosen in the following example:&lt;br /&gt;
** Hu guakse i guma&amp;#039;-hu (I &amp;lt;i&amp;gt;scrubbed&amp;lt;/i&amp;gt; my &amp;lt;u&amp;gt;house&amp;lt;/u&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==== maggem ====&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, cautious = &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; and damp = &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate maggem to basá, or damp in English.&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4468</id>
		<title>Bikol and Chamorro/Structural transfer</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4468"/>
				<updated>2017-04-11T15:58:35Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Chamorro to Bikol */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-evaluation ==&lt;br /&gt;
=== Chamorro to Bikol ===&lt;br /&gt;
* WER = 96.32% &amp;lt;------this might be bad&lt;br /&gt;
* PER = 89.57% &amp;lt;------this also might be bad&lt;br /&gt;
* Percentage of unknown words = 91.72% &amp;lt;-----this is definitely bad&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_StructuralTransfer]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4466</id>
		<title>Bikol and Chamorro/Structural transfer</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Structural_transfer&amp;diff=4466"/>
				<updated>2017-04-11T15:57:21Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pre-evaluation ==&lt;br /&gt;
=== Chamorro to Bikol ===&lt;br /&gt;
* WER = 96.32%&lt;br /&gt;
* PER = 89.57%&lt;br /&gt;
* Percentage of unknown words = 91.72% &amp;lt;-----this is bad&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_StructuralTransfer]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4289</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4289"/>
				<updated>2017-04-04T16:37:17Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evaluation ==&lt;br /&gt;
&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
&lt;br /&gt;
==== guakse ====&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) = &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out = &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between kuró-kusó and balík is guided by the following rules:&lt;br /&gt;
* kuró-kusó (scrub clothes) is chosen when:&lt;br /&gt;
** Followed by a definite article and then a word meaning &amp;quot;clothes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* kuró-kusó is chosen in the following example:&lt;br /&gt;
** Hu guakse i magagu-hu (I &amp;lt;i&amp;gt;scrubbed&amp;lt;/i&amp;gt; my &amp;lt;u&amp;gt;clothes&amp;lt;/u&amp;gt;)&lt;br /&gt;
* balík is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== maggem ====&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, cautious = &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; and damp = &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between máan and basá is guided by the following rules:&lt;br /&gt;
* basá (damp) is chosen when:&lt;br /&gt;
** &amp;lt;rule here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* basá is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
* máan is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4273</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4273"/>
				<updated>2017-04-04T16:27:16Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* cha → bcl Evalutaion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evaluation ==&lt;br /&gt;
&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) = &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out = &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between kuró-kusó and balík is guided by the following rules:&lt;br /&gt;
* kuró-kusó (scrub clothes) is chosen when:&lt;br /&gt;
** Followed by a definite article and then a word meaning &amp;quot;clothes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* kuró-kusó is chosen in the following example:&lt;br /&gt;
** Hu guakse i magagu-hu (I &amp;lt;i&amp;gt;scrubbed&amp;lt;/i&amp;gt; my &amp;lt;u&amp;gt;clothes&amp;lt;/u&amp;gt;)&lt;br /&gt;
* balík is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, cautious = &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; and damp = &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between máan and basá is guided by the following rules:&lt;br /&gt;
* basá (damp) is chosen when:&lt;br /&gt;
** &amp;lt;rule here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* basá is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
* máan is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4268</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4268"/>
				<updated>2017-04-04T16:19:51Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evaluation ==&lt;br /&gt;
&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) = &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out = &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between kuró-kusó and balí̈ is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4261</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4261"/>
				<updated>2017-04-04T16:01:15Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evaluation ==&lt;br /&gt;
&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
Example sentences&lt;br /&gt;
* Bola (ball) is chosen in the following example:&lt;br /&gt;
** Sublion mo si bola ki Jose (&amp;lt;u&amp;gt;Borrow&amp;lt;/u&amp;gt; the &amp;lt;i&amp;gt;ball&amp;lt;/i&amp;gt; from Jacob)&lt;br /&gt;
* Komplimenta (compliment) is chosen in the following example:&lt;br /&gt;
** &amp;lt;example here&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
&lt;br /&gt;
* In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) is &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out is &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4183</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4183"/>
				<updated>2017-03-30T16:34:29Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha Evalutaion ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evalutaion ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4182</id>
		<title>Bikol and Chamorro</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4182"/>
				<updated>2017-03-30T16:33:24Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* Developed Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between Bikol and Chamorro&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol Bikol]&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Chamorro Chamorro]&lt;br /&gt;
&lt;br /&gt;
== Developed Resources ==&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro/Contrastive_Grammar Contrastive Grammar]&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro/Lexical_Selection Lexical Selection]&lt;br /&gt;
&lt;br /&gt;
== Translation Repositories ==&lt;br /&gt;
* [https://github.swarthmore.edu/ltarlin1/ling073-bcl-cha Bikol to Chamorro translation]&lt;br /&gt;
* [https://github.swarthmore.edu/eortici1/ling073-cha-bcl Chamorro to Bikol translation]&lt;br /&gt;
&lt;br /&gt;
== bcl → cha Evalutaion ==&lt;br /&gt;
* WER = 94.74%&lt;br /&gt;
* PER = 84.21%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evaluation ==&lt;br /&gt;
* WER = 90.91%&lt;br /&gt;
* PER = 86.36%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== Lexical Selection ==&lt;br /&gt;
Find at least two cases in each direction of a one-to-many mapping.&lt;br /&gt;
&lt;br /&gt;
=== Bikol-Chamorro ===&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
&lt;br /&gt;
=== Chamorro-Bikol ===&lt;br /&gt;
* In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) is &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out is &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== List of extra words ==&lt;br /&gt;
Nouns:&lt;br /&gt;
*basúra: garbage&lt;br /&gt;
*garáhe: garage &amp;lt;-------didnʼt have&lt;br /&gt;
*matemátika: mathematics&lt;br /&gt;
*dungó: nose&lt;br /&gt;
*pasénsia: patience&lt;br /&gt;
*bolsá: pocket&lt;br /&gt;
*hílo: poison&lt;br /&gt;
*lamésa: table&lt;br /&gt;
*pábo: turkey&lt;br /&gt;
*dága: knife&lt;br /&gt;
*púso: heart&lt;br /&gt;
*lalawgón: face&lt;br /&gt;
*kolór: color&lt;br /&gt;
*kapé: coffee&lt;br /&gt;
*báybáy: coast&lt;br /&gt;
*bádo: clothes&lt;br /&gt;
*inápay: bread&lt;br /&gt;
&lt;br /&gt;
Verbs:&lt;br /&gt;
*luwás: to exit, to leave&lt;br /&gt;
*apód: to call (someone)&lt;br /&gt;
*sublí: to borrow&lt;br /&gt;
*hatód: to bring, to deliver&lt;br /&gt;
*será: to close&lt;br /&gt;
*kagrít: to scream&lt;br /&gt;
*bakál: to shop &amp;lt;-------didnʼt have&lt;br /&gt;
*tarám: to talk&lt;br /&gt;
*halát: to wait&lt;br /&gt;
*matá: to wake up&lt;br /&gt;
*búhay: to live&lt;br /&gt;
*taó: to give&lt;br /&gt;
*dekorár: to decorate&lt;br /&gt;
*bítbít: to carry&lt;br /&gt;
&lt;br /&gt;
== Other possible lexical selection options ==&lt;br /&gt;
* bulan: moon, month (110)&lt;br /&gt;
* dali (ma-): quickly, easily (123)&lt;br /&gt;
* dampog: foggy, moist (124)&lt;br /&gt;
* delikado: delicate, dangerous (129)&lt;br /&gt;
* duros (ma-): windy, breezy; boastful *** guaifon, &lt;br /&gt;
* gabat: heavy, grievous (154)&lt;br /&gt;
* gana: enthusiasm, appetite (156)&lt;br /&gt;
* grado: grade (temp.) and grade (1st grade) (164)&lt;br /&gt;
gugu (165)&lt;br /&gt;
gurano (167)&lt;br /&gt;
gusto (168)&lt;br /&gt;
gutos (169)&lt;br /&gt;
&lt;br /&gt;
== Notes for Evan ==&lt;br /&gt;
* typo in first line of Test 1 - Chamorro word should be &amp;quot;linulí&amp;quot;&lt;br /&gt;
* is the accent supposed to be over the &amp;gt; sign? Is that just a weird rendering thing that doesn&amp;#039;t actually matter?&lt;br /&gt;
* Test 2 line 2 - the root is actually &amp;quot;gumaʼ&amp;quot;, weʼll add the suffix and vowel change in a later step&lt;br /&gt;
* Test 3 line 1 - accent looks like it&amp;#039;s in the wrong place on maéstro&lt;br /&gt;
* Test 3 line 1 - again, the root is just &amp;quot;maʼestro&amp;quot; and the prefix will be added later&lt;br /&gt;
* Test 5 line 1 - root is &amp;quot;metgot&amp;quot;&lt;br /&gt;
* I put all the above words (except &amp;quot;garage&amp;quot; and &amp;quot;to shop&amp;quot;) into the bcl-cha dix file. Youʼll have to put them in the cha-bcl file (unless you did already) the same way but switched left and right. We also have to add them to our respective lexc files eventually as well&lt;br /&gt;
&lt;br /&gt;
== Notes for Lee ==&lt;br /&gt;
* Test 1, iinulí should be ulí&lt;br /&gt;
* Test 4, nagdumán should be dumán&lt;br /&gt;
* Test 5, makusóg should be kusóg&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4181</id>
		<title>Bikol and Chamorro</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4181"/>
				<updated>2017-03-30T16:33:11Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between Bikol and Chamorro&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol Bikol]&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Chamorro Chamorro]&lt;br /&gt;
&lt;br /&gt;
== Developed Resources ==&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro/Contrastive_Grammar Contrastive Grammar]&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro/Lexical_Selection]&lt;br /&gt;
&lt;br /&gt;
== Translation Repositories ==&lt;br /&gt;
* [https://github.swarthmore.edu/ltarlin1/ling073-bcl-cha Bikol to Chamorro translation]&lt;br /&gt;
* [https://github.swarthmore.edu/eortici1/ling073-cha-bcl Chamorro to Bikol translation]&lt;br /&gt;
&lt;br /&gt;
== bcl → cha Evalutaion ==&lt;br /&gt;
* WER = 94.74%&lt;br /&gt;
* PER = 84.21%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evaluation ==&lt;br /&gt;
* WER = 90.91%&lt;br /&gt;
* PER = 86.36%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== Lexical Selection ==&lt;br /&gt;
Find at least two cases in each direction of a one-to-many mapping.&lt;br /&gt;
&lt;br /&gt;
=== Bikol-Chamorro ===&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend, bounce&lt;br /&gt;
** Followed by an adjective such as round, colors&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
&lt;br /&gt;
=== Chamorro-Bikol ===&lt;br /&gt;
* In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) is &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out is &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== List of extra words ==&lt;br /&gt;
Nouns:&lt;br /&gt;
*basúra: garbage&lt;br /&gt;
*garáhe: garage &amp;lt;-------didnʼt have&lt;br /&gt;
*matemátika: mathematics&lt;br /&gt;
*dungó: nose&lt;br /&gt;
*pasénsia: patience&lt;br /&gt;
*bolsá: pocket&lt;br /&gt;
*hílo: poison&lt;br /&gt;
*lamésa: table&lt;br /&gt;
*pábo: turkey&lt;br /&gt;
*dága: knife&lt;br /&gt;
*púso: heart&lt;br /&gt;
*lalawgón: face&lt;br /&gt;
*kolór: color&lt;br /&gt;
*kapé: coffee&lt;br /&gt;
*báybáy: coast&lt;br /&gt;
*bádo: clothes&lt;br /&gt;
*inápay: bread&lt;br /&gt;
&lt;br /&gt;
Verbs:&lt;br /&gt;
*luwás: to exit, to leave&lt;br /&gt;
*apód: to call (someone)&lt;br /&gt;
*sublí: to borrow&lt;br /&gt;
*hatód: to bring, to deliver&lt;br /&gt;
*será: to close&lt;br /&gt;
*kagrít: to scream&lt;br /&gt;
*bakál: to shop &amp;lt;-------didnʼt have&lt;br /&gt;
*tarám: to talk&lt;br /&gt;
*halát: to wait&lt;br /&gt;
*matá: to wake up&lt;br /&gt;
*búhay: to live&lt;br /&gt;
*taó: to give&lt;br /&gt;
*dekorár: to decorate&lt;br /&gt;
*bítbít: to carry&lt;br /&gt;
&lt;br /&gt;
== Other possible lexical selection options ==&lt;br /&gt;
* bulan: moon, month (110)&lt;br /&gt;
* dali (ma-): quickly, easily (123)&lt;br /&gt;
* dampog: foggy, moist (124)&lt;br /&gt;
* delikado: delicate, dangerous (129)&lt;br /&gt;
* duros (ma-): windy, breezy; boastful *** guaifon, &lt;br /&gt;
* gabat: heavy, grievous (154)&lt;br /&gt;
* gana: enthusiasm, appetite (156)&lt;br /&gt;
* grado: grade (temp.) and grade (1st grade) (164)&lt;br /&gt;
gugu (165)&lt;br /&gt;
gurano (167)&lt;br /&gt;
gusto (168)&lt;br /&gt;
gutos (169)&lt;br /&gt;
&lt;br /&gt;
== Notes for Evan ==&lt;br /&gt;
* typo in first line of Test 1 - Chamorro word should be &amp;quot;linulí&amp;quot;&lt;br /&gt;
* is the accent supposed to be over the &amp;gt; sign? Is that just a weird rendering thing that doesn&amp;#039;t actually matter?&lt;br /&gt;
* Test 2 line 2 - the root is actually &amp;quot;gumaʼ&amp;quot;, weʼll add the suffix and vowel change in a later step&lt;br /&gt;
* Test 3 line 1 - accent looks like it&amp;#039;s in the wrong place on maéstro&lt;br /&gt;
* Test 3 line 1 - again, the root is just &amp;quot;maʼestro&amp;quot; and the prefix will be added later&lt;br /&gt;
* Test 5 line 1 - root is &amp;quot;metgot&amp;quot;&lt;br /&gt;
* I put all the above words (except &amp;quot;garage&amp;quot; and &amp;quot;to shop&amp;quot;) into the bcl-cha dix file. Youʼll have to put them in the cha-bcl file (unless you did already) the same way but switched left and right. We also have to add them to our respective lexc files eventually as well&lt;br /&gt;
&lt;br /&gt;
== Notes for Lee ==&lt;br /&gt;
* Test 1, iinulí should be ulí&lt;br /&gt;
* Test 4, nagdumán should be dumán&lt;br /&gt;
* Test 5, makusóg should be kusóg&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4180</id>
		<title>Bikol and Chamorro/Lexical Selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_Selection&amp;diff=4180"/>
				<updated>2017-03-30T16:32:40Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: Created page with &amp;quot;   Category:Sp17_LexicalSelection&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_LexicalSelection]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4167</id>
		<title>Bikol and Chamorro</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro&amp;diff=4167"/>
				<updated>2017-03-30T16:06:48Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: /* cha → bcl Evaluation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Resources for machine translation between Bikol and Chamorro&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol Bikol]&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Chamorro Chamorro]&lt;br /&gt;
&lt;br /&gt;
== Developed Resources ==&lt;br /&gt;
* [https://wikis.swarthmore.edu/ling073/Bikol_and_Chamorro/Contrastive_Grammar Contrastive Grammar]&lt;br /&gt;
&lt;br /&gt;
== Translation Repositories ==&lt;br /&gt;
* [https://github.swarthmore.edu/ltarlin1/ling073-bcl-cha Bikol to Chamorro translation]&lt;br /&gt;
* [https://github.swarthmore.edu/eortici1/ling073-cha-bcl Chamorro to Bikol translation]&lt;br /&gt;
&lt;br /&gt;
== bcl → cha Evalutaion ==&lt;br /&gt;
* WER = 94.74%&lt;br /&gt;
* PER = 84.21%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== cha → bcl Evaluation ==&lt;br /&gt;
* WER = 90.91%&lt;br /&gt;
* PER = 86.36%&lt;br /&gt;
* Proportion of stems translated correctly = 100.00%&lt;br /&gt;
&lt;br /&gt;
== Lexical Selection ==&lt;br /&gt;
Find at least two cases in each direction of a one-to-many mapping.&lt;br /&gt;
&lt;br /&gt;
=== Bikol-Chamorro ===&lt;br /&gt;
==== bóla ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Lexical selection between bola and komplimenta is guided by the following rules:&lt;br /&gt;
* Bola (ball) is chosen when:&lt;br /&gt;
** Preceded by a verb such as throw, toss, catch, play, buy, borrow, lend&lt;br /&gt;
** Followed by an adjective such as round, bouncy, colors&lt;br /&gt;
&lt;br /&gt;
==== glóbo ====&lt;br /&gt;
In Bikol, &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For now, the default selection is set to translate glóbo to abubu, or balloon in English.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Chamorro-Bikol ===&lt;br /&gt;
* In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) is &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out is &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
== List of extra words ==&lt;br /&gt;
Nouns:&lt;br /&gt;
*basúra: garbage&lt;br /&gt;
*garáhe: garage &amp;lt;-------didnʼt have&lt;br /&gt;
*matemátika: mathematics&lt;br /&gt;
*dungó: nose&lt;br /&gt;
*pasénsia: patience&lt;br /&gt;
*bolsá: pocket&lt;br /&gt;
*hílo: poison&lt;br /&gt;
*lamésa: table&lt;br /&gt;
*pábo: turkey&lt;br /&gt;
*dága: knife&lt;br /&gt;
*púso: heart&lt;br /&gt;
*lalawgón: face&lt;br /&gt;
*kolór: color&lt;br /&gt;
*kapé: coffee&lt;br /&gt;
*báybáy: coast&lt;br /&gt;
*bádo: clothes&lt;br /&gt;
*inápay: bread&lt;br /&gt;
&lt;br /&gt;
Verbs:&lt;br /&gt;
*luwás: to exit, to leave&lt;br /&gt;
*apód: to call (someone)&lt;br /&gt;
*sublí: to borrow&lt;br /&gt;
*hatód: to bring, to deliver&lt;br /&gt;
*será: to close&lt;br /&gt;
*kagrít: to scream&lt;br /&gt;
*bakál: to shop &amp;lt;-------didnʼt have&lt;br /&gt;
*tarám: to talk&lt;br /&gt;
*halát: to wait&lt;br /&gt;
*matá: to wake up&lt;br /&gt;
*búhay: to live&lt;br /&gt;
*taó: to give&lt;br /&gt;
*dekorár: to decorate&lt;br /&gt;
*bítbít: to carry&lt;br /&gt;
&lt;br /&gt;
== Other possible lexical selection options ==&lt;br /&gt;
* bulan: moon, month (110)&lt;br /&gt;
* dali (ma-): quickly, easily (123)&lt;br /&gt;
* dampog: foggy, moist (124)&lt;br /&gt;
* delikado: delicate, dangerous (129)&lt;br /&gt;
* duros (ma-): windy, breezy; boastful *** guaifon, &lt;br /&gt;
* gabat: heavy, grievous (154)&lt;br /&gt;
* gana: enthusiasm, appetite (156)&lt;br /&gt;
* grado: grade (temp.) and grade (1st grade) (164)&lt;br /&gt;
gugu (165)&lt;br /&gt;
gurano (167)&lt;br /&gt;
gusto (168)&lt;br /&gt;
gutos (169)&lt;br /&gt;
&lt;br /&gt;
== Notes for Evan ==&lt;br /&gt;
* typo in first line of Test 1 - Chamorro word should be &amp;quot;linulí&amp;quot;&lt;br /&gt;
* is the accent supposed to be over the &amp;gt; sign? Is that just a weird rendering thing that doesn&amp;#039;t actually matter?&lt;br /&gt;
* Test 2 line 2 - the root is actually &amp;quot;gumaʼ&amp;quot;, weʼll add the suffix and vowel change in a later step&lt;br /&gt;
* Test 3 line 1 - accent looks like it&amp;#039;s in the wrong place on maéstro&lt;br /&gt;
* Test 3 line 1 - again, the root is just &amp;quot;maʼestro&amp;quot; and the prefix will be added later&lt;br /&gt;
* Test 5 line 1 - root is &amp;quot;metgot&amp;quot;&lt;br /&gt;
* I put all the above words (except &amp;quot;garage&amp;quot; and &amp;quot;to shop&amp;quot;) into the bcl-cha dix file. Youʼll have to put them in the cha-bcl file (unless you did already) the same way but switched left and right. We also have to add them to our respective lexc files eventually as well&lt;br /&gt;
&lt;br /&gt;
== Notes for Lee ==&lt;br /&gt;
* Test 1, iinulí should be ulí&lt;br /&gt;
* Test 4, nagdumán should be dumán&lt;br /&gt;
* Test 5, makusóg should be kusóg&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sp17_TranslationPairs]]&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_selection&amp;diff=4064</id>
		<title>Bikol and Chamorro/Lexical selection</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Bikol_and_Chamorro/Lexical_selection&amp;diff=4064"/>
				<updated>2017-03-28T16:08:05Z</updated>
		
		<summary type="html">&lt;p&gt;Ltarlin1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== bcl → cha ==&lt;br /&gt;
* In Bikol, &amp;lt;b&amp;gt;bóla&amp;lt;/b&amp;gt; means ball or compliment. In Chamorro, ball = &amp;lt;i&amp;gt;bola&amp;lt;/i&amp;gt; and compliment = &amp;lt;i&amp;gt;komplimenta&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;glóbo&amp;lt;/b&amp;gt; means map or balloon in Bikol. In Chamorro, map = &amp;lt;i&amp;gt;mapa&amp;lt;/i&amp;gt; and balloon = &amp;lt;i&amp;gt;abubu&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== cha → bcl ==&lt;br /&gt;
* In Chamorro, &amp;lt;b&amp;gt;guakse&amp;lt;/b&amp;gt; means to scrub (clothes) or to turn inside out. In Bikol, to scrub (clothes) is &amp;lt;i&amp;gt;kuró-kusó&amp;lt;/i&amp;gt; and to turn inside out is &amp;lt;i&amp;gt;balík&amp;lt;/i&amp;gt;.&lt;br /&gt;
* &amp;lt;b&amp;gt;maggem&amp;lt;/b&amp;gt; means cautious or damp. In Bikol, &amp;lt;i&amp;gt;máan&amp;lt;/i&amp;gt; means cautious and &amp;lt;i&amp;gt;basá&amp;lt;/i&amp;gt; means damp.&lt;/div&gt;</summary>
		<author><name>Ltarlin1</name></author>	</entry>

	</feed>