RED-3086: Fixed overlapping rule and dictionary entries
This commit is contained in:
parent
8935af9c76
commit
a62c94b344
@ -159,6 +159,8 @@ public class EntitySearchUtils {
|
|||||||
// HashSet keeps old value but we want the new.
|
// HashSet keeps old value but we want the new.
|
||||||
entities.removeAll(found);
|
entities.removeAll(found);
|
||||||
entities.addAll(found);
|
entities.addAll(found);
|
||||||
|
|
||||||
|
removeEntitiesContainedInLarger(entities);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -673,7 +673,7 @@ public class RedactionIntegrationTest {
|
|||||||
public void redactionTest() throws IOException {
|
public void redactionTest() throws IOException {
|
||||||
|
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
ClassPathResource pdfFileResource = new ClassPathResource("files/Metolachlor/S-Metolachlor_RAR_01_Volume_1_2018-09-06.pdf");
|
ClassPathResource pdfFileResource = new ClassPathResource("files/new/just-a-document-20211215.pdf");
|
||||||
AnalyzeRequest request = prepareStorage(pdfFileResource.getInputStream());
|
AnalyzeRequest request = prepareStorage(pdfFileResource.getInputStream());
|
||||||
request.setExcludedPages(Set.of(1));
|
request.setExcludedPages(Set.of(1));
|
||||||
|
|
||||||
|
|||||||
@ -1655,3 +1655,11 @@ Zyma SA, Nyon, Switzerland
|
|||||||
Mambo-Tox Ltd. Biomedical Sciences Building Bassett Crescent East Southampton SO16 7PX UK
|
Mambo-Tox Ltd. Biomedical Sciences Building Bassett Crescent East Southampton SO16 7PX UK
|
||||||
Syngenta Environmental Sciences Jealott’s Hill International Research Centre Bracknell, Berkshire RG42 6EY UK
|
Syngenta Environmental Sciences Jealott’s Hill International Research Centre Bracknell, Berkshire RG42 6EY UK
|
||||||
Test Ignored Hint CBI_ADDRESS
|
Test Ignored Hint CBI_ADDRESS
|
||||||
|
CTL
|
||||||
|
CTL - Central Toxicology Laboratory
|
||||||
|
CTL/P/3557
|
||||||
|
CTL/P/3607
|
||||||
|
CTL/P/S 161
|
||||||
|
CTL/Pl4333
|
||||||
|
CTL/with dictionary entry
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user