njd

package module
v0.0.0-...-18b4bb5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 6 Imported by: 0

README

A Dictionary of Kagome v2

A dictionary package of kagome v2. This software includes a binary and/or source version of data from

  • mecab-naist-jdic

which can be obtained from

as a part of openjtalk's source

Feature Fields

Features are information given to a word, such as follows:

こんな  名詞,形容動詞語幹,*,*,*,*,こんな,コンナ,コンナ,0/3,C2
寒い    形容詞,自立,*,*,形容詞・アウオ段,基本形,寒い,サムイ,サムイ,2/3,*
日      名詞,非自立,副詞可能,*,*,*,日,ヒ,ヒ,0/1,C3
で      助詞,格助詞,一般,*,*,*,で,デ,デ,1/1,動詞%F1
私      名詞,代名詞,一般,*,*,*,私,ワタシ,ワタシ,0/3,C3
は      助詞,係助詞,*,*,*,*,は,ハ,ワ,0/1,名詞%F1/動詞%F2@0/形容詞%F2@0
泳が    動詞,自立,*,*,五段・ガ行,未然形,泳ぐ,オヨガ,オヨガ,2/3,*
ない    助動詞,*,*,*,特殊・ナイ,基本形,ない,ナイ,ナイ,1/2,動詞%F3@0/形容詞%F2@1
よ      助詞,終助詞,*,*,*,*,よ,ヨ,ヨ,0/1,名詞%F1/動詞%F1/形容詞%F1
。      記号,句点,*,*,*,*,。,。,。,*/*,*
EOS
No. feature description
0 POS hierarchy The POS name and each level in its hierarchical structure.
1 POS hierarchy 1
2 POS hierarchy 2
3 POS hierarchy 3
4 Inflectional Type Inflection type indicates a category that is an inflected form, e.g. 五段・カ行促音便.
5 Inflectional Form Inflected form, e.g. 連用タ接続.
6 Base Form A form of dictionary headword, e.g. 行っ -> 行く.
7 Reading A possible reading for an entry. Readings are given in katakana, e.g. コウエン.
8 Pronunciation A possible pronunciations for an entry. Pronunciations are given in katakana, .e.g. コーエン.
9 Accent A possible accent position for an entry, e.g. 3/5
10 Accent Connection Type Behavior of an entry when it connects with another entry, for more information, see Unidic Manual

Licence

MIT

Please be noted that openjtalk is released under modified BSD licence, you may also want to check it in NOTICE.

Documentation

Index

Constants

View Source
const (

	// POSHierarchy represents part-of-speech hierarchy
	// e.g. Columns 動詞,自立,*,* are POSs which hierarchy depth is 4.
	POSHierarchy = 4
	// InflectionalType represents 活用型 (e.g. 五段・カ行促音便)
	InflectionalType FeatureIndex = 4
	// InflectionalForm represents 活用形 (e.g. 連用タ接続)
	InflectionalForm = 5
	// BaseForm represents 基本形 (e.g. 行く)
	BaseForm = 6
	// Reading represents 読み (e.g. コウエン)
	Reading = 7
	// Pronunciation represents 発音 (e.g. コーエン)
	Pronunciation = 8
)

Variables

This section is empty.

Functions

func Dict

func Dict() *dict.Dict

Dict returns a dictionary.

func DictShrink

func DictShrink() *dict.Dict

DictShrink returns a dictionary without content part. note. If an unshrinked dictionary already exists, this function returns it.

Types

type FeatureIndex

type FeatureIndex = int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL