예제 #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