I am trying to calculate the Syntactic divergence for my private Question Answering dataset, but I couldn't find any good implementation or explanation on how to do it in Python.
While Searching, I found This GitHub script and this script but couldn't understand the code. Could someone provide a neat example in Python of how to calculate the Syntactic divergence for a custom question-answering dataset?