---+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. * [[TypeAddendum][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 * [[ViewType][How do I see what definition the LKB has read in for a type?]] * [[ViewEntry][How do I look at fully specified lexical entries or rules?]] --- [[GrammarEngineeringFAQ][Back to FAQs page]] [[http://courses.washington.edu/ling471/][Back to main course page]] -- EmilyBender - 02 Nov 2004
This topic: Main
>
WebHome
>
GrammarEngineeringFAQ
>
ForgetConstraint
>
OrderMatters
Topic revision: r1 - 2004-11-03 - TWikiGuest
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback