A class for tagging a sequence using a {@link LayeredTokenPattern} pattern.The tagger is defined by a pattern and a tag. Given a {@link LayeredSequence}object, the {@link #tag(LayeredSequence)} method will return a list ofstrings, where each string is either the tag, or the {@link #OUT_TAG} symbol.
For example, given the sequence "she sells sea shells by the shore", the tag symbol "X" and a regular expression that matches the words starting with s, the tagger will return the list [X, X, X, X, O, O, X].
@author afader
|
|