Grammar Engineering Frequently Asked Questions

In which files does order matter?

Order in fact matters in all of the .tdl files, but in different ways:

  • In labels.tdl, order matters because the LKB will use the first label whose constraints match the node to be labeled, even if there is a more specific label further down the file that also matches. Therefore, if you have two labels which are consistent with each other, unless you put the more specific one first, it will never get used.
  • In all of the .tdl files (including labels.tdl), order matters in that if you define two types or entries with the same identifier (string before the :=), the second will overwrite the first. The LKB will print a warning when this happens.
  • Type addendum statements (:+) are valid only if the follow the initial type definition statement (:=) for the type in question.
  • For the same reasons, order matters across files. If you define a type with the identifier foo in two or more different files, only the definition from the file loaded last (per lkb/script) will be retained.

Related topics

Back to FAQs page

Back to main course page

-- EmilyBender - 02 Nov 2004

Topic revision: r1 - 2004-11-03 - 06:26:33 - TWikiGuest

This site is powered by the TWiki collaboration platformCopyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Privacy Statement Terms & Conditions