Index: gc_core/py/lang_core/gc_engine.py ================================================================== --- gc_core/py/lang_core/gc_engine.py +++ gc_core/py/lang_core/gc_engine.py @@ -784,10 +784,20 @@ # we do nothing, this test is just a condition to apply all following actions if bDebug: print(" COND_OK") pass elif cActionType == "/": + if bDebug: + print(" SEMANTIC_TAG:\n ", dRule[sRuleId]) + nTokenStart = nTokenOffset + eAct[0] + nTokenEnd = nTokenOffset + eAct[1] + for i in range(nTokenStart, nTokenEnd+1) + if "tags" in self.lToken[i]: + self.lToken[i]["tags"].update(sWhat.split("|")) + else: + self.lToken[i]["tags"] = set(sWhat.split("|")) + elif cActionType == "%": # sentence tags if bDebug: print(" SENTENCE_TAG:\n ", dRule[sRuleId]) nTokenTag = nTokenOffset + eAct[0] if sWhat not in self.dTags: