Grammar Engineering Frequently Asked Questions

One of my words is showing up in the chart twice. Why?

This situation can arise if you have a multi-word lexical entry, and another lexical entry for just part of the multi-word, for example:

bastille-day := noun-lex &
  [ STEM < "bastille", "day" >,
    SYNSEM.LOCAL.LKEYS.KEYREL "_bastille_day_n_rel" ].

day := noun-lex &
  [ STEM < "day" >,
    SYNSEM.LOCAL.LKEYS.KEYREL "_day_n_rel" ].

If you try to parse a sentence with Bastille Day, the LKB will find lexical entries for both Bastille Day and day and put them both in the chart. Unless you also have an independent lexical entry for Bastille, the entry for just day won't be included in any complete parses, but the algorithm doesn't know this.


Back to FAQs page

Back to main course page

-- EmilyBender - 02 Nov 2004

Topic revision: r1 - 2004-11-03 - 05:15:22 - 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