DM-318: remove all images #45
@ -164,6 +164,7 @@ public class SectionNodeFactory {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("PMD")
|
||||
private List<TextPageBlock> findTextBlocksWithSameClassificationAndAlignsYAndSameOrientationUntilConvergence(TextPageBlock originalTextBlocks,
|
||||
List<AbstractPageBlock> pageBlocks) {
|
||||
|
||||
|
||||
@ -1110,6 +1110,15 @@ rule "X.0.0: remove Entity contained by Entity of same type"
|
||||
retract($contained);
|
||||
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 ------------------------------------
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user