fr.univnantes.termsuite.projection.DocumentProjection Maven / Gradle / Ivy
package fr.univnantes.termsuite.projection;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import fr.univnantes.termsuite.model.Term;
public class DocumentProjection {
private Map terms;
public DocumentProjection(Collection documentTerms) {
terms = new HashMap<>();
documentTerms.forEach(t-> terms.put(t.getGroupingKey(), t));
}
public Map getTerms() {
return terms;
}
}