MCPcopy Index your code
hub / github.com/clips/pattern / _is_tokenstring

Function _is_tokenstring

pattern/text/tree.py:526–530  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

524 global _UID; _UID+=1; return _UID
525
526def _is_tokenstring(string):
527 # The class mbsp.TokenString stores the format of tags for each token.
528 # Since it comes directly from MBSP.parse(), this format is always correct,
529 # regardless of the given token format parameter for Sentence() or Text().
530 return isinstance(string, unicode) and hasattr(string, "tags")
531
532class Sentence(object):
533

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…