-
Notifications
You must be signed in to change notification settings - Fork 4
RmrsSemi
This page discusses the SEM-I.
The SEM-I is a theoretically grounded component of each grammar, capturing several classes of lexical regularities while also serving the crucial engineering function of supplying a reliable and complete specification of the elementary predications the grammar can realize.
For more information see:
[http://www2.nict.go.jp/x/x161/en/member/bond/pubs/2005-summit-semi.pdf SEM-I rational MT: Enriching deep grammars with a semantic interface for scalable machine translation]
This page was constructed by FrancisBond, based on information from DanFlickinger.
(in-package "MT")
(setf semi (mt:construct-semi))
(with-open-file (stream "~/tmp/core.smi"
:direction :output :if-exists :supersede)
(mt::print-semi semi :format :compact :stream stream))
Note that this will create the bulk of the SEM-I, but you'll still need a manually created file for your grammar analogous to the file 'erg.smi' in the ERG, which at its end includes the dumped file 'core.smi'.
You can control what information about variables gets dumps with the abstract.vpm.
Here is an example from the ERG, it deletes unmarked values from the output.
;;;
;;; when creating the SEM-I, ditch a lot of the variable property information,
;;; essentially only keeping what is relevant in terms of the interface.
;;;
GEND : GEND
m >> m
f >> f
n >> n
m-or-f >> m-or-f
* >> !
NUM : NUM
sg >> sg
pl >> pl
* >> !
IND : IND
+ >> +
- >> -
* >> !
TENSE : TENSE
past >> past
pre >> pres
fut >> fut
* >> !
MOOD : MOOD
subjunctive >> subjunctive
* >> !
PROG : PROG
+ >> +
* >> !
PERF : PERF
+ >> +
* >> !
Home | Forum | Discussions | Events