RED-8775 - Add X.11 remove rule
This commit is contained in:
parent
9354cbb6bc
commit
6de0346052
@ -1582,6 +1582,17 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ File attributes rules ------------------------------------
|
||||
|
||||
|
||||
@ -1391,6 +1391,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -2013,6 +2013,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -1437,6 +1437,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -950,6 +950,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -278,6 +278,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -1479,6 +1479,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -402,6 +402,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -523,6 +523,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -439,6 +439,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -2006,6 +2006,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
@ -1582,6 +1582,18 @@ rule "X.10.0: remove false positives of ai"
|
||||
end
|
||||
|
||||
|
||||
// Rule unit: X.11
|
||||
rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
|
||||
salience 64
|
||||
when
|
||||
$manualEntity: TextEntity(engines contains Engine.MANUAL, active())
|
||||
$dictionaryEntity: TextEntity(intersects($manualEntity), dictionaryEntry, engines not contains Engine.MANUAL)
|
||||
then
|
||||
$dictionaryEntity.remove("X.11.0", "remove dictionary entity which intersects with a manual entity");
|
||||
retract($dictionaryEntity);
|
||||
end
|
||||
|
||||
|
||||
//------------------------------------ Dictionary merging rules ------------------------------------
|
||||
|
||||
// Rule unit: DICT.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user