Learn R Programming

textcat (version 1.0-4)

textcat_options: Textcat Options

Description

Get and set options used for $n$-gram based text categorization.

Usage

textcat_options(option, value)

Arguments

option
character string indicating the option to get or set (see Details). Can be abbreviated. If missing, all options are returned as a list.
value
Value to be set. If omitted, the current value of the given option is returned.

Details

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).