logicsame commited on
Commit
6663dc9
·
1 Parent(s): 1660a3b

template created

Browse files
.github/workflows/.gitkeep ADDED
File without changes
.gitignore CHANGED
@@ -160,3 +160,4 @@ cython_debug/
160
  # and can be added to the global gitignore or merged into this file. For a more nuclear
161
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
  #.idea/
 
 
160
  # and can be added to the global gitignore or merged into this file. For a more nuclear
161
  # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
  #.idea/
163
+ artifacts/*
Dockerfile ADDED
File without changes
app.py ADDED
File without changes
config/config.yaml ADDED
File without changes
main.py ADDED
File without changes
params.yaml ADDED
File without changes
requirements.txt ADDED
File without changes
research/trials.ipynb ADDED
File without changes
setup.py ADDED
File without changes
src/benglasummarization/__init__.py ADDED
File without changes
src/benglasummarization/config/__init__.py ADDED
File without changes
src/benglasummarization/config/configuration.py ADDED
File without changes
src/benglasummarization/constants/__init__.py ADDED
File without changes
src/benglasummarization/entity/__init__.py ADDED
File without changes
src/benglasummarization/logging/__init__.py ADDED
File without changes
src/benglasummarization/pipeline/__init__.py ADDED
File without changes
src/benglasummarization/utils/__init__.py ADDED
File without changes
src/benglasummarization/utils/common.py ADDED
File without changes
template.py ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from pathlib import Path
3
+ import logging
4
+
5
+ logging.basicConfig(level=logging.INFO, format='[%(asctime)s]: %(message)s:')
6
+ project_name = 'benglasummarization'
7
+
8
+ list_of_files = [
9
+ '.github/workflows/.gitkeep',
10
+ f"src/{project_name}/__init__.py",
11
+ f"src/{project_name}/utils/__init__.py",
12
+ f"src/{project_name}/utils/common.py",
13
+ f"src/{project_name}/logging/__init__.py",
14
+ f"src/{project_name}/config/__init__.py",
15
+ f"src/{project_name}/config/configuration.py",
16
+ f"src/{project_name}/pipeline/__init__.py",
17
+ f"src/{project_name}/entity/__init__.py",
18
+ f"src/{project_name}/constants/__init__.py",
19
+ "config/config.yaml",
20
+ "params.yaml",
21
+ "app.py",
22
+ "main.py",
23
+ "Dockerfile",
24
+ "requirements.txt",
25
+ "setup.py",
26
+ "research/trials.ipynb",
27
+ ]
28
+
29
+ for filepath in list_of_files:
30
+ filepath = Path(filepath)
31
+ filedir, filename = os.path.split(filepath)
32
+
33
+ if filedir != "":
34
+ os.makedirs(filedir, exist_ok=True)
35
+ logging.info(f"Creating directiory:{filedir} for the {filename}")
36
+ if (not os.path.exists(filepath)) or (os.path.getsize(filepath) == 0):
37
+ with open(filepath, 'w') as f:
38
+ pass
39
+
40
+ logging
41
+
42
+ else:
43
+ logging.info(f'{filename} is already exist')
44
+
45
+