if (!matcher.find()) {
System.err.println(goldView.getDocumentText());
} else {
Try<Temporal> anchorTry = parser.parse(matcher.group(1), TimeSpan.of(1, 1, 1));
if (anchorTry.isSuccess() && anchorTry.get() instanceof TimeSpan) {
TimeSpan anchor = (TimeSpan)anchorTry.get();
for (Segment segment : JCasUtil.select(jCas, Segment.class)) {
if (!THYMEData.SEGMENTS_TO_SKIP.contains(segment.getId())) {
for (TimeMention time : JCasUtil.selectCovered(goldView, TimeMention.class, segment)) {
String timeText = time.getCoveredText();
Try<Temporal> parsedTime = parser.parse(timeText, anchor);