Penelope v0.5.0 Penelope.ML.Feature.MergeFeaturizer View Source
This sequence featurizer invokes a set of inner featurizers and merges their results into a single map per sequence element.
Example:
features = [
{:token_featurizer, []},
{:regex_featurizer, [regexes: [~r/ed$/, ~r/ing$/]]},
]
pipeline = [
{:ptb_tokenizer, []},
{:feature_merge, features},
{:crf_tagger, []},
]
Penelope.ml.pipeline.fit(%{}, x, y, pipeline)
Link to this section Summary
Functions
imports parameters from a serialized model
exports a runtime model to a serializable data structure
fits each of the configured inner featurizers
transform a list of feature sequences using the inner featurizers and merge the results into a single list per sequence element
Link to this section Functions
imports parameters from a serialized model
exports a runtime model to a serializable data structure
fits each of the configured inner featurizers
transform a list of feature sequences using the inner featurizers and merge the results into a single list per sequence element