-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.py
28 lines (23 loc) · 1.19 KB
/
configuration.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class ConfigClass:
def __init__(self):
# link to a zip file in google drive with your pretrained model
self._model_url = "https://drive.google.com/file/d/14VduVhV12k1mgLJMJ0WMhtRlFqwqMKtN/view?usp=sharing"
# False/True flag indicating whether the testing system will download
# and overwrite the existing model files. In other words, keep this as
# False until you update the model, submit with True to download
# the updated model (with a valid model_url), then turn back to False
# in subsequent submissions to avoid the slow downloading of the large
# model file with every submission.
self._download_model = True
self.corpusPath = ''
self.savedFileMainFolder = ''
self.saveFilesWithStem = self.savedFileMainFolder + "/WithStem"
self.saveFilesWithoutStem = self.savedFileMainFolder + "/WithoutStem"
self.toStem = False
print('Project was created successfully..')
def get__corpusPath(self):
return self.corpusPath
def get_model_url(self):
return self._model_url
def get_download_model(self):
return self._download_model