public class ToStripStopWords extends Transformation implements java.lang.Cloneable
The defualt stop words include:
"of", "and", "with", "for", "nos", "to", "in", "by", "on", "the",
(non mesh)".
The stop words list is configurable by modifying the configuration file.
History:
NO_MUTATE_INFO, UPDATE
Constructor and Description |
---|
ToStripStopWords() |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<java.lang.String> |
GetStopWordsFromFile(Configuration config)
Read in stop words from configuration file
|
static void |
main(java.lang.String[] args)
A unit test driver for this flow component.
|
static java.util.Vector<LexItem> |
Mutate(LexItem in,
java.util.Vector<java.lang.String> stopWords,
boolean detailsFlag,
boolean mutateFlag)
Performs the mutation of this flow component.
|
GetTestStr, PrintResult, PrintResults, UpdateLexItem, UpdateLexItem, UpdateLexItem
public static java.util.Vector<LexItem> Mutate(LexItem in, java.util.Vector<java.lang.String> stopWords, boolean detailsFlag, boolean mutateFlag)
in
- a LexItem as the input for this flow componentstopWords
- stop words list in Java VectordetailsFlag
- a boolean flag for processing details informationmutateFlag
- a boolean flag for processing mutate informationpublic static java.util.Vector<java.lang.String> GetStopWordsFromFile(Configuration config)
config
- Configuratin objectpublic static void main(java.lang.String[] args)
args
- arguments