package data; import java.util.List; import java.util.Map; public class Sentence { private List words; private List taxonomy; // GOS private String type; private Map properties; public Sentence(List words, List taxonomy) { this.words = words; this.taxonomy = taxonomy; } public List getWords() { return words; } public List getTaxonomy() { return taxonomy; } public List getSublist(int indexFrom, int indexTo) { return this.words.subList(indexFrom, indexTo); } public String getType() { return type; } public void setType(String type) { this.type = type; } }