RED-1170: Do not use non dictionay hints vor local analysis
This commit is contained in:
parent
93dcd6b9f7
commit
aac4d0437e
@ -66,7 +66,7 @@ public class EntityRedactionService {
|
||||
|
||||
Map<Integer, Set<Entity>> hintsPerSectionNumber = new HashMap<>();
|
||||
documentEntities.stream().forEach(entity -> {
|
||||
if (dictionary.isHint(entity.getType())) {
|
||||
if (dictionary.isHint(entity.getType()) && entity.isDictionaryEntry()) {
|
||||
hintsPerSectionNumber.computeIfAbsent(entity.getSectionNumber(), (x) -> new HashSet<>())
|
||||
.add(entity);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user