def resultpath(config): gramconfig = config.gram._replace(skipwords='_'.join(config.gram.skipwords)) config = config._replace(gram=gramconfig) config = hyphen_format(map(hyphen_format, config)) return 'data/results/{}.gz'.format(config)
def grampath(gramconfig): gramconfig = gramconfig._replace(skipwords='_'.join(gramconfig.skipwords)) return 'data/grams/{}.gz'.format(hyphen_format(gramconfig))
def resultpath(dataconfig, runconfig): data_str = hyphen_format(dataconfig) run_str = hyphen_format(runconfig) return 'data/results/{}.gz'.format(hyphen_format((data_str, run_str)))
def embeddingpath(embeddingconfig): return 'data/embeddings/{}.gz'.format(hyphen_format(embeddingconfig))
def embeddingpath(self): return 'data/embeddings/{}.gz'.format( \ hyphen_format((self.corpus, self.dimension, self.estimator, \ self.negative, self.downsampling)))