Concept Filter#
Application ID
eot_filter
Application Aliases
filter.app eot/filter.app
Description#
The Filter application is used to keep concept from tha analysis, all the others will be removed before the results are returned.
Configuration#
The configuration is an object defined as (bold = required, italic = optional):
filter (
array[string]
) – A list of concepts that you want to keep
Example#
Only keep the NounPhrases#
wow -p 'english,syntax,filter(NP).app' \
-i "I have a nice little green house and a yellow garden shed."
which yields:
S:( 0, 58)
T:( 0, 1): I,{+1p, +init-cap, +init-token, +nom, +sg},[I:Pron-Pers]
T:( 2, 6): have,[have:V-Pres-have]
C:( 7, 32): NP
T:( 7, 8): a,[a:Det-Indef]
T:( 9, 13): nice,{+inf},[nice:Adj-Std]
T:( 14, 20): little,[little:Adj-Std]
T:( 21, 26): green,{+color},[green:Adj-Std]
T:( 27, 32): house,[house:Nn-Sg]
T:( 33, 36): and,[and:Conj-Coord]
C:( 37, 57): NP
T:( 37, 38): a,[a:Det-Indef]
T:( 39, 45): yellow,{+color},[yellow:Adj-Std]
T:( 46, 52): garden,[garden:Nn-Sg]
T:( 53, 57): shed,[shed:Nn-Sg]
T:( 57, 58): .,[.:Punct-Sent]
Configuration Examples#
Pipeline |
Description |
Example |
---|---|---|
filter(NP).app |
Only keep the NounPhrases |
NP |
filter(NP.*).app |
Using regex, keep all the concept that begins with NP |
NP NPLong NPHead |
filter(Company,Person).app |
Just keep the Companies and Persons |
Company Person |
filter({“filter”:[“Company”,”Person”]}).app |
Just keep the Companies and Persons |
Company Person |