import string


def camelcase(text):
    """Convert some_string or some-string to SomeString."""
    text_spaced = text.replace("_", " ").replace("-", " ")
    ret = string.capwords(text_spaced).replace(" ", "")
    return ret