2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-01-19 06:50:56 +00:00
|
|
|
, automake, autoconf, bzip2, libtar, libtool, pkg-config, autoconf-archive
|
2017-08-08 10:34:09 +01:00
|
|
|
, libxml2
|
|
|
|
, languageMachines
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2021-11-03 12:43:23 +00:00
|
|
|
release = lib.importJSON ./release-info/LanguageMachines-mbt.json;
|
2017-08-08 10:34:09 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2022-02-23 20:00:06 +00:00
|
|
|
pname = "mbt";
|
2017-08-08 10:34:09 +01:00
|
|
|
version = release.version;
|
|
|
|
src = fetchurl { inherit (release) url sha256;
|
|
|
|
name = "mbt-${release.version}.tar.gz"; };
|
2022-03-31 02:11:06 +01:00
|
|
|
nativeBuildInputs = [ pkg-config automake autoconf ];
|
|
|
|
buildInputs = [ bzip2 libtar libtool autoconf-archive
|
2017-08-08 10:34:09 +01:00
|
|
|
libxml2
|
|
|
|
languageMachines.ticcutils
|
|
|
|
languageMachines.timbl
|
|
|
|
];
|
|
|
|
patches = [ ./mbt-add-libxml2-dep.patch ];
|
|
|
|
preConfigure = ''
|
|
|
|
sh bootstrap.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-08-08 10:34:09 +01:00
|
|
|
description = "Memory Based Tagger";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://languagemachines.github.io/mbt/";
|
2017-08-08 10:34:09 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ roberth ];
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
MBT is a memory-based tagger-generator and tagger in one. The tagger-generator part can generate a sequence tagger on the basis of a training set of tagged sequences; the tagger part can tag new sequences. MBT can, for instance, be used to generate part-of-speech taggers or chunkers for natural language processing. It has also been used for named-entity recognition, information extraction in domain-specific texts, and disfluency chunking in transcribed speech.
|
|
|
|
|
|
|
|
Mbt is used by Frog for Dutch tagging.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|