<commit_before>import sys


if __name__ == '__main__':
    import chatterbot

    if '--version' in sys.argv:
        print(chatterbot.__version__)

    if 'list_nltk_data' in sys.argv:
        import nltk.data

        print('\n'.join(nltk.data.path))
<commit_msg>Add commad line utility to find NLTK data<commit_after>import sys


if __name__ == '__main__':
    import chatterbot

    if '--version' in sys.argv:
        print(chatterbot.__version__)

    if 'list_nltk_data' in sys.argv:
        import os
        import nltk.data

        data_directories = []

        # Find each data directory in the NLTK path that has content
        for path in nltk.data.path:
            if os.path.exists(path):
                if os.listdir(path):
                    data_directories.append(path)

        print(os.linesep.join(data_directories))

{'fraction_non_alphanumeric': 0.09349112426035502, 'fraction_numerical': 0.0, 'mean_word_length': 2.2290076335877864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5682916', 'n_tokens_mistral': 280, 'n_tokens_neox': 266, 'n_words': 68}