Open kwalcock opened 3 years ago
There seems to be something strange going on with the Antecedents related to the Anaphoric trait. There are very long chains of them. I stopped when they got to 100. When printing output for one of them, the 100 antecedents must be printed. For the 99th, its 98 must be printed, for the 98th, its 97, etc. This quickly explodes. There is a loop detector now and if it is trustworthy, there are no loops, but these longs chains are probably causing problems. Who knows anything about them? I am counting them as they are being output here: https://github.com/clulab/reach/blob/3e632c5cad9ea93584a629611fde6ed5fe521d0c/main/src/main/scala/org/clulab/reach/mentions/serialization/json/package.scala#L251
This was probably done by @danebell. @danebell: any chance you can look into this probable infinite loop thing? Thank you!
Absolutely. Let me take a look at it and get back to you.
@danebell, please see branch kwalcock-loop and the test TestLoop (which I just updated). It should access PMC7176272.nxml which is one of the test resources. It is a large file in which something like 4000 mentions are found. Finding them is not a big problem, but outputting them will take overnight and break when a buffer exceeds 2gb, it seems. I can figure it out eventually, but if someone has a large head start, they should be consulted.
As noted in #723, reach seems to hang and never make it through this particular file with this output format, at least until some internal part overflows, positive numbers become negative, and an exception is thrown a day later.
PMC7176272.nxml.txt