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.
- surface form
- lemma (aka base form)
- 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
- VRT format in the Language Bank of Finland