GrammaticalFramework / gf-ud

Functions to analyse and manipulate dependency trees, as well as conversions between GF and dependency trees. The main use case is UD (Universal Dependencies), but the code is designed to be completely generic as for annotation scheme. This repository replaces the old gf-contrib/ud2gf code. It is also meant to be used in the 'vd' command of GF and replace the supporting code in gf-core in the future.
Other
7 stars 15 forks source link

conll2latex not working? or am I misunderstading something? #36

Closed harisont closed 2 years ago

harisont commented 2 years ago

Students in the ongoing Computational Syntax course at GU are expected (or at least strongly encouraged) to use conll2pdf and parse2pdf to visualize the various trees they are working on.

However, installing gf-ud has proven problematic, especially for Windows users, and most people are working with a version of gf-ud installed on one of the university's servers, which also has LaTeX but not the command used to show the PDFs. I suggested that they use conll2latex and parse2latex, but only the former works. The latter produces an (almost) empty .tex file:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=0.6\textwidth]{_1parsetree.tex.eps}\end{document}

The command I run to generate this file is

echo "the black cat sees us" | gf-ud dbnf English.dbnf Utt | gf-ud parse2latex parsetree

I looking into this right now to see if it's a bug, but please tell me if I am misunderstanding something.

harisont commented 2 years ago

oh no wait, my bad