2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, autoreconfHook, fetchurl, openfst }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opengrm-ngram";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "1.3.13";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.openfst.org/twiki/pub/GRM/NGramDownload/ngram-${version}.tar.gz";
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "sha256-5CXf6OXs7owny3yZQrWYA6yhIyN0dgA2B8TSDEUTF1Q=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
buildInputs = [ openfst ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Library to make and modify n-gram language models encoded as weighted finite-state transducers";
|
|
|
|
homepage = "http://www.openfst.org/twiki/bin/view/GRM/NGramLibrary";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|