Fixed concept token parsing
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user