FeatureConfigΒΆ
Component: Module
-
class
pytext.config.field_config.
FeatureConfig
[source] Bases:
Module.Config
All Attributes (including base classes)
- load_path: Optional[str] =
None
- save_path: Optional[str] =
None
- freeze: bool =
False
- shared_module_key: Optional[str] =
None
- word_feat: WordEmbedding.Config = WordEmbedding.Config()
- seq_word_feat: Optional[WordEmbedding.Config] =
None
- dict_feat: Optional[DictEmbedding.Config] =
None
- char_feat: Optional[CharacterEmbedding.Config] =
None
- dense_feat: Optional[FloatVectorConfig] =
None
- contextual_token_embedding: Optional[ContextualTokenEmbedding.Config] =
None
Default JSON
{
"load_path": null,
"save_path": null,
"freeze": false,
"shared_module_key": null,
"word_feat": {
"load_path": null,
"save_path": null,
"freeze": false,
"shared_module_key": null,
"embed_dim": 100,
"embedding_init_strategy": "random",
"embedding_init_range": null,
"embeddding_init_std": 0.02,
"export_input_names": [
"tokens_vals"
],
"pretrained_embeddings_path": "",
"vocab_file": "",
"vocab_size": 0,
"vocab_from_train_data": true,
"vocab_from_all_data": false,
"vocab_from_pretrained_embeddings": false,
"lowercase_tokens": true,
"min_freq": 1,
"mlp_layer_dims": [],
"padding_idx": null,
"cpu_only": false,
"skip_header": true,
"delimiter": " "
},
"seq_word_feat": null,
"dict_feat": null,
"char_feat": null,
"dense_feat": null,
"contextual_token_embedding": null
}