This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using TextAnalysis | |
mutable struct Tokenizer | |
max_vocab::Int | |
word_index::Dict{String, Int} | |
index_word::Dict{Int, String} | |
filters::Regex | |
lower::Bool | |
Tokenizer( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MLJModelInterface, MLJBase, TSVD | |
MLJModelInterface.@mlj_model mutable struct TSVDTransformer <: MLJModelInterface.Unsupervised | |
nvals::Int = 2 | |
maxiter::Int = 1000 | |
end | |
struct TSVDTransformerResult | |
singular_values::Vector{Float64} | |
components::Matrix{Float64} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MLJModelInterface, MLJBase, TextAnalysis, SparseArrays | |
MLJModelInterface.@mlj_model mutable struct TfidfTransformer <: MLJModelInterface.Unsupervised | |
end | |
struct TfidfTransformerResult | |
vocab::Vector{String} | |
idf_vector::Vector{Float64} | |
end |