A Package for the Prolog Chat80 System
+-- database % geographic data base
+-- rivers.pl
+-- cities.pl
Etc..
+-- natural % natural language analysis
+-- newdic.pl
+-- slots.pl
Etc..
+-- chat80.pl % main module with predicate hi/0
+-- edinburgh.pl % Edinburgh style I/O utility
+-- preprocessor.pl % conditional compilation utility
+-- readin.pl % sentence input
The chat80 system contains an XG parser that is an improvement over a DCG parser with pushback. It also contains a query planner that generates an optimized Prolog goal from a parse tree. The general flow of the chat80 system is as follows:
+----------+ +------------+ +--------+ +--------+
->| Parse |-->| Semantics |-->| Plan |-->| Reply |-->
+----------+ +------------+ +--------+ +--------+
The system is designed to handle closed yes/no questions about the database and open questions deriving some information from the database. The system cannot handle updates of the database.
We obtained the unmodified code from Python NLTK data package. The code is a rather large piece of Prolog text with some dead code which we commented out. Especially there were some fragments for adverb handling which was obviously dead ended and not was available to use.
To our surprise some first testing showed that our code runs fine on our system and also on SWI-Prolog. But the demographical data seems a little out-dated. This is the result of starting chat80 via the predicate hi/0 and of running the command "do mini demo.".
Logic for Natural Language Analysis - Pereira, 1982
htps //w w. 에라. b. 예 d. 아 c. u k / bitst rea m / tan d / 1842/6646 / perei 1982. pdf
Chat80 System as a Prolog Package
htps : // 기주 b. 코 m / j 부 r 세 / 지 케 지 ぇ 케 mp ぇ s / t 어 /
Reference
이 문제에 관하여(A Package for the Prolog Chat80 System), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/j4n_bur53/items/d532505f4deec2a262f5텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)