Ejemplo n.º 1
0
 def create_metric_reporter(cls, config: Config,
                            tensorizers: Dict[str, Tensorizer]):
     return IntentSlotMetricReporter.from_config(
         config.metric_reporter,
         doc_labels=tensorizers["doc_labels"].vocab,
         word_labels=tensorizers["word_labels"].vocab,
     )
Ejemplo n.º 2
0
 class Config(Task.Config):
     labels: List[TargetConfigBase]
     model: JointModel.Config = JointModel.Config()
     trainer: Trainer.Config = Trainer.Config()
     data_handler: JointModelDataHandler.Config = JointModelDataHandler.Config(
     )
     metric_reporter: IntentSlotMetricReporter.Config = (
         IntentSlotMetricReporter.Config())
Ejemplo n.º 3
0
 class Config(Task.Config):
     labels: ContextualIntentSlot.TargetConfig
     features: ContextualIntentSlot.ModelInputConfig = (
         ContextualIntentSlot.ModelInputConfig())
     model: ContextualIntentSlotModel.Config = ContextualIntentSlotModel.Config(
     )
     trainer: Trainer.Config = Trainer.Config()
     data_handler: ContextualIntentSlotModelDataHandler.Config = (
         ContextualIntentSlotModelDataHandler.Config())
     metric_reporter: IntentSlotMetricReporter.Config = (
         IntentSlotMetricReporter.Config())
Ejemplo n.º 4
0
 class Config(Task_Deprecated.Config):
     labels: ContextualIntentSlot.TargetConfig
     features: ContextualIntentSlot.ModelInputConfig = (
         ContextualIntentSlot.ModelInputConfig())
     model: ContextualIntentSlotModel.Config = ContextualIntentSlotModel.Config(
     )
     trainer: Trainer.Config = Trainer.Config()
     data_handler: ContextualIntentSlotModelDataHandler.Config = (
         ContextualIntentSlotModelDataHandler.Config())
     metric_reporter: IntentSlotMetricReporter.Config = (
         IntentSlotMetricReporter.Config())
     exporter: Optional[DenseFeatureExporter.Config] = None
Ejemplo n.º 5
0
 class Config(NewTask.Config):
     model: IntentSlotModel.Config = IntentSlotModel.Config()
     metric_reporter: IntentSlotMetricReporter.Config = (
         IntentSlotMetricReporter.Config())
Ejemplo n.º 6
0
 class Config(NewTask.Config):
     labels: List[TargetConfigBase]
     model: IntentSlotModel.Config = IntentSlotModel.Config()
     metric_reporter: IntentSlotMetricReporter.Config = (
         IntentSlotMetricReporter.Config())