Penelope v0.2.6 Penelope.ML.Text.RegexVectorizer
The regex vectorizer applies a list of regexes to each incoming document and produces an output vector of 0/1 values based on the results.
Link to this section Summary
Functions
transforms a list of documents into vectors
Link to this section Functions
Link to this function
transform(model, context, x)
transform(model :: %{regexes: [String.t()]}, context :: map(), x :: [String.t()]) :: [Penelope.ML.Vector.t()]
transforms a list of documents into vectors