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

Method tokenize

utils/eval_util.py:23–29  ·  view source on GitHub ↗
(self, text, uncased=False)

Source from the content-addressed store, hash-verified

21 )
22
23 def tokenize(self, text, uncased=False):
24 matches = [m for m in self._regexp.finditer(text)]
25 if uncased:
26 tokens = [m.group().lower() for m in matches]
27 else:
28 tokens = [m.group() for m in matches]
29 return tokens
30
31
32def remove_articles(text):

Callers 1

has_correct_answerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected