Tool in Mylly: VRT manipulation / Rename VRT positions
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
k is the number of the position.
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
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 -->
- VRT format in the Language Bank of Finland