added a new class named MarkupByPattern.
Put all methods in markupByPattern into a new class of the module PatternBasedAnnotator