def main():
    paths = sys.argv[1:] or ['.']

    print('Importing nltk...')
    try:
        import nltk
    except __HOLE__:
        print('Unable to import nltk -- check your PYTHONPATH.')
        sys.exit(-1)

    print('Finding definitions of deprecated funtions & classes in nltk...')
    find_deprecated_defs(nltk.__path__[0])

    print('Looking for possible uses of deprecated funcs & classes...')
    dep_names = print_deprecated_uses(paths)

    if not dep_names:
        print('No deprecated funcs or classes found!')
    else:
        print("\n" + term.BOLD + "What you should use instead:" + term.NORMAL)
        for name in sorted(dep_names):
            msgs = deprecated_funcs[name].union(
                deprecated_classes[name]).union(
                deprecated_methods[name])
            for msg, prefix, suffix in msgs:
                print(textwrap.fill(term.RED + prefix + name + suffix +
                                    term.NORMAL + ': ' + msg,
                                    width=75, initial_indent=' ' * 2,
                                    subsequent_indent=' ' * 6))
dataset/ETHPy150Open nltk/nltk/tools/find_deprecated.py/main