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

usc-045.idf3eb7cb1-2a49-11ef-8437-855ef5b8fc19_2_0.cgel #83

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@

\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 = usc-045.idf3eb7cb1-2a49-11ef-8437-855ef5b8fc19_2_0
% # text = Any officer or employee of the Internal Revenue Service in connection with any in-person interview with any taxpayer relating to the determination or collection of any tax shall, upon advance request of such taxpayer, allow the taxpayer to make an audio recording of such interview at the taxpayer’s own expense and with the taxpayer’s own equipment.
% # sent = any officer or employee of the Internal Revenue Service in connection with any inperson interview with any taxpayer relating to the determination or collection of any tax shall upon advance request of such taxpayer allow the taxpayer to make an audio recording of such interview at the taxpayers own expense and with the taxpayers own equipment
% # tree_by = nschneid (2024-11-15)

\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{Subj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[any]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Coordination},edge={line width=1pt}
[\Node{Coordinate}{Nom}
[\Node{Head}{N},edge={line width=1pt}[officer]]]
[\Node{Coordinate}{Nom}
[\Node{Marker}{Coordinator}[or]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[employee]]]]]
[\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{Mod}{Nom}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[Internal]]]
[\Node{Head}{N},edge={line width=1pt}[Revenue]]]
[\Node{Head}{N},edge={line width=1pt}[Service]]]]]]]
[\Node{Supplement}{PP}
[\Node{Head}{P},edge={line width=1pt}[in]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[connection]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[with]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[any]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[in-person]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[interview]]
[\Node{Mod}{PP}
[\Node{Head}{P},edge={line width=1pt}[with]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[any]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[taxpayer]]]]]]
[\Node{Mod}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[relating]]
[\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}{Coordination},edge={line width=1pt}
[\Node{Coordinate}{Nom}
[\Node{Head}{N},edge={line width=1pt}[determination]]]
[\Node{Coordinate}{Nom}
[\Node{Marker}{Coordinator}[or]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[collection]]]]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[any]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[tax]]]]]]]]]]]]]]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V\textsubscript{aux}},edge={line width=1pt}[shall,label={right:\p{{,}}}]]
[\Node{Supplement}{PP}
[\Node{Head}{P},edge={line width=1pt}[upon]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[advance]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[request]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[such]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{N},edge={line width=1pt}[taxpayer,label={right:\p{{,}}}]]]]]]]]]
[\Node{Comp}{Clause}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[allow]]
[\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{Head}{N},edge={line width=1pt}[taxpayer]]]]
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Marker}{Sdr}[to]]
[\Node{Head}{Clause},edge={line width=1pt}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{VP},edge={line width=1pt}
[\Node{Head}{V},edge={line width=1pt}[make]]
[\Node{Obj}{NP}
[\Node{Det}{DP}
[\Node{Head}{D},edge={line width=1pt}[an]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{Nom}
[\Node{Head}{N},edge={line width=1pt}[audio]]]
[\Node{Head}{N},edge={line width=1pt}[recording]]]
[\Node{Comp}{PP}
[\Node{Head}{P},edge={line width=1pt}[of]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[such]]]
[\Node{Head}{N},edge={line width=1pt}[interview]]]]]]]]
[\Node{Mod}{Coordination}
[\Node{Coordinate}{PP}
[\Node{Head}{P},edge={line width=1pt}[at]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Det}{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}[taxpayer{\textquoteright}s]]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[own]]]
[\Node{Head}{N},edge={line width=1pt}[expense]]]]]]
[\Node{Coordinate}{PP}
[\Node{Marker}{Coordinator}[and]]
[\Node{Head}{PP},edge={line width=1pt}
[\Node{Head}{P},edge={line width=1pt}[with]]
[\Node{Obj}{NP}
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Det}{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}[taxpayer{\textquoteright}s]]]]
[\Node{Head}{Nom},edge={line width=1pt}
[\Node{Mod}{AdjP}
[\Node{Head}{Adj},edge={line width=1pt}[own]]]
[\Node{Head}{N},edge={line width=1pt}[equipment,label={right:\p{.}}]]]]]]]]]]]]]]]]
\end{forest}


\end{document}

Loading