eta.util.ulf.lex.to_ulf

to_ulf(cat, word)[source]

Convert a word to a ULF of a given type category.

This version is incomplete and intended for very limited experimental use.

Parameters:
  • cat (str) – The ULF type category to generate (e.g., name, v, or p).

  • word (str) – The word to lexicalize (e.g., mercedes, are, or on-top-of).

Returns:

The generated ULF.

Return type:

s-expr