frame.tex 1.76 KB

\begin{minipage}[t]{\textwidth}
\def\arraystretch{1.25}
\begin{tabular}{lll}
({{ fr_loop_counter }}) \textbf{ {{ lemma.entry_obj.name }} {{ reflex }} ({{ negativity }},{{ predicativity }},{{ aspect }})} --- \textit{ {{ frame_opinion }} [{{ frame.id }}]}  \\
\end{tabular}\\
%{% for pos_dict in pos_dict_ls %}
%	{% if pos_dict.pos_cats_str %}
		\position{({{ pos_dict.idx }}) {{ pos_dict.pos_cats_str }}{% for argument in pos_dict.arguments %}\\\phrasetype{ {{ argument.idx }} }{ {{ argument.argument.text_rep }} }{% endfor %} }
%	{% else %} 
		\position{({{ pos_dict.idx }}){% for argument in pos_dict.arguments %}\\\phrasetype{ {{ argument.idx }} }{ {{ argument.argument.text_rep }} }{% endfor %} }
%	{% endif %}
%{% endfor %}
\end{minipage}

{% if example_dict_ls %}
  \vspace{5pt}
  \line(1,0){400}

  {\footnotesize
  \begin{enumerate}[1.]

  {% for example_dict in example_dict_ls %}
    \item {{ example_dict.example.sentence }}
    \begin{flushright} 
      %{% for idx in example_dict.arg_idxs %}{\tiny \framebox{ {{ idx }} }} {% endfor %}
      {% for position in example_dict.positions %}{{ position.idx }} \{ {% for idx in position.arg_idxs %}{\tiny \framebox{ {{ idx }} }}{% if not forloop.last %} ; {% endif %}{% endfor %} \} {% if not forloop.last %} + {% endif %}{% endfor %}
      	      \textit{ {{ example_dict.example.source.source }} --- {{ example_dict.example.opinion.opinion }} [{{ example_dict.example.id }}]} 
    \end{flushright}
    {% if forloop.last %}
    {% else %}
      \vspace{5pt} 
    {% endif %}
    {% if example_dict.example.comment %}
      \begin{flushleft} \begin{sloppypar} {{example_dict.example.comment}} \end{sloppypar} \end{flushleft}
    {% endif %}
  {% endfor %}
  \end{enumerate}
  }
{% endif %}

  \vspace{10pt}