Skip to content

Instantly share code, notes, and snippets.

@jrabbit
Created March 15, 2010 23:44
Show Gist options
  • Save jrabbit/333470 to your computer and use it in GitHub Desktop.
Save jrabbit/333470 to your computer and use it in GitHub Desktop.
counter = 0
for line in fileinput.input(args[1]):
buffer = pyborg.filter_message(line, Borg)
counter = counter + 1
try:
print buffer
Borg.learn(buffer)
if counter >= 30:
my_pyborg.save_all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment