neulab / xnmt

eXtensible Neural Machine Translation
Other
185 stars 44 forks source link

Can't run test/config/transformer.yaml #588

Open SW0BBR opened 1 year ago

SW0BBR commented 1 year ago

I have been trying to implement the TransformerTranslator for my own experiments, but I ran into this error.

AssertionError: cannot pass dy.ParameterCollection to a Serializable class. Use ParamManager.my_params() from within the Serializable class's __init__() method instead.

Thus, I looked around for resources on how to use the TransformerTranslator, and found the test/config/transformer.yaml file. Sadly, after running it I ran into the exact same error. What is going wrong and how do I fix it?