Commit b5846e50 authored by Louvet Jean-Baptiste's avatar Louvet Jean-Baptiste

Putting 5 as the maximum number of kw in the query to consider keeping adding kws.

Made the function computeRelevantForAddition more strict.
parent 149a47f1
......@@ -171,12 +171,16 @@ trait SimplePredicatesManager extends PredicatesManager with CommitmentStoreQuer
c => c.content.asInstanceOf[Proposition1].arg.name
)
VTAlignmentMap.
filterNot(m => (queryKWs.contains(m._2) || failedActionQKWs(addKW(Variable("kw"))).contains(m._2))).
filter(m => verbExprs.exists(_.content.asInstanceOf[Proposition1].arg.name.contains(m._1))). // Filter the relevant for addition maps which keys are contained in a verbalization expression
values.
map(s => RelevantForAddition(Individual(s))).
toSet
if (queryKWs.size < 5) {
VTAlignmentMap.
filterNot(m => (queryKWs.contains(m._2) || failedActionQKWs(addKW(Variable("kw"))).contains(m._2))).
filter(m => verbExprs.exists(_.content.asInstanceOf[Proposition1].arg.name.contains(m._1))). // Filter the relevant for addition maps which keys are contained in a verbalization expression
values.
map(s => RelevantForAddition(Individual(s))).
toSet
} else {
Set()
}
}
protected def computeInteractionNotStarted(): Set[PredN] = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment