Лабораторная работа 2 - изучение диалога пользователя с базой знаний на ЕЯ  

Описание лабораторной
...


На этом сайте есть исходные тексты обоих программ. Некоторые ссылки на материалы о Прологе в Сети могут быть сломаны из-за смены адреса.

Новые ссылки и много других материалов можно найти самому.

Это небольшие два проекта - нужно их сделать самостоятельно, если выбрана эта специальность

...

Текст программы GEOBASE в Сети - например - это - можно найти еще
...

Source Code for Geobase
GLOBAL DOMAINS
ENT = STRING % Names of entities
ASSOC = STRING % Names of associations
RELOP = STRING % gt, lt, eq for comparisons
UNIT = STRING % kilometers, citizens etc.
STRINGLIST = STRING*



...

Дополнительные материалы общего характера
...


...

Описание с сайта
...

Geobase - A Geographical Database
Geobase demonstrates a natural language interface to a database on U.S. geography written in Visual Prolog.. It shouldn''t be too difficult to modify it to your own purposes, so that this will be the first step on the way to designing natural language interfaces to your programs. As all Prolog programs, Geobase is highly extendible. Try yourself to extend Geobase rule base, so that Geobase can manage more sentences. It isn''t that difficult! Geobase allows you to query its database in English rather than "computerese"-commands.

Geobase is by no means a complete geographical database of the United States, nor is it a complete English language interface. If you plan to write similar routines in your own programs, studying how the code is put together and how certain routines are implemented should help. Again, we urge you to modify Geobase to be a more complete program. This will not only sharpen your Visual Prolog programming skills, but it will also keep you off the streets late at night.

You can access the information stored in the Geobase database with natural language (in this case, the natural language is English). The database supplied with Geobase is built upon the geography of the United States. You can enter queries (questions) in English and Geobase will parse (translate) these questions into a form that Visual Prolog understands. Geobase will give answers to the queries to the best of its knowledge. The Geobase application demonstrates one of the important areas where Visual Prolog shines: understanding natural language.

One of the most exciting features of Geobase is that you can examine and edit the source code. The code of Geobase is fully documented; you can take any section and modify it to suit your needs. Take a look at the database and modify it to include your home town! Soon you''ll be on the road to creating your own natural language interfaces.

Sample queries:
What are the cities of New York?
What is the highest mountain in California?
What are the name of the states which border New Mexico?
Which rivers run through the state that border the state with the capital Olympia?



Execute the program as a CGI script by pressing the "Run Query" button on the form below





Show Source for the Geobase-application.

Show Source for the Geobase-application incl. cgi-support.




Some of the words that Geobase "knows"
Nouns Comparatives Relatives
area biggest above
capital greatest bigger
city highest greater
lake least less
mountain lowest longer
point maximum more
population minimum over
river shortest shorter
road smaller
river under
state


Examining Geobase
The database contains the following information:

Information about states:

Area of the state in square kilometers
Population of the state in citizens
Capital of the state


...

Исходные тексты
...


Для тех, кто не смог скачать

...

Дополнительные материалы
...


...


Hosted by uCoz