<?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>Alan's blog &#187; Pisa</title>
	<atom:link href="http://www.alandix.com/blog/tag/pisa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alandix.com/blog</link>
	<description>just starting ...</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:09:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		                        	<item>
		<title>Language and Action: sequential associative parsing</title>
		<link>http://www.alandix.com/blog/2009/05/09/language-and-action-sequential-associative-parsing/</link>
		<comments>http://www.alandix.com/blog/2009/05/09/language-and-action-sequential-associative-parsing/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:02:53 +0000</pubDate>
		<dc:creator>alan</dc:creator>
				<category><![CDATA[HCI and usability]]></category>
		<category><![CDATA[academic]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[grammar]]></category>
		<category><![CDATA[HCI]]></category>
		<category><![CDATA[intelligent user interfaces]]></category>
		<category><![CDATA[keynote]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[Pisa]]></category>

		<guid isPermaLink="false">http://www.alandix.com/blog/?p=166</guid>
		<description><![CDATA[In explaining how to make sentences more readable (I know I am one to talk!), I frequently explain to students that language understanding is a combination of a schema-based syntactic structure with more sequential associative reading.  Only recently I realised this was also the way we had been addressing the issue of task sequence inference [...]]]></description>
	      		<content:encoded><![CDATA[<p>In explaining how to make sentences more readable (I know I am one to talk!), I frequently explain to students that language understanding is a combination of a schema-based syntactic structure with more sequential associative reading.  Only recently I realised this was also the way we had been addressing the issue of task sequence inference in the <a href="http://www.hcibook.com/alan/projects/TIM/" target="_blank">TIM project</a>. and is related also to the way we interpret action in the real world.</p>
<p><span id="more-166"></span></p>
<h4>Reading language</h4>
<blockquote><p>&#8220;The parrot, which was continually watched by the big black cat, who sometimes sat on the mat until displaced by the bigger brown Doberman and sometimes on the garden wall in the hope of catching the sparrow, flew through the window.&#8221; (sentence 1)</p></blockquote>
<p>Why is this difficult to read?  It is grammatically well-formed and has commas in all the right places.  However, the large subordinate clause (if I have got my grammatical terms right) means that by the time you have go to &#8220;flew through the window&#8221; you have &#8216;forgotten&#8217; the parrot who it was all about.</p>
<p>In contrast, a computer parser has no such trouble. Take the fragment:</p>
<pre style="padding-left: 30px;">if ( y &gt; 10 ) {
    x1 = y+1;
    x2 = y+2;
    . . .   // 97 more lines of code
    x100 = y+100
} else { . . .</pre>
<p>The compiler does not &#8216;forget&#8217; about the &#8216;if&#8217;, because it is part of a relatively simple syntactic structure:</p>
<p style="padding-left: 30px;">if ( <em>condition</em> ) { <em>statement_block</em> } else { <em>statement_block</em> }</p>
<p>In the English sentence about the parrot, like the program fragment, even the &#8216;depth&#8217; of the parsing stack is not deep, yet still there is confusion.<br />
Years ago when I was a student in Cambridge a friend who was studying Politics came to me with a passage in Nozick&#8217;s &#8220;<a type="amzn" asin="0465097200">Anarchy State and Utopia</a>&#8220;.  I read the paragraph in question several times.  Each time it made sense, until I came to the last few words, which seemed to be a total <em>non sequitur</em>.  Only after many readings did I realise that the paragraph was a single sentence (all 10 lines of it!), and that the sentence was of precisely the same form as the parrot one, except with nested sub-clauses.   The words that appeared to come from nowhere were in fact the equivalent of &#8220;flew through the window&#8221; … indeed imagine if the description of the Doberman had extended to another seven lines!</p>
<p>Clearly our ability to hold on to relatively simple hierarchical parsing structures is quite limited, and is definitely smaller than the 7+/- 2 for working memory<sup><a href="#footnote-1-166" id="footnote-link-1-166" title="See the footnote.">1</a></sup>.  However, there is also another mechanism at work.</p>
<p>Consider the following alternative sentences:</p>
<blockquote><p>&#8220;The policeman, which was continually watched by the big black cat, who sometimes sat on the mat until displaced by the bigger brown Doberman and sometimes on the garden wall in the hope of catching the sparrow, flew through the window.&#8221; (sentence 2)</p>
<p>&#8220;The parrot, which was continually watched by the big black cat, who sometimes sat on the mat until displaced by the bigger brown Doberman and sometimes on the garden wall in the hope of catching a snail, flew through the window.&#8221; (sentence 3)</p></blockquote>
<p>It is hard to read these &#8216;fresh&#8217; as if you hadn’t read the initial sentences, but notice that the first is far harder than the second.  This is because we have an additional sequential associative mechanism at work as well as syntactic parsing.</p>
<p>Consider instead the much simpler  &#8217;sentence&#8217;:</p>
<blockquote><p>&#8220;bone dog eat&#8221;</p></blockquote>
<p>We have little problem making sense of this even though the structure is not grammatical.  The verb &#8216;eat&#8217; is &#8216;looking for&#8217; something that eats to act as its subject, and something that can be eaten to be its object.  As there is only one eatable and one eater in the &#8217;sentence&#8217;, the parsing (or perhaps connecting) happens purely by association.</p>
<p>If there are several &#8216;matches&#8217; for the words then the word combinations become ambiguous:</p>
<blockquote><p>&#8220;policeman demonstrator hit&#8221;</p></blockquote>
<p>Some languages, such as English, largely deal with this ambiguity by use of syntactic rules (subject verb object), others, such as Latin, by tagging the words with their role … and I don&#8217;t know my Latin enough to give a proper example, but I think something like, in pigeon Latin: &#8220;policemanus demonstratori hit&#8221; vs &#8220;policemani demonstratorus hit&#8221;!  I believe Latin has quite strong syntactic rules as well, but there are certainly languages where order is less significant, you can think of them as Lego block languages; you throw the words into a bag, shake them up, and they stick together where the words fit together.</p>
<p>When we are reading a sentence both forms of parsing are happening at once.  There is a level of grammatical parsing, but also when a word, like &#8216;parrot&#8217; in sentence 1, is encountered and does not get &#8216;bound&#8217; it is &#8216;waiting&#8217; for a verb to connect to.  Later in the sentence,  when we encounter &#8216;flew&#8217; it wants something that can fly to be its subject, if &#8216;parrot&#8217; is still sufficiently in mind then all is well and we get &#8220;The parrot flew through the window&#8221;.  However, the last thing we read was &#8217;sparrow&#8217; a thing that can fly.  The sequential associative parsing says &#8220;sparrow flew&#8221; and even if  the syntactic parsing &#8216;wins&#8217;, the conflict still makes the sentence hard to grasp.</p>
<p>Sentence 2 was chosen to make the binding of the grammatical subject &#8216;policeman&#8217; unusual to bind to &#8216;flew&#8217; and so more confusing, whereas sentence 3 is less confusing as there is no obvious flying candidate except the parrot.</p>
<p>Poets make good use of these multiple mechanisms as it allows them to bend grammar and yet have (sometimes) comprehensible sentences.  For my students it is not usually poetry I am after in their PhD theses, but understanding the role of sequential parsing can help us to construct more comprehensible English.</p>
<h4>Reading action</h4>
<p>It was only quite recently I realised there was a very close parallel to work we had been doing in the TIM project on tasks<sup><a href="#footnote-2-166" id="footnote-link-2-166" title="See the footnote.">2</a></sup> &#8211; that is action rather than language.</p>
<p>There are various algorithms used in intelligent user interface research to help predict the next action based on the previous one.  Mostly these make use of some sort of Markov model or similar sliding window where the next command is the one that has occurred most often after the preceding N commands.  However, there have been various proposals for performing more hierarchical pattern formation effectively building task structures as found in hierarchical task analysis.</p>
<p>A fundamental block to both approaches is that human activity is not always focused on one task at a time, but we do a little of one, then a little of another, just as I might break off from writing to make a cup of tea.</p>
<p>In the TIM project we have been using a personal ontology for various purposes including helping to propose values for actions such as web forms.  If there is a &#8216;name&#8217; field, then the ontology includes names of friends so these can be proposed as potential options to the user.</p>
<p>Because of the ontology, we are also able to detect that the telephone number used in one web form is the telephone number of the person in the mail that has just been received.  This semantic binding through the ontology means that we can effectively see that individual actions are or are not related depending on whether they have semantic relationships through the ontology, that is we can thread together the actions that belong a single task sequence and pull them out of the chronological sequence that involves a mix of task and activities.</p>
<p>There are many differences between this and the sequential associative parsing, not least that the basic actions we are considering are typically parameterised (the completion of a web form) while words are singular, but there are also connections.  Previously, the relationship between task analysis and traces of actions has been compared with that between grammar and sentences, basically treating task analysis as a way to &#8216;parse&#8217; activity<sup><a href="#footnote-3-166" id="footnote-link-3-166" title="See the footnote.">3</a></sup>. This parallels the conventional parsing approach.  However, what I only belatedly realised was the use of semantic relationship between actions we are adopting in the TIM project also parallels the use of semantic connections between words in our task inference.</p>
<h4>Reading the world</h4>
<p>The above is about the way a computer can make sense of human action.   However, as humans we need to make sense of the things that happen around us in the world not least other people.</p>
<p>When we sense the world we are confronted with myriad stimuli, as I write the sound of an ambulance passing outside, the insistent hiss of the kettle on the stove, all clamour against the words I type.  Against this visual, aural and tactile cacophony, we have to unravel the threads of meaning.  If my leg aches I do not ascribe it to the cup of tea I am drinking, or the ambulance that recently passed, but instead to the run round the <a href="http://it.wikipedia.org/wiki/Circo_Massimo" target="_blank">Circo Massimo</a> earlier this morning.  However, equally I do not ascribe it to running on the beach a weak ago.  Temporal and semantic proximity both play their part in our reading of the signs of day-to-day life.  It is not surprising that these same tools are at play as we listen or read language.</p>
<p>We also perceive patterns of actions in the world, most significantly in the actions of other creatures.  In a <a href="http://www.hcibook.com/alan/papers/EIS-Tamodia2008/" target="_blank">keynote at Tamodia</a> in Pisa last year, I discussed the production of human action and the rich intertwining of sequential planned or proceduralised activity with more stimulus-driven reactions.  Both could be explicit or tacit.  The computer aid is trying to &#8216;read&#8217; these patterns of intentional (and reactive) activity.</p>
<table border="0">
<tbody>
<tr>
<th></th>
<th>pre-planned</th>
<th>environment-driven</th>
</tr>
<tr>
<th>explicit</th>
<td>(a) following known plan of action</td>
<td>(b)  means-end analysis</td>
</tr>
<tr>
<th>implicit</th>
<td>(c) proceduralised or routine actions</td>
<td>(d)  stimulus-response reaction</td>
</tr>
</tbody>
</table>
<p>It is of course likely that our ability to produce and understand language builds on our ability to act within and to comprehend the world.  However, the key difference is that language is about intentional communication.  As well as expecting parts to link together in fragments, we also expect the whole to make sense.  In a detective novel each incident may seem disparate, but we are sure that in the end they will come together in the dénouement.  This is a large-scale application of <a href="http://www.criticism.com/da/grice-maxims.php" target="_blank">Grice&#8217;s cooperation principle</a>.  For us interpreting the world and each other&#8217;s actions, or for the computer interpreting human action, no such overarching message is expected with the exception of life as a whole: God, or death, depending on your beliefs, as the ultimate dénouement.</p>
<br /><ol class="footnotes"><li id="footnote-1-166">George A. Miller. <a href="http://www.musanim.com/miller1956/" target="_blank">The Magical Number Seven, Plus or Minus Two: Some Limits on Our Capacity for Processing Information</a>. The Psychological Review, 1956, vol. 63, pp. 81-97  [<a href="#footnote-link-1-166">back</a>]</li><li id="footnote-2-166">The best account of this task inference at present is probably my keynote <a href="http://www.hcibook.com/alan/papers/EIS-Tamodia2008/" target="_blank">Tasks = data + action + context: automated task assistance through data-oriented analysis</a> at <em>Engineering Interactive Systems 2008 </em> last September in Pisa.  [<a href="#footnote-link-2-166">back</a>]</li><li id="footnote-3-166">Personally, I first used this &#8216;task analysis as grammar&#8217; approach in teaching task analysis and it appeared in the <a href="http://www.hcibook.com/e3/chaps/ch15/resources/" target="_blank">task model slides</a> for the third edition if the <a href="http://www.hcibook.com/" target="_blank">HCI book</a> (but not in the book itself, maybe fourth edition).  However, it has been elaborated in work with Stavros Asimakopoulos and Robert Fyldes &#8220;<a href="http://www.hcibook.com/alan/papers/HCI2005-hta-grammar/" target="_blank">Grammatically interpreted task analysis for supply chain forecasting</a>&#8220;.  [<a href="#footnote-link-3-166">back</a>]</li></ol>]]></content:encoded>
	  			<wfw:commentRss>http://www.alandix.com/blog/2009/05/09/language-and-action-sequential-associative-parsing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
            	                        	<item>
		<title>toes in the mediterranean</title>
		<link>http://www.alandix.com/blog/2007/02/13/toes-in-the-mediterranean/</link>
		<comments>http://www.alandix.com/blog/2007/02/13/toes-in-the-mediterranean/#comments</comments>
		<pubDate>Tue, 13 Feb 2007 07:25:25 +0000</pubDate>
		<dc:creator>alan</dc:creator>
				<category><![CDATA[journal]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[paddling]]></category>
		<category><![CDATA[Pisa]]></category>
		<category><![CDATA[sea]]></category>
		<category><![CDATA[Tirrenia]]></category>

		<guid isPermaLink="false">http://www.alandix.com/blog/2007/02/13/toes-in-the-mediterranean/</guid>
		<description><![CDATA[I am in Tirrenia, one of the resorts on the Mediterranean outside Pisa.  February is not the normal tourist month and the palm trees are all wrapped in sacking or plastic to protect them from the rain.
It was overcast when I arrived and yesterday was bleak with heavy rain, but this morning the sky [...]]]></description>
	      		<content:encoded><![CDATA[<p>I am in Tirrenia, one of the resorts on the Mediterranean outside Pisa.  February is not the normal tourist month and the palm trees are all wrapped in sacking or plastic to protect them from the rain.</p>
<p>It was overcast when I arrived and yesterday was bleak with heavy rain, but this morning the sky was open from edge to edge, the unfettered wind blowing the waves clear from the coasts of Spain.</p>
<p>Dabbling my toes in the waters edge, or wading deeper having to run as the larger waves threatened to wash me clear to my waist.  Icy feeling, but I&#8217;m sure still just the chill of cool water, air thrown through the night, no Arctic currents penetrate here.</p>
<p>To my back are the shuttered beach buildings, and tall rectangular pillars of plywood I assume enclosing the summer showers.  Also sprinklers along the beach edges.  I&#8217;d wondered at these when I&#8217;d walked at dusk when I&#8217;d first arrived, but not realised they were along every beach side &#8211; presumably to dampen the sand and keep it from blowing and burying the resort.</p>
<p>The sand slopes steeply towards the sea, and on the water&#8217;s edge a huge driftwood log, like a seat deliberately placed to watch the sea, but now periodically half covered then left stranded by the flow of waves.</p>
<p>On the map it is an contained sea, the Mediterranean, but here I see open sea &#8211; if there are boundaries they are far away and the waves long enough to build and be as terrible and awesome as those that had crossed the whole atlantic a few months ago when I was in Brazil.   These waves though are less uniform, not the slowly growing and breaking of surf beaches, but more a tumbling boiling ferment.</p>
<p>To the north the jagged edges of snow flecked mountains mirror the wave crests, sharp edged against the clear morning sky.  Further north they will become the marble-shot mountains of Carrera from which the best stone in the world is quarried.  Marble not unlike the frozen surface of these surf flecked seas.</p>
<p>The sun just breaks over the land.  It must be a marvelous place for sunsets over the sea.  Slowly as the orange edge rises over the beach buildings the first rays touch the white wave crests, shining above the grey troughs between, then gradually the grey surface turns slate green.</p>
<p>I retrieve my sandals from under the pile of flotsam where I&#8217;d left them earlier, then reluctantly turn my back to the sea.</p>
]]></content:encoded>
	  			<wfw:commentRss>http://www.alandix.com/blog/2007/02/13/toes-in-the-mediterranean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
            	</channel>
</rss>
