<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wikis.swarthmore.edu/ling073/index.php?action=history&amp;feed=atom&amp;title=Pairtest_script</id>
		<title>Pairtest script - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wikis.swarthmore.edu/ling073/index.php?action=history&amp;feed=atom&amp;title=Pairtest_script"/>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Pairtest_script&amp;action=history"/>
		<updated>2026-10-24T17:06:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Pairtest_script&amp;diff=2672&amp;oldid=prev</id>
		<title>Jwashin1 at 08:09, 16 February 2017</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Pairtest_script&amp;diff=2672&amp;oldid=prev"/>
				<updated>2017-02-16T08:09:11Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039; lang=&#039;en&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 08:09, 16 February 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Commit the script to your git repository.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Commit the script to your git repository.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# You can run the script from the tests directory by typing &amp;lt;code&amp;gt;./run-twol-pairtests.sh&amp;lt;/code&amp;gt; .&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# You can run the script from the tests directory by typing &amp;lt;code&amp;gt;./run-twol-pairtests.sh&amp;lt;/code&amp;gt; .&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Tools]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jwashin1</name></author>	</entry>

	<entry>
		<id>http://wikis.swarthmore.edu/ling073/index.php?title=Pairtest_script&amp;diff=2671&amp;oldid=prev</id>
		<title>Jwashin1: Created page with &quot;The following is a script to perform twol pair tests.  == The code ==  &lt;pre&gt; LG=xyz count=0 pass=0 for i in `cat ../apertium-${LG}.${LG}...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wikis.swarthmore.edu/ling073/index.php?title=Pairtest_script&amp;diff=2671&amp;oldid=prev"/>
				<updated>2017-02-16T08:09:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The following is a script to perform &lt;a href=&quot;/ling073/Morphological_generator#Pair_tests&quot; title=&quot;Morphological generator&quot;&gt;twol pair tests&lt;/a&gt;.  == The code ==  &amp;lt;pre&amp;gt; LG=xyz count=0 pass=0 for i in `cat ../apertium-${LG}.${LG}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The following is a script to perform [[Morphological generator#Pair tests|twol pair tests]].&lt;br /&gt;
&lt;br /&gt;
== The code ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LG=xyz&lt;br /&gt;
count=0&lt;br /&gt;
pass=0&lt;br /&gt;
for i in `cat ../apertium-${LG}.${LG}.twol | grep &amp;#039;!@&amp;#039; | cut -f2 -d&amp;#039;@&amp;#039; | tr &amp;#039; &amp;#039; &amp;#039;%&amp;#039;`; do &lt;br /&gt;
        count=`expr $count + 1`;        &lt;br /&gt;
        x=`echo $i | tr &amp;#039;%&amp;#039; &amp;#039; &amp;#039;`; &lt;br /&gt;
        echo -e &amp;quot;@@@ $x\n     ---------------------------------&amp;quot; ; &lt;br /&gt;
        echo $x | hfst-pair-test ../.deps/${LG}.twol.hfst | sed &amp;#039;s/^/     /g&amp;#039;; &lt;br /&gt;
        npass=`echo $x | hfst-pair-test ../.deps/${LG}.twol.hfst | sed &amp;#039;s/^/     /g&amp;#039; | grep passed | wc -l`; &lt;br /&gt;
        pass=`expr $pass + $npass`;&lt;br /&gt;
        echo &amp;quot;&amp;quot;; &lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
echo $pass&amp;quot;/&amp;quot;$count&amp;quot; passed.&amp;quot;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== To &amp;quot;install&amp;quot; ==&lt;br /&gt;
# Copy the code into a file called &amp;lt;code&amp;gt;run-twol-pairtests.sh&amp;lt;/code&amp;gt; in your ling073-xyz/tests/ directory.&lt;br /&gt;
# Replace &amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt; on the first line with the code for your language.&lt;br /&gt;
# In the tests directory, &amp;lt;code&amp;gt;chmod +x run-twol-pairtests.sh&amp;lt;/code&amp;gt; .&lt;br /&gt;
# Commit the script to your git repository.&lt;br /&gt;
# You can run the script from the tests directory by typing &amp;lt;code&amp;gt;./run-twol-pairtests.sh&amp;lt;/code&amp;gt; .&lt;/div&gt;</summary>
		<author><name>Jwashin1</name></author>	</entry>

	</feed>