-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update 13-4.cgel #26
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e459b85
Update 13-4.cgel
mebwells fd75249
generated tex and pdf files for 13-4.cgel
github-actions[bot] 1ee2ecf
Update 13-4.cgel
mebwells 7d7a243
generated tex and pdf files for 13-4.cgel
github-actions[bot] 25c478f
Update 13-4.cgel
mebwells 4936c02
generated tex and pdf files for 13-4.cgel
github-actions[bot] c177f6d
Update 13-4.cgel
mebwells 6763489
generated tex and pdf files for 13-4.cgel
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"))) | ||
: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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)There was a problem hiding this comment.
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
There was a problem hiding this comment.
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