From c3071113b3f7e6e0fea351297d3ca11adc407e16 Mon Sep 17 00:00:00 2001 From: aarne Date: Thu, 23 Dec 2010 10:05:27 +0000 Subject: word alignment ex in tutorial --- doc/tutorial/gf-tutorial.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'doc/tutorial/gf-tutorial.html') 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: visualize_tree = vt:

The tree is generated in postscript (.ps) file. The -view option is used for -telling what command to use to view the file. Its default is "gv", 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 "open", which works +on Mac OS X. On Ubuntu Linux, one can write

-    > parse "this delicious cheese is very Italian" | visualize_tree -view="open"
+    > parse "this delicious cheese is very Italian" | visualize_tree -view="eog"
 

@@ -1240,6 +1240,19 @@ are put before the noun. This distinction can be controlled by parameters, which are introduced in Lesson 3.)

+Multilingual grammars have yet another visualization option: +word alignment, 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 align_words = aw: +

+
+    > parse "this delicious cheese is very Italian" | align_words
+
+

+

+ +

+

-- cgit v1.2.3