= Grammar Engineering with LKB and the LinGO Grammar Matrix: Frequently Asked Questions = This is a collection of frequently asked questions related to using the LKB and the Grammar Matrix for grammar engineering, originally developed by EmilyBender at the University of Washington and ported to the DELPH-IN wiki by NedLetcher. Please help contribute or improve any questions and/or answers. Please prefix page names for answers with 'GeFaq'. See also the [[GrammarEngineeringGlossary|Grammar Engineering Glossary]]. ---- == Getting started == 1. [[GeFaqLkbInstallation|I want to install the LKB on my local machine, what should I do?]] 1. [[GeFaqGrammarDocumentation|What should I know about documenting my grammar?]] 1. [[GeFaqLispPromptTips|How do I interact with the LKB through the Lisp prompt?]] ---- == Questions about error messages == 1. [[GeFaqNoError|I don't think I'm getting any error messages. Does that mean I don't have any errors?]] 1. [[GeFaqGotoChar|The LKB says I have an error at position number 873. How do I figure out where that is in my file?]] 1. [[GeFaqLoadScript|When I try to load my grammar/the matrix, the LKB says "Error: Attempt to take the value of the unbound variable ...". What am I doing wrong?]] 1. [[GeFaqRightBracket|The LKB says I'm missing a right bracket, but I can't figure out where. What should I do?]] 1. [[GeFaqNoPossibleType|When I load my grammar, I get "no possible type for features (...) at path (...)". What is causing this?]] 1. [[GeFaqFeatureMultiType|When I load my grammar, I get "Feature ... is introduced at multiple types (...)". What is causing this?]] 1. [[GeFaqNoSign|My grammar loads just fine, but when I try to parse a sentence, it says "no sign can be constructed for ...". What's happening?]] 1. [[GeFaqLexiconErrors|It seems that errors in the lexicon are only detected when I try to parse a sentence containing a word with the error, not when the grammar is loaded. How do I check the whole lexicon?]] 1. [[GeFaqRunawayRule1|When I try to parse a sentence, the LKB says "probable runaway rule". How do I debug this?]] 1. [[GeFaqRunawayRule2|When I try to generate, the LKB says "probable runaway rule". How do I debug this?]] 1. [[GeFaqCircularLexRule|When I try to generate, the LKB says "Probable circular lexical rule". How do I debug this?]] 1. [[GeFaqCyclicCheck|The LKB says "Cyclic check found cycle at ...". What does this mean and how do I debug it?]] 1. [[GeFaqRuleWithoutDaughter|I'm trying to write a lexical (or phrase structure rule), but I get the error "Rule without daughter". What does this mean, and how should I fix it?]] 1. [[GeFaqUnifyingNullWithCons|The LKB says that I am trying to unify a NULL with CONS. What could the problem be?]] 1. [[GeFaqFailedAtPath|The LKB says that the Unification of rule-x and rule-y failed at path <>. What's that about?]] 1. [[GeFaqFailedToReunify|Unifications failed to reunify when drawing parse tree. What does this mean?]] ---- == Questions about the parse chart == 1. [[GeFaqShowChart|How do I get the LKB to show me the parse chart?]] 1. [[GeFaqMissingEdge|When I look at the parse chart, I don't see an edge that I'm expecting to be there. How do I find out why it's missing?]] 1. [[GeFaqMissingHowTo|How can I tell if an edge is missing in the parse chart?]] 1. [[GeFaqRootFail|Looking at the parse chart, it seems that I do have an edge that spans the whole chart (accounts for all the words), but the LKB still says no parses found. What might be going on?]] 1. [[GeFaqSpanningEdge|How do I tell if I have an edge that spans the whole chart?]] 1. [[GeFaqChartTwice|One of my words is showing up in the chart twice. Why?]] 1. [[GeFaqTwoLexEdges|One of my words branches to two lexical edges that look exactly the same. Why?]] 1. [[GeFaqWordNotInChart|One of my words isn't showing up in the chart at all. Why?]] 1. [[GeFaqUnifySurprise|I've tried to use interactive unification to find out why an edge can't be built, and it can be built interactively, but it's still not in the chart. What's going on?]] 1. [[GeFaqExtraParse1|I get two (or more) parses for a sentence. How can I tell where the extra parse is coming from?]] 1. [[GeFaqExtraParse2|I get two (or more) parses for a sentence, but the Compare window doesn't show any discriminators. Why not? (Same lexical rules applied in other order.)]] ---- == Questions about lexical rules == 1. [[GeFaqLexRuleOrder|How do I get my lexical rules to apply in a particular order?]] 1. [[GeFaqLexToLexRule|I've written a lexeme-to-lexeme rule, how do I know what information I need to copy up?]] 1. [[GeFaqLexToWhatRule|How do I know if my lexical rule should be lexeme-to-lexeme or lexeme-to-word?]] 1. [[GeFaqWordToWordRule|Is there such a thing as a word-to-word rule?]] 1. [[GeFaqRuleWithoutDaughters|I'm trying to write a lexical rule, but I get the error "Rule without daughters". What does this mean, and how should I fix it?]] 1. [[GeFaqNoEntry2|I have written my lexical rule in the grammar file, but it still isn't getting applied. What could be preventing it from being used?]] 1. [[GeFaqOverApplicationLexRule|I have a lexical rule that seems to be applying even when its phonological conditions aren't met. What's going on?]] ---- == Questions about semantics == 1. [[GeFaqMissingRels|Some of my relations/qeqs aren't showing up in the MRS for the whole parse. Why not?]] 1. [[GeFaqSemanticIncompatibility|Someone told me that types x and y were semantically incompatible, but they do unify. Can they still be semantically incompatible?]] 1. [[GeFaqFilterRules|What is a filter rule, and how do I write one?]] ---- == Questions about types, constraints, and entries == 1. [[GeFaqTdlSyntax|What do the punctuation marks mean in the tdl files? (A very basic guide to tdl syntax.)]] 1. [[GeFaqNegValue|How do I constrain something to be not of a certain value?]] 1. [[GeFaqDisjunctiveValue|How do I do disjunction (constrain the value of a feature to be X or Y)?]] 1. [[GeFaqDistributedDisjunction|Can I make the value of one feature dependent on the value of another?]] 1. [[GeFaqMultipleRoot|How do I define multiple different root conditions?]] 1. [[GeFaqExpandedType|How do I see what a type looks like with all of the constraints it inherits from supertypes?]] 1. [[GeFaqViewEntry|How do I look at fully specified lexical entries or rules?]] 1. [[GeFaqViewType|How do I see what definition the LKB has read in for a type?]] 1. [[GeFaqViewHierarchy|How do I browse the type hierarchy?]] 1. [[GeFaqLexEntrySpaces|How do I write a lexical entry for a word with spaces in it?]] 1. [[GeFaqTypeAddendum|What is a type addendum statement, and when should I use one?]] 1. [[GeFaqNoRule|I've added a rule to my grammar but the LKB doesn't seem to have found it. What's happening?]] 1. [[GeFaqNoUnificationPath|I'm trying to add a brand-new constraint on my subtypes, but it says that there is no unification path. What's wrong?]] 1. [[GeFaqCombineConstraints|I'm trying to combine constraints on my lexical items and it's saying it can't unify. What can I do?]] ---- == Questions about features == 1. [[GeFaqFeatureGeometry|What is the feature geometry assigned in the Matrix? (Or: How do I figure out what paths I need to use?)]] 1. [[GeFaqNewFeature|I'm trying to add a new feature, and the LKB doesn't like it. What should I do?]] 1. [[GeFaqFindTypeForFeatures|How do I get the LKB to tell me what type(s) a feature or set of features is appropriate for?]] ---- == Other questions == 1. [[GeFaqInteractiveUnify|How do I do interactive unification?]] 1. [[GeFaqMatrixPatches|What should I know about downloading matrix patches?]] 1. [[GeFaqForgottenConstraint|The LKB seems to be "forgetting" a constraint/definition I've coded. Why?]] 1. [[GeFaqOrderMatters|In which files does order matter?]] 1. [[GeFaqExpandMenu|A menu item seems to have disappeared (e.g., Parse > Compare or Generate). How do I get it back?]] 1. [[GeFaqTabIndentation|How do I use tab to help me figure out where my syntax error is?]] 1. [[GeFaqConfusingTypo|I have a type/lexical entry/rule which doesn't seem to be inheriting a constraint from its supertype. What might be going on?]] 1. [[GeFaqTdlTxt|I've downloaded an updated version of the matrix, but the changes specified in the new matrix.tdl don't seem to be taking effect when I reload the grammar. What's wrong?]] 1. [[GeFaqDefaultSentence|How do I change the default sentence that appears in the parse dialog box when I load up my grammar?]] 1. [[GeFaqDiffList|What's a difference list, and why do we use them?]] 1. [[GeFaqQuestionMarkNodes|All of the sudden, some of the nodes in my tree are labeled with ? instead of N or S or VP. What happened?]] 1. [[GeFaqUnicodeInput|How can I input strings from non-ascii character sets?]] 1. [[GeFaqNonAlpha|What non-alphanumeric characters are allowed to be part of a string parsed by the LKB, and how can I change that?]] 1. [[GeFaqSwitchingGrammars|When I switch between grammars (e.g., the English Resource Grammar and a Matrix-derived grammar) the LKB sometimes behaves funny (errors, seg faults, etc.). What's going on?]] 1. [[GeFaqClickX|When I close the LKB Top Menu, is Lisp supposed to exit as well?]] 1. [[GeFaqTsdbRc|How can I tell tsdb++ to start with the directories for "home" and "skeletons" that I want each time?]] 1. [[GeFaqTsdbTreehouse|Why doesn't my language appear in tsdb++ in the treehouse?]] 1. [[GeFaqChartNoPopups|In LKB, when I click on nodes in a parse chart, I don't get a pop-up menu. Why not?]] 1. [[GeFaqKeyboardNotWorking|The keyboard doesn't work in the tsdb++ window/The keyboard doesn't work in Emacs after running tsdb++]] 1. [[GeFaqPasteShortcut|How do I paste into the LKB Parse dialogue?]]