Differences From Artifact [cc991a6483]:
- File gc_core/py/lang_core/gc_engine.py — part of check-in [93c718cc67] at 2018-07-19 08:31:24 on branch rg — [core] semantic (token) tags (user: olr, size: 48590) [annotate] [blame] [check-ins using]
To Artifact [d2b4f44276]:
- File gc_core/py/lang_core/gc_engine.py — part of check-in [f875f6c740] at 2018-07-19 08:51:12 on branch rg — [build][core] new sign for sentence tags: % (user: olr, size: 48591) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
786 787 788 789 790 791 792 |
print(" COND_OK")
pass
elif cActionType == "/":
if bDebug:
print(" SEMANTIC_TAG:\n ", dRule[sRuleId])
nTokenStart = nTokenOffset + eAct[0]
nTokenEnd = nTokenOffset + eAct[1]
| | | 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 |
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:
|
| ︙ | ︙ |