summaryrefslogtreecommitdiff
path: root/doc/tutorial/gf-tutorial.html
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2010-12-23 10:05:27 +0000
committeraarne <aarne@chalmers.se>2010-12-23 10:05:27 +0000
commitc3071113b3f7e6e0fea351297d3ca11adc407e16 (patch)
tree5379a8dbc405ed24bb5ac3ac5345bf225059ee4c /doc/tutorial/gf-tutorial.html
parent706f3c89b510fc6dbd2b828d9a660f111d165ded (diff)
word alignment ex in tutorial
Diffstat (limited to 'doc/tutorial/gf-tutorial.html')
-rw-r--r--doc/tutorial/gf-tutorial.html19
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/tutorial/gf-tutorial.html b/doc/tutorial/gf-tutorial.html
index 3652df3a1..3ca213bdb 100644
--- a/doc/tutorial/gf-tutorial.html
+++ b/doc/tutorial/gf-tutorial.html
@@ -1119,11 +1119,11 @@ Human eye may prefer to see a visualization: <CODE>visualize_tree = vt</CODE>:
</PRE>
<P>
The tree is generated in postscript (<CODE>.ps</CODE>) file. The <CODE>-view</CODE> option is used for
-telling what command to use to view the file. Its default is <CODE>"gv"</CODE>, which works
-on most Linux installations. On a Mac, one would probably write
+telling what command to use to view the file. Its default is <CODE>"open"</CODE>, which works
+on Mac OS X. On Ubuntu Linux, one can write
</P>
<PRE>
- &gt; parse "this delicious cheese is very Italian" | visualize_tree -view="open"
+ &gt; parse "this delicious cheese is very Italian" | visualize_tree -view="eog"
</PRE>
<P></P>
<P>
@@ -1240,6 +1240,19 @@ are put before the noun. This distinction can be controlled by parameters,
which are introduced in <a href="#chaptwo">Lesson 3</a>.)
</P>
<P>
+Multilingual grammars have yet another visualization option:
+<B>word alignment</B>, which shows what words correspond to each other.
+Technically, this means words that have the same smallest spanning subtrees
+in abstract syntax. The command is <CODE>align_words = aw</CODE>:
+</P>
+<PRE>
+ &gt; parse "this delicious cheese is very Italian" | align_words
+</PRE>
+<P></P>
+<P>
+<IMG ALIGN="middle" SRC="align2.png" BORDER="0" ALT="">
+</P>
+<P>
<!-- NEW -->
</P>
<A NAME="toc29"></A>