Rule Based Translation Architecture
Interaction Models Group
Dipartimento di Informatica
Università degli Studi di Torino
Interaction
Models Group
Rule Base Translation Architecture
Socket based Modular architecture

4 modules
1.Parser
2.Semantic Interpreter
3.Generator
4.Spatial Allocation Planner
Interaction
Models Group
POST /TURBTWebService/RULEBTranslator/01234 HTTP/1.1
User-Agent: ATLAS-Orchestrator/1.0.0 (Linux)
Host: localhost:8080
Content-Type: text/xml
Content-length: ...
<?xml version="1.0"?>
<text id="01234">
<sentence id="5" start_time="8.45" duration_time="1.425">Temporali a centro nord</sentence>
<sentence id="6" start_time="9.875" duration_time="14.359">Sole a sud e al centro.</sentence>
</text>
1
Parser
4.1
2
3
WEB
Server
Servlet
Server
Apache
Tomcat
7
4.2
TextID
+
XML
RBT.java
6
5
8
HTTP/1.1 200 OK
Content-Type: text/sal
Content-Length: ...
5 8.45 1.425 ftp://.../01234/atlas_aewlis_manual_movie_meteo_080701_030000_f1.xml
6 9.875 14.359 ftp://.../01234/atlas_aewlis_manual_movie_meteo_080701_030000_f2.xml
FTP
server
Semantic
Interpreter
4.3
4.4
Generator
Spatial
Allocation
Planner
Interaction
Models Group
Parser
4.1
4.2
RBT.java
Semantic
Interpreter
Generator
4.2
IN: ((HEAD ((FORM |t|) (POSITION (1 10))
(SYN ((LEMMA AVERE) (CAT VERB) (TYPE
MAIN) (MOOD IND) ...)
4.3
IN: (exists (X1 …) (££DIALOGUE X1) (&HASDIAL-TOPIC X1 X2) (££TO-HAVE X2) ...)
OUT: ((HEAD ((FORM GIORNO)
(POSITION 4) (IDSIGN 1052) (SYN ((LEMMA
GIORNO) ...
5
FTP
server
OUT: ((HEAD ((FORM |t|) (POSITION (1 10))
(SYN ((LEMMA AVERE) (CAT VERB) (TYPE
MAIN) (MOOD IND) ...)
OUT: (exists (X1 …) (££DIALOGUE X1)
(&HAS-DIAL-TOPIC X1 X2) (££TO-HAVE
X2) ...)
4.3
4.4
4.1
IN: Oggi ultima giornata del mese di giugno,
con valori di temperatura superiori alla media
Spatial
Allocation
Planner
4.4
IN: ((HEAD ((FORM GIORNO) (POSITION
4) (IDSIGN 1052) (SYN ((LEMMA
GIORNO) ...
OUT: <?xml version="1.0" encoding="UTF-8"?>
<ALEAOutput>
<newSentence text="???" italianText="???"
writtenLISSentence="???" lemmaNumber="???">
<newLemma lemma=" OGGI" idAtlasSign=" 2669">
<handsNumber>2</handsNumber>
<signSpatialLocation>
Interaction
0.35 0.0 0.0
Models Group
</signSpatialLocation> ...
Parser
Semantic
Interpreter
Sentece
Designer
Generato
r
Virtual
Actor
OpenCCG
Interaction
Models Group
Parser
Semantic
Interpreter
Sentece
Designer
Generator
Generato
r
Virtual
Actor
OpenCCG
Interaction
Models Group
Restlet Architecture
Interaction
Models Group
Generator
Interaction
Models Group
Generator
Semantic Network
LIS dependency tree
FOL predicates
AVM trees
Generator
Interaction
Models Group
Sentece
Designer
LISP
●
●
Heuristics
Expert System
Generator
OpenCCG
JAVA
●
●
CCG
AMMA-DB (?!) info
Interaction
Models Group
Sentece
Designer
OpenCCG
(defrule rule-EVENT-TO-INCREASE-01 ()
(SEMANTIC-STATE (NAME ££EVENT) (ARG-1 ?X8))
(SEMANTIC-RELATION (NAME &INVOLVED-ENTITY) (ARG-1 ?X8) (ARG-2 ?Y8))
(SEMANTIC-RELATION (NAME &HAS-SITUATION-LOCATION) (ARG-1 ?X8) (ARG-2 ?X6))
(SEMANTIC-STATE (NAME ££TO-INCREASE) (ARG-1 ?X6))
(SEMANTIC-RELATION (NAME &INCREASE-AG) (ARG-1 ?X6) (ARG-2 ?X7))
=>
(assert (syntactic-relation (name SYN-SUBJ) (arg-1 ?X6) (arg-2 ?X7)))
(assert (syntactic-relation (name SYN-RMOD) (arg-1 ?X6) (arg-2 ?Y8)))
(defrule rule-BAD-WEATHER-01 ()
(SEMANTIC-STATE (NAME ££BAD-WEATHER) (ARG-1 ?X3))
(SEMANTIC-RELATION (NAME &SITUATION-FOCUS) (ARG-1 ?X3) (ARG-2 ?X2))
(SEMANTIC-RELATION (NAME &HAS-SITUATION-TIME) (ARG-1 ?X2) (ARG-2 ?X4))
(SEMANTIC-RELATION (NAME &HAS-SITUATION-LOCATION) (ARG-1 ?X2) (ARG-2 ?X5))
=>
(assert (syntactic-relation (name SYN-SUBJ) (arg-1 ?X3) (arg-2 ?X2)))
(assert (syntactic-relation (name SYN-RMOD) (arg-1 ?X3) (arg-2 ?X4)))
(assert (syntactic-relation (name SYN-RMOD) (arg-1 ?X3) (arg-2 ?X5)))
Interaction
Models Group
Sentece
Designer
OpenCCG
noun-II(nord-1533-1,it-northern-region,it-region,noun)
...
family TransV_III-A-s_nuvola-aumentare {
entry: s<1> [E] \ np [X] : E:meteo-status-situation(* <SYN-SUBJ>X:clouds);
};
family TransV_III-B {
entry: s<1> [E PoS=verb] \ np [X] \ np [Y]:
E:meteo-status-situation(* <SYN-SUBJ>X:evaluable-entity <SYN-OBJ>Y:evaluable-entity) ;
};
family Adj-II {
entry: n<~5> [X] \* n<5> [X] : X(<ATT>(P *));
entry: s <1>[X adj] \* np [Y] :
X:weather-status-situation(*<SYN-SUBJ>Y:meteo-status-situation);
entry: s <1>[X adj] \* np [Y] :
X:weather-status-situation(*<SYN-SUBJ>Y:evaluable-entity);
entry: s <1>[X adj] \* np <5> [X] : X(<SYN-RMOD-SEQPOS>(P *));
entry: s <~1> [Z adj] \* s <1>[Z] : Z:event( <COORD> (P *));
}
Interaction
Models Group
Generation Algorithm(s)
Sentence Designer + Realizer
1. Syntax-ation
I. Segmentation
II. Lexicalization
III. Relation
IV. Complete
2. Simplification
3. Realization
Interaction
Models Group
Generation Algorithm(s)
Sentence Designer + Realizer
1. Syntax-ation
create LIS syntax trees
I. Segmentation
split the semantic network into segments
II. Lexicalization
create the pre-lexical concepts
III. Relation
create syntactic relations
IV. Complete
complete relations
2. Simplification
simplify the trees
3. Realization
lexicalization, word-order, inflections
Interaction
Models Group
Sentece
Designer
Interaction
Models Group
OpenCCG
nuvola_aumentare
3 - verb – 1533 - 2
RMOD
nord
1 - noun – 1553 - 1
SUBJ
nuvola
2 - noun – 2667 - 2
Interaction
Models Group
Sentece
Designer
Interaction
Models Group
OpenCCG
superiore
4-verb–3168-2
giorno
4-noun–1052-2
SUBJ
oggi
1-noun–2669-2
RMOD
RMOD
mese
ultimo
2-noun–1398-2 5-noun–2747-1
RMOD
giugno
3-noun–3056-1
SUBJ
temperatura
1-noun–2998-2
OBJ
valore_valere
2-noun–80020- 2
RMOD
media
Interaction
3-adj–3072-2
Models Group
Work in Progress


Coverage

Interpreter

Generator

Planner
Linguistic info and AMMA DB for

Generator

Planner
Interaction
Models Group
Coverage vs. Quality
The Welsh text says:
I am not in the office at the moment. Send any work to be translated.
Interaction
Models Group
Scarica

Rule Based Translation Architecture