Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
def
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
63
def
process_data(items):
64
for
item in tqdm(items):
Callers
1
process_data
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected