Thursday, June 4, 2009

OpenCCG 'morph.xml' files

A morph.xml file is a list of word-forms and a list of associated macros.

morph @name
  > entry* @word @stem @pos @macros
  > macro* @name
      > fs? @id @attr @val
      > lf?

The 'stem' attribute should be thought of as the semantic predicate (by default it's the same as the value of 'word'). The 'pos' attribute specifies which families are relevant in building the full lexical category. The 'id' attribute make reference to an identifier in the 'lexicon.xml' file.

No comments:

Post a Comment