Fixed concept token parsing

This commit is contained in:
2020-05-23 10:46:03 +02:00
parent 32fb0e5398
commit c79403443f
5 changed files with 21 additions and 21 deletions
+4 -1
View File
@@ -331,7 +331,10 @@ def unstr_concept(concept_repr):
:param concept_repr:
:return:
"""
if not (concept_repr and isinstance(concept_repr, str) and concept_repr.startswith("c:")):
if not (concept_repr and
isinstance(concept_repr, str) and
concept_repr.startswith("c:") and
concept_repr.endswith(":")):
return None, None
i = 2