Get and set options used for \(n\)-gram based text categorization.
textcat_options(option, value)
character string indicating the option to get or set (see Details). Can be abbreviated. If missing, all options are returned as a list.
Value to be set. If omitted, the current value of the given option is returned.
Currently, the following options are available:
profile_method
:A character string or function specifying a method for computing
\(n\)-gram profiles (see textcat_profile_db
).
Default: "textcat"
.
profile_options
:A list of options to be passed to the method for computing profiles.
Default: none (empty list).
xdist_method
:A character string or function specifying a method for computing
distances between \(n\)-gram profiles (see
textcat_xdist
).
Default: "CT"
, giving the Cavnar-Trenkle out of place
measure.
xdist_options
:A list of options to be passes to the method for computing distances between profiles.
Default: none (empty list).