inspirehep / magpie

Deep neural network framework for multi-label text classification
MIT License
684 stars 192 forks source link

Train error on start #179

Closed cka-14 closed 5 years ago

cka-14 commented 5 years ago

Hi!

After running this code:

from magpie import Magpie

magpie = Magpie() magpie.train_word2vec('data\hep-categories', vec_dim=20)

I'm receiving this error:

<gensim.models.word2vec.Word2Vec at 0x1eeeedaba58>

Is this a memory error or hard drive space error? Or completely something else?

Thanks.

jstypka commented 5 years ago

that's an object that the method returns. You should assign it to a variable and then use it for Magpie training.

cka-14 commented 5 years ago

Thanks for answer!

It was from readme so should i just assign variable like var = magpie.train_word2vec('data\hep-categories', vec_dim=20)? (Newbie in python)

And is there any long description/introduction about magpie?

jstypka commented 5 years ago

https://github.com/inspirehep/magpie/blob/master/README.md this should fix you up

cka-14 commented 5 years ago

Thanks, was using this. I searched the issues to learn more about this topic. In readme file the commands are initiated from CLI with python, right? I'm using jupyter maybe that was a problem also.

Will try to do from CLI. On install I also got some errors like scipy wheel error (using windows 10) and installed manually all the dependencies with updated versions. Should I downgrade them? Thanks in advance.

cka-14 commented 5 years ago

CLI worked with updated versions of dependencies!

Thanks for your time a lot, marking as resolved!

And have a nice day!