package de.tudarmstadt.lt.babelnet.extract.data;

import org.inferred.freebuilder.FreeBuilder;

import java.util.List;
import java.util.stream.Collectors;

@FreeBuilder
public interface Cluster {
    Integer getId();

    List<String> getSenses();

    List<String> getLemmas();

    class Builder extends Cluster_Builder {
        public Cluster build() {
            addAllLemmas(getSenses().stream().map(sense -> sense.split("#")[0].toLowerCase()).collect(Collectors.toList()));
            return super.build();
        }
    }
}
@@ -526,8 +526,9 @@
 %0A    %7D%0A%7D
+%0A

Add a newline in Cluster [ci skip]