templates.CustomSVMSequenceTemplateSchema
- class templates.CustomSVMSequenceTemplateSchema(*args, **kwargs)
Custom SMV Sequence Template
- Parameters:
model_path (str) – Path to trained binary SVM model
feature_field (str) – Field containing embeddings
feature_span_field (str) – Field containing spans that map to embeddings
min_distance (float) – Minimum distance
model_name (str) – SVM model name
- 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
]