Skip to main content
Version: 0.95

templates.CustomSVMSequenceTemplateSchema

class templates.CustomSVMSequenceTemplateSchema(*args, **kwargs)

Custom SMV Sequence Template

Parameters

NameTypeDefaultInfo
model_pathstrPath to trained binary SVM model.
feature_fieldstrField containing embeddings.
feature_span_fieldstrField containing spans that map to embeddings.
min_distancefloatMinimum distance.
model_namestrSVM model name.

artifact_config_keys

static artifact_config_keys()

The names of the fields in the template schema pydantic model that represent paths to files or directories that contain data which back the LF template. For example, paths to a dictionary on disk that’s used within an LF.

Return type

List[str]