(string)
| 524 | global _UID; _UID+=1; return _UID |
| 525 | |
| 526 | def _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 | |
| 532 | class Sentence(object): |
| 533 |