初始化处理器 Args: config: 处理配置,如果为None则使用默认配置
(self, config: Optional['ProcessingConfig'] = None)
| 89 | """ |
| 90 | |
| 91 | def __init__(self, config: Optional['ProcessingConfig'] = None): |
| 92 | """ |
| 93 | 初始化处理器 |
| 94 | |
| 95 | Args: |
| 96 | config: 处理配置,如果为None则使用默认配置 |
| 97 | """ |
| 98 | from .data_types import ProcessingConfig |
| 99 | self.config = config or ProcessingConfig() |
| 100 | self._model = None # 延迟加载的模型实例 |
| 101 | |
| 102 | @property |
| 103 | def name(self) -> str: |
nothing calls this directly
no test coverage detected