In sequential.js , line 134 there's a check for an expand property:
while (intent.entities[entitypos] && entities[intent.entities[entitypos].entity].expand) {
but entities do not have this property, the closest would be FreeTextEntityRecognizer, that has it as a method, not a property:
this.expand = function(match)
This property is checked again in line 182:
if (entities[outentities[i].entity].expand) {
I would like to help in improving sequential.js, but I'm not getting the why of this check, could you shed some light on the use of this property or the meaning of some funcitons?
In sequential.js , line 134 there's a check for an expand property:
while (intent.entities[entitypos] && entities[intent.entities[entitypos].entity].expand) {
but entities do not have this property, the closest would be FreeTextEntityRecognizer, that has it as a method, not a property:
this.expand = function(match)
This property is checked again in line 182:
if (entities[outentities[i].entity].expand) {
I would like to help in improving sequential.js, but I'm not getting the why of this check, could you shed some light on the use of this property or the meaning of some funcitons?