RED-9361: update rule AI.0.0
This commit is contained in:
parent
abf0f6b6ea
commit
21f68a0f1c
@ -1066,6 +1066,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -1696,6 +1696,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -625,6 +625,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -1154,6 +1154,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -100,6 +100,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -1692,6 +1692,8 @@ rule "AI.0.0: Add all NER Entities of type CBI_author"
|
||||
nerEntities: NerEntities(hasEntitiesOfType("CBI_author"))
|
||||
then
|
||||
nerEntities.streamEntitiesOfType("CBI_author")
|
||||
.filter(entity -> entity.value().length() > 3)
|
||||
.filter(entity -> entity.value().length() < 40)
|
||||
.forEach(nerEntity -> entityCreationService.optionalByNerEntity(nerEntity, EntityType.RECOMMENDATION, document));
|
||||
end
|
||||
|
||||
|
||||
@ -25,9 +25,10 @@ public class RuleFileMigrationTest {
|
||||
|
||||
// Put your redaction service drools paths and dossier-templates paths both RM and DM here
|
||||
static final List<String> ruleFileDirs = List.of(
|
||||
"/Users/maverickstuder/Documents/RedactManager/redaction-service/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools",
|
||||
"/Users/maverickstuder/Documents/DocuMine/dossier-templates-v2/",
|
||||
"/Users/maverickstuder/Documents/RedactManager/dossier-templates-v2/");
|
||||
"/home/kschuettler/iqser/redaction/redaction-service/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools",
|
||||
"/home/kschuettler/iqser/redaction/dossier-templates-v2",
|
||||
"/home/kschuettler/iqser/fforesight/dossier-templates-v2",
|
||||
"/home/kschuettler/iqser/business-logic");
|
||||
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user