cbluth / aima-python

Automatically exported from code.google.com/p/aima-python
0 stars 0 forks source link

We don't have that 'data' directory #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I try to run the tests

$ python doctests.py -v *.py

some fail because they can't find the data directory or the files in it.

These are the lines that originate the problems:

search.py:

BoggleFinder.wordlist = Wordlist("../data/wordlist")
(should be EN-text/wordlist)

text.py:

mandir = '../data/man/'
(should be MAN)

flatland = DataFile("flat11.txt").read() # there are two of these!
(should be EN-text/flatland.txt)

Finally, after replacing all the "../data/" with my "../aima-data/"
(checked out from the SVN repository), the tests were all successful (apart
from the one I mentioned in the other report).

--

Now I'll get back to try to understand the code, which is obviously much
more interesting. :-)

Thanks for releasing these programs with a free license, they're very
useful educational tools.

Best regards,
Matteo

Original issue reported on code.google.com by matteo.a...@gmail.com on 1 Oct 2007 at 3:04

GoogleCodeExporter commented 8 years ago
Sorry, I should have made it more clear: the data directory is in a separate 
project:
http://code.google.com/p/aima-data

It is separate because it is shared among the various language implementations
(Python, Java, etc.).

Original comment by peter.no...@gmail.com on 1 Oct 2007 at 3:37

GoogleCodeExporter commented 8 years ago

Original comment by peter.no...@gmail.com on 25 Nov 2007 at 10:02