hedge | R Documentation |
Returns a function that realizes linguistic hedging - i.e. transformation of linguistic
horizon (see horizon()
) into a linguistic expression.
hedge( type = c("ex", "si", "ve", "ty", "-", "ml", "ro", "qr", "vr"), hedgeParams = defaultHedgeParams )
type |
The type of the required linguistic hedge |
hedgeParams |
Parameters that determine the shape of the hedges |
hedge()
returns a function that realizes the selected linguistic hedge on its parameter:
ex
: extremely,
si
: significantly,
ve
: very,
ty
: typically,
-
: empty hedge (no hedging),
ml
: more or less,
ro
: roughly,
qr
: quite roughly,
vr
: very roughly.
This function is quite low-level. Perhaps a more convenient way to create linguistic expressions
is to use the lingexpr()
function.
Returns a function with a single argument, which has to be a numeric vector.
Michal Burda
horizon()
, lingexpr()
, fcut()
, lcut()
, ctx()
a <- horizon(ctx3(), 'sm') plot(a) h <- hedge('ve') plot(h) verySmall <- function(x) h(a(x)) plot(verySmall) # the last plot should be equal to: plot(lingexpr(ctx3(), atomic='sm', hedge='ve'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.