The Jacy Japanese Grammar
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation
ace
data small fix Aug 2, 2013
etc
lex
lkb
pet
rpp
tmr
tsdb
utils
CHANGELOG.md
CONTRIBUTING.md
LICENSE
METADATA
README.md
Version.lsp
abstract.vpm
ambiguous-rules.tdl
citation.bib
conll.tdl
fundamentals.tdl
gle.tdl
idioms.mtr
infl.tdl
irregs.tab
japanese-robust.tdl
japanese.tdl
japgram-robust.tdl
japgram.tdl
labels.tdl
letypes.tdl
lexicon.tdl
lfr.tdl with all kinds of changes Aug 2, 2013
lrules.tdl
matrix.tdl
mtr.tdl
paraphraser.mtr
preprocessor.fsr
principles.tdl
roots.tdl
rule-types.tdl
semi.vpm
tc.mem
tmr.tdl
tmt.tdl
trigger.mtr

README.md

Jacy

The Jacy Japanese grammar (Siegel, Bender, & Bond, 2016; Siegel & Bender, 2002) is a broad-coverage HPSG grammar of Japanese. In combination with a parser (such as the LKB, ACE, or agree), it can analyze Japanese sentences, yielding derivation trees and MRS semantic representations, and also generate sentences from semantic representations.

Input sentences are tokenized using a morphological analyzer like MeCab.

Quick Start

The ACE parser/generator works on Linux and Mac machines. After installing ACE, the following commands will let you parse and generate with Jacy:

~$ git clone https://github.com/delph-in/jacy.git
~$ cd jacy/
~/jacy$ ace -g ace/config.tdl -G jacy.dat
~/jacy$ echo "太郎 が 次郎 に 本 を 渡し た" | ace -g jacy.dat
[...]
NOTE: parsed 1 / 1 sentences, avg 2837k, time 0.02782s
~/jacy$ echo "太郎 が 次郎 に 本 を 渡し た" | ace -g jacy.dat | ace -g jacy.dat -e
[...]
太郎 が 次郎 に 本 を 渡し た
次郎 に 太郎 が 本 を 渡し た
次郎 に 本 を 太郎 が 渡し た
[...]
NOTE: generated 1 / 9 sentences, avg 2653k, time 0.06851s