示例#1
0
文件: tasks.py 项目: LinHR000/pytext
 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())
示例#2
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