Closed MinionAttack closed 3 years ago
Hello, thank you for using depccg for your project, and I'm sorry for the inconvenience. Actually, the parser does not perform any heavy score calculation when doing A parsing (it searches for a tree using scores computed at the tagging phase), so the entire pipeline seems to be working as I expected. The problem is that the C++ A algorithm written by me is a bit unstable and gets stuck sometimes, especially when parsing many sentences at one time. I hopefully fixed the problem in the newer version of depccg (v2), so could you please try using it?
Hi, I have tried to upgrade to the latest version but the problem is that the base project I am using is a bit old so the upgrade from 1.0.8 to 2.0.2 changes a lot of dependencies and the base project stops working properly.
So I decided to modify the code of the base project and instead of trying to parse all 600K sentences at once, I parse them one by one and with the help of TQDM I can see that parsing them all takes about 25 hours.
Since I don't need to do the parsing many times it's not a big problem for me.
Regards.
Hi,
I'm using a project that uses EnglishCCGParser (v1) (depccg 1.0.8):
And the console output is:
I'm trying to parse 600K sentences, looking at the system monitor it's using the CPU instead of the GPU and the code has been running for 4 days. I can't see the progress or anything.
I run the code via
Intellij Idea
and in the environment variables I have specified:PYTHONUNBUFFERED=1;CUDA_VISIBLE_DEVICES=1
.When tagging I can see that uses the GPU but when it starts with the A* parsing it uses CPU instead.
How long does it take to parse that many sentences or how can I force GPU usage?
Regards.