Example #1
0
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)
Example #2
0
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)))
Example #4
0
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)))