RED-7784 - Add positions for not found manual entities calculation

This commit is contained in:
Andrei Isvoran 2023-11-21 10:35:08 +02:00
parent 176847fb1d
commit a294d1dcd4

View File

@ -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())) {