Skip to content

Instantly share code, notes, and snippets.

@mbednarski
Last active November 8, 2018 19:02
Show Gist options
  • Save mbednarski/3b6f877c22d6d33d61c4dd180da72c12 to your computer and use it in GitHub Desktop.
Save mbednarski/3b6f877c22d6d33d61c4dd180da72c12 to your computer and use it in GitHub Desktop.
def main():
arguments = docopt(__doc__)
if arguments['train']:
train_model(arguments['<dataset-dir>'],
arguments['<model-file>'],
int(arguments['--vocab-size'])
)
elif arguments['ask']:
ask_model(arguments['<model-file>'],
arguments['<question>'])
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment