diff --git a/cermine-impl/src/main/java/pl/edu/icm/cermine/metadata/extraction/enhancers/AuthorAffiliationGeometricEnhancer.java b/cermine-impl/src/main/java/pl/edu/icm/cermine/metadata/extraction/enhancers/AuthorAffiliationGeometricEnhancer.java index bdb5774c..fbf4fd01 100644 --- a/cermine-impl/src/main/java/pl/edu/icm/cermine/metadata/extraction/enhancers/AuthorAffiliationGeometricEnhancer.java +++ b/cermine-impl/src/main/java/pl/edu/icm/cermine/metadata/extraction/enhancers/AuthorAffiliationGeometricEnhancer.java @@ -115,6 +115,10 @@ protected boolean enhanceMetadata(BxDocument document, DocumentMetadata metadata continue; } + emailText = emailText + .replaceFirst("^[Ee]mails?: *", "") + .replaceFirst("^[Ee]- *[Mm]ails?: *", ""); + metadata.addAuthor(authorText, Lists.newArrayList(String.valueOf(ind)), emailText); metadata.setAffiliationByIndex(String.valueOf(ind), affText); added = true;