-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipe las-pyramidal.yaml does not work #568
Comments
@philip30 was the one who created the setup.py prompt I believe, so maybe he can help? |
Ah yes I forgot the closing bracket. Maybe the problem is because open() returns None? perhaps you can comment the entire line as that line is just for INFO only. When not using conda, xnmt setup.py should be run on the root of XNMT directory. |
@philip30 @neubig this is coming... (base) E:\xnmt-master\examples>python -m xnmt.xnmt_run_experiments examples/01_standard.yaml During handling of the above exception, another exception occurred: Traceback (most recent call last): (base) E:\xnmt-master\examples> |
Hi Sruti, If you spend a little time to read the error message, it clearly says that "FileNotFoundError: [Errno 2] No such file or directory: 'examples/01_standard.yaml'" It is because you are running the program from "examples" directory, and the program tries to open "examples/01_standard.yaml" from there, and of course "examples/examples/01_standard.yaml" does not exists. can you try to do Thank you |
@philip30 @neubig Some other problems are occuring now. Whenever I am trying to run config.las-pyramidal.yaml from recipe it is giving error as follows. I am using different dataset and want to train my data with the same model given here using las. please have a look. I wonder if it is error from yaml file structure or my file directories or something else. Here is it showing AutoRegression error. In this case I basically want to classify data types that I have and see the accuracy. |
Hi Sruti, The error was because that the 'rnn_layers' fields are not found in the constructor of AutoRegressiveDecoder object. Can you reflect each object from the yaml file to the code and debug it? I believe if you are using a specific version of the yaml file which is working and written by @msperber, you should also checkout to the branch that the code was working. (I believe it is now somewhat diverges...) |
Hi Sruti, it seems that this recipe was not adjusted to the latest change in how decoders are specified. I can't send code right now unfortunately, but if you look in the examples (e.g. here: https://github.com/neulab/xnmt/blob/master/examples/01_standard.yaml ), you can see that all that needs to happen is to move a few things inside the decoder object. -- Matthias |
Hi @msperber, @philip30 las-pyramidal: !Experiment |
@SrutiBh it is helpful to read the documentation https://xnmt.readthedocs.io/en/latest/getting_started.html so you won't need my help for future implementation if you find any problem. (If you plan to use the code, I think it is essential to understand how xnmt works). And I am sorry, I can't help with the debuging, as the logic of that particular code is not written by me (and I might make mistake in correcting that, which risk I don't want to take). BTW, as it says, rnn_layers might refer to the layer numbers of the RNN, so if you wanna fix, you might want to correctly reflect that logic to the code. |
@philip30 the rnn bugs are still there. I tried to find out if there is any attribute name changes or anything but I did not found any problem. Can you tell me who wrote las-pyramidal so that I can discuss with him? However I see in place of rnn-layer it should be rnn...and I think for Listen-attend-spell paper architecture we need to use BiLSTMSeqTransducer but in the las-pyramidal it is structured for UniLSTMSeqTransducer. Do both of them refer to pyramidal lstm? |
@SrutiBh you are correct that the rnn_layer parameter needs to be renamed. The config specifies a (bidirectional) pyramidal LSTM as encoder, and a unidirectional LSTM as decoder. This is correct, as on the decoder side only unidirectional LSTMs can be used. Hope this helps! -- Matthias |
Hi @neubig,
I have installed all the requirements. But whenever I am trying to install xnmt by "python setup.py install". It is giving an error as "fatal: not a git repository" The error is as follows.
(base) D:\anaconda_install_3\new path\pkgs\xnmt-master>python setup.py install
checking git revision in setup.py
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "setup.py", line 36, in
open("./xnmt/git_rev.py", "w").write("CUR_GIT_REVISION = "" + get_git_revision() + "" # via setup.py")
TypeError: must be str, not NoneType
(base) D:\anaconda_install_3\new path\pkgs\xnmt-master>git init
Initialized empty Git repository in D:/anaconda_install_3/new path/pkgs/xnmt-master/.git/
(base) D:\anaconda_install_3\new path\pkgs\xnmt-master>python setup.py install
checking git revision in setup.py
fatal: Needed a single revision
Traceback (most recent call last):
File "setup.py", line 36, in
open("./xnmt/git_rev.py", "w").write("CUR_GIT_REVISION = "" + get_git_revision() + "" # via setup.py")
TypeError: must be str, not NoneType
My conda version is 4.6.7. Please let me know if you require any additional information. I need to fix this as soon as possible.
Thanks,
Sruti
The text was updated successfully, but these errors were encountered: