Alberto Simões 🐪

NAME

biling2thesaurus - converts a ":"-separated bilingual dictionary to ISO thesaurus

SYNOPSIS

 biling2thesaurus [-l1=EN|-l2=FR]  bilingDict > thesaurus

DESCRIPTION

Converts a Bilingue dictionary into a ISO-thesaurus.

Input format: lines containing

 term1 : term2 : class

or

 term1: term2

Input Format

 <term1 lang1>:<term1 lang2>:<class>
 <term2 lang1>:<term2 lang2>:<class>

Input files may have a encoding declaration. Example:

 %encoding UTF-8

Output Format

 <term1 lang1>
 LANG2  <term1 lang2>
 BT    <class>

 <term2 lang1>
 LANG2  <term2 lang2>
 BT    <class>

Options

 -l1=FR
     baselang is lang2;
     lang1 is french

 -l2=FR
     baselang is lang1;
     lang2 is french

 -rel=IOF
     Relation tag is IOF (default  BT)

 -norel
     Ignore classes in the inputfile (default: show relations)

 -sep="::"
     field separator is "::" (default ":")

 -bl=PT
     baselang is PT (makes a %baselang PT in output file)

AUTHOR

J.Joao Almeida, jj@di.uminho.pt

SEE ALSO

perl(1).