class Config(Task.Config): model: WordTaggingModel.Config = WordTaggingModel.Config() trainer: Trainer.Config = Trainer.Config() labels: WordLabelConfig = WordLabelConfig() data_handler: JointModelDataHandler.Config = JointModelDataHandler.Config( ) metric_reporter: WordTaggingMetricReporter.Config = ( WordTaggingMetricReporter.Config())
def create_metric_reporter(cls, config: Config, tensorizers: Dict[str, Tensorizer]): return WordTaggingMetricReporter.from_config_and_label_names( config.metric_reporter, list(tensorizers["labels"].vocab))
class Config(NewTask.Config): model: WordTaggingModel.Config = WordTaggingModel.Config() metric_reporter: WordTaggingMetricReporter.Config = WordTaggingMetricReporter.Config( )