МегаHAL: Чат-бот, основанный на модели Маркова и юморе.
MegaHAL
MegaHAL: чат-бот, разработанный Джейсоном Хатченсом. Программа выиграла Loebner Prize в 1996 (HeX) и участвовала в конкурсе в 1998 (MegaHAL). ИИ, ELIZA.
Сравнивайте с английским: нажмите на абзац — оригинал откроется в окне. Кнопка EN под абзацем показывает его прямо в тексте.
Содержание
Введение
MegaHAL — это компьютерный симулятор разговора, или «чат-бот», созданный Джейсоном Хатченсом.
MegaHAL is a computer conversation simulator, or "chatterbot", created by Jason Hutchens.
Предыстория
В 1996 году Джейсон Хатченс участвовал в конкурсе на премию Лобнера с HeX, чат-ботом, основанным на ELIZA. HeX выиграл конкурс в том году и получил приз в 2000 долларов за наивысший общий балл. В 1998 году Хатченс снова участвовал в конкурсе на премию Лобнера со своей новой программой MegaHAL. MegaHAL дебютировал в конкурсе на премию Лобнера в 1998 году. Как и многие чат-боты, MegaHAL призван казаться человеком, свободно владеющим естественным языком. Когда пользователь вводит предложения, MegaHAL отвечает фразами, которые порой связны, а порой – полный абсурд. MegaHAL обучается в процессе разговора, запоминая новые слова и структуры предложений. Он даже может научиться заменять слова или фразы другими словами или фразами. Многие считают, что симуляторы общения, такие как MegaHAL, представляют собой примитивную форму искусственного интеллекта. Однако MegaHAL не понимает ни сути разговора, ни структуры предложений. Он генерирует свои ответы, основываясь на последовательных и математических зависимостях. В мире симуляторов общения MegaHAL основан на относительно устаревших технологиях и может считаться примитивным. Тем не менее, его популярность растет благодаря его юмористическому характеру; он известен тем, что выдает искаженные или бессмысленные высказывания, которые часто бывают забавными.
In 1996, Jason Hutchens entered the Loebner Prize Contest with HeX, a chatterbot based on ELIZA. HeX won the competition that year and took the $2000 prize for having the highest overall score. In 1998, Hutchens again entered the Loebner Prize Contest with his new program, MegaHAL. MegaHAL made its debut in the 1998 Loebner Prize Contest. Like many chatterbots, the intent is for MegaHAL to appear as a human fluent in a natural language. As a user types sentences into MegaHAL, MegaHAL will respond with sentences that are sometimes coherent and at other times complete gibberish. MegaHAL learns as the conversation progresses, remembering new words and sentence structures. It will even learn new ways to substitute words or phrases for other words or phrases. Many would consider conversation simulators like MegaHAL to be a primitive form of artificial intelligence. However, MegaHAL doesn't understand the conversation or even the sentence structure. It generates its conversation based on sequential and mathematical relationships. In the world of conversation simulators, MegaHAL is based on relatively old technology and could be considered primitive. However, its popularity has grown due to its humorous nature; it has been known to respond with twisted or nonsensical statements that are often amusing.
Теория действия
MegaHal основан, по крайней мере частично, на так называемой "скрытой модели Маркова", поэтому первое, что делает MegaHal при "обучении" на скрипте или тексте, – это создание базы данных текстовых фрагментов, включающих все возможные подмножества, возможно, из 4, 5 или даже 6 последовательных слов. Например, если MegaHal обучается на Декларации независимости, он создаст базу данных, содержащую фрагменты текста, такие как "When in the course", "in the course of", "the course of human", "course of human events", "of human events, one", "human events, one people" и так далее. Затем, если MegaHal получает другой текст, например: "Superman, Yes! It's Superman – he can change the course of mighty rivers, bend steel with his bare hands, and who disguised as Clark Kent", это может спровоцировать MegaHal на кажущееся замешательство и выдачу предположения о том, может ли Супермен изменить ход человеческих событий, или же на что-то совершенно иное, например, на бессвязные рассуждения о "when in the course of mighty rivers" и тому подобное. Таким образом, если фраза вроде "the White house said" часто встречается в тексте, способность MegaHal случайным образом переключаться между различными контекстами, которые в остальном имеют некоторое сходство, может иногда приводить к неожиданной ясности, либо же, напротив, казаться весьма странной.
MegaHal is based at least in part on a so called "hidden Markov Model", so that the first thing that Megahal does when it "trains" on a script or text is to build a database of text fragments encompassing every possible subset of perhaps 4, 5, or even 6 consecutive words, so that for example if MegaHal trains on the Declaration of Independence, then MegaHal will build a database containing text fragments such as "When in the course", "in the course of", "the course of human", "course of human events", "of human events, one", "human events, one people", and so on. Then if Megahal is fed another text, such has "Superman, Yes! It's Superman he can change the course of mighty rivers, bend steel with his bare hands and who disguised at Clark Kent " IT MIGHT induce Megahal to apparently bemuse itself to proffer whether Superman can change the course of human events, or something else altogether such as some rambling about "when in the course of mighty rivers", and so on. Thus likewise if a phrase like "the White house said" comes up a lot in some text; then Megahal's ability to switch randomly between different contexts which otherwise share some similarity can result at times in some surprising lucidity, or else it might otherwise seem quite bizarre.
Распространение
MegaHAL распространяется под лицензией Unlicense. Исходный код доступен для скачивания из репозитория Github.
MegaHAL is distributed under the Unlicense. Its source code can be downloaded from the Github repository.