CCGweb
About
Manual
Download
Privacy Policy
Sign in
Sentence
ara
bul
dan
eng
est
deu
fra
hin
ind
ita
kan
ltz
mar
nld
pol
por
ron
rus
spa
srp
tur
urd
vie
Go
Parse
auto
visual
HTML
LaTeX
If
(S/S)/S[dcl]
I
NP
had
(S[dcl]\NP)/(S[pt]\NP)
known
(S[pt]\NP)/NP
his
NP/(N/PP)
address
N/PP
,
,
N/PP
.
NP
>
0
S[pt]\NP
>
0
S[dcl]\NP
>
0
S[dcl]
<
0
S/S
>
0
I
NP
would
(S[dcl]\NP)/(S[b]\NP)
have
(S[b]\NP)/(S[pt]\NP)
written
(S[pt]\NP)/PP
to
PP/NP
him
NP
PP
>
0
.
.
PP
.
S[pt]\NP
>
0
S[b]\NP
>
0
S[dcl]\NP
>
0
S[dcl]
<
0
S[dcl]
>
0
<div class="der"> <table class="constituent binaryrule" data-cat="S[dcl]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent binaryrule" data-cat="S/S"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="If" data-from="0" data-to="2" data-cat="(S/S)/S[dcl]"> <tr><td class="token">If</td></tr> <tr><td class="cat" tabindex="0">(S/S)/S[dcl]</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="I" data-from="3" data-to="4" data-cat="NP"> <tr><td class="token">I</td></tr> <tr><td class="cat" tabindex="0">NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="had" data-from="5" data-to="8" data-cat="(S[dcl]\NP)/(S[pt]\NP)"> <tr><td class="token">had</td></tr> <tr><td class="cat" tabindex="0">(S[dcl]\NP)/(S[pt]\NP)</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[pt]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="known" data-from="9" data-to="14" data-cat="(S[pt]\NP)/NP"> <tr><td class="token">known</td></tr> <tr><td class="cat" tabindex="0">(S[pt]\NP)/NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="his" data-from="15" data-to="18" data-cat="NP/(N/PP)"> <tr><td class="token">his</td></tr> <tr><td class="cat" tabindex="0">NP/(N/PP)</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="N/PP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="address" data-from="19" data-to="26" data-cat="N/PP"> <tr><td class="token">address</td></tr> <tr><td class="cat" tabindex="0">N/PP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent lex" data-token="," data-from="26" data-to="27" data-cat=","> <tr><td class="token">,</td></tr> <tr><td class="cat" tabindex="0">,</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">N/PP</div> <div class="rule" title="Remove Punctuation">.</div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[pt]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]</div> <div class="rule" title="Backward Application">< <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S/S</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="I" data-from="28" data-to="29" data-cat="NP"> <tr><td class="token">I</td></tr> <tr><td class="cat" tabindex="0">NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[dcl]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="would" data-from="30" data-to="35" data-cat="(S[dcl]\NP)/(S[b]\NP)"> <tr><td class="token">would</td></tr> <tr><td class="cat" tabindex="0">(S[dcl]\NP)/(S[b]\NP)</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[b]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="have" data-from="36" data-to="40" data-cat="(S[b]\NP)/(S[pt]\NP)"> <tr><td class="token">have</td></tr> <tr><td class="cat" tabindex="0">(S[b]\NP)/(S[pt]\NP)</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="S[pt]\NP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="written" data-from="41" data-to="48" data-cat="(S[pt]\NP)/PP"> <tr><td class="token">written</td></tr> <tr><td class="cat" tabindex="0">(S[pt]\NP)/PP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent binaryrule" data-cat="PP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent binaryrule" data-cat="PP"> <tr class="daughters"> <td class="daughter daughter-left"><table class="constituent lex" data-token="to" data-from="49" data-to="51" data-cat="PP/NP"> <tr><td class="token">to</td></tr> <tr><td class="cat" tabindex="0">PP/NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent lex" data-token="him" data-from="52" data-to="55" data-cat="NP"> <tr><td class="token">him</td></tr> <tr><td class="cat" tabindex="0">NP</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">PP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> <td class="daughter daughter-right"><table class="constituent lex" data-token="." data-from="55" data-to="56" data-cat="."> <tr><td class="token">.</td></tr> <tr><td class="cat" tabindex="0">.</td></tr> <tr><td class="span-swiper"> </td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">PP</div> <div class="rule" title="Remove Punctuation">.</div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[pt]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[b]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]\NP</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]</div> <div class="rule" title="Backward Application">< <sup>0</sup> </div> </div></td></tr> </table></td> </tr> <tr><td colspan="2" class="rulecat"><div class="rulecat"> <div class="cat">S[dcl]</div> <div class="rule" title="Forward Application">> <sup>0</sup> </div> </div></td></tr> </table> </div>
Use with
der.css
.
\begin{tikzpicture}[ampersand replacement=\&] \matrix [column sep=9pt] at (0, 0) { \lexnode*{idm15}{If}{(\catS/\catS)/\catS[dcl]}{} \& \lexnode*{idm32}{I}{\catNP}{} \& \lexnode*{idm47}{had}{(\catS[dcl]\?\catNP)/(\catS[pt]\?\catNP)}{} \& \lexnode*{idm68}{known}{(\catS[pt]\?\catNP)/\catNP}{} \& \lexnode*{idm85}{his}{\catNP/(\catN/\catPP)}{} \& \lexnode*{idm104}{address}{\catN/\catPP}{} \& \lexnode*{idm114}{,}{\cat,}{} \& \lexnode*{idm127}{I}{\catNP}{} \& \lexnode*{idm142}{would}{(\catS[dcl]\?\catNP)/(\catS[b]\?\catNP)}{} \& \lexnode*{idm163}{have}{(\catS[b]\?\catNP)/(\catS[pt]\?\catNP)}{} \& \lexnode*{idm184}{written}{(\catS[pt]\?\catNP)/\catPP}{} \& \lexnode*{idm206}{to}{\catPP/\catNP}{} \& \lexnode*{idm216}{him}{\catNP}{} \& \lexnode*{idm224}{.}{\cat.}{} \\ }; \binnode*{idm97}{idm104-cat}{idm114-cat}{.}{\catN/\catPP}{} \binnode*{idm80}{idm85-cat}{idm97}{\FC{0}}{\catNP}{} \binnode*{idm61}{idm68-cat}{idm80}{\FC{0}}{\catS[pt]\?\catNP}{} \binnode*{idm40}{idm47-cat}{idm61}{\FC{0}}{\catS[dcl]\?\catNP}{} \binnode*{idm27}{idm32-cat}{idm40}{\BC{0}}{\catS[dcl]}{} \binnode*{idm8}{idm15-cat}{idm27}{\FC{0}}{\catS/\catS}{} \binnode*{idm201}{idm206-cat}{idm216-cat}{\FC{0}}{\catPP}{} \binnode*{idm196}{idm201}{idm224-cat}{.}{\catPP}{} \binnode*{idm177}{idm184-cat}{idm196}{\FC{0}}{\catS[pt]\?\catNP}{} \binnode*{idm156}{idm163-cat}{idm177}{\FC{0}}{\catS[b]\?\catNP}{} \binnode*{idm135}{idm142-cat}{idm156}{\FC{0}}{\catS[dcl]\?\catNP}{} \binnode*{idm122}{idm127-cat}{idm135}{\BC{0}}{\catS[dcl]}{} \binnode*{idm3}{idm8}{idm122}{\FC{0}}{\catS[dcl]}{} \end{tikzpicture}
Use with
ccgsym.sty
and
tikzlibraryccgder.code.tex
.
Translations
deu
Hätte ich seine Anschrift gewusst, hätte ich ihm geschrieben.
fra
Si j'avais connu son adresse, je lui aurais écrit.
por
Se eu soubesse o endereço dele, eu teria escrito para ele.
por
Se eu soubesse o endereço dele, eu teria enviado uma carta.
por
Se eu soubesse o endereço dele, teria enviado uma carta.
rus
Если бы я знал его адрес, я бы ему написал.