# Path: util.py
# def list_files_with_extension(directory, extension):
#     """
#     Return a list of files with a given extension.
#     :param directory: The directory to explore.
#     :param extension: The extension to filter on.
#     :return: The list of matching files.
#     """
#     tmp = os.listdir(directory)
#     logging.debug(tmp)
#     extens = [f for f in tmp if os.path.splitext(f)[1] == "."+extension]
#     return [os.path.join(directory, f) for f in extens]
# 
# Path: tag.py
# IDENT = {u'ADV': 0,
#          u'NOUN': 1,
#          u'ADP': 2,
#          u'PRON': 3,
#          u'DET': 4,
#          u'.': 5,
#          u'PRT': 6,
#          u'VERB': 7,
#          u'X': 8,
#          u'NUM': 9,
#          u'CONJ': 10,
#          u'ADJ': 11}


from util import list_files_with_extension
from tag import IDENT
import matplotlib.pyplot as plt
import pickle
import logging
import numpy as np
#!/usr/bin/env python
__author__ = 'rtownsend'




if __name__ == "__main__":
    logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
                        level=logging.DEBUG)
    # Data
    X = [[] for _ in range(len(IDENT))]

# Path: util.py
# def list_files_with_extension(directory, extension):
#     """
#     Return a list of files with a given extension.
#     :param directory: The directory to explore.
#     :param extension: The extension to filter on.
#     :return: The list of matching files.
#     """
#     tmp = os.listdir(directory)
#     logging.debug(tmp)
#     extens = [f for f in tmp if os.path.splitext(f)[1] == "."+extension]
#     return [os.path.join(directory, f) for f in extens]
# 
# Path: tag.py
# IDENT = {u'ADV': 0,
#          u'NOUN': 1,
#          u'ADP': 2,
#          u'PRON': 3,
#          u'DET': 4,
#          u'.': 5,
#          u'PRT': 6,
#          u'VERB': 7,
#          u'X': 8,
#          u'NUM': 9,
#          u'CONJ': 10,
#          u'ADJ': 11}


# Path: avg.py
from util import list_files_with_extension
from tag import IDENT
import matplotlib.pyplot as plt
import pickle
import logging
import numpy as np

#!/usr/bin/env python
__author__ = 'rtownsend'




if __name__ == "__main__":
    logging.basicConfig(format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
                        level=logging.DEBUG)
    # Data
    X = [[] for _ in range(len(IDENT))]

    labels = [x for x in IDENT]