Open HermannKroll opened 4 years ago
I am still getting this issue despite the fix. I have the current version of the repo
My output looks like this: last sentence (first; sentence; triple)
last sentence (second; sentence; triple)
last sentence (last; sentence; triple)
I am not sure if this repository is maintained further. You may have a closer look at https://github.com/dair-iitd/openie6 OpenIE 6 seems to be the successor of IMoJIE. It is much faster and has a better extraction quality. See https://arxiv.org/abs/2010.03147
Hello, I also encountered this problem,have you solved it?
No, I just hardcoded it to print each sentence from the input.
same here. To fix it edit standalone.py and replace the for loop starting at line 40 with this:
for index, output in enumerate(output_instances):
output = sanitize(output)
output = process(output["predicted_tokens"][0])
out.write(sentences[index])
out.write('\n'.join(output)+'\n\n')
out.close()
Unrelated to this particular problem: if you want to use GPU, replace the cuda_device number in line 28 from -1 with the GPU number you want o use (in my case, since i have only one, i use 0).
Anyone can guide me to produce the results of generated extractions from a standalone file using IMOJIE evaluation?
See fix (Pull request: #8)