Added implementation of taxonomy set operations (intersection and union)

This commit is contained in:
2019-01-29 13:49:20 +01:00
parent b639e36961
commit acf2fb086b
13 changed files with 286 additions and 65 deletions

View File

@@ -29,6 +29,7 @@ public class Filter implements Cloneable {
NOTE_PUNCTUATIONS,
MINIMAL_OCCURRENCES,
MINIMAL_TAXONOMY,
TAXONOMY_SET_OPERATION,
COLLOCABILITY,
PREFIX_LENGTH,
SUFFIX_LENGTH,
@@ -104,6 +105,14 @@ public class Filter implements Cloneable {
return (Integer) filter.get(STRING_LENGTH);
}
public void setTaxonomySetOperation(String taxonomySetOperation) {
filter.put(TAXONOMY_SET_OPERATION, taxonomySetOperation);
}
public String getTaxonomySetOperation() {
return (String) filter.get(TAXONOMY_SET_OPERATION);
}
public void setTaxonomy(ArrayList<Taxonomy> taxonomy) {
filter.put(TAXONOMY, taxonomy);
}

View File

@@ -593,6 +593,12 @@ public class StatisticsNew {
info.put(I18N.get("exportHeader.msd"), "");
}
if (!isEmpty(filter.getTaxonomySetOperation())) {
info.put(I18N.get("exportHeader.taxonomySetOperation"), filter.getTaxonomySetOperation());
} else {
info.put(I18N.get("exportHeader.taxonomySetOperation"), "");
}
// }