Open reckart opened 7 years ago
Richard,
It's because we were in the middle of fixing the code. I temporarily made a separate project to provide the conversion script so please take a look:
http://github.com/emorynlp/ddr
Please let me know if you have more questions. Thanks.
I stumbled across this C2DConverter when I was looking where the semantic and secondary heads in the NLPNode come from - and then I was looking into wrapping that conversion as a new NLP4J UIMA component in DKPro Core. However, if it is known to be broken in the last NLP4J release, then I'd better wait for the next NLP4J release on Maven Central which then probably (?) will also include the new converter?
I am unable to get the EnglishC2DConverter working. The following lines reproduce the problem.
This code prints an ArrayIndexOutOfBoundsException:
Is the converter broken?
As a side note, the converter "swallows" the generated exception in
EnglishC2DConverter.toDependencyGraph(CTTree)
- i.e. it prints a stack trace and doesn't forward the exception to the calling code. IMHO it would be better if it did not print the stack trace and instead let the exception bubble up to the calling code.