Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/AgentTuning
/ remove_articles
Function
remove_articles
eval_heldout/hotpotQA/src/wrappers.py:50–51 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
48
49
def
normalize_answer(s):
50
def
remove_articles(text):
51
return
re.sub(r
"\b(a|an|the)\b"
,
" "
, text)
52
53
def
white_space_fix(text):
54
return
" "
.join(text.split())
Callers
1
normalize_answer
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected