MCPcopy Create free account
hub / github.com/THUDM/LongWriter / extract_info

Function extract_info

evaluation/eval_quality.py:56–61  ·  view source on GitHub ↗
(pattern, text)

Source from the content-addressed store, hash-verified

54 return ''
55
56def extract_info(pattern, text):
57 match = re.search(pattern, text, re.DOTALL)
58 if match:
59 return match.group(1)
60 else:
61 return None
62
63def process_data(items):
64 for item in tqdm(items):

Callers 1

process_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected