Пример #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)
Пример #2
0
def grampath(gramconfig):
    gramconfig = gramconfig._replace(skipwords='_'.join(gramconfig.skipwords))
    return 'data/grams/{}.gz'.format(hyphen_format(gramconfig))
Пример #3
0
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)))
Пример #4
0
def embeddingpath(embeddingconfig):
    return 'data/embeddings/{}.gz'.format(hyphen_format(embeddingconfig))
Пример #5
0
 def embeddingpath(self):
     return 'data/embeddings/{}.gz'.format( \
             hyphen_format((self.corpus, self.dimension, self.estimator, \
                           self.negative, self.downsampling)))