def parse_truths(text):
    """
    Convert text into text and truths, a value of 1.0 indicates that it is the end of a token.
    >>> _parse_truths("迈向  充满  希望  的  新  世纪  ")
    ('迈向充满希望的新世纪', [0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 1.0, 1.0, 0.0, 1.0])
    """
    tokens = list(filter(None, text.replace('\u3000', ' ').split(' ')))
    text = ''.join(tokens)
    truths = [
        1. if i == len(token) - 1 else 0.
        for token in tokens
        for i in range(len(token))
    ]
    assert len(text) == len(truths)
    return text, truths