Skip to content

Commit

Permalink
normalized tabulations
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoij committed Feb 23, 2018
1 parent 3b01616 commit cdc04f1
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
};
Expand Down

0 comments on commit cdc04f1

Please sign in to comment.