[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
user:zeman:interset:how-to-use [2009/02/20 15:00]
zeman Level of headings.
user:zeman:interset:how-to-use [2009/02/20 15:05]
zeman Nadpis.
Line 1: Line 1:
-====== Manual ======+====== DZ Interset Manual ======
  
 ===== Installation ===== ===== Installation =====
Line 39: Line 39:
  
 There is also the driver testing script, ''bin/driver-test.pl''. The distribution may contain some sample conversion scripts as well; however, these depend much more on the file format than on the tagset drivers, and thus you'll probably need to write your own anyway. There is also the driver testing script, ''bin/driver-test.pl''. The distribution may contain some sample conversion scripts as well; however, these depend much more on the file format than on the tagset drivers, and thus you'll probably need to write your own anyway.
 +
  
 ===== How to use the Interset ===== ===== How to use the Interset =====
Line 44: Line 45:
 You can write your own tag conversion Perl script, and use the Interset driver library. You have to tell Perl where to find the drivers (the following commands work in ''csh''; you have to use different syntax under ''bash'' or in Windows command line): You can write your own tag conversion Perl script, and use the Interset driver library. You have to tell Perl where to find the drivers (the following commands work in ''csh''; you have to use different syntax under ''bash'' or in Windows command line):
  
-<code>setenv PERLLIB /home/zeman/projekty/interset/lib:$PERLLIB +<code>setenv PERLLIB /home/zeman/interset/lib:$PERLLIB 
-setenv PATH /home/zeman/projekty/interset/bin:$PATH</code>+setenv PATH /home/zeman/interset/bin:$PATH</code>
  
 Once the variable is set, writing a conversion script is very easy. For instance, my ''csts-cs-pdt-en-penn.pl'' script (meaning "read and write [[:Formát CSTS|CSTS format]], read Czech PDT tags, write English Penn tags) essentially looks like this: Once the variable is set, writing a conversion script is very easy. For instance, my ''csts-cs-pdt-en-penn.pl'' script (meaning "read and write [[:Formát CSTS|CSTS format]], read Czech PDT tags, write English Penn tags) essentially looks like this:

[ Back to the navigation ] [ Back to the content ]