SearchStrategy: Method SearchStrategy

Description Usage Arguments Value Examples

Description

Method to get and set the SearchStrategy parameter

Usage

1
2
3
4
5
6
7
8
9
SearchStrategy(x)

SearchStrategy(x) <- value

## S4 method for signature 'CMoptions'
SearchStrategy(x)

## S4 replacement method for signature 'CMoptions'
SearchStrategy(x) <- value

Arguments

x

instance of class CMoptions

value

The matching strategy for finding concepts in the input text

  • CONTIGUOUS_MATCHLongets match of contiguous tokens within enclosing span

  • SKIP_ANY_MATCHLongest match of not-necessarily contiguous tokens

  • SKIP_ANY_MATCH_ALLOW_OVERLAPLongest match of not-necessarily contiguous tokens, overlapping matches are allowed

Value

The SearchStrategy corresponding to the current options when used as get, the new CMoptions object with updated parameters when used to set.

Examples

1
2
3
4
5
opts <- CMoptions()
SearchStrategy(opts)

opts <- CMoptions()
SearchStrategy(opts) <- 'SKIP_ANY_MATCH_ALLOW_OVERLAP'

Onassis documentation built on Nov. 8, 2020, 8:18 p.m.