From 5cfb3a04ff95161eeaa985c78892b1e01259a4c2 Mon Sep 17 00:00:00 2001 From: Erich Schubert Date: Mon, 23 Apr 2018 17:32:59 +0200 Subject: [PATCH] re-enable the use of document creation time --- .../dbs/uima/annotator/heideltime/ResolveAmbiguousValues.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/unihd/dbs/uima/annotator/heideltime/ResolveAmbiguousValues.java b/src/de/unihd/dbs/uima/annotator/heideltime/ResolveAmbiguousValues.java index 34dd86b1..2646ee21 100644 --- a/src/de/unihd/dbs/uima/annotator/heideltime/ResolveAmbiguousValues.java +++ b/src/de/unihd/dbs/uima/annotator/heideltime/ResolveAmbiguousValues.java @@ -128,7 +128,7 @@ public String specifyAmbiguousValuesString(String ambigString, Timex3 t_i, int i if (!ambigString.startsWith("UNDEF")) return ambigString; // If available, parse document creation time: - ParsedDct dct = null; // (documentType != DocumentType.NARRATIVE) ? ParsedDct.read(jcas) : null; + ParsedDct dct = ParsedDct.read(jcas); // was: (documentType != DocumentType.NARRATIVE) ? ParsedDct.read(jcas) : null; // get the last tense (depending on the part of speech tags used in front or behind the expression) Tense last_used_tense = getLastTense(t_i, jcas, language);