Book errata - index
Book: Natural Language Processing in PROLOG, First Edition, second printing (hardback)
Official book website (no errata page at present)
Status: I emailed Chris Mellish with a copy of this errata list on 2003-09-11, but to date I have not received any reply.
N.B. I haven't read the whole book, so this list only covers the first 6 chapters.
Error in "haha!" FSA (TO-LAUGH-4) - it will accept "!". This would be valid for "(ha)*!" but not for "(ha)+!" The solution is to have 3 states:
From 1 to 2 by ha
From 2 to 2 by ha
From 2 to 3 by !
(This is later referenced on page 89.)
Not exactly an error, but initial/final nodes are now stored as "initial(s, 0)." rather than "initial(0, s)." The latter approach makes more sense, as it's consistent with the other facts (the network name being the final argument), and also with the RTN earlier in the chapter (p83 onwards).
End of 2nd paragraph, "analyzes" should be "analyses" (noun rather than verb).
"PATR" - term is introduced here, but isn't defined anywhere (here or following pages). Not actually an acronym? (I can't find an explanation on Google.)
"Gramars" should be "Grammars"
In the definition of "new_edges" at the bottom of the page, the final "." should be a ",", since the clause is continued on the following page.
In the 2nd and 3rd lines of "test", Chart1 and Agenda should be the other way around. So, the clause should say:
start_agenda(String, 0, Agenda),
start_active(Symbol, 0, Chart1),
This page was last updated on 2003-12-31 by John C. Kirk