776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
|
let nTokenEnd = (eAct[1] > 0) ? nTokenOffset + eAct[1] : nLastToken + eAct[1];
let oMultiToken = {
"nTokenStart": nTokenStart,
"nTokenEnd": nTokenEnd,
"lTokens": this.lTokens.slice(nTokenStart, nTokenEnd+1),
"lMorph": (sAction) ? sAction.split("|") : [":HM"]
}
this.lTokens[nTokenStart]["nMultiStartTo"] = nTokenEnd
this.lTokens[nTokenEnd]["nMultiEndFrom"] = nTokenStart
this.lTokens[nTokenStart]["dMultiToken"] = dMultiToken
this.lTokens[nTokenEnd]["dMultiToken"] = dMultiToken
}
else {
console.log("# error: unknown action at " + sLineId);
}
}
else if (cActionType == ">") {
if (bDebug) {
|
|
|
|
|
|
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
|
let nTokenEnd = (eAct[1] > 0) ? nTokenOffset + eAct[1] : nLastToken + eAct[1];
let oMultiToken = {
"nTokenStart": nTokenStart,
"nTokenEnd": nTokenEnd,
"lTokens": this.lTokens.slice(nTokenStart, nTokenEnd+1),
"lMorph": (sAction) ? sAction.split("|") : [":HM"]
}
this.lTokens[nTokenStart]["nMultiStartTo"] = nTokenEnd;
this.lTokens[nTokenEnd]["nMultiEndFrom"] = nTokenStart;
this.lTokens[nTokenStart]["oMultiToken"] = oMultiToken;
this.lTokens[nTokenEnd]["oMultiToken"] = oMultiToken;
}
else {
console.log("# error: unknown action at " + sLineId);
}
}
else if (cActionType == ">") {
if (bDebug) {
|