RED-9548 - Actions results in wrong results for deadlocked annotation
This commit is contained in:
parent
03e321a824
commit
3c3c029cf4
@ -2123,6 +2123,18 @@ rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
rule "X.11.1: Remove non manual entity which are equal to manual entity"
|
||||||
|
salience 70
|
||||||
|
when
|
||||||
|
$manualEntity: TextEntity(engines contains Engine.MANUAL, active(), $type: type())
|
||||||
|
$nonManualEntity: TextEntity(getTextRange().equals($manualEntity.getTextRange()), type() == $type, entityType == EntityType.ENTITY, !hasManualChanges(), engines not contains Engine.MANUAL)
|
||||||
|
then
|
||||||
|
$manualEntity.addEngines($nonManualEntity.getEngines());
|
||||||
|
$nonManualEntity.remove("X.11.1", "remove non manual entity which are equal to manual entity");
|
||||||
|
retract($nonManualEntity);
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||||
|
|
||||||
// Rule unit: DICT.0
|
// Rule unit: DICT.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user