Tool in Mylly: Relation algebra / Keep with count | fi
Keep/count selected attributes
The ”keep with count” operation projects an input relation to the selected attributes with the addition of a new count attribute to record the multiplicity in the input relation of the kept combinations.
The input and output relations are represented as TSV files.
- name for the count attribute
- zero or more attributes
Attributes are presented as menus that list the attributes that the relation has. EMPTY indicates that the parameter is not used.
Selecting the same attribute more than once is harmless.
(Selecting no attributes, by leaving every attribute parameter at EMPTY, produces a relation with no attributes. There are two such relations.)
The input relation consists of word forms annotated with sentence and token numbers and lemmas.
The count attribute is named count. (The default name is cMcount.)
When the word form and lemma are kept, the two occurrences of olla as on melt into one record.
When only the lemma is kept, all three occurrences of olla melt into one record.
- drop with count