class Config(NewTask.Config): model: WordTaggingModel.Config = WordTaggingModel.Config() metric_reporter: SequenceTaggingMetricReporter.Config = ( SequenceTaggingMetricReporter.Config())
def create_metric_reporter(cls, config: Config, tensorizers: Dict[str, Tensorizer]): return SequenceTaggingMetricReporter.from_config( config.metric_reporter, tensorizers["labels"])
def create_metric_reporter(cls, config: Config, tensorizers: Dict[str, Tensorizer]): return SequenceTaggingMetricReporter.from_config_and_label_names( config.metric_reporter, list(tensorizers["labels"].vocab))