RED-10200: fix failing acceptance, function tests
This commit is contained in:
parent
ef06d45efe
commit
dd545daeb7
@ -383,17 +383,17 @@ public class DocumentTree {
|
|||||||
for (TextEntity textEntity : entity.getDeepestFullyContainingNode().getEntities()) {
|
for (TextEntity textEntity : entity.getDeepestFullyContainingNode().getEntities()) {
|
||||||
if (entity.intersects(textEntity) && !entity.equals(textEntity) && !textEntity.getEntityType().equals(EntityType.TEMPORARY)) {
|
if (entity.intersects(textEntity) && !entity.equals(textEntity) && !textEntity.getEntityType().equals(EntityType.TEMPORARY)) {
|
||||||
if (textEntity.getTextRange().equals(entity.getTextRange())) {
|
if (textEntity.getTextRange().equals(entity.getTextRange())) {
|
||||||
textEntity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Equality(entity, textEntity));
|
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Equality(entity, textEntity));
|
||||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Equality(textEntity, entity));
|
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Equality(textEntity, entity));
|
||||||
} else if (textEntity.containedBy(entity)) {
|
} else if (textEntity.containedBy(entity)) {
|
||||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Containment(entity, textEntity));
|
|
||||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
||||||
|
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Containment(entity, textEntity));
|
||||||
} else if (entity.containedBy(textEntity)) {
|
} else if (entity.containedBy(textEntity)) {
|
||||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Containment(textEntity, entity));
|
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Containment(textEntity, entity));
|
||||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
||||||
} else {
|
} else {
|
||||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
|
||||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
||||||
|
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8625,5 +8625,4 @@ Mustermann
|
|||||||
Lastname
|
Lastname
|
||||||
Bojangles
|
Bojangles
|
||||||
Tambourine Man
|
Tambourine Man
|
||||||
Tournayre J.C.
|
Tournayre J.C.
|
||||||
Phillip
|
|
||||||
Loading…
x
Reference in New Issue
Block a user