<commit_before># Getting Started with Chatbots#

## Getting the files##

Check that you have Python 2.7 installed. Type

```
% python
```

at the terminal. If you get something like this

```
Python 2.7.5 (default, Aug  1 2013, 01:01:17)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
```

then you are good to go. Otherwise, install Python 2.7
[using these instructions](http://www.python.org/getit/releases/2.7.5/).

In order to skip the (minor) hassle of installing
[NLTK](http://nltk.org/install.html), we've prepared a zip archive of
just the files you need for running the chatbots. Make a directory (say, `prewired`) where you want to do your work,  [download this
zip file](http://data.inf.ed.ac.uk/catalog/storage/f/2013-10-15T11%3A50%3A03.026Z/chat.zip) into it, and unzip it.

```
% mkdir prewired
[download chat.zip]
% cd prewired
% unzip chat.zip
```

## Running a chatbot ##

First, make sure you are in the directory (e.g., `prewired`) where you downloaded and unzipped `chat.zip`.<commit_msg>changed link for chat.zip<commit_after># Getting Started with Chatbots#

## Getting the files##

Check that you have Python 2.7 installed. Type

```
% python
```

at the terminal. If you get something like this

```
Python 2.7.5 (default, Aug  1 2013, 01:01:17)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
```

then you are good to go. Otherwise, install Python 2.7
[using these instructions](http://www.python.org/getit/releases/2.7.5/).

In order to skip the (minor) hassle of installing
[NLTK](http://nltk.org/install.html), we've prepared a zip archive of
just the files you need for running the chatbots. Make a directory (say, `prewired`) where you want to do your work,  [download this
zip file](http://prewired.org/chat.zip) into it, and unzip it.

```
% mkdir prewired
[download chat.zip]
% cd prewired
% unzip chat.zip
```

## Running a chatbot ##

First, make sure you are in the directory (e.g., `prewired`) where you downloaded and unzipped `chat.zip`.
{'fraction_non_alphanumeric': 0.135492700729927, 'fraction_numerical': 0.038777372262773724, 'mean_word_length': 4.111888111888112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3360641', 'n_tokens_mistral': 817, 'n_tokens_neox': 736, 'n_words': 276}