Args: annotators: None or empty set (only tokenizes).
(self)
| 11 | NON_WS = r'[^\p{Z}\p{C}]' |
| 12 | |
| 13 | def __init__(self): |
| 14 | """ |
| 15 | Args: |
| 16 | annotators: None or empty set (only tokenizes). |
| 17 | """ |
| 18 | self._regexp = regex.compile( |
| 19 | '(%s)|(%s)' % (self.ALPHA_NUM, self.NON_WS), |
| 20 | flags=regex.IGNORECASE + regex.UNICODE + regex.MULTILINE |
| 21 | ) |
| 22 | |
| 23 | def tokenize(self, text, uncased=False): |
| 24 | matches = [m for m in self._regexp.finditer(text)] |
nothing calls this directly
no outgoing calls
no test coverage detected