Giter Club home page Giter Club logo

Comments (5)

orhanf avatar orhanf commented on August 11, 2024

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.

orhanf avatar orhanf commented on August 11, 2024

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.

orhanf avatar orhanf commented on August 11, 2024

@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.

Jigar27 avatar Jigar27 commented on August 11, 2024

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.

Jigar27 avatar Jigar27 commented on August 11, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.