Did you know ...
Search Documentation:
Pack small_adventure_games -- prolog/chat80.pl
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
IRC
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
test_chat
Run default demo suite, showing timing and warn if the answer is incorrect.
rtest_chats
(+Times)
Run the test suite
Times
times silently. Used for timing and profiling.
chat_process
(+Question, -Answer)
Process
Question
using chat80, resulting in
Answer
.
Question
is a list of atoms expressing words. For exampple,
?- chat_process([what, is, the,capital, of, france, ?], A). A = [paris].
See also
-
tokenize_atom/2
.
chat_parse
(+Question, -Tree)
Perform the parsing phase of CHAT80.
chat_semantics
(+Tree, -Query)
Translate the NLP parse tree into a Prolog query.
chat_optimize
(+QueryIn, -Query)
Optimize a query
chat_answer
(+Query, -Answer)
Find answers for the
Query
.
chat_print_tree
(+Tree)
Print an NLP parse tree
chat_example
(?Nr, ?Sentence, ?Correct)
True when
Nr
is the (integer) id of the tokenized
Sentence
and
Correct
is the correct answer.