Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resourceKilled #94

Open
RitaHjz opened this issue Nov 23, 2021 · 3 comments
Open

resourceKilled #94

RitaHjz opened this issue Nov 23, 2021 · 3 comments

Comments

@RitaHjz
Copy link

RitaHjz commented Nov 23, 2021

Dear Fernando,
Thank you for developing Easse tool. It helps me a lot. However, I’m trying to use SAMSA metric on my output but it fails to compute it. Could you help me to solve it? I tried to download SAMSA but the tool suffers from insufficient info about how to use it and I didn’t understand the code.
Here is the error message:

rita@rita-VirtualBox:~/easse$ easse evaluate -t turkcorpus_test -m 'samsa' -q < easse/resources/data/system_outputs/turkcorpus/test/R
Warning: SAMSA metric is long to compute (120 sentences ~ 4min), disable it if you need fast evaluation.
Loading spaCy model 'en_core_web_md'... Done (76.791s).
Loading from '/home/rita/.local/lib/python3.8/site-packages/easse/resources/tools/ucca-bilstm-1.3.10/models/ucca-bilstm.json'.
[dynet] random seed: 1
[dynet] allocating memory: 512MB
[dynet] memory allocation done.
[dynet] 2.1.2
Loading from '/home/rita/.local/lib/python3.8/site-packages/easse/resources/tools/ucca-bilstm-1.3.10/models/ucca-bilstm.enum'... Done (0.295s).
Loading model from '/home/rita/.local/lib/python3.8/site-packages/easse/resourceKilled

Thanks in advance!

@louismartin
Copy link
Collaborator

Hi @RitaHjz,
Thanks for opening this issue. To be fair SAMSA is pretty hard and long to use and we have not implemented the original logic ourselves: https://github.com/eliorsulem/SAMSA

I am not sure what causes your process to be killed, it probably happens outside of the main python thread. It seems to happen when loading a model, maybe it's a memory error?

@RitaHjz
Copy link
Author

RitaHjz commented Nov 23, 2021

Hi @louismartin,
Thanks for your quick answer. I tried with few sentences but I have always the same problem :(

@feralvam
Copy link
Owner

feralvam commented Nov 23, 2021

Hi @RitaHjz,

I ran the following command in a fresh installation of EASSE and it worked fine:

easse evaluate -t turkcorpus_test -m 'samsa' -q < easse/resources/data/system_outputs/turkcorpus/test/RM+EX

As Louis mentioned, it seems to be related to lack of memory space when loading the ucca-bilstm model. As such, the number of sentences in the file does not influence there. Have you tried running it in colab, for instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants