How to generate english sentence from a parse having */NN_u_unknown,*/JJ_u_unknown?

We are able to generate parse output using ACE for the sentence “I feel a deep sense of gratitude to her.” But when we give the same parse to generate English sentence we get the following error message instead of the expected English sentence:

NOTE: EP ‘_gratitude/NN_u_unknown’ is unknown in the semantic index
WARNING: EP ‘_gratitude/NN_u_unknown’ is not covered

We are getting same errors for any parse that has RELS like /NN_u_unknown,/JJ_u_unknown.

How can one generate sentences from a parse having english */NN_u_unknown rels.

Please help.

I’m sorry to tell you that there is currently no way to use the ERG to generate from unknown words apart from proper names. For some experiments, you might be able to substitute known words of the same lexical type as the unknown word. Otherwise, you may need to add entries to the ERG’s lexicon, which is possible, but may not be easy to do for some words, since there is not much documentation for this task.

Substituting words (as @Dan suggested) was implemented by Ewa Muszyńska and Matic Horvat, briefly described in their PhD theses:

https://www.repository.cam.ac.uk/bitstream/handle/1810/312207/thesis.pdf?sequence=2 (section 2.4.1)
https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-913.pdf (section 7.1.1)

1 Like