diff --git a/datasets/oneoff/10-3.cgel b/datasets/oneoff/10-3.cgel index 895b481..e1a2769 100644 --- a/datasets/oneoff/10-3.cgel +++ b/datasets/oneoff/10-3.cgel @@ -1,4 +1,123 @@ # sent_id = 10-3 # text = If the adverse party is a resident of the district within which the award was made, such service shall be made upon the adverse party or his attorney as prescribed by law for service of notice of motion in an action in the same court. -# sent = if the adverse party is a resident of the district within which the award was made such service shall be made upon the adverse party or his attorney as prescribed by law for service of notice of motion in an action in the same court -# tree_by = mebwells (YYYY-MM-DD) +# sent = if the adverse party is a resident of the district within which the award was made _. such service shall be made upon the adverse party or his attorney as prescribed by law for service of notice of motion in an action in the same court +# tree_by = mebwells (2024-08-14) +(Clause + :Mod (PP + :Head (P :t "if") + :Comp (Clause + :Subj (NP + :Det (DP + :Head (D :t "the")) + :Head (Nom + :Mod (AdjP + :Head (Adj :t "adverse")) + :Head (N :t "party"))) + :Head (VP + :Head (V :t "is" :l "be" :xpos "VBZ") + :PredComp (NP + :Det (DP + :Head (D :t "a")) + :Head (Nom + :Head (N :t "resident") + :Comp (PP + :Head (P :t "of") + :Obj (NP + :Det (DP + :Head (D :t "the")) + :Head (Nom + :Head (N :t "district") + :Mod (Clause_rel + :Prenucleus (x / PP + :Head (P :t "within") + :Obj (NP + :Head (Nom + :Det-Head (DP + :Head (D :t "which"))))) + :Head (Clause_rel + :Subj (NP + :Det (DP + :Head (D :t "the")) + :Head (Nom + :Head (N :t "award"))) + :Head (VP + :Head (V_aux :t "was" :l "be" :xpos "VBD") + :Comp (Clause + :Head (VP + :Head (V :t "made" :l "make" :xpos "VBN" :p ",") + :Obj (x / GAP)))))))))))))) + :Head (Clause + :Subj (NP + :Mod (AdjP + :Head (Adj :t "such")) + :Head (Nom + :Head (N :t "service"))) + :Head (VP + :Head (V_aux :t "shall" :xpos "MD") + :Comp (Clause + :Head (VP + :Head (V_aux :t "be" :xpos "VB") + :Comp (Clause + :Head (VP + :Head (VP + :Head (V :t "made" :l "make" :xpos "VBN") + :Comp (PP + :Head (P :t "upon") + :Obj (Coordination + :Coordinate (NP + :Det (DP + :Head (D :t "the")) + :Head (Nom + :Mod (AdjP + :Head (Adj :t "adverse")) + :Head (N :t "party"))) + :Coordinate (NP + :Marker (Coordinator :t "or") + :Head (NP + :Det (DP + :Head (D :t "his")) + :Head (Nom + :Head (N :t "attorney"))))))) + :Mod (AdvP + :Head (Adv :t "as") + :Comp (Clause + :Head (VP + :Head (VP + :Head (V :t "prescribed" :l "prescribe" :xpos "VBN") + :Comp (PP + :Head (P :t "by") + :Obj (NP + :Head (Nom + :Head (N :t "law"))))) + :Mod (PP + :Head (P :t "for") + :Obj (NP + :Head (Nom + :Head (N :t "service" :note "[AMBIG]: I see 5 plausible readings (could be more or fewer). [service of [notice of [motion in [an action in [the same court]]]]]; [service of [notice of [motion in an action]] in the same court]; [service of [notice of [motion in an action in the same court]]]; [[service of [notice of [motion in [an action]]]] in the same court]; [service of [notice of motion]] in [an action in the same court]") + :Comp (PP + :Head (P :t "of") + :Obj (NP + :Head (Nom + :Head (N :t "notice") + :Comp (PP + :Head (P :t "of") + :Obj (NP + :Head (Nom + :Head (N :t "motion") + :Mod (PP + :Head (P :t "in") + :Obj (NP + :Det (DP + :Head (D :t "an")) + :Head (Nom + :Head (N :t "action") + :Mod (PP + :Head (P :t "in") + :Obj (NP + :Det (DP + :Head (D :t "the")) + :Head (Nom + :Mod (AdjP + :Head (Adj :t "same")) + :Head (N :t "court" :p ".")))))))))))))))))))))))))) + diff --git a/datasets/oneoff/pdf/10-3.pdf b/datasets/oneoff/pdf/10-3.pdf new file mode 100644 index 0000000..12a7045 Binary files /dev/null and b/datasets/oneoff/pdf/10-3.pdf differ diff --git a/datasets/oneoff/tex/10-3.tex b/datasets/oneoff/tex/10-3.tex new file mode 100644 index 0000000..3e4730c --- /dev/null +++ b/datasets/oneoff/tex/10-3.tex @@ -0,0 +1,188 @@ + +\documentclass[tikz,border=12pt]{standalone} +\usepackage[linguistics]{forest} +\usepackage{times} +\usepackage{textcomp} +\usepackage{xcolor} +\usepackage{soul} +\usepackage[T1]{fontenc} +\usepackage{marvosym} + +\definecolor{orange}{HTML}{FFCCFF} +\definecolor{ltyellow}{HTML}{FFFFAA} +\definecolor{cgelblue}{HTML}{009EE0} + +% text highlight color +% https://tex.stackexchange.com/a/352959 +\newcommand{\hlc}[2][yellow]{{% + \colorlet{foo}{#1}% + \sethlcolor{foo}\hl{#2}}% +} +\newcommand{\hlgreen}[2][green]{{% + \colorlet{foo}{#1}% + \sethlcolor{foo}\hl{#2}}% +} +\newcommand{\p}[1]{% + \sethlcolor{white}\color{gray}\hl{#1}% +} + +\pagestyle{empty} +%---------------------------------------------------------------------- +% Node labels in CGEL trees are defined with \Node, +% which is defined so that \Node{Abcd}{Xyz} yields +% a label with the function Abcd on the top, in small +% sanserif font, followed by a colon, and the category +% Xyz on the bottom. +\newcommand{\Node}[2]{\small\textsf{#1:}\\{#2}} +% For commonly used functions this is defined with \(function) +\newcommand{\Head}[1]{\Node{Head}{#1}} +\newcommand{\Subj}[1]{\Node{Subj}{#1}} +\newcommand{\Comp}[1]{\Node{Comp}{#1}} +\newcommand{\Mod}[1]{\Node{Mod}{#1}} +\newcommand{\Det}[1]{\Node{Det}{#1}} +\newcommand{\PredComp}[1]{\Node{PredComp}{#1}} +\newcommand{\Crd}[1]{\Node{Coordinate}{#1}} +\newcommand{\Mk}[1]{\Node{Marker}{#1}} +\newcommand{\Obj}[1]{\Node{Obj}{#1}} +\newcommand{\Sup}[1]{\Node{Supplement}{#1}} +\newcommand{\idx}[1]{\textsubscript{\fcolorbox{red}{white}{\textcolor{red}{#1}}}} +%---------------------------------------------------------------------- +\begin{document} + +% # sent_id = 10-3 +% # text = If the adverse party is a resident of the district within which the award was made, such service shall be made upon the adverse party or his attorney as prescribed by law for service of notice of motion in an action in the same court. +% # sent = if the adverse party is a resident of the district within which the award was made _. such service shall be made upon the adverse party or his attorney as prescribed by law for service of notice of motion in an action in the same court +% # tree_by = mebwells (2024-08-14) + + \begin{forest} + where n children=0{% for each terminal node + font=\sffamily, + fill=ltyellow, + %tier=word % align at the "word" tier (bottom) + }{% % no false conditions, so empty + }, + [Clause + [\Node{Mod}{PP} + [\Node{Head}{P},edge={line width=1pt}[if]] + [\Node{Comp}{Clause} + [\Node{Subj}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[the]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Mod}{AdjP} + [\Node{Head}{Adj},edge={line width=1pt}[adverse]]] + [\Node{Head}{N},edge={line width=1pt}[party]]]] + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V},edge={line width=1pt}[is]] + [\Node{PredComp}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[a]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[resident]] + [\Node{Comp}{PP} + [\Node{Head}{P},edge={line width=1pt}[of]] + [\Node{Obj}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[the]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[district]] + [\Node{Mod}{Clause\textsubscript{rel}} + [\Node{Prenucleus}{PP\idx{x}} + [\Node{Head}{P},edge={line width=1pt}[within]] + [\Node{Obj}{NP} + [\Node{Head}{Nom},edge={line width=1pt}, before drawing tree={x+=1.5em} + [\Node{Det-Head}{DP},no edge + [\Node{Head}{D},edge={line width=1pt}[which]]] { \draw[-] (!uu.south) -- (); \draw[-,line width=1pt] (!u.south) -- (); }]]] + [\Node{Head}{Clause\textsubscript{rel}},edge={line width=1pt} + [\Node{Subj}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[the]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[award]]]] + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[was]] + [\Node{Comp}{Clause} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V},edge={line width=1pt}[made,label={right:\p{{,}}}]] + [\Node{Obj}{GAP\idx{x}}[--]]]]]]]]]]]]]]] + [\Node{Head}{Clause},edge={line width=1pt} + [\Node{Subj}{NP} + [\Node{Mod}{AdjP} + [\Node{Head}{Adj},edge={line width=1pt}[such]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[service]]]] + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[shall]] + [\Node{Comp}{Clause} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[be]] + [\Node{Comp}{Clause} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V},edge={line width=1pt}[made]] + [\Node{Comp}{PP} + [\Node{Head}{P},edge={line width=1pt}[upon]] + [\Node{Obj}{Coordination} + [\Node{Coordinate}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[the]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Mod}{AdjP} + [\Node{Head}{Adj},edge={line width=1pt}[adverse]]] + [\Node{Head}{N},edge={line width=1pt}[party]]]] + [\Node{Coordinate}{NP} + [\Node{Marker}{Coordinator}[or]] + [\Node{Head}{NP},edge={line width=1pt} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[his]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[attorney]]]]]]]] + [\Node{Mod}{AdvP} + [\Node{Head}{Adv},edge={line width=1pt}[as]] + [\Node{Comp}{Clause} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{VP},edge={line width=1pt} + [\Node{Head}{V},edge={line width=1pt}[prescribed]] + [\Node{Comp}{PP} + [\Node{Head}{P},edge={line width=1pt}[by]] + [\Node{Obj}{NP} + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[law]]]]]] + [\Node{Mod}{PP} + [\Node{Head}{P},edge={line width=1pt}[for]] + [\Node{Obj}{NP} + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N} \hlgreen{\Info},edge={line width=1pt}[service]] + [\Node{Comp}{PP} + [\Node{Head}{P},edge={line width=1pt}[of]] + [\Node{Obj}{NP} + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[notice]] + [\Node{Comp}{PP} + [\Node{Head}{P},edge={line width=1pt}[of]] + [\Node{Obj}{NP} + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[motion]] + [\Node{Mod}{PP} + [\Node{Head}{P},edge={line width=1pt}[in]] + [\Node{Obj}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[an]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Head}{N},edge={line width=1pt}[action]] + [\Node{Mod}{PP} + [\Node{Head}{P},edge={line width=1pt}[in]] + [\Node{Obj}{NP} + [\Node{Det}{DP} + [\Node{Head}{D},edge={line width=1pt}[the]]] + [\Node{Head}{Nom},edge={line width=1pt} + [\Node{Mod}{AdjP} + [\Node{Head}{Adj},edge={line width=1pt}[same]]] + [\Node{Head}{N},edge={line width=1pt}[court,label={right:\p{.}}]]]]]]]]]]]]]]]]]]]]]]]]]]] +\node at (current bounding box.south)[yshift=-1cm]{ +(1) [AMBIG]: I see 5 plausible readings (could be more or fewer). [service of [notice of [motion in [an action in [the same court]]]]]; [service of [notice of [motion in an action]] in the same court]; [service of [notice of [motion in an action in the same court]]]; [[service of [notice of [motion in [an action]]]] in the same court]; [service of [notice of motion]] in [an action in the same court]}; + \end{forest} + + +\end{document} +