def as_text(article):
    """Convert a Wikipedia article to Text object.
    Concatenates the sections in wikipedia file and rearranges other information so it
    can be interpreted as a Text object.

    Links and other elements with start and end positions are annotated
    as layers.

    Parameters
    ----------
    article: dict
        The wikipedia article (deserialized JSON).

    Returns
    -------
    estnltk.text.Text
        The Text object.
    """
    pass
