All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy