delph-in / srg

Spanish Resource Grammar
Other
2 stars 0 forks source link

underscores in rel values #103

Open olzama opened 4 months ago

olzama commented 4 months ago

SRG has many rel values, and some contain underscores, which seems to be illegal from the point of view of e.g. pydelphin (https://delphinqa.ling.washington.edu/t/unexpected-structure-for-pydelphin-mrs-compare/1052)

_respecto_a_p_temp_rel :=  temp_loc_rel.
_respecto_de_p_rel :=  miscprep_rel.
_según_el_decir_de_p_rel :=  miscprep_rel.
_sin_contar_con_p_rel :=  miscprep_rel.
_sin_necesidad_de_p_rel :=  miscprep_rel.
_si_no_es_por_p_rel :=  miscprep_rel.
_sin_perjuicio_de_p_rel :=  miscprep_rel.
_so_pena_de_p_rel :=  miscprep_rel.

...and so forth.

If this is indeed illegal, they should all be changed to e.g. dashes, both in fundamentals.tdl where they are defined and in the lexicon or potentially other files where they are used.

arademaker commented 4 months ago

the _ are not illegal. But see:

  1. https://github.com/delph-in/docs/wiki/MrsRFC#general-remarks
  2. https://github.com/delph-in/docs/wiki/PredicateRfc#type-vs-string
olzama commented 4 months ago

They are illegal in lemmas, and looks like what I have ends up being treated as a lemma.