PrivacyPolicyAnalysis icon indicating copy to clipboard operation
PrivacyPolicyAnalysis copied to clipboard

fix bug in file DependencyTreeUtils.py

Open IzaiahSun opened this issue 5 years ago • 0 comments

It seems that there is something wrong in function get_direct_objects in file DockerImage/code/NlpUtils/DependencyTreeUtils.py. On line 71, function getConjunctions is called with two parameters, while on line 14, there is only one parameter for function getConjunctions. I guess that you want to call getConjunctionNPInternal, but it is inside the function, it cannot be called directly. So I change the code to extend conjs defined on line 69 by calling extend method with value return from function getConjunctions.

IzaiahSun avatar Jan 06 '21 03:01 IzaiahSun