( The Canterbury Corpus )
home | purpose | summary | details | corpora | methods | related | credits | faq


Description of the list file

file name:grammar.lsp
abbreviation:list
description:LISP source
file size:3721 bytes

Sample of contents of grammar.lsp
(Lines 81 to 100)
 (a stench is in 3 5)
 (a pit is nearby)
 (is the wumpus near)
 (Did you go to 3 8)
 (Yes -- Nothing is there)
 (Shoot -- Shoot left)
 (Kill the wumpus -- shoot up)))

 (defun ss (&optional (sentences *sentences*))
 "Run some test sentences, and count how many were¬
not parsed."
 (count-if-not
 #'(lambda (s)
 (format t "~2&>>> ~(~{~a ~}~)~%"¬
s)
 (write (second (parse s)) :pretty t))
 *sentences*))





Note: Lines displaying the ¬ symbol have been wrapped for clarity



This page last updated Monday, January 08, 2001 by Matt Powell Department of Computer Science University of Canterbury