public class SelectiveSGML2TokenSequence extends Pipe implements Serializable
SGML2TokenSequence, except that only the tags
listed in allowedTags are converted to Labels.| Constructor and Description |
|---|
SelectiveSGML2TokenSequence(CharSequenceLexer lex,
Set allowed) |
SelectiveSGML2TokenSequence(CharSequenceLexer lexer,
String backgroundTag,
Set allowed) |
SelectiveSGML2TokenSequence(Set allowed) |
SelectiveSGML2TokenSequence(String regex,
String backgroundTag,
Set allowed) |
| Modifier and Type | Method and Description |
|---|---|
Instance |
pipe(Instance carrier)
Process an Instance.
|
String |
toString() |
getDataAlphabet, getInstanceId, getParent, getParentRoot, getTargetAlphabet, isDataAlphabetSet, isTargetProcessing, pipe, readResolve, resolveDataAlphabet, resolveTargetAlphabet, setDataAlphabet, setParent, setTargetAlphabet, setTargetProcessingpublic SelectiveSGML2TokenSequence(CharSequenceLexer lexer, String backgroundTag, Set allowed)
lexer - to tokenize inputbackgroundTag - default tag when not in any other tagallowed - set of tags (Strings) that will be converted to
labelspublic SelectiveSGML2TokenSequence(String regex, String backgroundTag, Set allowed)
public SelectiveSGML2TokenSequence(Set allowed)
public SelectiveSGML2TokenSequence(CharSequenceLexer lex, Set allowed)
public Instance pipe(Instance carrier)
PipeOne can create a new concrete subclass of Pipe simply by implementing this method.
Copyright © 2019 JULIE Lab, Germany. All rights reserved.