senarvi / theanolm

TheanoLM is a recurrent neural network language modeling tool implemented using Theano
Apache License 2.0
81 stars 29 forks source link

Problem with directory structure in pip package (theanolm/network/architectures/) #17

Closed adbar closed 8 years ago

adbar commented 8 years ago

Hello,

I just installed theanolm with pip and it expects the architectures to be in theanolm/network/architectures/ whereas they are in theanolm/architectures/ , so that the program won't run:

Traceback (most recent call last): File "/usr/local/bin/theanolm", line 41, in main() File "/usr/local/bin/theanolm", line 36, in main args.command_function(args) File "/usr/local/lib/python3.4/dist-packages/theanolm/commands/train.py", line 215, in train architecture = Architecture.from_package(args.architecture) File "/usr/local/lib/python3.4/dist-packages/theanolm/network/architecture.py", line 161, in from_package with open(description_path, 'rt', encoding='utf-8') as description_file: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.4/dist-packages/theanolm/network/architectures/lstm1500.arch'

Thank you

senarvi commented 8 years ago

Thanks for reporting. I made some changes in the package structure and forgot to update that path. It should work now. I uploaded a new version to pip. However, I'm currently developing the lattice decoder and haven't had time to test everything thoroughly, so I wouldn't be surprised if you'll find more bugs. Alternatively you can give a full path to an architecture file using the --architecture argument.

adbar commented 8 years ago

Thank you, it works now.