jef.registry module¶
Registry for JEF scoring types.
Provides auto-discovery of all scoring modules with METADATA.
- jef.registry.get(name)¶
Get metadata for a specific scoring type by name.
- Return type:
dict[str,Any] |None
- jef.registry.get_module(name)¶
Get the actual module for a scoring type by name.
- Return type:
Any|None
- jef.registry.list_active()¶
Return only non-deprecated scoring types.
- Return type:
list[dict[str,Any]]
- jef.registry.list_all()¶
Return all scoring types including deprecated ones.
- Return type:
list[dict[str,Any]]
- jef.registry.score(name, text, **kwargs)¶
Score text using the specified scoring type.
- Parameters:
name (
str) – The scoring type name (e.g., “illicit_substances”)text (
str) – The text to score**kwargs – Additional arguments passed to the score function
- Return type:
Any- Returns:
The scoring result from the module
- Raises:
ValueError – If the scoring type is unknown
- jef.registry.version()¶
Return the JEF library version.
- Return type:
str