Penelope v0.5.0 Penelope.ML.Text.RegexVectorizer View Source

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) View Source
transform(
  model :: %{regexes: [String.t()]},
  context :: map(),
  x :: [String.t()]
) :: [Penelope.ML.Vector.t()]

transforms a list of documents into vectors