2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, protobuf, libiconv }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jumanpp";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "2.0.0-rc3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ku-nlp/${pname}/releases/download/v${version}/${pname}-${version}.tar.xz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-ASdr6qbkSe71M7QmuuwidCa4xQhDVoXBJ2XqvSY53pQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
patches = [ ./0001-Exclude-all-tests-from-the-build.patch ];
|
|
|
|
cmakeFlags = [ "-DJPP_ENABLE_TESTS=OFF" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ protobuf ]
|
|
|
|
++ lib.optional stdenv.isDarwin libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Japanese morphological analyser using a recurrent neural network language model (RNNLM)";
|
|
|
|
longDescription = ''
|
|
|
|
JUMAN++ is a new morphological analyser that considers semantic
|
|
|
|
plausibility of word sequences by using a recurrent neural network
|
|
|
|
language model (RNNLM).
|
|
|
|
'';
|
2021-08-05 21:33:18 +00:00
|
|
|
homepage = "https://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN++";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mt-caret ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|