mirror of
https://github.com/mcloh/decision-models-benchmark.git
synced 2026-11-05 22:04:12 +00:00
15 lines
501 B
Python
15 lines
501 B
Python
"""Adaptadores JEV locais. Cada candidato roda num ambiente próprio (dependências incompatíveis)."""
|
|
from importlib import import_module
|
|
|
|
REGISTRY = {
|
|
"laya": "adapters.laya.adapter:LayaAdapter",
|
|
"semif": "adapters.semif.adapter:SemIfAdapter",
|
|
"gliner": "adapters.gliner.adapter:GlinerAdapter",
|
|
"rizzo_flow": "adapters.rizzo_flow.adapter:RizzoFlowAdapter",
|
|
}
|
|
|
|
|
|
def adapter_class(name: str):
|
|
module, cls = REGISTRY[name].split(":")
|
|
return getattr(import_module(module), cls)
|