TextClassification
TextClassification.MicroTC
— MethodMicroTC(
config::MicroTC_Config,
train_corpus::AbstractVector,
train_y::CategoricalArray;
textconfig=config.textconfig,
verbose=true)
MicroTC(config::MicroTC_Config, textmodel::TextModel, train_X::AbstractVector{S}, train_y::CategoricalArray; verbose=true) where {S<:SVEC}
Creates a MicroTC model on the given dataset and configuration
StatsAPI.predict
— Methodpredict(tc::MicroTC, text)
predict(tc::MicroTC, vec::SVEC)
Predicts the label of the given input
TextSearch.vectorize
— Methodvectorize(tc::MicroTC, text; bow=BOW(), textconfig=tc.textconfig, normalize=true)
vectorize(tc::MicroTC, bow::BOW; normalize=true)
Creates a weighted vector using the model. The input text
can be a string or an array of strings; it also can be an already computed bag of words.