def create_document_to_score():
    doc = jina_pb2.Document()
    doc.id = 1
    for c in range(2):
        chunk = doc.chunks.add()
        chunk.id = ((doc.id + c) + 1)
        for m in range(2):
            match = chunk.matches.add()
            match.id = ((2 * chunk.id) + m)
            match.parent_id = (10 * match.id)
            match.length = match.id
            match.score.ref_id = chunk.id
            match.score.value = match.id
    return doc
def create_document_to_score():
    doc = jina_pb2.Document()
    doc.id = 1
    for c in range(2):
        chunk = doc.chunks.add()
        chunk.id = ((doc.id + c) + 1)
        for m in range(2):
            match = chunk.matches.add()
            match.id = ((2 * chunk.id) + m)
            match.parent_id = (10 * match.id)
            match.length = match.id
            match.score.ref_id = chunk.id
            match.score.value = match.id
    return doc