public Map<String, String> getTimexAttributes(TimeIndex timeIndex) { Map<String, String> map = new LinkedHashMap<>(); map.put(TimexAttr.tid.name(), getTidString(timeIndex)); // NOTE: GUTime used "VAL" instead of TIMEX3 standard "value" // NOTE: attributes are case sensitive, GUTIME used mostly upper case // attributes.... String val = getTimexValue(); if (val != null) { map.put(TimexAttr.value.name(), val); } if (val == null || includeTimexAltValue()) { String str = toFormattedString(FORMAT_FULL); if (str != null) { map.put("alt_value", str); } } /* Range r = getRange(); if (r != null) map.put("range", r.toString()); */ /* map.put("str", toString()); */ map.put(TimexAttr.type.name(), getTimexType().name()); if (mod != null) { map.put(TimexAttr.mod.name(), mod); } return map; }
public Map<String, String> getTimexAttributes(TimeIndex timeIndex) { Map<String, String> map = new LinkedHashMap<>(); map.put(TimexAttr.tid.name(), getTidString(timeIndex)); // NOTE: GUTime used "VAL" instead of TIMEX3 standard "value" // NOTE: attributes are case sensitive, GUTIME used mostly upper case // attributes.... String val = getTimexValue(); if (val != null) { map.put(TimexAttr.value.name(), val); } if (val == null || includeTimexAltValue()) { String str = toFormattedString(FORMAT_FULL); if (str != null) { map.put("alt_value", str); } } /* Range r = getRange(); if (r != null) map.put("range", r.toString()); */ /* map.put("str", toString()); */ map.put(TimexAttr.type.name(), getTimexType().name()); if (mod != null) { map.put(TimexAttr.mod.name(), mod); } return map; }
public Map<String, String> getTimexAttributes(TimeIndex timeIndex) { Map<String, String> map = new LinkedHashMap<String, String>(); map.put(TimexAttr.tid.name(), getTidString(timeIndex)); // NOTE: GUTime used "VAL" instead of TIMEX3 standard "value" // NOTE: attributes are case sensitive, GUTIME used mostly upper case // attributes.... String val = getTimexValue(); if (val != null) { map.put(TimexAttr.value.name(), val); } if (val == null || includeTimexAltValue()) { String str = toFormattedString(FORMAT_FULL); if (str != null) { map.put("alt_value", str); } } /* Range r = getRange(); if (r != null) map.put("range", r.toString()); */ /* map.put("str", toString()); */ map.put(TimexAttr.type.name(), getTimexType().name()); if (mod != null) { map.put(TimexAttr.mod.name(), mod); } return map; }
public Map<String, String> getTimexAttributes(TimeIndex timeIndex) { Map<String, String> map = new LinkedHashMap<String, String>(); map.put(TimexAttr.tid.name(), getTidString(timeIndex)); // NOTE: GUTime used "VAL" instead of TIMEX3 standard "value" // NOTE: attributes are case sensitive, GUTIME used mostly upper case // attributes.... String val = getTimexValue(); if (val != null) { map.put(TimexAttr.value.name(), val); } if (val == null || includeTimexAltValue()) { String str = toFormattedString(FORMAT_FULL); if (str != null) { map.put("alt_value", str); } } /* Range r = getRange(); if (r != null) map.put("range", r.toString()); */ /* map.put("str", toString()); */ map.put(TimexAttr.type.name(), getTimexType().name()); if (mod != null) { map.put(TimexAttr.mod.name(), mod); } return map; }