Spaces:
Sleeping
Sleeping
Download src/textsummarizer/entity/config_entity.py from Md-Hakim/text-summarization: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/Md-Hakim/text-summarization/resolve/main/src/textsummarizer/entity/config_entity.py
- Command line
-
hf download hf://spaces/Md-Hakim/text-summarization/src/textsummarizer/entity/config_entity.py
-
curl -L -o config_entity.py https://huggingface.co/spaces/Md-Hakim/text-summarization/resolve/main/src/textsummarizer/entity/config_entity.py
1.04 kB
| from dataclasses import dataclass | |
| from pathlib import Path | |
| class DataIngestionConfig: | |
| root_dir : Path | |
| source_URL : str | |
| local_data_file : Path | |
| unzip_dir : Path | |
| class DataValidationConfig: | |
| root_dir : Path | |
| STATUS_FILE : str | |
| ALL_REQUIRED_FILES : list | |
| class DataTransformationConfig: | |
| root_dir : Path | |
| data_path : Path | |
| tokenizer_name : Path | |
| class ModelTrainerConfig: | |
| root_dir : Path | |
| data_path : Path | |
| model_ckpt : Path | |
| num_train_epochs : int | |
| warmup_steps : int | |
| per_device_train_batch_size : int | |
| weight_decay : float | |
| logging_steps : int | |
| evaluation_strategy: str | |
| eval_steps: int | |
| save_steps: float | |
| gradient_accumulation_steps: int | |
| class ModelEvaluationConfig: | |
| root_dir : Path | |
| data_path : Path | |
| model_path : Path | |
| all_params: dict | |
| tokenizer_path : Path | |
| metric_file_name : Path | |