Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy and paste error #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/de/unihd/dbs/uima/annotator/heideltime/HeidelTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ private void deleteOverlappedTimexesPostprocessing(JCas jcas) {
// compare this timex to all other timexes and mark those that have an overlap
while(innerTimexIter.hasNext()) {
Timex3 myInnerTimex = (Timex3) innerTimexIter.next();
if (!(myTimex.getTimexType().equals("TEMPONYM"))) {
if (!(myInnerTimex.getTimexType().equals("TEMPONYM"))) {
if((myTimex.getBegin() <= myInnerTimex.getBegin() && myTimex.getEnd() > myInnerTimex.getBegin()) || // timex1 starts, timex2 is partial overlap
(myInnerTimex.getBegin() <= myTimex.getBegin() && myInnerTimex.getEnd() > myTimex.getBegin()) || // same as above, but in reverse
(myInnerTimex.getBegin() <= myTimex.getBegin() && myTimex.getEnd() <= myInnerTimex.getEnd()) || // timex 1 is contained within or identical to timex2
Expand Down Expand Up @@ -2185,7 +2185,7 @@ public void findTimexes(String timexType,
// validate fast check fist, if no fast match, everything else is not required anymore
if (timexType.equals("DATE")) {
f = hmDateFastCheck.get(hmPattern.get(p));
} else if (timexType.equals("Time")) {
} else if (timexType.equals("TIME")) {
f = hmTimeFastCheck.get(hmPattern.get(p));
} else if (timexType.equals("DURATION")) {
f = hmDurationFastCheck.get(hmPattern.get(p));
Expand Down Expand Up @@ -2230,7 +2230,7 @@ public void findTimexes(String timexType,
}
} else if (timexType.equals("TEMPONYM")) {
if (hmTemponymPosConstraint.containsKey(hmPattern.get(p))) {
posConstraintOK = checkPosConstraint(s , hmSetPosConstraint.get(hmPattern.get(p)), r, jcas);
posConstraintOK = checkPosConstraint(s , hmTemponymPosConstraint.get(hmPattern.get(p)), r, jcas);
}
}

Expand Down