Skip to content
forked from wqa/megahal

fork from wqa/megahal using pip3 install python-Levenshtein

Notifications You must be signed in to change notification settings

peileppe/megahal-035

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To install:

pip3 install python-Levenshtein
python3 setup.py build
sudo python3 setup.py install

To run:

megahal -h

As a lib:

from megahal import *
megahal = MegaHAL()
megahal.train('/path/to/some/file')
megahal.learn('some phrase')
print megahal.get_reply('hey, wazzap')
megahal.sync()  # flush any changes to disc
megahal.close()  # flush changes and close

example of usage:

$ python3 pymegahal.py -b brain3.brn Transcription has began

wow, I'm impressed

That is a relief.

taking the exit

Why are you soooo slooooooooooow

Closing transcript

Closing database

About

fork from wqa/megahal using pip3 install python-Levenshtein

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%