MCPcopy Create free account
hub / github.com/eric-mitchell/direct-preference-optimization / strip_html

Function strip_html

preference_datasets.py:60–64  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

58 range(int(len(dataset) * 0.01), len(dataset)))
59
60 def strip_html(x):
61 x['question'] = strip_html_tags(x['question'])
62 for a in x['answers']:
63 a['text'] = strip_html_tags(a['text'])
64 return x
65
66 dataset = dataset.map(strip_html, num_proc=64)
67

Callers

nothing calls this directly

Calls 1

strip_html_tagsFunction · 0.85

Tested by

no test coverage detected