2018-10-29 21:17:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, numpy
|
2019-11-17 18:49:59 +00:00
|
|
|
, scikitlearn
|
|
|
|
, six
|
2018-10-29 21:17:56 +00:00
|
|
|
, python
|
2019-11-17 18:49:59 +00:00
|
|
|
, isPy27
|
2018-10-29 21:17:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "word2vec";
|
2018-11-04 10:35:21 +00:00
|
|
|
version = "0.10.2";
|
2019-11-17 18:49:59 +00:00
|
|
|
disabled = isPy27;
|
2018-10-29 21:17:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:21 +00:00
|
|
|
sha256 = "40f6f30a5f113ffbfc24c5ad5de23bfac897f4c1210fb93685b7fca5c4dee7db";
|
2018-10-29 21:17:56 +00:00
|
|
|
};
|
|
|
|
|
2019-11-17 18:49:59 +00:00
|
|
|
propagatedBuildInputs = [ cython numpy scikitlearn six ];
|
2018-10-29 21:17:56 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd word2vec/tests;
|
|
|
|
${python.interpreter} test_word2vec.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tool for computing continuous distributed representations of words";
|
|
|
|
homepage = "https://github.com/danielfrg/word2vec";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ NikolaMandic ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|