You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.0 KiB

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