Merge branch 'RED-6686-2' into 'master'
RED-6686 tenant commons update Closes RED-6686 See merge request redactmanager/redaction-service!22
This commit is contained in:
commit
92207ed4cc
@ -24,7 +24,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
@Service
|
@Service
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ConditionalOnProperty(prefix = "application", name = "type", havingValue = "DocuMine")
|
@ConditionalOnProperty(prefix = "application", name = "type", havingValue = "DocuMine")
|
||||||
public class DocuMineClassificationService implements ClassificationService{
|
public class DocuMineClassificationService implements ClassificationService {
|
||||||
|
|
||||||
private final BodyTextFrameService bodyTextFrameService;
|
private final BodyTextFrameService bodyTextFrameService;
|
||||||
|
|
||||||
@ -56,6 +56,7 @@ public class DocuMineClassificationService implements ClassificationService{
|
|||||||
|
|
||||||
private void classifyBlock(TextPageBlock textBlock, ClassificationPage page, ClassificationDocument document, List<Float> headlineFontSizes) {
|
private void classifyBlock(TextPageBlock textBlock, ClassificationPage page, ClassificationDocument document, List<Float> headlineFontSizes) {
|
||||||
|
|
||||||
|
log.debug("headlineFontSizes: {}", headlineFontSizes);
|
||||||
var bodyTextFrame = page.getBodyTextFrame();
|
var bodyTextFrame = page.getBodyTextFrame();
|
||||||
|
|
||||||
var pattern = Patterns.getCompiledPattern("^(\\d{1,1}\\.){1,3}\\d{1,2}\\.?\\s[0-9A-Za-z]{2,50}", true);
|
var pattern = Patterns.getCompiledPattern("^(\\d{1,1}\\.){1,3}\\d{1,2}\\.?\\s[0-9A-Za-z]{2,50}", true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user