2017-08-08 09:34:09 +00:00
|
|
|
{ stdenv, fetchurl
|
2018-03-11 06:39:04 +00:00
|
|
|
, automake, autoconf, bzip2, libtar, libtool, pkgconfig, autoconf-archive
|
2017-08-08 09:34:09 +00:00
|
|
|
, libxml2
|
|
|
|
, languageMachines
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
release = builtins.fromJSON (builtins.readFile ./release-info/LanguageMachines-mbt.json);
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-05-24 04:37:33 +00:00
|
|
|
name = "mbt-${release.version}";
|
2017-08-08 09:34:09 +00:00
|
|
|
version = release.version;
|
|
|
|
src = fetchurl { inherit (release) url sha256;
|
|
|
|
name = "mbt-${release.version}.tar.gz"; };
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-03-11 06:39:04 +00:00
|
|
|
buildInputs = [ automake autoconf bzip2 libtar libtool autoconf-archive
|
2017-08-08 09:34:09 +00:00
|
|
|
libxml2
|
|
|
|
languageMachines.ticcutils
|
|
|
|
languageMachines.timbl
|
|
|
|
];
|
|
|
|
patches = [ ./mbt-add-libxml2-dep.patch ];
|
|
|
|
preConfigure = ''
|
|
|
|
sh bootstrap.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Memory Based Tagger";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://languagemachines.github.io/mbt/";
|
2017-08-08 09:34:09 +00: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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|