PyTextConfig

class pytext.config.pytext_config.PyTextConfig[source]

Bases: ConfigBase

All Attributes (including base classes)

task: Union[TaskBase.Config, Task.Config, DisjointMultitask.Config, EnsembleTask.Config, DocClassificationTask.Config, WordTaggingTask.Config, JointTextTask.Config, LMTask.Config, PairClassificationTask.Config, SeqNNTask.Config, ContextualIntentSlotTask.Config, SemanticParsingTask.Config, KDDocClassificationTask.Config]
use_cuda_if_available: bool = True
distributed_world_size: int = 1
load_snapshot_path: str = ''
save_snapshot_path: str = '/tmp/model.pt'
export_caffe2_path: str = '/tmp/model.caffe2.predictor'
export_onnx_path: str = '/tmp/model.onnx'
modules_save_dir: str = ''
save_module_checkpoints: bool = False
use_tensorboard: bool = True
test_out_path: str = '/tmp/test_out.txt'
debug_path: str = '/tmp/model.debug'

Warning

This config has parameters with no default values. We aren’t yet able to generate functional JSON for it.