Tool in Mylly: VRT manipulation / Rename VRT positions
suomeksi
Rename VRT positions
This tool specifies new names to VRT positional fields. Each field is identified by the value to an old-name parameter rather than by position. The value of the corresponding new-name parameter specifies the new name.
Other fields keep their old names, or else their default name Vk
where k
is the number of the position.
Example
Suppose the input VRT document has the following three fields for each token.
- surface form
- lemma (aka base form)
- some annotation
Suppose that the input document starts with the following comment that specifies the names foo
, bar
, baz
for the three fields.
<!-- Positional attributes: foo bar baz -->
To make the output document have the name lemma
for the second field, specify bar
as the value of an old-name parameter and lemma
as the value of the corresponding new-name parameter. Then the output document starts with the following comment that specifies the new name lemma
for the field previously named bar
, and the previous names for the other two fields.
<!-- Positional attributes: foo lemma baz -->
Related tools
See also
- VRT format in the Language Bank of Finland