Comments (5)
Hi @Jigar27, this error is caused because you probably do not pass --config
argument to train_mlnmt.py
, hence it tries to find a configuration just named config
by default.
Can you please try passing one of the prototypes here for --config
Something like:
python train_mlnmt.py --config=prototype_config_multiCG_08
from dl4mt-multi.
Sorry this is my bad, default arguments should work. Or at least you can try:
python train_mlnmt.py --config=config.py --proto=prototype_config_multiCG_08
Probably you have a path issue, may be you can try adding the working directory to your PYTHONPATH, and be sure you've followed steps in setup.sh
from dl4mt-multi.
@Jigar27 what is your python version? this looks like a python issue.
python --version
if you are using 2.6 or earlier, code may not work. In that case please point to 2.7 python version.
from dl4mt-multi.
Hello @orhanf , I figured out that the following line is responsible for the error.
///this is a small example
cPickle.load(open('europarl-v7.de-en.de.tok.pkl'))
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'OrderedDict'
In the given system mcg/stream.py
src_vocabs = {k: cPickle.load(open(v))
for k, v in config['src_vocabs'].iteritems()}
this is the line where cPickle is loading the dictionary, the error is getting raised.
Any suggestion to handle this will be highly appreciated.
from dl4mt-multi.
Hello @orhanf , the error has been solved. while loading using pickle I used an extra argument protocol=2
from dl4mt-multi.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dl4mt-multi.