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