Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
user:zeman:interset:how-to-use [2008/03/10 12:54] zeman New location. |
user:zeman:interset:how-to-use [2008/03/10 13:10] zeman New location of the drivers. |
| |
There is also the driver testing script, ''driver-test.pl''. In the distribution package, this script is in the ''tagset'' folder. However, since ''tagset'' is going to live under one of your ''lib''s, you may prefer to move the script under one of your ''bin''s, e.g. ''~/bin''. 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, ''driver-test.pl''. In the distribution package, this script is in the ''tagset'' folder. However, since ''tagset'' is going to live under one of your ''lib''s, you may prefer to move the script under one of your ''bin''s, e.g. ''~/bin''. 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 ==== |
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: | 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: |
| |
<code>setenv PERLLIB /home/zeman/lib/perl:$PERLLIB</code> | <code>setenv PERLLIB /home/zeman/projekty/interset/lib:$PERLLIB</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: |