# IT4Innovations 2017

# !!! master branch !!!

easyblock = 'CmdCp'

name = 'pWord2Vec'
version = '2018-01-25'


homepage = 'https://github.com/IntelLabs/pWord2Vec'
description = """This tool provides an efficient implementation of
 the continuous bag-of-words and skip-gram architectures for
 local_computing vector representations of words. These representations
 can be subsequently used in many natural language processing
 applications and for further research."""

toolchain = {'name': 'intel', 'version': '2017a'}

source_urls = ['https://github.com/IntelLabs/pWord2Vec/archive/']
sources = ['master.zip']

patches = [
    "pWord2Vec-pWord2Vec.cpp.patch",
]

dependencies = [
    ('numactl', '2.0.11', '', True),
]

builddependencies = [
    ('Mercurial', '4.4.2', '', ('Py', '2.7')),
]

local_commands = "./install.sh "

cmds_map = [('.*', local_commands)]

files_to_copy = [
    (['pWord2Vec', 'pWord2Vec_mpi'], 'bin'),
]

sanity_check_paths = {
    'files': ['bin/pWord2Vec', 'bin/pWord2Vec_mpi'],
    'dirs': [''],
}

moduleclass = 'chem'
