% COMPILE WITH: lex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This file contains the lemmas we want the parser to % % understand, and each lemma is connected to: % % 1. its semantic frame (as specified in the frame % % dimension) % % 2. its syntactic category % % 3. the syntactic tree(s) it can anchor - there can be % % more than one! % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% NAMES %%% % The lemma John will be selected when we read the token % % "John". % % We will assign the "John frame" to this element in the % % sentence. % % The token "John" can anchor a tree if the anchor node of % % the tree has the same syntactic category as this lemma % % (n). % % The only tree family that can be anchored by "John" is % % propernoun (as defined in the syntactic dimension). % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% class LemmaJohn { { entry <- "john"; sem <- FrameJohn; cat <- n; fam <- propernoun } } class LemmaFence { { entry <- "fence"; sem <- FrameFence; cat <- n; fam <- commonnoun } } %% IAA-alternating, directed, intransitive verbs %% class LemmaJump { { entry <- "jump"; sem <- FrameJump; cat <- v; fam <- IntransitiveVerbFamily | fam <- IAAAlternatingVerbFamily } } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% DETERMINERS AND PREPOSITIONS %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% class LemmaThe { { entry <- "the"; sem <- FrameDummy; cat <- det; fam <- determiner } } value LemmaJohn value LemmaFence value LemmaJump value LemmaThe