Excerpt |
---|
Flag tokens matched to stop words, to be skipped for following stages |
Operates On: Lexical Items with TOKEN
...
caseInsensitive (string, optional) - If true, all stop words and tokens will be process as case insensitive (default = true)
stopWords (string, optional) - The resource containing the list of stop words
Info | ||
---|---|---|
| ||
a, an, and, are, as, at, be, but, by, for, if, in, into, is, it, no, not, of, on, or, such, that, the, their, then, there, these, they, this, to, was, will, with |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "type": "StopWordsStage", "caseInsensitive" : true, "stopWords" : "words-provider:stop_words" } |
describe the configuration...
describe the example output...
Code Block | ||||
---|---|---|---|---|
| ||||
V--------------[abrahamA lincolntest likesto macaronibe and cheese]----skipped]----------------V ^--[abrahamA]--V--[lincolntest]--V--[likesto]--V--[macaronibe]--V--[and]--V--[cheeseskipped]--^ ^--[a]-{place}---^ Item [A] - [TOKEN,ALL_UPPER_CASE,SKIP] Item [to] - [TOKEN,ALL_LOWER_CASE,SKIP] Item ^----{food}----^ ^---{food}---^ ^----------{person}---------^ ^-----------------{food}--------------^[be] - [TOKEN,ALL_LOWER_CASE,SKIP] Item [a] - [TOKEN,ALL_LOWER_CASE,SKIP] |
The resource data will be a
...
json file with an array of words in a field named stopWrods
Code Block | ||||
---|---|---|---|---|
| ||||
{
"stopWords": ["a", "about", "above", "after", "again", "all", "am", "an", "and", "the", "i", "who", ...]
} |