Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 13-4.cgel #26

Merged
merged 8 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 90 additions & 1 deletion datasets/oneoff/13-4.cgel
Original file line number Diff line number Diff line change
@@ -1,4 +1,93 @@
# sent_id = 13-4
# text = Thus, when an interested party presents the dispute to the court, its prompt resolution by the court will determine the dispute and a new or adjourned meeting to conduct the election may be avoided.
# sent = thus when an interested party presents the dispute to the court its prompt resolution by the court will determine the dispute and a new or adjourned meeting to conduct the election may be avoided
# tree_by = mebwells (YYYY-MM-DD)
# tree_by = mebwells (2024-08-12)
(Clause
:Supplement (AdvP
:Head (Adv :t "Thus" :p ","))
:Mod (PP
:Head (P :t "when")
:Comp (Clause
:Subj (NP
:Det (DP
:Head (D :t "an"))
:Head (Nom
:Mod (AdjP
:Head (Adj :t "interested"))
:Head (N :t "party")))
:Head (VP
:Head (V :t "presents" :l "present" :xpos "VBZ")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "dispute")))
:Comp (PP
:Head (P :t "to")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "court" :p ",")))))))
:Head (Coordination
:Coordinate (Clause
:Subj (NP
:Det (NP
:Head (Nom
:Head (N_pro :t "its" :l "it")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have been using :l for pronouns (you can double-check in CGELBank)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been seeing :l for only possessive pronouns in the twitter examples, but I can stop using it if that would be preferable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's inconsistent in CGELBank so either way is OK for now. I've opened an issue for making it consistent: nert-nlp/cgel/issues/128

:Head (NP
:Mod (AdjP
:Head (Adj :t "prompt"))
:Head (Nom
:Head (N :t "resolution")
:Mod (PP
:Head (P :t "by" :note "two possible attachment sites for the PP - attaching low by convention, negligible meaning change")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "court")))))))
:Head (VP
:Head (V_aux :t "will" :l "will" :xpos "MD")
:Comp (Clause
:Head (VP
:Head (V :t "determine" :l "determine" :xpos "VB")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "dispute")))))))
:Coordinate (Clause
:Marker (Coordinator :t "and")
:Head (Clause
:Subj (NP
:Det (DP
:Head (D :t "a"))
:Head (Nom
:Head (Nom
:Mod (Coordination
:Coordinate (AdjP
:Head (Adj :t "new"))
:Coordinate (AdjP
:Marker (Coordinator :t "or")
:Head (AdjP
:Head (Adj :t "adjourned"))))
:Head (N :t "meeting"))
:Mod (Clause
:Head (VP
:Marker (Sdr :t "to")
:Head (VP
:Head (V :t "conduct" :l "conduct" :xpos "VB")
:Obj (NP
:Det (DP
:Head (D :t "the"))
:Head (Nom
:Head (N :t "election"))))))))
:Head (VP
:Head (V_aux :t "may" :l "may" :xpos "MD")
:Comp (Clause
:Head (VP
:Head (V_aux :t "be" :l "be" :xpos "VB")
:Comp (Clause
:Head (VP
:Head (V :t "avoided" :l "avoid" :xpos "VBN" :p "."))))))))))
Binary file added datasets/oneoff/pdf/13-4.pdf
Binary file not shown.
159 changes: 159 additions & 0 deletions datasets/oneoff/tex/13-4.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@

\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 = 13-4
% # text = Thus, when an interested party presents the dispute to the court, its prompt resolution by the court will determine the dispute and a new or adjourned meeting to conduct the election may be avoided.
% # sent = thus when an interested party presents the dispute to the court its prompt resolution by the court will determine the dispute and a new or adjourned meeting to conduct the election may be avoided
% # tree_by = mebwells (2024-08-12)

\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{Supplement}{AdvP}
[\Node{Head}{Adv},edge={line width=1pt}[Thus,label={right:\p{{,}}}]]]
[\Node{Mod}{PP}
[\Node{Head}{P},edge={line width=1pt}[when]]
[\Node{Comp}{Clause}
[\Node{Subj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[an]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[interested]]]
[\Node{Head}{N},edge={line width=1pt}[party]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[presents]]
[\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}[dispute]]]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[to]]
[\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}[court,label={right:\p{{,}}}]]]]]]]]
[\Node{Head}{Coordination},edge={line width=1pt}
[\Node{Coordinate}{Clause}
[\Node{Subj}{NP}
[\Node{Det}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N\textsubscript{pro}},edge={line width=1pt}[its]]]]
[\Node{Head}{NP},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[prompt]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[resolution]]
[\Node{Mod}{PP}
[\Node{Head}{P} \hlgreen{\Info},edge={line width=1pt}[by]]
[\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}[court]]]]]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[will]]
[\Node{Comp}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[determine]]
[\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}[dispute]]]]]]]]
[\Node{Coordinate}{Clause}
[\Node{Marker}{Coordinator}[and]]
[\Node{Head}{Clause},edge={line width=1pt}
[\Node{Subj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[a]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{Coordination}
[\Node{Coordinate}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[new]]]
[\Node{Coordinate}{AdjP}
[\Node{Marker}{Coordinator}[or]]
[\Node{Head}{AdjP},edge={line width=1pt}
[\Node{Head}{Adj},edge={line width=1pt}[adjourned]]]]]
[\Node{Head}{N},edge={line width=1pt}[meeting]]]
[\Node{Mod}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Marker}{Sdr}[to]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[conduct]]
[\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}[election]]]]]]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[may]]
[\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}{V},edge={line width=1pt}[avoided,label={right:\p{.}}]]]]]]]]]]]
\node at (current bounding box.south)[yshift=-1cm]{
(1) two possible attachment sites for the PP - attaching low by convention, negligible meaning change};
\end{forest}


\end{document}

Loading