mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-09 20:59:31 -05:00
gnu: Add mecab-unidic.
* gnu/packages/language.scm (mecab-unidic): New variable.
This commit is contained in:
parent
5d2273aaa0
commit
bc01fa2a7a
1 changed files with 27 additions and 0 deletions
|
@ -28,6 +28,7 @@ (define-module (gnu packages language)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages audio)
|
#:use-module (gnu packages audio)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages docbook)
|
#:use-module (gnu packages docbook)
|
||||||
#:use-module (gnu packages emacs)
|
#:use-module (gnu packages emacs)
|
||||||
#:use-module (gnu packages freedesktop)
|
#:use-module (gnu packages freedesktop)
|
||||||
|
@ -58,6 +59,7 @@ (define-module (gnu packages language)
|
||||||
#:use-module (gnu packages xorg)
|
#:use-module (gnu packages xorg)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
|
#:use-module (guix build-system copy)
|
||||||
#:use-module (guix build-system glib-or-gtk)
|
#:use-module (guix build-system glib-or-gtk)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system perl)
|
#:use-module (guix build-system perl)
|
||||||
|
@ -1004,3 +1006,28 @@ (define-public mecab-ipadic
|
||||||
(description "This package contains dictionnary data derived from
|
(description "This package contains dictionnary data derived from
|
||||||
ipadic for use with MeCab.")
|
ipadic for use with MeCab.")
|
||||||
(license (license:non-copyleft "mecab-ipadic/COPYING"))))
|
(license (license:non-copyleft "mecab-ipadic/COPYING"))))
|
||||||
|
|
||||||
|
(define-public mecab-unidic
|
||||||
|
(package
|
||||||
|
(name "mecab-unidic")
|
||||||
|
(version "3.1.0")
|
||||||
|
(source (origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (string-append "https://clrd.ninjal.ac.jp/unidic_archive/cwj/"
|
||||||
|
version "/unidic-cwj-" version ".zip"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1z132p2q3bgchiw529j2d7dari21kn0fhkgrj3vcl0ncg2m521il"))))
|
||||||
|
(build-system copy-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:install-plan
|
||||||
|
'(("." "lib/mecab/dic"
|
||||||
|
#:include-regexp ("\\.bin$" "\\.def$" "\\.dic$" "dicrc")))))
|
||||||
|
(native-inputs (list unzip))
|
||||||
|
(home-page "https://clrd.ninjal.ac.jp/unidic/en/")
|
||||||
|
(synopsis "Dictionary data for MeCab")
|
||||||
|
(description "UniDic for morphological analysis is a dictionary for
|
||||||
|
analysis with the morphological analyser MeCab, where the short units exported
|
||||||
|
from the database are used as entries (heading terms).")
|
||||||
|
;; triple-licensed (at the user’s choice)
|
||||||
|
(license (list license:gpl2+ license:lgpl2.1 license:bsd-3))))
|
||||||
|
|
Loading…
Reference in a new issue