JoeSniff

Joseph Wilk - JoeSniff

Joseph Wilk’s Blog - Monkey amongst men

JavaScript Acting as a Robotic Agent

We can think of JavaScript running within a clients browser as a robotic agent. It has an environment in which it can sense things. The ability to look at the environment and make decisions based on plans. So whys that useful, well why is a robot useful? You can produce many different complex plans and give them to the robot and forget about it while it does the work ...

Latent Semantic Analysis in Python

Latent Semantic Analysis (LSA) is a mathematical method that tries to bring out latent relationships within a collection of documents. Rather than looking at each document isolated from the others it looks at all the documents as a whole and the terms within them to identify relationships. An example of LSA: Using a search engine search for "sand". Documents are returned which do not contain the search term "sand" but contains ...

Building a Vector Space Search Engine in Python

A vector space search involves converting documents into vectors. Each dimension within the vectors represents a term. If a document contains that term then the value within the vector is greater than zero. Here is an implementation of Vector space searching using python (2.4+). 1 Stemming & Stop words Fetch all terms within documents and clean - use a stemmer to reduce. A stemmer takes words and tries to reduce them ...

Prolog ASLDICN Event Calculus Planner

Tags: , ,

The event calculus planner used within my thesis was based on Dr. Murray Shanahan's ASLDICN (Abductive SLD with Integrity constraints and proof by Negation) planner with compound action support. This planner is an adaptation from one published in one of Dr. Shanahan's research papers http://casbah.ee.ic.ac.uk/%7Empsha/planners.html The original planner only supports the generation of a single plan. I needed to support conditional planning. I wanted the planner to generate multiple plans ...

Running Prolog as CGI

Tags:

Prolog can be run as CGI by using a PHP wrapper script which invokes the Prolog engine from within PHP. Prolog can be invoked indicating Prolog files to load and goals to initially achieve once loaded. Executing the following in PHP can spawn a process which runs Prolog. $cgiOutput = `sicstus --goal $goal. -l "$cgiPrologScriptToLoad"`; This specific example is for Sicstus but most Prolog command lines have a similar format. Another ...

Intelligent workflow management System

Download PDF Thesis http://www.doc.ic.ac.uk/teaching/projects/Distinguished04/JosephWilk.pdf This project took the HTML form systems as a model and built a Workflow Management System that uses artificial intelligence planning methodologies and Event Calculus workflow specifications to try to overcome some of the problems of Workflow Management Systems. Logic, server side languages and planning all rolled into one. The development of the Workflow Management System with AI uncovered interesting issues in modelling situations in ...

Keeping the Cache Hot

Tags: ,

Problem The exipry of content within caching architectures is only identified when a user makes a request for expired data. Hence a % of the visitors to the site will not be able to take advantage of caching.Many different caching architectures are used within a typical dynamic site. Hence the solution needs to be cache agnostic. Architecture Emmao bot was the name given to the python program which is used to ...

Squid and members

Tags: ,

Task Use Squid to manage a cache for a website where there are member users (logged in to site) and public users. Squid must cache both member views of a page and public views. Squid needs to check the authentication of the user and decided whether it should redirect them to a cache for members or for public users. There are only two discrete sets of users and any content ...

Automatic Tag Generation

This project looked at dynamically generating suggestion tags for content. To simplify the task some constraints where introduced. The content which will be tagged is news articles with HTML markup. Only English content. I used the following HTML page to experiment on with suggestion tags: http://news.bbc.co.uk/1/hi/entertainment/6624223.stm To help evaluate the tagging methods I asked a sample of people to suggest what they thought the best tags would be. They came up with: paris, ...

Continue