package data; import java.util.List; import java.util.Map; public class Sentence { private List words; private String taksonomija; // GOS private String type; private Map properties; public Sentence(List words, String taksonomija) { this.words = words; this.taksonomija = taksonomija; } public Sentence(List words) { this.words = words; } public Sentence(List words, String taksonomija, Map properties) { this.words = words; this.taksonomija = taksonomija; this.properties = properties; } public Sentence(List words, String taksonomija, String type) { this.words = words; this.taksonomija = taksonomija; this.type = type; } public List getWords() { return words; } public String getTaxonomy() { return taksonomija; } 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; } }