You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.1 KiB
49 lines
2.1 KiB
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/class_update.R
|
|
\name{class_update}
|
|
\alias{class_update}
|
|
\title{Classifier function for use in combination with the elasticizer function as 'update' parameter (without brackets), see elasticizer documentation for more information}
|
|
\usage{
|
|
class_update(
|
|
out,
|
|
localhost = T,
|
|
model_final,
|
|
varname,
|
|
text,
|
|
words,
|
|
clean,
|
|
ver,
|
|
es_super = .rs.askForPassword("ElasticSearch WRITE")
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{out}{Does not need to be defined explicitly! (is already parsed in the elasticizer function)}
|
|
|
|
\item{localhost}{Defaults to false. When true, connect to a local Elasticsearch instance on the default port (9200)}
|
|
|
|
\item{model_final}{The classification model (e.g. output from textstat_nb(), svm() or others)}
|
|
|
|
\item{varname}{String containing the variable name to use for the classification result, usually has the format computerCodes.varname}
|
|
|
|
\item{text}{String indicating whether the "merged" field will contain the "full" text, old-style "lemmas" (will be deprecated), new-style "ud", or ud_upos combining lemmas with upos tags}
|
|
|
|
\item{words}{String indicating the number of words to keep from each document (maximum document length), 999 indicates the whole document}
|
|
|
|
\item{clean}{Boolean indicating whether the results should be cleaned by removing words matching regex (see code).}
|
|
|
|
\item{ver}{Short string (preferably a single word/sequence) indicating the version of the updated document (i.e. for a udpipe update this string might be 'udV2')}
|
|
|
|
\item{es_super}{Password for write access to ElasticSearch}
|
|
|
|
\item{dfm_words}{A dfm containing all the words and only the words used to generate the model (is used for subsetting)}
|
|
}
|
|
\value{
|
|
As this is a nested function used within elasticizer, there is no return output
|
|
}
|
|
\description{
|
|
Classifier function for use in combination with the elasticizer function as 'update' parameter (without brackets), see elasticizer documentation for more information
|
|
}
|
|
\examples{
|
|
class_update(out, localhost = T, model_final, dfm_words, varname, es_super = .rs.askForPassword('ElasticSearch WRITE'))
|
|
}
|