Pull request #372: RED-3802: Fixed prefer redactions over recommendations
Merge in RED/redaction-service from RED-3802 to master * commit '1a6a1a008f76897f01f10dd40ea0307c2c84175c': RED-3802: Fixed prefer redactions over recommendations
This commit is contained in:
commit
cf75ac56cc
@ -166,7 +166,7 @@ public class EntitySearchUtils {
|
|||||||
for (Entity inner : entities) {
|
for (Entity inner : entities) {
|
||||||
if (inner.getWord().length() < word.getWord()
|
if (inner.getWord().length() < word.getWord()
|
||||||
.length() && inner.getStart() >= word.getStart() && inner.getEnd() <= word.getEnd() && word != inner && word.getSectionNumber() == inner.getSectionNumber()) {
|
.length() && inner.getStart() >= word.getStart() && inner.getEnd() <= word.getEnd() && word != inner && word.getSectionNumber() == inner.getSectionNumber()) {
|
||||||
if (word.getEntityType().equals(EntityType.RECOMMENDATION) && word.getEntityType().equals(EntityType.ENTITY)) {
|
if (word.getEntityType().equals(EntityType.RECOMMENDATION) && inner.getEntityType().equals(EntityType.ENTITY)) {
|
||||||
wordsToRemove.add(word);
|
wordsToRemove.add(word);
|
||||||
} else {
|
} else {
|
||||||
wordsToRemove.add(inner);
|
wordsToRemove.add(inner);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user