Tool in Mylly: VRT manipulation / Name positions
suomeksi

Name VRT positions

This tool specifies names for positions aka positional attributes aka tab-separated fields in a VRT document. The first parameter gives a name for the first position, the second parameter for the second position, and so on. Then the output VRT document starts with a comment that gives the names.

When the value of a parameter is left as EMPTY, the output name for the field is either the corresponding name from the input document, or else the default name Vk where k is the position number.

Example

Suppose the input VRT document has the following three fields for each token.

  1. surface form
  2. lemma (aka base form)
  3. some annotation

To make sure that the second field has the name lemma in the output document, specify lemma as the value of the second parameter.

If the input document has no names before any record but contains at least one record, the output document starts with the following comment.

     <!-- Positional attributes: V1 lemma V2 -->
  

If, instead, the input document specifies the three names foo, bar, baz, the output document starts with the following comment.

     <!-- Positional attributes: foo lemma baz -->
  

Related tools

See also

Search the Language Bank Portal:
Sofoklis Kakouros
Researcher of the Month: Sofoklis Kakouros

 

Upcoming events


Contact

The Language Bank's technical support:
kielipankki (at) csc.fi
tel. +358 9 4572001

Requests related to language resources:
fin-clarin (at) helsinki.fi
tel. +358 29 4129317

More contact information