def normalize(self) -> "DehyphenConfig": self.annotated_folder = nj(self.annotated_folder) self.work_folders.normalize() self.parla_clarin.normalize() self.extract_speeches.normalize() self.word_frequency.normalize() self.dehyphen.normalize() return self
def log_folder(self) -> str: return nj(self.data_folder, 'logs')
def normalize(self) -> "WorkFoldersConfig": self.data_folder = nj(self.data_folder) return self
def __init__(self, data_folder: str) -> None: self.data_folder: str = nj(data_folder)
def opts(self) -> dict: return dict( whitelist_filename=nj(self.data_folder, self.whitelist_filename), whitelist_log_filename=nj(self.data_folder, self.whitelist_log_filename), unresolved_filename=nj(self.data_folder, self.unresolved_filename), )
def fullname(self) -> str: return nj(self.data_folder, self.filename)
def normalize(self) -> "DehyphenConfig": self.data_folder = nj(self.data_folder) return self
def normalize(self) -> "WordFrequencyConfig": self.data_folder = nj(self.data_folder) return self
def normalize(self) -> "TransformedSpeechesConfig": self.folder = nj(self.folder) return self
def repository_parent_folder(self): return os.path.abspath(nj(self.repository_folder, '..'))
def normalize(self) -> "ParlaClarinConfig": self.repository_folder = nj(self.repository_folder) self.folder = nj(self.folder) return self
def source_pattern(self) -> str: return nj(self.folder, '*.xml')