Example #1
0
 class Config(NewTask.Config):
     model: WordTaggingModel.Config = WordTaggingModel.Config()
     metric_reporter: SequenceTaggingMetricReporter.Config = (
         SequenceTaggingMetricReporter.Config())
Example #2
0
 def create_metric_reporter(cls, config: Config,
                            tensorizers: Dict[str, Tensorizer]):
     return SequenceTaggingMetricReporter.from_config(
         config.metric_reporter, tensorizers["labels"])
Example #3
0
 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))