RED-7784 - Add positions for not found manual entities calculation
This commit is contained in:
parent
176847fb1d
commit
a294d1dcd4
@ -41,7 +41,10 @@ public class UnprocessedChangesService {
|
||||
|
||||
List<ManualEntity> notFoundManualEntities = manualEntityCreationService.toTextEntity(manualEntitiesConverter(manualRedactions), document);
|
||||
|
||||
document.getEntities().forEach(textEntity -> {
|
||||
document.getEntities().stream()
|
||||
.filter(EntityLogCreatorService::notFalsePositiveOrFalseRecommendation)
|
||||
.filter(entity -> !entity.removed())
|
||||
.forEach(textEntity -> {
|
||||
Set<String> processedIds = new HashSet<>();
|
||||
for (var positionsOnPerPage : textEntity.getPositionsOnPagePerPage()) {
|
||||
if (processedIds.contains(positionsOnPerPage.getId())) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user