MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / __init__

Method __init__

utils/eval_util.py:13–21  ·  view source on GitHub ↗

Args: annotators: None or empty set (only tokenizes).

(self)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected