From cdc04f139c475f2a3233f5d69303dfb8b39f76aa Mon Sep 17 00:00:00 2001 From: Jonas Berdoz Date: Fri, 23 Feb 2018 17:56:32 +0100 Subject: [PATCH] normalized tabulations --- .../LeicaModelAnnotator.ruta | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/ruta/com/github/ewoij/openminted/components/leica_model_annotator/LeicaModelAnnotator.ruta b/src/main/ruta/com/github/ewoij/openminted/components/leica_model_annotator/LeicaModelAnnotator.ruta index bb1d417..720ee47 100644 --- a/src/main/ruta/com/github/ewoij/openminted/components/leica_model_annotator/LeicaModelAnnotator.ruta +++ b/src/main/ruta/com/github/ewoij/openminted/components/leica_model_annotator/LeicaModelAnnotator.ruta @@ -17,21 +17,21 @@ l:ANY*{(a.begin - l.begin) < 13 -> MARKONCE(LeicaRange)} a:@LeicaText; // annotate models within range LeicaRange -> { - // annotate UPPERCASE WORD - W{REGEXP("[A-Z]+") -> UppercaseWord}; - - // annotate models + // annotate UPPERCASE WORD + W{REGEXP("[A-Z]+") -> UppercaseWord}; + + // annotate models UppercaseWord{-> MARK(LeicaModel, 1, 2)} (NUM|UppercaseWord)*; - + // append -SOMETHING LeicaModel{-> MARK(LeicaModel, 1, 3)} "-" (NUM|UppercaseWord)+; - + // remove model in black list LeicaModel{INLIST(false_positive_blacklist) -> UNMARK(LeicaModel)}; - + // remove overlap LeicaModel{PARTOFNEQ(LeicaModel) -> UNMARK(LeicaModel)}; - + // remove annotations smaller than 2 characters a:LeicaModel{(a.end - a.begin) < 2 -> UNMARK(LeicaModel)}; };