407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
|
word += oToken.sValue+' ';
//console.log('***',word);
}
id = id + oLst.length-1;
let tmpToken = {
'nEnd':oLst[oLst.length-1].nEnd,
'nStart':oLst[0].nStart,
'sType':"WORD",
'sValue':word.replace('’ ','’').trim()
};
if (bInfo) {
aElem.push({
sType: tmpToken.sType,
sValue: tmpToken.sValue,
aLabel: [this._formatTags(lastTokenWord).replace(/(\(él.\))/g,'').trim()]
});
} else {
aElem.push(tmpToken);
}
} else {
if (bInfo) {
aRes = this.getInfoForToken(oToken);
|
|
>
>
>
>
|
|
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
|
word += oToken.sValue+' ';
//console.log('***',word);
}
id = id + oLst.length-1;
let tmpToken = {
'nEnd':oLst[oLst.length-1].nEnd,
'nStart':oLst[0].nStart,
'sType':"LOC",
'sValue':word.replace('’ ','’').trim()
};
if (bInfo) {
let formatedTag = [];
for (let oToFormat of lastTokenWord.split('|') ){
formatedTag.push( this._formatTags(oToFormat).replace(/(\(él.\))/g,'').trim() );
}
aElem.push({
sType: tmpToken.sType,
sValue: tmpToken.sValue,
aLabel: formatedTag
});
} else {
aElem.push(tmpToken);
}
} else {
if (bInfo) {
aRes = this.getInfoForToken(oToken);
|