Inadvertently removing question-question-generic relations?
tonyzhao6 opened this issue · 1 comments
This line explicitly removes question-question-generic
relations. Is there a reason why this is done?
Ok, I see that this is intended due to the following logic:
-
If
use_dependency
isFalse
, then we are usingrelations_
generated frompreprocess_question
.relations_
consists ofquestion-question
relationships. -
If
use_dependency
isTrue
, then we are usingtree_relations_
generated frompreprocess_question
.tree_relations_
consists ofForward-Syntax
,Backward-Syntax
, andNone-Syntax
relationships. -
If
use_dependency
isFalse
, then thequestion-question-generic
relations are first built ingenerate_relations_between_questions
and thus, they don't need to be added to therelation
matrix again. -
If
use_dependency
isTrue
, then thequestion-question-generic
relations that are built ingenerate_relations_between_questions
have to be overwritten withtree_relations_
in therelation
matrix.