jalanb / co.py.cat Goto Github PK
View Code? Open in Web Editor NEWco.py.cat extends Hofstadter's, pythonically
Home Page: https://en.wikipedia.org/wiki/Copycat_(software)#External_links
License: MIT License
co.py.cat extends Hofstadter's, pythonically
Home Page: https://en.wikipedia.org/wiki/Copycat_(software)#External_links
License: MIT License
Hello,
I was hoping you could provide some basic installation instructions on github for co.py.cat? With details like if any files need to be changed slightly for running on a different system than yours, or on say linux? As well as which file to start co.py.cat etc. Oh and some sort of description as to what copycat does, would probably be good for people finding it. although I know it is based on Douglas Hofstadter's Copycat, so maybe just a wikipedia link to it would suffice.
Sorry, I do have Python 3 (although I assume this is in Python 2.7) experience it has just been a little while now and I've forgotten a good portion of it, again.
Anyway thanks.
I'm having trouble compiling this under either Python 2.7 or 3.4. What is the intended python setup?
Here are the error messages:
$ C:/Python34/python main.py abc abd ijk
Traceback (most recent call last):
File "main.py", line 6, in
import copycat
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 49
print "%d: %s" % (coderack.codeletsRun, answer)
^
SyntaxError: invalid syntax
$ C:/Python27/python main.py abc abd ijk
Traceback (most recent call last):
File "main.py", line 21, in
sys.exit(main(sys.argv[0], sys.argv[1:]))
File "main.py", line 13, in main
copycat.run(initial, modified, target)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 58, in run
runTrial()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 44, in runTrial
lastUpdate = mainLoop(lastUpdate)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 32, in mainLoop
coderack.chooseAndRunCodelet()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\coderack.py", line 285, in chooseAndRunCodelet
self.run(codelet)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\coderack.py", line 355, in run
method()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\codeletMethods.py", line 317, in replacement_finder
0: slipnet.sameness,
AttributeError: 'module' object has no attribute 'sameness'
Also Scott Boland's site is down. Could you make a copy of his code available?
Should at least be PEP-8 compliant. Pylint-clean would be nice (but lets not get too fussy)
Less evidence of the java roots - get rid of the getters and setters
Stack trace:
$ python main.py abc abd ijk
Traceback (most recent call last):
File "main.py", line 31, in <module>
sys.exit(main(sys.argv[0], sys.argv[1:]))
File "main.py", line 21, in main
answers = copycat.run(initial, modified, target, iterations)
File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 60, in run
runTrial(answers)
File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 40, in runTrial
lastUpdate = mainLoop(lastUpdate)
File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 29, in mainLoop
coderack.chooseAndRunCodelet()
File "/home/phil/sproj/co.py.cat/copycat/coderack.py", line 281, in chooseAndRunCodelet
self.run(codelet)
File "/home/phil/sproj/co.py.cat/copycat/coderack.py", line 338, in run
method(codelet)
File "/home/phil/sproj/co.py.cat/copycat/codeletMethods.py", line 802, in bottom_up_correspondence_scout
distinguishingMappings = [m for m in conceptMappings if m.distinguishing()]
File "/home/phil/sproj/co.py.cat/copycat/conceptMapping.py", line 59, in distinguishing
self.initialDescriptor):
File "/home/phil/sproj/co.py.cat/copycat/letter.py", line 44, in distinguishingDescriptor
if not WorkspaceObject.distinguishingDescriptor(self, descriptor):
TypeError: distinguishingDescriptor() takes exactly 1 argument (2 given)
Preferably generated from running code
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.