Closed thammegowda closed 6 years ago
Gotcha!
ConstrNode
is a named tuple
https://github.com/aalto-speech/morfessor/blob/a903366868773981b81875ce9ba2e0111aad92e6/morfessor/baseline.py#L29
problem with namedtuple
is that it had a __dict__
attribute in python 2
and then it was removed in python 3 (as per stackoverflow answer)
So, users who migrates code to python 3, but hope to use older models trained on python 2, are in trouble.
But... situation is not that bad, I found a work around and raised a PR
Hi, I am trying to load a model on python3.6 using the python API, but it fails.
It is possible that the model may have been trained on the python 2 (i am not sure, my coworker trained it). Questions is, shouldn't the model trained on python 2 work on python 3 (considering the same code is used)?