<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>52nlp&#039;s Learning Notes &#187; iphone</title>
	<atom:link href="http://www.52nlp.com/tag/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.52nlp.com</link>
	<description>Natural Language Processing, Machine Learning, Programming Skill, Mathematics</description>
	<lastBuildDate>Sat, 23 Apr 2011 05:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Moses Support Digest: Moses on the iPhone</title>
		<link>http://www.52nlp.com/moses-support-digest-moses-on-the-iphone/</link>
		<comments>http://www.52nlp.com/moses-support-digest-moses-on-the-iphone/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:34:56 +0000</pubDate>
		<dc:creator>52nlp</dc:creator>
				<category><![CDATA[Moses]]></category>
		<category><![CDATA[SMT]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[moses]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.52nlp.com/?p=273</guid>
		<description><![CDATA[[Moses-support] Moses on the iPhone Hello, My name is Andrew Haddad. I am a Graduate Research Assistant at Purdue University. I have been given the task of getting moses working on the iphone. The moses package, which we have successfully &#8230; <a href="http://www.52nlp.com/moses-support-digest-moses-on-the-iphone/">Continue reading <span class="meta-nav">&#8594;</span></a>


Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-moses-irstlm-memory-racing-with-5-gram-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:  moses-irstlm memory racing with 5-gram lm'>Moses Support Digest:  moses-irstlm memory racing with 5-gram lm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-word-lattice-and-multiple-translation-tables-optimization-problem/' rel='bookmark' title='Permanent Link: Moses Support Digest:word lattice and multiple translation tables optimization problem'>Moses Support Digest:word lattice and multiple translation tables optimization problem</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-chart-error-while-compiling-training-scripts/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses-chart error while compiling training scripts'>Moses Support Digest: moses-chart error while compiling training scripts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-confusionnet-getsubstring-error-when-using-lattice-with-utf8-input/' rel='bookmark' title='Permanent Link: Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input'>Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-createberkeleypt-and-on-disk-rule-table/' rel='bookmark' title='Permanent Link: Moses Support Digest:CreateBerkeleyPt and On-Disk Rule Table'>Moses Support Digest:CreateBerkeleyPt and On-Disk Rule Table</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-compiling-moses-3-chart/' rel='bookmark' title='Permanent Link: Moses Support Digest:compiling moses 3 chart'>Moses Support Digest:compiling moses 3 chart</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-alignment-information-from-binary-phrase-table/' rel='bookmark' title='Permanent Link: Moses Support Digest:Alignment information from binary phrase table'>Moses Support Digest:Alignment information from binary phrase table</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses_chart-and-recaser-phrase-table/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses_chart and recaser phrase-table'>Moses Support Digest: moses_chart and recaser phrase-table</a></li>
<li><a href='http://www.52nlp.com/moses-support-hierarchical-rule-extraction/' rel='bookmark' title='Permanent Link: Moses Support Digest:Hierarchical rule extraction'>Moses Support Digest:Hierarchical rule extraction</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><strong>[Moses-support] Moses on the iPhone</strong></p>
<p>Hello, </p>
<p>My name is Andrew Haddad. I am a Graduate Research Assistant at Purdue University. I have been given the task of getting moses working on the iphone. The moses package, which we have successfully installed and have running in simulation on the iphone will of course not work due to some limitations put for by Apple. </p>
<p>I am going to be forced to cross compile the moses static library, used in moses-cmd, for the arm and i386 architecture. And then rewrite the functionality of moses-cmd to be used in our application. Do you know of anyone who has attempted something similar, that might be able to explain the process?<br />
&#8211;<br />
Sláinte<br />
Andrew W. Haddad<br />
<span id="more-273"></span><br />
<strong>Re:[Moses-support] Moses on the iPhone</strong></p>
<p>hi andrew</p>
<p>some of us have been working on putting moses onto the OLPC</p>
<p>http://wiki.laptop.org/go/Projects/Automatic_translation_software</p>
<p>which has roughly the same resources as an iphone. We&#8217;ve got it working  for reasonable size models</p>
<p>my advice would be:<br />
    1. The moses-cmd shows you how to interact with the moses library. For normal decoding, it&#8217;s quite simple. To make it even more simple for the gui developers, I would create a static library as a replacement for  moses-cmd. Call the static library functions from your gui, rather than the moses functions directly<br />
    2. from what i know of ARM development, there are compiler switches to enable fast floating point operations. Make sure these are enabled.<br />
    3. the moses library assumes lots of memory so caches certain objects. Look throught this mailing list to see how to turn caching off.<br />
    4. Iphone apps can&#8217;t run in the background so it would be best to have instant loading. This is not the case with any of our models,  which can take some time to initialize. Speciically the phrase table and language models. You may have to write new implementations for them.<br />
    5. There may be littendian/bigendian issues with the binary phrase tables &#038; language models. i.e you may not be able to create a binary phrase table/LM on your desktop and expect it to work on the iphone.</p>
<p>i think its definitely doable, but don&#8217;t expect just to be able to compile &#038; go sounds like a fun project, let us know how it goes.</p>
<p><strong>Re:[Moses-support] Moses on the iPhone</strong></p>
<p>you should also look at RandLM, as it will enable you to run a language model in small space.</p>
<p>that aside, i would look hard at pruning the various tables (eg phrase tables, reordering, language models) so you can just the core that you need.  this will make for faster loading etc.  note also that you probably shouldn&#8217;t prune the phrase table for a test set (as is commonly done).</p>
<p>Miles</p>
<p><em>NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.</em></p>


<p>Related posts:<ol><li><a href='http://www.52nlp.com/moses-support-digest-moses-irstlm-memory-racing-with-5-gram-lm/' rel='bookmark' title='Permanent Link: Moses Support Digest:  moses-irstlm memory racing with 5-gram lm'>Moses Support Digest:  moses-irstlm memory racing with 5-gram lm</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-seems-to-hang/' rel='bookmark' title='Permanent Link: Moses Support Digest: Moses seems to hang'>Moses Support Digest: Moses seems to hang</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-word-lattice-and-multiple-translation-tables-optimization-problem/' rel='bookmark' title='Permanent Link: Moses Support Digest:word lattice and multiple translation tables optimization problem'>Moses Support Digest:word lattice and multiple translation tables optimization problem</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses-chart-error-while-compiling-training-scripts/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses-chart error while compiling training scripts'>Moses Support Digest: moses-chart error while compiling training scripts</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-confusionnet-getsubstring-error-when-using-lattice-with-utf8-input/' rel='bookmark' title='Permanent Link: Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input'>Moses Support Digest:ConfusionNet GetSubString error when using lattice with UTF8 input</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-createberkeleypt-and-on-disk-rule-table/' rel='bookmark' title='Permanent Link: Moses Support Digest:CreateBerkeleyPt and On-Disk Rule Table'>Moses Support Digest:CreateBerkeleyPt and On-Disk Rule Table</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-compiling-moses-3-chart/' rel='bookmark' title='Permanent Link: Moses Support Digest:compiling moses 3 chart'>Moses Support Digest:compiling moses 3 chart</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-alignment-information-from-binary-phrase-table/' rel='bookmark' title='Permanent Link: Moses Support Digest:Alignment information from binary phrase table'>Moses Support Digest:Alignment information from binary phrase table</a></li>
<li><a href='http://www.52nlp.com/moses-support-digest-moses_chart-and-recaser-phrase-table/' rel='bookmark' title='Permanent Link: Moses Support Digest: moses_chart and recaser phrase-table'>Moses Support Digest: moses_chart and recaser phrase-table</a></li>
<li><a href='http://www.52nlp.com/moses-support-hierarchical-rule-extraction/' rel='bookmark' title='Permanent Link: Moses Support Digest:Hierarchical rule extraction'>Moses Support Digest:Hierarchical rule extraction</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.52nlp.com/moses-support-digest-moses-on-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

