DM-305: Implemented anyHeadlineContainsString for DocuMine and fixed some DocuMine Rules
Closes DM-305
See merge request redactmanager/redaction-service!15
Merge in RED/redaction-service from RED-6744 to master
* commit '809349f65d7aa4af9ac5ca2fa75d80548d2f475b':
RED-6744 - Merge dossier and template dictionaries in redaction-service - reformat - add junit test
RED-6744 - Merge dossier and template dictionaries in redaction-service - remove unnecessary annotations
RED-6744 - erge dossier and template dictionaries in redaction-service - extend DictionaryEntry from persistence to use it in merging dictionaries and to override the hascode and equals - use this DictionaryEntryModel instead of DictionaryEntry
- extend DictionaryEntry from persistence to use it in merging dictionaries and to override the hascode and equals
- use this DictionaryEntryModel instead of DictionaryEntry
Merge in RED/redaction-service from RED-6619_5 to master
* commit 'f574b414c471cb6f349a5fd44a1ad337c77521ac':
RED-6619 - change pom to fforesight again
RED-6619 - revert changes in pom
RED-6619 - change from iqser to knecon
RED-6619 - change nexus-url from iqser to knecon
Merge in RED/redaction-service from RED-6619_1 to master
* commit 'aff7074b4012627a4e8b64b2f4a779b18feed50a':
RED-6619 - renamed variables
RED-6619 - reformat code
RED-6619 - delete unnecessary import
RED-6619 - moved not the logic to a boolean, but the 1 into a constant
RED-6619 - fix integration-tests by adding versions and move the hasMinimumSize-logic into own boolea
RED-6619 - added missing ' (typo)
RED-6619 - add logic to ignore found table-cells with height or width < 1. Also: Fix the tests and add new segmentation-tests and 1 redaction-integration-test. Renamed the latter to fit maven regexp
RED-6619 - add tests for table-extraction
Merge in RED/redaction-service from RED-5694-storage to master
* commit '9a933e9563769dbbc38756151ef7d33fde859194':
RED-5694 - Upgrade spring-boot to 3.0 - import storageAutoConfiguration to Application
Merge in RED/redaction-service from RED-5694 to master
* commit '7d4b3f40d3a09493459d6f71e53275fc1da7adad':
RED-5694 - Upgrade spring-boot to 3.0 - exclude storageAutoConfiguration with @ComponentScan
RED-5694 - Upgrade spring-boot to 3.0 - remove comment code
RED-5694 - Upgrade spring-boot to 3.0 - remove comment code
RED-5694 - Upgrade spring-boot to 3.0 - update exclusion of StorageAutoConfiguration
RED-5694 - Upgrade spring-boot to 3.0 - update after the merge of master
RED-5694 - Upgrade spring-boot to 3.0 - update platfrom-dependency and other dependencies with latest versions - remove dslplatform dependency
RED-5694: Imported new version of platform-dependency and fixed a couple of issues.
Merge in RED/redaction-service from RED-6411_4.5.0_1 to master
* commit '2a56187294c125931d4b998ee1f812ea426e2b58':
RED-6411 - optimize code
RED-6411 - optimize method
RED-6411 - rename testclass because of regexp
RED-6411 - fix import of configuration
RED-6411 - add test for this case (with the current rules-file) and move/abstract logic from the RedactionIntegrationTest into AbstractRedactionIntegrationTest
RED-6411 - extend logic when replacing entities with higher rank
RED-6411 - remove false positives before calling EntitySearchUtils.addOrAddEngine()
* Updated imports for some javax.* packages.
* Added improved config for annotation processors (not dependent on implementation details).
* Updated SectionText class to not use wildcard imports, since the cause problems for lombok + dsl-json.
Merge in RED/redaction-service from RED-6224 to master
* commit '339833e2d6f4f85757f7fdb84c2006f17d766f38':
RED-6224: Fixed pr findings
RED-6224: Made dictionary cache multitenancy ready
Merge in RED/redaction-service from RED-6250 to master
* commit 'fe5121b1edf784d5cc57abd9cd8e27f70dea0f4a':
RED-6250: Switched to new metrics-commons version to not have to instantiate a factory (reduces code duplication)
RED-6250: Changed function-timer metric to use code from metric commons
Merge in RED/redaction-service from RED-4988-cisa to master
* commit 'a73373ba42e6098e093fcd58a458902d4ca428fe':
RED-4988 Check jacoco version in poms and update to a current compatible version - add -DknownExploitedEnabled=false for dependency-check:aggregate
Merge in RED/redaction-service from RED-6264 to master
* commit 'f9d61a57c1813d34219c6442108af34b411094f7':
RED-6264: Corrected metric name and added clarifying comment
RED-6264: Implemented metric to show analyze time correlated with pages
Merge in RED/redaction-service from RED-6204 to master
* commit '6e73cac99c99fc333b9ec29b4a16aad48ffba149':
RED-6204: Added annotation to suppress a false-positive warning in SonarQube
RED-6204: Corrected typo in comment
RED-6204: Simplified conversion of File to Path
RED-6204: Corrected temp file deletion in PdfSegmentationService.
RED-6204: Upgraded to newest platform-dependency and migrated tests to Junit5
Merge in RED/redaction-service from RED-6204 to master
* commit '3fad6381ce71f36083d6f545e1b9c47cecda3ef1':
RED-6204: Removed redundant parenthesis
RED-6204: Removed redundant variable assignment (sonar issue) & simplified code
RED-6204: Remove unused import (sonar issue)
RED-6204: Moved code to its own class for metrics.
RED-6204: Moved code to its own class for metrics.
RED-6204: Remove AspectJ mode setting, since it would require a couple of AspectJ dependencies for a very limited use case
RED-6204: Switched to AspectJ to enable proxies on private methods
Merge in RED/redaction-service from RED-6164 to master
* commit '0cf867b97c2a240f2bbdca479ebdc36f64ed3bbb':
RED-6164: Fixed calculation of image is ocr on scanned pages with cv analysis found tables
Merge in RED/redaction-service from RED-5664 to master
* commit '1fca62f5782a7b2512092389c13195415bd5df9c':
RED-5664: Enabled to redact words that start or end with seperator, needed for japan documents
Merge in RED/redaction-service from RED-4609 to master
* commit 'e23432096cb0ed486a294ed210646bbd8682350e':
RED-4609 - adjusted some metrics, added tests for metrics
Merge in RED/redaction-service from RED-5276-1 to master
* commit '16b04b5918a3c8cac0070125d0e984bcd55b9b70':
RED-5276: Fixed strange behavior of text parsing for tables example document
Merge in RED/redaction-service from RED-5917 to master
* commit '41282c0edd1cbc98357ba04e33731d5b079064b8':
RED-5917: Wrong value set for Signature and Logo after Resize
Merge in RED/redaction-service from RED-5981 to master
* commit 'd2eeaa91a6857b779996e5f5e9254bd4a460ac63':
RED-5981 remove from dictionary pending analhysis
Merge in RED/redaction-service from RED-5276-1 to master
* commit 'd233c18d335d17d3c79590dd3a295eaa89881de2':
RED-5276: Imporved table calculation, support spanned rows and colmns
Merge in RED/redaction-service from RED-5249 to master
* commit 'faa702d3f499b89dfd9a7dedf8c16af89128c77d':
RED-5249: Marked utils classes with @UtilityClass
Merge in RED/redaction-service from RED-5748 to master
* commit '776de8392a78f7b26e864e37f4be607d1ff7e48e':
RED-5748 - Redaction Service Error after helm upgrade - in case of deleted types throw a NotFoundException providing the info about the type not found instead of NullPointerException
Merge in RED/redaction-service from RED-5670 to master
* commit '8b74142d319718cc448c9ddbbb40fa1b30c29b18':
RED-5670: Update platform version to include security fixes from spring-boot
Merge in RED/redaction-service from RED-5469 to master
* commit '87b11842a6606cd24155b8e9b0a82932267512bb':
RED-5469 - Rename CVSERVICEENABLED to CVTABLEPARSINGENABLED - renamed from cvServiceEnabled to cvTableParsingEnabled
Merge in RED/redaction-service from RED-5562-mst to master
* commit '623b8df5e6136d2ae6649e5016933abdc40454cc':
RED-5562 improved pattern compile
RED-5562 japanse space characters - fixed PMD
RED-5562 japanse space characters
Merge in RED/redaction-service from RSS-164-2 to master
* commit '02bdbbc2d1f6bff0c907240f61726a78a0b8f318':
RSS-164: Added new rule function for redactLineAfterAcrossColumns with param to return only exactMatch in the section
Merge in RED/redaction-service from RSS-177 to master
* commit '5c38150d34d8558f0e0e19ecd340d459a132426d':
RSS-177: Added required rule functions for scm poc
Merge in RED/redaction-service from RSS-145 to master
* commit 'e2234dc52a8a27a285c0e20b8326bd7129fc7dbf':
RSS-145: Fixed Immutable list exception when merging existing and added fileattributes
RSS-145: Added rules to add new FileAttributes
Merge in RED/redaction-service from RSS-118 to master
* commit 'b4f079c3c2a5b26828a81b1c950d0f7e40c6314a':
RSS-118: Refactored method in Section for adding AI entries
Merge in RED/redaction-service from RED-5381 to master
* commit '17bdcf8d2469429106234d9ccfdb9f2db17d9b84':
RED-5381: Fixed pr findings
RED-5381: Fixed calculation of textblocks and body text frame for rotated text and rotated pages
Merge in RED/redaction-service from RED-5295 to master
* commit 'e0dd06c6bf64bccff41f425cd934ebbe934384cf':
RED-5295: Added redactWordPartByRegEx rule function
Merge in RED/redaction-service from RED-5275 to master
* commit '8d88b19915f0eaf83dc4174635585081f0468db2':
RED-5275: Calculate precision and recall for headline detection
Merge in RED/redaction-service from RED-5275 to master
* commit '074205aa4d4532d5143463ab80199be08e1599a1':
RED-5275: Fixed not all headline were found because headline contains newlines
Merge in RED/redaction-service from RED-5275 to master
* commit 'a510a8bb9f6796da4652b45fdefbf3c5f3f2ac92':
RED-5275: Fixed ArrayOutOfBounds if headline is empty in redactHeadline rule
Merge in RED/redaction-service from RED-4988 to master
* commit '313cf68044513f354d297162b1789ce9ce1f171c':
RED-4988: Updated drools to latest final version, updated jacoco, removed drools from jacoco
Merge in RED/redaction-service from RED-5139-d to master
* commit '5aba8fe88151ba6576e3ad17fd9f2ba78fc889f6':
RED-5139: Bugfix if false positives are added, for rule added entries
Merge in RED/redaction-service from RED-5151 to master
* commit '0e71613ffcce147b2ae659e47ad6ab1c6405f0e7':
RED-5151: Do not retry messages on oom errors
Merge in RED/redaction-service from RSS-105 to master
* commit '5503dbfffc10ef9f51da7c37cb66e933d747a874':
RSS-105: Use string after match of first regEx for second regex in redactBetweenRegexes
Merge in RED/redaction-service from RSS-105 to master
* commit 'b7bf84c323b1e730481dad16428db01227d3347e':
RSS-105: Fixed checkstyle error
RSS-105: Added parameters to include/exclude start/stop in redactBetween rule
Merge in RED/redaction-service from RSS-106 to master
* commit 'ee5da81299425452171370ab609a0172858c4787':
RSS-106: Fixed not working redactions over multi pages
Merge in RED/redaction-service from RSS-31 to master
* commit '317a8a9af9d9755befe66d82eef5f7b21fe49b33':
RSS-31: Allow to skip removeEntitiesContainedInLarger in redactBetween rule and added param to sort result by positions
Merge in RED/redaction-service from RSS-86 to master
* commit 'a5f27cfa4cf81bfe1cb29016d18d3fc40e77624d':
RSS-86: Added new rule function redactLineAfterAcrossColumns
Merge in RED/redaction-service from RSS-2 to master
* commit 'f1b5d605ccbe4984943e7452dd701004f64f7525':
RSS-2: Section: added method redactSectionText and extended redactBetween(Not) with excludeHeadline flag
Merge in RED/redaction-service from red-5002 to master
* commit '64bd25a9000286c2c30400f1da02cc2ff54ea946':
RED-5002: Fixed return http error code for testing rules
Merge in RED/redaction-service from RED-4178-rs1 to master
* commit '29451db72d7cf0b22acb27fd86d3198dab2534ca':
RED-4178: Remove special behavior for tables with 2 columns
Merge in RED/redaction-service from RED-5032-rs1 to master
* commit 'b6471f904c14e02a7f42cab0aa1dc07bb1aa503a':
RED-5032: Upgrade services to new base image
Merge in RED/redaction-service from RED-5022 to master
* commit '85cad66ade28fd482beee57b4b01951ec2b93dfd':
RED-5022: Add figure detection values the same way as normal images
Merge in RED/redaction-service from RED-5010 to master
* commit 'a1ef711bc32c365b2f276df5de7f3578f82f567f':
RED-4824: Corrected annotation for json deserialization so that is unambiguously detected as a delegating creator method
RED-4824: Added annotations to correctly handle json deserialization
Merge in RED/redaction-service from RED-4890 to master
* commit 'f5fb8f7c074b3e7b38c6cfdd28ba4c8cc1edfeff':
RED-4890: Refactored redaction log tests to show failed files
RED-4890: Refactored RulesTests, will fail individually
Merge in RED/redaction-service from RED-4891-rs1 to master
* commit 'a9ae01ab32f08d0dadb1b12b0cc4db8070071b42':
RED-4891: Rectangle redactions not listed in DELTA view
Merge in RED/redaction-service from RED-3974 to master
* commit 'a9ff46a3fd3363b47799e8dfe5dc99575c36a33b':
RED-3974: Fixed special case table header with diffent size of columns in rows
Merge in RED/redaction-service from RED-3974 to master
* commit 'cba81ce061df867936314dcbdbc565248c8db006':
RED-3974: Refactored processTablePerRow
RED-3974: Use first row as header if header detection does not find a header
Merge in RED/redaction-service from RED-4824 to master
* commit '1d39c150c7e9084ae6a3833149ad66a4f31da774':
RED-4824: Corrected code style by removing parameter assignment
RED-4824: Replaced type of the text dir with an enum that only accepts values that can be handled by our code
RED-4824: Recreated log files to include changes in rectangle calculation
RED-4824: Removed obsolete logging statement
RED-4824: Finalized affine transformation by correcting the center of the rotation according to the text direction
RED-4824: WIP: Transformed rectangle calculation from a if-else chain to an affine transformation
RED-4824: Added test with a simple pdf that contains all combinations for rotation and text direction
RED-4824: Cleaned up code to make method more readable
RED-4824: Created base test for text-position rectangle creation
Merge in RED/redaction-service from RED-4835 to master
* commit '6e46cad2c5466136c7191042e6834eb074fc5911':
RED-4835 - cleanup
RED-4835 - entity position not calculated correctly for duplicates where 1 is marked as false positive
Merge in RED/redaction-service from RED-4867-rs1 to master
* commit '3ec1e20e417e65907448930cf7f8eb9713874fb9':
RED-4867: Sonar issues: RedactionService
Merge in RED/redaction-service from RED-4753 to master
* commit '55bebe8541cfded8a456b63dbd8d8b7e79bab33f':
RED-4753: Reduced size of TEXT File a bit more
RED-4753: Reduced size of TEXT File
Merge in RED/redaction-service from kbudisantoso/Sectionjava-1659012500262 to master
* commit '47de526b4bd451d302317647cb05ac685e069622':
RED-4829 Fix wrong annotation
Merge in RED/redaction-service from RED-4799-3 to master
* commit '53428ec65296b9fac2c206e7bd89916c933fb5c8':
RED-4799 - remove FP entities from redactionlog
Merge in RED/redaction-service from RED-4510-Rework to master
* commit '0544a42117a742de70325cd1a84e57d6829aaa25':
RED-4510: Added generated RedactionLog Json files and optimizations for RulesTest.java for Bamboo
Merge in RED/redaction-service from RED-4510 to master
* commit 'db8eedc9a36dfba22946940b31e28854ffdca26d':
RED-4510: Added bamboo build to execute tests nightly and generate RedactionLog for tests if it doesn't exist
Merge in RED/redaction-service from RED-4686-2 to master
* commit '0fe2b627f071f6d8e4841cf08e3bcdc059b60567':
RED-4686: Removed test scope from jackson-datatype-jsr310
Merge in RED/redaction-service from RED-4510 to master
* commit '8c5ede3fde0fd1b2df9e8fca0908e9233d6d403c':
RED-4510: Refactoring after review
RED-4510: Implemented Test class which generates and compares RedactionLogs
Merge in RED/redaction-service from RED-4648 to master
* commit '708b7f992cadba8779ac6d2f7a9e9e4a837eaf1b':
RED-4648: Fixed wrong field names for DSLJson
Merge in RED/redaction-service from RED-4548-rs2 to master
* commit 'c330de86246b8cc10955401d307d7d1a20190e32':
RED-4548: Create SIMPLIFIED_TEXT.json from TEXT.json (for NER-service)
Merge in RED/redaction-service from RED-4548 to master
* commit 'df80ff68cd21626679c107b056b275b67ce6bf74':
RED-4548: Create SIMPLIFIED_TEXT.json from TEXT.json (for NER-service)
Merge in RED/redaction-service from RED-4254 to master
* commit '264d7e3a87d4a99aa60a4c7c140335ba8d3a7241':
RED-4254: Added dirty hack in pdfbox classes to find words that contains uniqueCharacters with 2 chars like 'RA'
Merge in RED/redaction-service from RED-4407 to master
* commit 'a74d049cf8a52395771f9940471defd692cae0e8':
RED-4407: Fixed merging request for dossierDictionarys in redactionLog
Merge in RED/redaction-service from RED-4350-rs1 to master
* commit '663c361707678370149ed08cb6c33c8ac341dc26':
RED-4350: Reason set to null after reject suggestion "Remove from Dict" for skipped types
Merge in RED/redaction-service from RED-4301 to master
* commit '57ef7ead72018a91d9c15530efce40f713fb6c86':
RED-4301: Revert redaction log merge of duplicate annotations
Merge in RED/redaction-service from RED-3791 to master
* commit 'ec8d3183dc119e3eddd45a653ca88a2666073f51':
RED-3791 - redaction log merge of duplicate annotations
Merge in RED/redaction-service from RED-4129 to master
* commit '2a6ee02f9f8f527546f01cf98542dfc7e39b259a':
RED-4129: Fixed calculation of imported redaction intersections for all rotation cases
Merge in RED/redaction-service from RED-4114 to master
* commit 'dacd7b725d1bcdd17193aaefa045bd9555b8528a':
RED-4114: Added all missing cases for text rotations
Merge in RED/redaction-service from RED-4176 to master
* commit '19d48e207b6fb4169adb894ced089fb3c2f9c49f':
RED-4176: Only apply APPROVED resizes in to annotations in analysis
Merge in RED/redaction-service from RED-4114 to master
* commit '95a2d71af0a69c06a40e4d39d1f9f1286d726028':
RED-4114: Fixed text rotation for rotation = 0 and text direction = 180
Merge in RED/redaction-service from RED_4029_1 to master
* commit 'fa3cbc938c6d5066b4c6706bc0c98ac030f4c498':
RED-4029 - Do not log on ERROR level if something happens that is expected - put back null pointer exception to error logging
Merge in RED/redaction-service from RED-4029 to master
* commit 'ffa251643a2e4d711bac01469d31e09c3c8b8290':
RED-4029 - Do not log on ERROR level if something happens that is expected - replace error logs
Merge in RED/redaction-service from RED-4064 to master
* commit '21ca25f3309f0706c1d708eb77724824ef10168d':
RED-4064: Add resize redactions sections to reanalysis sections
Merge in RED/redaction-service from RED-4064 to master
* commit '3f76401c7d051ee100eab8a36847c2e8a5426900':
RED-4064: Apply all resize redactions directly after find, calculate surrounding text in renalysis
Merge in RED/redaction-service from RED-4064 to master
* commit '7ca3416d1d809189430540603034b67dfddd5bcd':
RED-4064: Fixed override logic for resized entries
Merge in RED/redaction-service from RED-4064 to master
* commit '6fac40fd8dea79c5575cee2b480269d43baaef7a':
RED-4064: Apply resize redactions also in redactCell
Merge in RED/redaction-service from RED-4064 to master
* commit '778c9756495f14ead45fadd8b906f4301e8b3ec7':
RED-4064: Fixed find dictionary entries at position where rules entries are resized to smaller entries
Merge in RED/redaction-service from bugfix/RED-3816 to master
* commit 'c1192ceefd0717958badc27d2c2a65a8059952a4':
RED-3816: Bugfix with adding images to sections
Merge in RED/redaction-service from RED-3800-string-performance-test to master
* commit '21d717f0837c9cc9b2f5b251d372db88b25a7b6d':
RED-3800 String Performance matching test
RED-3800 String Performance matching test
Merge in RED/redaction-service from RED-3816 to master
* commit 'eb7137315208dadf3a679e21b05ec16d53c4ec43':
RED-3816: Implemented ThenAction to redact section with rectangle
Merge in RED/redaction-service from RED-3674-rs1 to master
* commit '87d64b6d1285eaf7cd5ee3c2fb899f92063bc70f':
RED-3674: Fixed force redactions overrides idRemoval with different id
Merge in RED/redaction-service from RED-4075 to master
* commit 'c669f9a09a3e5e254d41715f65fef3b158873338':
RED-4075: Add legalBasis if Rule Entity overrides Ai Recommendation
Merge in RED/redaction-service from RED-4010 to master
* commit '0f5f7974cc46e36d39d514ad03b5adcf062c9526':
RED-4010: Fixed problem with strange unicode in json d835
Merge in RED/redaction-service from RED-4009 to master
* commit 'd2807e0ff1ef288c7456383974a8607a8fca4821':
RED-4009: Fixed NPE if comments are null in RedactionLogMergeService
Merge in RED/redaction-service from RED-3800-dsljson to master
* commit '7967453c676094efdc438eea1cca2b9e00856c0d':
RED-3800 api cleanup
RED-3800 api cleanup
RED-3800 switched jackson for dsl-json for internal non-rest related operations
Merge in RED/redaction-service from RED-3959 to master
* commit '542bbb294a27bf2eb2832a144d239b820bbc0b5f':
RED-3959: Do not remove entities on larger false_recommendactions
Merge in RED/redaction-service from RED-3946 to master
* commit '23d84980cd1528b1276e28aab81bb5bf0a682256':
RED-3946 - added alternative quatation marks as separators
Merge in RED/redaction-service from RED-3774 to master
* commit 'ecf794ff37ae5cdeb8aa63f69d6e5205c6da1271':
RED-3774: Always prefer entities over recommendactions
Merge in RED/redaction-service from RED-3658 to master
* commit '513fbbb38d2b9efff6b58489c518db53961e9464':
RED-3658: Fixed annotation positions for document with rotation = 180 and text direction = 180
Merge in RED/redaction-service from RED-3616-11 to master
* commit 'fbd9bc71a80ba7788992c6213fd88ce649e127e2':
RED-3616: Fixed removing not redaction images that intersects imported redactions
Merge in RED/redaction-service from RED-3666 to master
* commit '404fd25be0e8ee20528c1f9491f85d8b695a2433':
RED-3666: Added rule function Section containsRegEx
Merge in RED/redaction-service from kbudisantoso/RED-3761-fix-filter-expanded to master
* commit '5b5d898b933c3ae79fb7cb07a6105b15d2952f8e':
RED-3761 Fix expandByRegEx and expandByPrefixRegEx
Adjusted the overlap test to ignore if the compared entities are subsets
of each other (start or end position is equal). The `removeEntitiesContainedInLarger`
instruction will remove the subset entity.
Merge in RED/redaction-service from RED-3802 to master
* commit '1a6a1a008f76897f01f10dd40ea0307c2c84175c':
RED-3802: Fixed prefer redactions over recommendations
Merge in RED/redaction-service from RED-3809-rs1 to master
* commit '150ee92c1e63de2145a1a093e6c6fe7820b7256d':
RED-3809: Upgrade to latest spring version
Merge in RED/redaction-service from kbudisantoso/RED-3761-prevent-nullable to master
* commit '0014d7725ab3f82d2fba4f0677c3966324504876':
RED-3761 prevent compiledPrefixPattern to be nullable by testing prefixPattern parameter
Merge in RED/redaction-service from RED-3616 to master
* commit '941448492bfe294634a8c3c309f237034245e842':
RED-3616: Do not remove annotation that intersects with skipped imported redactions
Merge in RED/redaction-service from cschabert/pomxml-1649055501527 to master
* commit '9bab1205b711d94888a6b3364a41a89d07d310b6':
Change Major Version to 3.x
Merge in RED/redaction-service from kbudisantoso/RED-3761-expandByPrefixRegEx to master
* commit '1427087d8fa29a218b8b378f83c345c497a26b77':
RED-3761 add possibility to expand dictionary match with a prefix regex pattern
Merge in RED/redaction-service from RED-3568 to master
* commit 'ae3e4570c15dbc2c46373ce68d55cec760e7da6b':
RED-3568: Do not ignore textblocks if only rotated pages are in the document
Merge in RED/redaction-service from RED-3699-master to master
* commit 'a5b96f148950e28618028daef1e91aecdadc89e3':
Fixed unknown type for manual type
Fixed bug in getColors
RED-3699: Do not call updateDictionary on merge RedactionLog
Merge in RED/redaction-service from RED-2836-3 to master
* commit '4d2a7d454d916e7eee65f7cc155323924c2cb229':
RED-2836: Fixed calculating dictionary increments with false_positive and false_recommendation
Merge in RED/redaction-service from ResearchRename to master
* commit '22bb0b44db7a22f8088512570d4b2be6e742a887':
Renamed result field in research services to data
Merge in RED/redaction-service from RED-2836 to master
* commit '88e6ac3d2291ced8bb2229c3e7daeb8d78d6da93':
RED-2836: Enabled false positives per dictionary
Merge in RED/redaction-service from RED-3553 to master
* commit '1f6a9aa14deb7ec65fee03e28758f8e3157dbd5f':
RED-3553 If image overlaps entity and the entity will be removed
Merge in RED/redaction-service from portsFrom3.2.x to master
* commit 'b13a695c64280a97ece198a18605c0f1b5cf753f':
RED-3611: Added priority mode that only listens to priority queue
RED-3620: Fixed remove from dictionary
Merge in RED/redaction-service from RED-3538 to master
* commit '7b2295393c1c2dcbcecbb11c64929517cb13a6de':
Removed processed date filter for add to dictionary entries
Merge in RED/redaction-service from from-version-master to master
* commit 'c432c56a05ce58d711286bbbcc636ff1445c652d':
Updated Persistence Service Version
Release 3.80.x branch creation + incremental entry loading based on version for dictionaries
Merge in RED/redaction-service from RED-3403 to master
* commit '97fe7383cd9737f25d22903a6124dfe8361f7a84':
RED-3403 Extended Section with negated Methods
Merge in RED/redaction-service from RED-3282 to master
* commit '537ccb83d799cef0eb437a6bbe1b78da661b2b6b':
RED-3282: Do not add overlapping ai recommendactions
Merge in RED/redaction-service from RED-3407-rs1 to master
* commit 'c3984e054482acab3acde740b8dce437d97e9ffb':
RED-3407: Remove obsolete recommendation dictionaries
Merge in RED/redaction-service from feature/RED-3350 to master
* commit '68727178e79224b7ca7f9f293e48ca21b4ce2f91':
RED-3350 Communication with entity recognition via queues
Merge in RED/redaction-service from RED-3327-master to master
* commit '8689125ed9b09f73781d3babfd65537c0b1f4afe':
RED-3327: Ignore recommendations if touches other type
Merge in RED/redaction-service from RED-3243-8 to master
* commit '58b1db66cc2cc67b3b4e26295478824e5052d6a3':
RED-3243: Improved imported redactions logic
Merge in RED/redaction-service from RED-3242 to master
* commit 'c9a75152fb9b4e02b3421dd16ae54056889b0aa9':
since no more manual changes are fields of redactionLog, we can safely always merge, even legacy ones
Merge in RED/redaction-service from RED-3239 to master
* commit '26661fa87beeb20b32f2be5a8b1b025e8d2d29fd':
RED-3239: Protoyped logic for imported redactions
Merge in RED/redaction-service from RED-3242 to master
* commit 'd92a723fea21280d7bf482c3d74c7b177dbaa030':
RED-3242 - excluded from automatic analysis - reworked redactionLog architecture
Merge in RED/redaction-service from RED-3133-Fix4 to master
* commit 'a1544588e8a3cfa0479d5d31d82463c5434674a1':
RED-3133: Ignore min length for values from ai
Merge in RED/redaction-service from RED-3133-Fix2 to master
* commit '8ac7c309d981c8899eca40872a49198284d15944':
RED-3133: Fixed wrong ai entries again
Merge in RED/redaction-service from RED-3133-4 to master
* commit 'c21cf3dd5cdf70dfb838bb18f78a7c32715f8db8':
RED-3133: Fixed bug in address combination rule
Merge in RED/redaction-service from RED-3243 to master
* commit '6a78d798912afd4d625455d62d2ec416a311873b':
RED-3243: Fixed bug in combining address parts
Merge in RED/redaction-service from RED-3133 to master
* commit '6e720a15c2b9c9d46b52b94f63f0af157ac5d81a':
RED-3133: Add and combine AI Entities in rules
Merge in RED/redaction-service from RED-3190-master to master
* commit '6a31ae642d34c61865b55b6b138ef4406c27ab63':
RED-3190: Ignore if surrounding text can not be calculate because of different parsing order from ui and backend
Merge in RED/redaction-service from RED-3173-master to master
* commit 'eb9fe0e3ddfc9b86cb3b0664e8bec5ef5b4d34c7':
RED-3173: Fixed wrong skipped redaction afer remove and readd to dictionary
Merge in RED/redaction-service from analysis-number-in-redaction-log-m to master
* commit '1cad386db83a2d2057701989c0c179b770248f5e':
analysis version in redactionlog and changes
Merge in RED/redaction-service from redaction-log-merge-service-test to master
* commit '9e64773d0db262481f8552678a6e6b86d81d93c4':
pmd
skip remove from dict entries from merge
Merge in RED/redaction-service from RED-3117 to master
* commit '0296745efc0e4786386811d0037e2cae6ae511c4':
RED-3117: Enbled to ignore invalid entries at addToDictionary for automated pushing entries in analysis
Merge in RED/redaction-service from RED-3114 to master
* commit 'f1071de3a9ea9a3b34798f21ee9589262ef4f32b':
RED-3114: Fixed unreliable redactions on rotated pages
Merge in RED/redaction-service from RED-3116-rs1 to master
* commit '8deb24a5342c1c7a34fa6235e3d68f8161d884e4':
RED-3116: Fix missing relativePath in mvn projects to leads to non working sync on lastest intellij
Merge in RED/redaction-service from RED-3107-rs1 to master
* commit '7d75961df45de93cfb2a708b640703dbd5693f40':
RED-3107: Missing headline for tables appears as inconsistent text in report
RED-3106: Upgrade log4j to 2.16.0
Merge in RED/redaction-service from RED-3067 to master
* commit 'f49782438461ec34e6e8c0ccf88b3017755e593d':
RED-3067 Bugfix to show redactions on rotated pages correctly and fixed getting tmp directory
RED-3067 Bugfix to show redactions on rotated pages correctly
Merge in RED/redaction-service from bugfix/RED-3032 to master
* commit '9fb4024fb7dfe7ae3f92f5c17decf15fbac58451':
RED-3032 Bugfix: Throw NotFoundException in case section grid was not found
Merge in RED/redaction-service from RED-3061-rs3 to master
* commit '1ccf0ab493fcb367a071641e2fea050cf6ad26cf':
RED-3061: Logic for value matcher for initials expansion rule is inverted
RED-3061: Logic for value matcher for initials expansion rule is inverted
Merge in RED/redaction-service from RED-2439-4 to master
* commit '83a757976adf26cfeae8fb682593ce1d5f606dfc':
RED-2439: Fixed missing MessageType in AnalyseResult
Merge in RED/redaction-service from RED-2439-3 to master
* commit 'e4cf3bfa602014cd8a2f2162199557880600e93f':
RED-2439: Enabled to find surrounding text for manual redactions via queue
Merge in RED/redaction-service from RED-3059-port to master
* commit '0e21e5b4d988d43040573a4fc71547829c815ec0':
RED-3059: Fixed inital expansion overlaps
Merge in RED/redaction-service from RED-2439 to master
* commit '6950c00711dc113bb012a9cd3cc26c5c276409a0':
RED-2439: Added endpoint to calculate textBefore and textAfter for manual redactions
Merge in RED/redaction-service from bugfix/RED-2795 to master
* commit '415df2b3658b4525120a15fb0f341164a73bb3d4':
RED-2795 Bugfix with inconsistent types for recategorizing Images in specific cases
Merge in RED/redaction-service from bugfix/RED-2845_3.0 to master
* commit '1c982a40422a16e9caa8d264e4221524c7e1c92b':
RED-2845 Bugfix: Avoid the expansion if it would result in a redaction overlap and bugfix in RegExp in drools
Merge in RED/redaction-service from RED-2862-3.0.0 to master
* commit 'f37f3b2dcf10102d03bbf3fb3233a801537d45ad':
RED-2862: Added possibility to ignore dictionaries by rule
Merge in RED/redaction-service from DuplicateIdsMaster to master
* commit '46d14cfc6441588ee57e19d4780ffebcf70e3367':
Hotfix for duplicate entries in redactionLog
Merge in RED/redaction-service from RED-2861-port to master
* commit '7b1c9c97e672d78e0fbf7f05138db853a11e7d04':
RED-2861: Ported changes for rectangle redaction improvements
Merge in RED/redaction-service from bugfix/RED-2756 to master
* commit '35a4d004fda0404e9b19e7112d25627cbde2a932':
RED-2756 Bugfix with redactions are not continuous and added some entries to dictionary
Merge in RED/redaction-service from RED-2841-rs1 to master
* commit 'd1317c5bd4f9522eecd78775656a0f7b5a74c3d7':
RED-2841: INC6207970 Rule for initials expansion should be applied only to dictionary entries without whitespaces
Merge in RED/redaction-service from bugfix/RED-2756 to master
* commit '9d0fafd63ddb23fd8ee2f154e02df88687e08f96':
RED-2756 Bugfix with redactions are not continuous
RED-2756 Bugfix for 'Redaction is not continuous', compare line height and y position instead of rounding y values
Merge in RED/redaction-service from feature/RED-2430 to master
* commit '3ae8b2cd666eee2fff10e2254cd829084e503893':
RED-2430 do not exclude manual entries from excluded pages
Merge in RED/redaction-service from RED-2633 to master
* commit '6e713c4fcc010e6461e403256c4926974cec2cf8':
RED-2633 Added section to manual redactions, updated version from persistence-service and extracted versions in pom.xm
Merge in RED/redaction-service from RED-2742 to master
* commit 'a91877769370c804b7d9d9fa4d4e9e16752598bd':
RED-2742: Fixed annotation positions for rotation = 0 and direction = 90
Merge in RED/redaction-service from RED-2624 to master
* commit '3c861074c9923a59fc71e2f57ee47c838ddbe3fe':
RED-2624: Fixed footnote is recognized as headline
Merge in RED/redaction-service from RED-2623 to master
* commit '1b328b2b68da0b5be71d2f7464c767357003e4f2':
RED-2623: Fixed headline handline on strange ocr document
Merge in RED/redaction-service from RED-2536 to master
* commit 'd892d6e81ee12927e57dc46c6439a65276824896':
RED-2536: Treat \t same as whitespace
RED-2223: Fixed stange end of textposition sequences that leads to wrong whitespaces
Merge in RED/redaction-service from RED-2575 to master
* commit '012c5a794639eee34e392e940d5e380a5ea06df7':
RED-2575: Fixed annotating entries on pages with cropbox != mediabox
Merge in RED/redaction-service from RED-2429-rs1 to master
* commit 'd8f8702b2a78e7a3bc12e55791c251f3445d5b5e':
RED-2429: As a user I want to resize a redaction
Merge in RED/redaction-service from RED-2418 to master
* commit 'f66a054cdea311376ffa88a6641b7eae9be6689f':
RED-2418: Fixed not working exception handling if redactionlog is not present
Merge in RED/redaction-service from RED-2224-2 to master
* commit '634eee17167e01e2d4ee4d3d7b9613225e8c5643':
RED-2224: Fixed overriding entries with higher rank
Merge in RED/redaction-service from RED-2223 to master
* commit '6005c476962dcdfd1d4e4fabf10fa840377b78db':
RED-2223: Fixed adding annotations to rotated words on non rotated pages
Merge in RED/redaction-service from RED-2468 to master
* commit '15d836644b6a74273e81de361091d6ea1b71bea9':
RED-2468: Fixed push recommendations to dictionary
Merge in RED/redaction-service from RED-2263-rs1 to master
* commit 'b96c39d5e58317e989faf8dc881ee6e596dbf363':
RED-2263: fixed Regex-Issue that can lead to stack overflow in redaction-service
Merge in RED/redaction-service from RED-2246-rs1 to master
* commit '15ed333478313f3f23d439ad6163553f9b68760e':
RED-2246: updated platform-commons-dependency
Merge in RED/redaction-service from bugfix/workaround-for-windows to master
* commit '535316c3a7740f61c682ae3d938f33671660c667':
Bugfix with 'posix:permissions' for Windows systems
Just a test without PosixFilePermission
Merge in RED/redaction-service from 3.0-efsa-readiness to master
* commit '0fa4c54490422cf06f0a9034e3e9a83c78a66f6e':
Updated Persistence Service Version
Merge in RED/redaction-service from RED-2172 to master
* commit 'e22e454fb5c16b326183179193bf24a8e7d724be':
RED-2172: Enbled to configure azure blob storage as storage backend
Merge in RED/redaction-service from RED-2272-rs1 to master
* commit 'c4e47a48f8973ca1bbd602727a205647deb809fe':
RED-2272: Make sure publicly writable directories are used safely && regex upper bound
RED-2272: Make sure publicly writable directories are used safely && regex upper bound
Merge in RED/redaction-service from persistence-service-integration to master
* commit 'dcd6d9d2c9cb66ad55e08d82a6044ea1b01c54eb':
fixed pmd
typeId to type internal refactor
Merge in RED/redaction-service from RED-2228-2 to master
* commit '6ca134bdbd1084d530ba81a4a9895549d927d7a4':
RED-2228: Use manual redaction classes from persistence-service, changed type in redactionlog to typeId
Merge in RED/redaction-service from RED-2228 to master
* commit '146b0f5c8eb1fe8d8c530b940049e40a6eebc80a':
RED-2228: Use persistence-service instead of configuration/file-management-service
Merge in RED/redaction-service from RED-2167-rs1 to master
* commit 'ff97cba0c8935a44edf912310a459df879522c71':
RED-2167: added computation of cellstarts for tables with two colums
Adding persistence tests for file-management-service-processor
Testcommit
Merge in RED/redaction-service from RED-2125 to master
* commit '6f930b18133286289e330adbbbf390671b63d1b5':
RED-2125: Enabled possibility to reference annotations in rules
Merge in RED/redaction-service from RED-2082 to master
* commit 'd89a41caca623eedbeee7bc9b058b605db8fc359':
RED-2082: Added engines to redactionLog, to identify where a entry comes from
Merge in RED/redaction-service from RED-1970-4 to master
* commit '6a75fc74d6eabbb0d99bdbca4d6cefcbb17d224f':
RED-1970: Ignore NER entities that are found over multiple table columns
Merge in RED/redaction-service from RED-1970-3 to master
* commit '8de655d8848c05de3ce5d7a19ad0887d516bcb72':
RED-1970: Base64 encode text in communication with entity-recogintion-service
Merge in RED/redaction-service from RED-1970-2 to master
* commit 'f1b3d129ee32d40a78fad038a69027a24d8ccdd8':
RED-1970: Call entity-redaction-service once per document
Merge in RED/redaction-service from RED-1970 to master
* commit '5939c3d460dde4585280c1372306acfaae89dd61':
RED-1970: Seperated structur analysis from entity analysis
Merge in RED/redaction-service from RED-1920 to master
* commit '76bf6773db1f32f0b178537ebbff7bdd2f1056c1':
RED-1920: Integrated entity-recognition-service
Merge in RED/redaction-service from FileAttributesIgnoreCase-master to master
* commit 'bcd469bb657f003813b09fd98bdbb2f624aa5e99':
Added equalsIgnoreCase fileattributes methods for rules
Merge in RED/redaction-service from RED-1755-3master to master
* commit '078dc2c3c3508a2407a527ff3512239998a30869':
RED-1755: Calculate falgs in file-management-service async
Merge in RED/redaction-service from RED-2015-master to master
* commit '4d514d0e5ed1c22436bd8ba58578022d5fb8c4db':
RED-2015: Fixed (Manual) Redactions in download reports/files for excluded pages
Merge in RED/redaction-service from RED-1788 to master
* commit 'bb80b7ae7550d70a98b4d500d3870a13585b57e8':
Proper Order of manual actions based on time
Merge in RED/redaction-service from RED-1908 to master
* commit 'e8a4ef172c994ab8dd99f84f7a725e3dddfaca5f':
RED-1908: Removed RedactionChangeLog added changes to RedactionLog
* Learn more on: <a href="https://confluence.atlassian.com/display/BAMBOO/Bamboo+Specs">https://confluence.atlassian.com/display/BAMBOO/Bamboo+Specs</a>
* These 6 functions work the same as betweenStrings, but they also include the start and/or stop strings or are case insensitive, depending on their name.
* Creates a new RedactionEntity which has the same boundary as the provided SemanticNode.
* @param node The SemanticNode to create a new RedactionEntity from.
* @param type The type of the redaction entity.
* @param entityType The entity type of the redaction entity.
* @return An optional RedactionEntity. Is empty, if the provided SemanticNode is empty.
*/
public Optional<RedactionEntity> bySemanticNode(SemanticNode node, String type, EntityType entityType)
/**
* Same as bySemanticNode, but ignores the SemanticNode, if its not a Paragraph and all its child SemanticNodes, that are not Paragraphs.
*/
public Stream<RedactionEntity> bySemanticNodeParagraphsOnly(SemanticNode node, String type, EntityType entityType)
/**
* Searches the provided SemanticNode for the provided string, and creates a new RedactionEntity, from the end of the first occurrence of the string until the end of the SemanticNode.
* @param string The string to search for
* @param type The type of the redaction entity.
* @param entityType The entity type of the redaction entity.
* @param node The SemanticNode to use and search in
* @return An optional RedactionEntity, is empty, if the SemanticNode is empty, or the string isn't found in the SemanticNode.
*/
public Optional<RedactionEntity> semanticNodeAfterString(String string, String type, EntityType entityType, SemanticNode node)
* A boundary has a start and end property accessible by start() and end() respectively. It marks the start and end offset in String offsets.
*/
Boundary boundary
/**
* The type of an Entity identifies groups of Entities. Examples for Entites we want to find are "CBI_author" for authors, "CBI_address" for addresses or "PII" for personally identifiable information.
* Other types include helper types, which interact with the main Entities, for example "published_information" or "vertebrate". These Entities are used to modify the main Entities, if they occur in the same Section.
* A typical example would be to ignore Entities of type "CBI_author", if they occur in the same Section as "published_information" entities.
*/
String type
/**
* The EntityType can be one of four different values: ENTITY, RECOMMENDATION, FALSE_POSITIVE, FALSE_RECOMMENDATION.
* If an ENTITY is overlapped by a FALSE_POSITIVE, the ENTITY is removed. If a RECOMMENDATION is overlapped by either an ENTITY or FALSE_RECOMMENDATION, it is removed.
*/
EntityType entityType
/**
* The text the Entity represents.
*/
String value
/**
* Up to three words after the Entity in the text.
*/
String textAfter
/**
* Up to three words before the Entity in the text.
*/
String textBefore
/**
* All pages whose TextBlock intersects the boundary of this entity. Is always equal to the Pages which have this RedactionEntity in their EntitySet.
*/
Set<Page> pages
/**
* All SemanticNodes whose TextBlock intersects the boundary of this entity. Is always equal to the SemanticNodes which have this RedactionEntity in their EntitySet.
*/
List<SemanticNode> intersectingNodes
/**
* The SemanticNode which is the deepest in the Tree structure and whose TextBlock fully contains the boundary of this Node.
You have a Document data structure written in Java with the following objects:
- Section
- Table
- TableCell
- Paragraph
- Headline
- Page
- RedactionEntity
- EntityCreationService
The Section, Table, TableCell, Paragraph, and Headline implement a common interface called SemanticNode. SemanticNodes are arranged in a tree-like fashion, where any SemanticNode can have multiple SemanticNodes as children. The arrangement is as follows:
- Tables only have TableCells as children.
- TableCells may have any child, except TableCells.
- Paragraphs and Headlines have no children.
- Sections may have any child except TableCells, but if it contains Paragraphs as well as Tables, it is split into a Section with multiple Sections as children, where any child Section only contains either Tables or Paragraphs.
Further, if the first SemanticNode is a Headline it remains the first child in the Parent Section, before any subsections.
The goal of the Software is to find pieces of Text that are relevant. Each piece of text is represented by a RedactionEntity.
The main pieces of relevant text are Text we want to redact. For example, we want to redact all Authors of a dossier. Or all personally identifiable information, such as E-Mails and Telephone Numbers.
RedactionEntities may also represent other pieces of text, such as published information, or certain species of vertebrates.
The RedactionEntities are part of the document structure, such that they are referenced in each SemanticNode and Page, which contains it, and further, the RedactionEntity references each Page and SemanticNode it occurs in.
So the same RedactionEntity occurs in the paragraph it is located, as well as all its parent Sections.
Previous to the execution of rules, the Document structure is assembled and a text search is performed to create initial Entities of different types. They are then inserted into the document structure.
Then the KieSession is created and each SemanticNode and Entity is inserted into its working memory.
* A boundary has a start and end property accessible by start() and end() respectively. It marks the start and end offset in String offsets.
*/
Boundary boundary
/**
* The type of an Entity identifies groups of Entities. Examples for Entites we want to find are "CBI_author" for authors, "CBI_address" for addresses or "PII" for personally identifiable information.
* Other types include helper types, which interact with the main Entities, for example "published_information" or "vertebrate". These Entities are used to modify the main Entities, if they occur in the same Section.
* A typical example would be to ignore Entities of type "CBI_author", if they occur in the same Section as "published_information" entities.
*/
String type
/**
* The EntityType can be one of four different values: ENTITY, RECOMMENDATION, FALSE_POSITIVE, FALSE_RECOMMENDATION.
* If an ENTITY is overlapped by a FALSE_POSITIVE, the ENTITY is removed. If a RECOMMENDATION is overlapped by either an ENTITY or FALSE_RECOMMENDATION, it is removed.
*/
EntityType entityType
/**
* The text the Entity represents.
*/
String value
/**
* Up to three words after the Entity in the text.
*/
String textAfter
/**
* Up to three words before the Entity in the text.
*/
String textBefore
/**
* All pages whose TextBlock intersects the boundary of this entity. Is always equal to the Pages which have this RedactionEntity in their EntitySet.
*/
Set<Page> pages
/**
* All SemanticNodes whose TextBlock intersects the boundary of this entity. Is always equal to the SemanticNodes which have this RedactionEntity in their EntitySet.
*/
List<SemanticNode> intersectingNodes
/**
* The SemanticNode which is the deepest in the Tree structure and whose TextBlock fully contains the boundary of this Node.
*/
SemanticNode deepestFullyContainingNode
The RedactionEntity also has the following methods:
/**
* Sets the Entity to applied, this is the default.
* @param ruleIdentifier Should always be equal to the ruleIdentifier in the Rule name
* @param reason Should describe the intention of the rule in a few words
* @param legalBasis Is dependent on the rule, if none is known the default is "n-a", can't be null
* These 6 functions work the same as betweenStrings, but they also include the start and/or stop strings or are case insensitive, depending on their name.
* Creates a new RedactionEntity which has the same boundary as the provided SemanticNode.
* @param node The SemanticNode to create a new RedactionEntity from.
* @param type The type of the redaction entity.
* @param entityType The entity type of the redaction entity.
* @return An optional RedactionEntity. Is empty, if the provided SemanticNode is empty.
*/
public Optional<RedactionEntity> bySemanticNode(SemanticNode node, String type, EntityType entityType)
/**
* Same as bySemanticNode, but ignores the SemanticNode, if its not a Paragraph and all its child SemanticNodes, that are not Paragraphs.
*/
public Stream<RedactionEntity> bySemanticNodeParagraphsOnly(SemanticNode node, String type, EntityType entityType)
/**
* Searches the provided SemanticNode for the provided string, and creates a new RedactionEntity, from the end of the first occurrence of the string until the end of the SemanticNode.
* @param string The string to search for
* @param type The type of the redaction entity.
* @param entityType The entity type of the redaction entity.
* @param node The SemanticNode to use and search in
* @return An optional RedactionEntity, is empty, if the SemanticNode is empty, or the string isn't found in the SemanticNode.
*/
public Optional<RedactionEntity> semanticNodeAfterString(String string, String type, EntityType entityType, SemanticNode node)
The first category changes existing RedactionEntities, and the second creates new RedactionEntities.
There are two different types of rules, one you create new Entities and in the other you change or remove existing Entities.
An Entity is any piece of text, uniquely identified in the Document by its Boundary, its Type and its EntityType. The Boundary consists of a start and stop index in the text of the document.
The Type is a String like "PII", which stands for
The goal is to find entities that fulfill certain conditions. Each SemanticNode has its own set of entities, but these sets may have intersections.
For example, a Section contains all the entities in any of its children. Additionally, if an entity overlaps two SemanticNodes, both paragraphs have this entity in their sets.
To generate Drools rules for the scenario of changing or updating Entities, consider the following information:
1. Conditions: Specify the conditions that must be met for an entity to be selected. For example:
- The entity has a specific attribute value.
- The entity is within a certain range of values.
- The entity satisfies a complex combination of conditions.
2. Actions: Define the actions to be performed when an entity fulfills the conditions. This could include:
- Adding the entity to a result set.
- Modifying the entity's attributes.
- Triggering some other behavior or logic.
3. Rule Structure: Determine the structure of the Drools rules. This typically consists of:
- Rule names: Choose meaningful names for your rules.
- Rule attributes: Set the salience (priority) of rules if necessary.
- Conditions: Define the conditions based on the requirements.
- Actions: Specify the actions to be performed when the conditions are met.
Remember to provide specific examples, use case scenarios, and any additional requirements you have for the Drools rules.
Please provide any specific conditions, actions, or examples that you would like to be incorporated into the Drools rules.
thrownewIndexOutOfBoundsException(format("%s splitting indices are out of range for %s",splitIndices.stream().filter(idx->!this.contains(idx)).toList(),this));
}
List<Boundary>splitBoundaries=newLinkedList<>();
intpreviousIndex=start;
for(intsplitIndex:splitIndices){
// skip split if it would produce a boundary of length 0
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.