DM-318: remove all images
This commit is contained in:
parent
36fcc88671
commit
12eee9482d
@ -164,6 +164,7 @@ public class SectionNodeFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@SuppressWarnings("PMD")
|
||||||
private List<TextPageBlock> findTextBlocksWithSameClassificationAndAlignsYAndSameOrientationUntilConvergence(TextPageBlock originalTextBlocks,
|
private List<TextPageBlock> findTextBlocksWithSameClassificationAndAlignsYAndSameOrientationUntilConvergence(TextPageBlock originalTextBlocks,
|
||||||
List<AbstractPageBlock> pageBlocks) {
|
List<AbstractPageBlock> pageBlocks) {
|
||||||
|
|
||||||
|
|||||||
@ -1110,6 +1110,15 @@ rule "X.0.0: remove Entity contained by Entity of same type"
|
|||||||
retract($contained);
|
retract($contained);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
// Rule unit: X.7
|
||||||
|
rule "X.7.0: remove all images"
|
||||||
|
salience 512
|
||||||
|
when
|
||||||
|
$image: Image(imageType != ImageType.OCR)
|
||||||
|
then
|
||||||
|
$image.remove("X.7.0", "remove all images");
|
||||||
|
retract($image);
|
||||||
|
end
|
||||||
|
|
||||||
//------------------------------------ File attributes rules ------------------------------------
|
//------------------------------------ File attributes rules ------------------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user