mirror of
https://github.com/mcloh/decision-models-benchmark.git
synced 2026-11-05 22:04:12 +00:00
setup models
This commit is contained in:
14
adapters/__init__.py
Normal file
14
adapters/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""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)
|
||||
Reference in New Issue
Block a user