Ejemplo n.º 1
0
 class Config(Task.Config):
     model: SeqNNModel.Config = SeqNNModel.Config()
     trainer: Trainer.Config = Trainer.Config()
     labels: DocLabelConfig = DocLabelConfig()
     data_handler: SeqModelDataHandler.Config = SeqModelDataHandler.Config()
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())
Ejemplo n.º 2
0
 class Config(Task.Config):
     model: WordTaggingModel.Config = WordTaggingModel.Config()
     trainer: Trainer.Config = Trainer.Config()
     labels: WordLabelConfig = WordLabelConfig()
     data_handler: JointModelDataHandler.Config = JointModelDataHandler.Config(
     )
     metric_reporter: WordTaggingMetricReporter.Config = (
         WordTaggingMetricReporter.Config())
Ejemplo n.º 3
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.º 4
0
 class Config(ConfigBase):
     features: FeatureConfig = FeatureConfig()
     featurizer: Featurizer.Config = SimpleFeaturizer.Config()
     data_handler: DataHandler.Config
     trainer: Trainer.Config = Trainer.Config()
     optimizer: Optimizer.Config = Adam.Config()
     scheduler: Optional[Scheduler.Config] = Scheduler.Config()
     exporter: Optional[ModelExporter.Config] = None
Ejemplo n.º 5
0
 class Config(Task_Deprecated.Config):
     model: SeqNNModel_Deprecated.Config = SeqNNModel_Deprecated.Config()
     trainer: Trainer.Config = Trainer.Config()
     labels: DocLabelConfig = DocLabelConfig()
     data_handler: SeqModelDataHandler.Config = SeqModelDataHandler.Config()
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())
     exporter: Optional[DenseFeatureExporter.Config] = None
Ejemplo n.º 6
0
 class Config(Task.Config):
     data_handler: Union[LanguageModelDataHandler.Config,
                         BPTTLanguageModelDataHandler.
                         Config] = LanguageModelDataHandler.Config()
     model: LMLSTM.Config = LMLSTM.Config()
     trainer: Trainer.Config = Trainer.Config()
     labels: Optional[WordLabelConfig] = None
     metric_reporter: LanguageModelMetricReporter.Config = (
         LanguageModelMetricReporter.Config())
Ejemplo n.º 7
0
 class Config(Task_Deprecated.Config):
     # Have PlaceHolder to keep it as Union so we don't have to write config adapter
     # for it, this class should be removed soon
     data_handler: Union[LanguageModelDataHandler.Config,
                         PlaceHolder] = LanguageModelDataHandler.Config()
     model: LMLSTM_Deprecated.Config = LMLSTM_Deprecated.Config()
     trainer: Trainer.Config = Trainer.Config()
     labels: Optional[WordLabelConfig] = None
     metric_reporter: LanguageModelMetricReporter.Config = (
         LanguageModelMetricReporter.Config())
Ejemplo n.º 8
0
 class Config(Task.Config):
     model: DocModel.Config = DocModel.Config()
     trainer: Trainer.Config = Trainer.Config()
     features: DocClassification.ModelInputConfig = (
         DocClassification.ModelInputConfig())
     labels: DocClassification.TargetConfig = DocClassification.TargetConfig(
     )
     data_handler: DocClassificationDataHandler.Config = (
         DocClassificationDataHandler.Config())
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())
Ejemplo n.º 9
0
 class Config(Task.Config):
     features: QueryDocumentPairwiseRanking.ModelInputConfig = (
         QueryDocumentPairwiseRanking.ModelInputConfig())
     model: QueryDocumentPairwiseRankingModel.Config = (
         QueryDocumentPairwiseRankingModel.Config())
     data_handler: QueryDocumentPairwiseRankingDataHandler.Config = (
         QueryDocumentPairwiseRankingDataHandler.Config())
     trainer: Trainer.Config = Trainer.Config()
     labels: Optional[DocLabelConfig] = None
     metric_reporter: PairwiseRankingMetricReporter.Config = (
         PairwiseRankingMetricReporter.Config())
Ejemplo n.º 10
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.º 11
0
 class Config(Task.Config):
     features: PairClassification.ModelInputConfig = (
         PairClassification.ModelInputConfig())
     model: PairClassificationModel.Config = PairClassificationModel.Config(
     )
     data_handler: PairClassificationDataHandler.Config = (
         PairClassificationDataHandler.Config())
     trainer: Trainer.Config = Trainer.Config()
     labels: PairClassification.TargetConfig = PairClassification.TargetConfig(
     )
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())
Ejemplo n.º 12
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.º 13
0
 class Config(Task_Deprecated.Config):
     model: DocModel_Deprecated.Config = DocModel_Deprecated.Config()
     trainer: Trainer.Config = Trainer.Config()
     features: DocClassification.ModelInputConfig = (
         DocClassification.ModelInputConfig())
     labels: DocClassification.TargetConfig = DocClassification.TargetConfig(
     )
     data_handler: DocClassificationDataHandler.Config = (
         DocClassificationDataHandler.Config())
     metric_reporter: ClassificationMetricReporter.Config = (
         ClassificationMetricReporter.Config())
     exporter: Optional[DenseFeatureExporter.Config] = None