mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
python3Packages.sentence-splitter: init at 1.4
This commit is contained in:
parent
87d05edb95
commit
2f690a9306
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
|
||||
, pytestCheckHook
|
||||
, regex
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sentence-splitter";
|
||||
version = "1.4";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mediacloud";
|
||||
repo = "sentence-splitter";
|
||||
rev = version;
|
||||
hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
regex
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sentence_splitter"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder";
|
||||
homepage = "https://github.com/mediacloud/sentence-splitter";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ paveloom ];
|
||||
};
|
||||
}
|
@ -11793,6 +11793,8 @@ self: super: with self; {
|
||||
inherit (pkgs) sentencepiece;
|
||||
};
|
||||
|
||||
sentence-splitter = callPackage ../development/python-modules/sentence-splitter { };
|
||||
|
||||
sentence-transformers = callPackage ../development/python-modules/sentence-transformers { };
|
||||
|
||||
sentinel = callPackage ../development/python-modules/sentinel { };
|
||||
|
Loading…
Reference in New Issue
Block a user