| "Reconstruct chunk text from the two dataset configurations." | |
| def materialize(article, chunk): | |
| body = article["md"].encode() | |
| start = chunk["start_byte"] | |
| return chunk["prefix_md"] + body[start:start+chunk["byte_len"]].decode() | |
| "Reconstruct chunk text from the two dataset configurations." | |
| def materialize(article, chunk): | |
| body = article["md"].encode() | |
| start = chunk["start_byte"] | |
| return chunk["prefix_md"] + body[start:start+chunk["byte_len"]].decode() | |