Showing posts with label knowledge representation. Show all posts
Showing posts with label knowledge representation. Show all posts

Friday, February 10, 2017

So I posted a lot of Lisp here

OK, I know that most of you won't want to hack through pages of Lisp code and pages of Lisp rules. The post which is worth a look at is the example in use.

This shows the strength and weakness of the vanilla Eliza in action.

---

It's tempting, and even conventional, to scoff at Eliza. Peter Norvig says in Chapter 5.4 of his "Paradigms of Artificial Intelligence Programming":
" In the end, it is the technique that is important - not the program. ELIZA has been "explained away" and should rightfully be moved to the curio shelf. Pattern matching in general remains important technique, and we will see it again in subsequent chapters. The notion of a rule-based translator is also important. The problem of understanding English (and other languages) remains an important part of AI. Clearly, the problem of understanding English is not solved by ELIZA."

But the Eliza engine is a very good place to start.

---

What next?



The inadequacies of pseudo-human interlocutors are more forgivable in an animal. I'm going to craft a rule set for our dear, departed pet using the existing Eliza engine: Shadow v. 1.0.

Then it's back to Peter Norvig for his Prolog interpreter in Lisp (chapter 11). This will give me a unification algorithm and a resolution procedure.

My proposed architecture is to use the Eliza engine for input-output and have a Prolog-style knowledge-representation and inference-engine at the back.

In theory, the knowledge-based could be data-filled with rather tedious Q&A - the kind of thing which gives chatbots a bad name - but it's more pleasant for the user to have an initial registration procedure in which the user just tells the system about the domain of interest. For example, details of family and friends. Yes, I'm aware of privacy issues: you ask, in the age of Facebook?

The final area of architecture which I've been thinking about is the topic of conversation. This relates to the information and issues currently being talked about which drive the conversation forward. In Eliza it's basically in the hands of the user: there is no chatbot control mechanism.

But we can do better once we can do inference.

Watch this space.

Wednesday, June 01, 2016

Google's war on folders

In the beginning, the search model for the Internet was (nested) folders:
Yahoo = "Yet Another Hierarchical Officious Oracle"
Remember, the intent is to find something in a vast space of candidates. The simplest way is to give that thing a label ('the filename') and put it in a folder which groups similar items by some salient property ('the folder'). Folders are nested ad libitum.

Folder-nesting is essentially set-inclusion, sometimes termed an 'isa-hierarchy'; a related idea is that of 'inheritance'.

Given an isa-hierarchy (a tree structure), a language to describe it is most simply effected by labelling the branches in order:
"Dropbox/mydata/camping/camping-list.docx"
where the language syntax is pretty much isomorphic to the semantic structure.

It was a small shock when Gmail introduced arbitrary labels to replace folders. The semantic space became somewhat more complex, as the set of all subsets of a collection of labels constitutes a lattice.

A simple Google search on keywords is not dissimilar to a search on labels (plus a fancy ordering relation wherein lies the magic).

Then came Google Photos, where all those carefully-named folders on your hard-drive ('My-Pictures/Holiday-in-the-Dordogne-July-2014') vanished, and Google used metadata and AI scene recognition to organise your photos along many dimensions: people, places, things-in-the-picture, etc.

In real life and in ordinary conversation, people do not restrict themselves to labels to refer to things.
"That famous joke by that dead middle class comedian"
doesn't get a useful hit from Google today, although many British people might hazard a guess.
"That famous joke by Bob Monkhouse"
nails it, top of the list - but it's really labels at work here.

As Google augments its bottom-up, neural-net phrase-recognisers with stable and ubiquitous semantic/pragmatic models, the clunky, manual world of the folder hierarchy will finally be put to rest.

Google tried to bring a version of search to the personal hard-drive once before, but it never really took off: too much noise and not enough signal in the results.

But next time around?

Folders: archaic, inflexible, labour-intensive .. and doomed.